This is merely a historical archive of years 2008-2021, before the migration to mailman3.
A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.
laforge gerrit-no-reply at lists.osmocom.orglaforge has submitted this change. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/17239 ) Change subject: remsim: Add TC_slotmap_del_nonexistant() ...................................................................... remsim: Add TC_slotmap_del_nonexistant() Let's test that deleting a non-existant slotmap from server renders HTTP status 404. Change-Id: Ib74fea146017ffc68b75ec175472842b689891c3 --- M remsim/RemsimServer_Tests.ttcn 1 file changed, 11 insertions(+), 1 deletion(-) Approvals: Jenkins Builder: Verified laforge: Looks good to me, approved diff --git a/remsim/RemsimServer_Tests.ttcn b/remsim/RemsimServer_Tests.ttcn index 6179489..e154cc2 100644 --- a/remsim/RemsimServer_Tests.ttcn +++ b/remsim/RemsimServer_Tests.ttcn @@ -357,6 +357,16 @@ log(res); } +/* simple delete of a non-existant slotmap */ +testcase TC_slotmap_del_nonexistant() runs on test_CT { + f_rsres_init(); + + var JsSlotmap sm := valueof(ts_JsSlotmap(ts_BankSlot(11,12), ts_ClientSlot(13,14))); + var HTTPResponse res := f_rsres_delete_slotmap(sm.bank, exp_sts:=404); + log(res); +} + + /* simple delete of a 'UNACKNOWLEDGED' slotmap */ testcase TC_slotmap_del_unack() runs on test_CT { var ComponentIdentity rspro_id := valueof(ts_CompId(remsimBankd, testcasename())); @@ -511,7 +521,6 @@ /* TODO * - connect client w/slotmap; delete slotmap via REST (see if it is deleted) * - don't acknowledge delete from client, disconnect client (see if slotmap is deleted) - * - delete non-existing slotmap via REST * - create slotmap with integers out of range via REST * - connect from unknown client (name not known, no clientId provisioned? @@ -527,6 +536,7 @@ execute( TC_slotmap_add_conn_cl_b() ); execute( TC_conn_cl_b_slotmap_add() ); execute( TC_slotmap_del_new() ); + execute( TC_slotmap_del_nonexistant() ); execute( TC_slotmap_del_unack() ); execute( TC_slotmap_del_active() ); execute( TC_slotmap_del_active_client() ); -- To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/17239 To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings Gerrit-Project: osmo-ttcn3-hacks Gerrit-Branch: master Gerrit-Change-Id: Ib74fea146017ffc68b75ec175472842b689891c3 Gerrit-Change-Number: 17239 Gerrit-PatchSet: 1 Gerrit-Owner: laforge <laforge at osmocom.org> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: laforge <laforge at osmocom.org> Gerrit-MessageType: merged -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200221/df0f3545/attachment.htm>