summaryrefslogtreecommitdiffstats
path: root/msc
diff options
context:
space:
mode:
authorPhilipp Maier <pmaier@sysmocom.de>2019-03-21 11:17:54 +0100
committerPhilipp Maier <pmaier@sysmocom.de>2019-04-02 16:03:42 +0200
commitfc19f17542eadf73fca4d51cc57ba58cf6de35f9 (patch)
tree3a721b8e492e7ad45e68a5c2b4e71c93487aaead /msc
parent5d812707deebbf9167a6e49d551b54f8e767edb5 (diff)
MSC_Tests: add testcase TC_sgsap_impl_imsi_det_eps
We have a testcase that sends an explicit (UE-Initiated) imsi detach from EPS services. Lets also cover the case for an implicit (Network-initated) detach. Change-Id: I63ebc32ae457dd74214d4abee4f511cde28de4a7 Related: OS#3614
Diffstat (limited to 'msc')
-rw-r--r--msc/MSC_Tests.ttcn25
-rw-r--r--msc/expected-results.xml1
2 files changed, 26 insertions, 0 deletions
diff --git a/msc/MSC_Tests.ttcn b/msc/MSC_Tests.ttcn
index ca633dc..3b9ea40 100644
--- a/msc/MSC_Tests.ttcn
+++ b/msc/MSC_Tests.ttcn
@@ -3829,6 +3829,30 @@ testcase TC_sgsap_expl_imsi_det_eps() runs on MTC_CT {
vc_conn.done;
}
+private function f_tc_sgsap_impl_imsi_det_eps(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_EPS_DETACH_IND(g_pars.imsi, mme_name, network_initiated));
+ SGsAP.receive(tr_SGsAP_EPS_DETACH_ACK(g_pars.imsi));
+ f_ctrl_get_exp(IPA_CTRL, "fsm.SGs-UE.id.imsi:" & hex2str(g_pars.imsi) & ".state", "SGs-NULL");
+
+ f_sgsap_bssmap_screening();
+
+ setverdict(pass);
+}
+testcase TC_sgsap_impl_imsi_det_eps() runs on MTC_CT {
+ var BSC_ConnHdlrPars pars;
+ var BSC_ConnHdlr vc_conn;
+ f_init(1, true);
+ pars := f_init_pars(11814, true);
+ vc_conn := f_start_handler_with_pars(refers(f_tc_sgsap_impl_imsi_det_eps), pars);
+ vc_conn.done;
+}
+
private function f_tc_sgsap_expl_imsi_det_noneps(charstring id, BSC_ConnHdlrPars pars)
runs on BSC_ConnHdlr {
f_init_handler(pars);
@@ -4675,6 +4699,7 @@ control {
execute( TC_sgsap_lu_imsi_reject() );
execute( TC_sgsap_lu_and_nothing() );
execute( TC_sgsap_expl_imsi_det_eps() );
+ execute( TC_sgsap_impl_imsi_det_eps() );
execute( TC_sgsap_expl_imsi_det_noneps() );
execute( TC_sgsap_impl_imsi_det_noneps() );
execute( TC_sgsap_paging_rej() );
diff --git a/msc/expected-results.xml b/msc/expected-results.xml
index e829493..2c0083c 100644
--- a/msc/expected-results.xml
+++ b/msc/expected-results.xml
@@ -74,6 +74,7 @@
<testcase classname='MSC_Tests' name='TC_sgsap_lu_imsi_reject' time='MASKED'/>
<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_impl_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'/>