lynxis lazus has submitted this change. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/39236?usp=email )
Change subject: MSC Tests: add TC_gsup_lu_and_det: do a LU, Detach and expect GSUP MS Purge ......................................................................
MSC Tests: add TC_gsup_lu_and_det: do a LU, Detach and expect GSUP MS Purge
Currently the MSC/VLR doesn't inform the HLR when a MS detaches.
Change-Id: I9e87537efc2c921fa860539a706316ed410b45d5 --- M msc/MSC_Tests.ttcn M msc/expected-results.xml 2 files changed, 20 insertions(+), 0 deletions(-)
Approvals: Jenkins Builder: Verified fixeria: Looks good to me, but someone else must approve pespin: Looks good to me, approved
diff --git a/msc/MSC_Tests.ttcn b/msc/MSC_Tests.ttcn index 3f4afe4..675fc55 100644 --- a/msc/MSC_Tests.ttcn +++ b/msc/MSC_Tests.ttcn @@ -3455,6 +3455,24 @@ f_vty_config(MSCVTY, "msc", "no sms-over-gsup"); }
+/* LU followed by detach and will trigger a Purge MS */ +friend function f_tc_gsup_lu_and_det(charstring id, BSC_ConnHdlrPars pars) runs on BSC_ConnHdlr { + f_init_handler(pars, t_guard := 8.0); + f_perform_lu(); + + f_imsi_detach_by_imsi(); + + GSUP.receive(tr_GSUP_PURGE_MS_REQ(g_pars.imsi, OSMO_GSUP_CN_DOMAIN_CS)); + GSUP.send(ts_GSUP_PURGE_MS_RES(g_pars.imsi)); +} +testcase TC_gsup_lu_and_det() runs on MTC_CT { + var BSC_ConnHdlr vc_conn; + f_init(); + + vc_conn := f_start_handler(refers(f_tc_gsup_lu_and_det), 103); + vc_conn.done; +} + /* convert GSM L3 TON to SMPP_TON enum */ function f_sm_ton_from_gsm(BIT3 ton) return SMPP_TON { select (ton) { @@ -7888,6 +7906,7 @@ execute( TC_gsup_mt_sms_lu_delay() ); execute( TC_gsup_mt_sms_paging_timeout() ); execute( TC_gsup_mt_sms_conn_timeout() ); + execute( TC_gsup_lu_and_det() );
execute( TC_lu_and_mo_ussd_single_request() ); execute( TC_lu_and_mt_ussd_notification() ); diff --git a/msc/expected-results.xml b/msc/expected-results.xml index 65f6d8e..25c49b4 100644 --- a/msc/expected-results.xml +++ b/msc/expected-results.xml @@ -83,6 +83,7 @@ <testcase classname='MSC_Tests' name='TC_gsup_mt_sms_lu_delay' time='MASKED'/> <testcase classname='MSC_Tests' name='TC_gsup_mt_sms_paging_timeout' time='MASKED'/> <testcase classname='MSC_Tests' name='TC_gsup_mt_sms_conn_timeout' time='MASKED'/> + <testcase classname='MSC_Tests' name='TC_gsup_lu_and_det' time='MASKED'/> <testcase classname='MSC_Tests' name='TC_lu_and_mo_ussd_single_request' time='MASKED'/> <testcase classname='MSC_Tests' name='TC_lu_and_mt_ussd_notification' time='MASKED'/> <testcase classname='MSC_Tests' name='TC_lu_and_mo_ussd_during_mt_call' time='MASKED'/>