Change in osmo-ttcn3-hacks[master]: MSC_Tests: add testcase TC_sgsap_impl_imsi_det_eps

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/.

dexter gerrit-no-reply at lists.osmocom.org
Thu Mar 21 10:35:37 UTC 2019


dexter has uploaded this change for review. ( https://gerrit.osmocom.org/13352


Change subject: MSC_Tests: add testcase TC_sgsap_impl_imsi_det_eps
......................................................................

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
---
M msc/MSC_Tests.ttcn
1 file changed, 25 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/52/13352/1

diff --git a/msc/MSC_Tests.ttcn b/msc/MSC_Tests.ttcn
index f35e590..3bff0b0 100644
--- a/msc/MSC_Tests.ttcn
+++ b/msc/MSC_Tests.ttcn
@@ -3812,6 +3812,30 @@
 	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);
@@ -4656,6 +4680,7 @@
 	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() );

-- 
To view, visit https://gerrit.osmocom.org/13352
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I63ebc32ae457dd74214d4abee4f511cde28de4a7
Gerrit-Change-Number: 13352
Gerrit-PatchSet: 1
Gerrit-Owner: dexter <pmaier at sysmocom.de>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20190321/a1c85b58/attachment.htm>


More information about the gerrit-log mailing list