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.orgdexter has uploaded this change for review. ( https://gerrit.osmocom.org/11702
Change subject: WIP: MSC_Tests: extend SGSAP testcases
......................................................................
WIP: MSC_Tests: extend SGSAP testcases
Change-Id: I38ea0de12b4350fa525d483e4744f6ea23db790b
---
M msc/MSC_Tests.ttcn
1 file changed, 55 insertions(+), 0 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/02/11702/1
diff --git a/msc/MSC_Tests.ttcn b/msc/MSC_Tests.ttcn
index 0c400dc..e2be6d9 100644
--- a/msc/MSC_Tests.ttcn
+++ b/msc/MSC_Tests.ttcn
@@ -111,6 +111,7 @@
charstring mp_smpp_system_id := "msc_tester";
charstring mp_smpp_password := "osmocom1";
charstring mp_mme_name := "mmec01.mmegi0001.mme.epc.mnc070.mcc901.3gppnetwork.org";
+ charstring mp_vlr_name := "mmec02.mmegi0002.mme.epc.mnc070.mcc901.3gppnetwork.org";
BSSAP_Configurations mp_bssap_cfg := {
{
@@ -2911,6 +2912,59 @@
vc_conn.done;
}
+private function f_tc_sgsap_paging(charstring id, BSC_ConnHdlrPars pars)
+runs on BSC_ConnHdlr {
+ f_init_handler(pars);
+ f_sgs_perform_lu();
+ f_sleep(1.0);
+ var CtrlValue ctrltest;
+
+
+ var octetstring vlr_name := f_enc_dns_hostname(mp_vlr_name);
+ var template PDU_SGsAP exp_resp := tr_SGsAP_PAGING_REQ(g_pars.imsi, vlr_name, CS_call_indicator, omit);
+ var template LocationAreaId exp_lai := ts_SGsAP_IE_Lai(valueof(ts_SGsAP_LAI('901'H, '70'H, 2342)));
+ exp_resp.sGsAP_PAGING_REQUEST.locationAreaId := exp_lai;
+
+ /* Initiate paging via VTY */
+ f_vty_transceive(MSCVTY, "subscriber imsi " & hex2str(g_pars.imsi) & " paging");
+ alt {
+ [] SGsAP.receive(exp_resp) {
+ setverdict(pass);
+ }
+ [] SGsAP.receive {
+ setverdict(fail, "Received unexpected message on SGs");
+ }
+ }
+
+ /* Now reject the paging */
+ SGsAP.send(ts_SGsAP_PAGING_REJ(g_pars.imsi, IMSI_unknown));
+
+ /* FIXME: We need to check if the SGs association changed to NULL
+ * we might consider to query the state via the control interface */
+
+
+ log("===========================================");
+ ctrltest := f_ctrl_get(IPA_CTRL, "fsm.SGs-UE.id.imsi:262420000000010.state");
+ log("===========================================");
+ log(ctrltest);
+ log("===========================================");
+
+
+
+// f_ctrl_get_exp(IPA_CTRL, "fsm.SGs-UE.id.imsi:262420000000010.state", "SGs-NULL");
+
+
+
+}
+testcase TC_sgsap_paging() runs on MTC_CT {
+ var BSC_ConnHdlr vc_conn;
+ f_init();
+ vc_conn := f_start_handler(refers(f_tc_sgsap_paging), 10);
+ vc_conn.done;
+
+}
+
+
@@ -2991,6 +3045,7 @@
execute( TC_sgsap_lu_imsi_reject() );
execute( TC_sgsap_expl_imsi_det_eps() );
execute( TC_sgsap_expl_imsi_det_noneps() );
+ execute( TC_sgsap_paging() );
/* Run this last: at the time of writing this test crashes the MSC */
execute( TC_lu_imsi_auth_tmsi_encr_3_1_log_msc_debug() );
--
To view, visit https://gerrit.osmocom.org/11702
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: I38ea0de12b4350fa525d483e4744f6ea23db790b
Gerrit-Change-Number: 11702
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/20181109/20960e5a/attachment.htm>