summaryrefslogtreecommitdiffstats
path: root/msc
diff options
context:
space:
mode:
authorPhilipp Maier <pmaier@sysmocom.de>2019-03-21 10:51:26 +0100
committerPhilipp Maier <pmaier@sysmocom.de>2019-04-02 16:03:42 +0200
commit5d812707deebbf9167a6e49d551b54f8e767edb5 (patch)
tree8e8b275aac47b596f16be52470a64519a9f5626e /msc
parent948747b38519ea3605060c6227280123737fa3c0 (diff)
MSC_Tests: add testcase TC_sgsap_impl_imsi_det_noneps
We have a testcase that sends an explicit (UE-Initiated) imsi detach from non EPS services. Lets also cover the case for an implicit (Network-initated) detach. Change-Id: I76049e6717680c54c18f97b7cd51944901a81ae7 Related: OS#3614
Diffstat (limited to 'msc')
-rw-r--r--msc/MSC_Tests.ttcn28
-rw-r--r--msc/expected-results.xml1
2 files changed, 29 insertions, 0 deletions
diff --git a/msc/MSC_Tests.ttcn b/msc/MSC_Tests.ttcn
index a15fa57..ca633dc 100644
--- a/msc/MSC_Tests.ttcn
+++ b/msc/MSC_Tests.ttcn
@@ -3854,6 +3854,33 @@ testcase TC_sgsap_expl_imsi_det_noneps() runs on MTC_CT {
vc_conn.done;
}
+private function f_tc_sgsap_impl_imsi_det_noneps(charstring id, BSC_ConnHdlrPars pars)
+runs on BSC_ConnHdlr {
+ f_init_handler(pars);
+ f_sgs_perform_lu();
+ f_sleep(3.0);
+
+ var octetstring mme_name := f_enc_dns_hostname(mp_mme_name);
+ SGsAP.send(ts_SGsAP_IMSI_DETACH_IND(g_pars.imsi, mme_name, implicit_network_initiated));
+ SGsAP.receive(tr_SGsAP_IMSI_DETACH_ACK(g_pars.imsi));
+
+ if (f_ctrl_subscr_in_vlr(hex2str(g_pars.imsi))) {
+ setverdict(fail, "subscriber not removed from VLR");
+ }
+
+ f_sgsap_bssmap_screening();
+
+ setverdict(pass);
+}
+testcase TC_sgsap_impl_imsi_det_noneps() runs on MTC_CT {
+ var BSC_ConnHdlrPars pars;
+ var BSC_ConnHdlr vc_conn;
+ f_init(1, true);
+ pars := f_init_pars(11815, true);
+ vc_conn := f_start_handler_with_pars(refers(f_tc_sgsap_impl_imsi_det_noneps), pars);
+ vc_conn.done;
+}
+
/* Trigger a paging request via VTY and send a paging reject in response */
private function f_tc_sgsap_paging_rej(charstring id, BSC_ConnHdlrPars pars)
runs on BSC_ConnHdlr {
@@ -4649,6 +4676,7 @@ control {
execute( TC_sgsap_lu_and_nothing() );
execute( TC_sgsap_expl_imsi_det_eps() );
execute( TC_sgsap_expl_imsi_det_noneps() );
+ execute( TC_sgsap_impl_imsi_det_noneps() );
execute( TC_sgsap_paging_rej() );
execute( TC_sgsap_paging_subscr_rej() );
execute( TC_sgsap_paging_ue_unr() );
diff --git a/msc/expected-results.xml b/msc/expected-results.xml
index 86e8a89..e829493 100644
--- a/msc/expected-results.xml
+++ b/msc/expected-results.xml
@@ -75,6 +75,7 @@
<testcase classname='MSC_Tests' name='TC_sgsap_lu_and_nothing' time='MASKED'/>
<testcase classname='MSC_Tests' name='TC_sgsap_expl_imsi_det_eps' time='MASKED'/>
<testcase classname='MSC_Tests' name='TC_sgsap_expl_imsi_det_noneps' time='MASKED'/>
+ <testcase classname='MSC_Tests' name='TC_sgsap_impl_imsi_det_noneps' time='MASKED'/>
<testcase classname='MSC_Tests' name='TC_sgsap_paging_rej' time='MASKED'/>
<testcase classname='MSC_Tests' name='TC_sgsap_paging_subscr_rej' time='MASKED'/>
<testcase classname='MSC_Tests' name='TC_sgsap_paging_ue_unr' time='MASKED'/>