aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhilipp Maier <pmaier@sysmocom.de>2023-09-01 17:24:36 +0200
committerlaforge <laforge@osmocom.org>2023-09-12 09:26:44 +0000
commitf74f319ea5fbc0646d02b5d08693972de8196eb3 (patch)
tree8b31827b6e18b8aee858ad50512c857187baa262
parent932f6133ba05e133f8faae871a3b1e13d5579baa (diff)
TC_s1ap_attach: setup S11 interface, catch Create Session Request
The testcase TC_s1ap_attach is not complete yet. Since the testsuite lacked the S11 interface, it was not possible to develop the testcase beond the S1AP/NAS-EPS Security Mode Command. However, the S11 interface is now available to the testsuite, so let's show that it works by catching the Create Session Request. Let's also put a TODO that the testcase needs to be completed still. Related: OS#5760 Change-Id: I6350a3d5cab33fa4f43e4cdcbd7bf3241821d233
-rw-r--r--mme/MME_Tests.ttcn22
1 files changed, 21 insertions, 1 deletions
diff --git a/mme/MME_Tests.ttcn b/mme/MME_Tests.ttcn
index 104c3d20..3af72bcf 100644
--- a/mme/MME_Tests.ttcn
+++ b/mme/MME_Tests.ttcn
@@ -620,6 +620,8 @@ private function f_TC_attach(ConnHdlrPars pars) runs on ConnHdlr {
f_init_handler(pars);
var template (value) EPS_MobileIdentityV mi := ts_NAS_MobileId_IMSI(pars.ue_pars.imsi);
var template (value) PDU_NAS_EPS nas_esm, nas_emm;
+ timer T := 5.0;
+
/*
nas_esm := ts_NAS_ActDefEpsBearCtxReq(bearer_id := '0000'B, proc_tid := int2bit(1,8),
qos := c_NAS_defaultQoS, apn := c_NAS_defaultAPN,
@@ -648,7 +650,24 @@ private function f_TC_attach(ConnHdlrPars pars) runs on ConnHdlr {
}
}
- f_sleep(10.0);
+ /* We now expect the MME to send a Create Session Request to the SGW-C */
+ /* TODO: be more restrictive, fix and use tr_GTP2C_CreateSessionReq */
+ f_gtp2_register_udmsg('20'O);
+ T.start;
+ alt {
+ [] GTP2.receive(tr_PDU_GTP2C) {
+ setverdict(pass);
+ }
+ [] GTP2.receive {
+ setverdict(fail, "unexpected GTPv2/S11 message from MME");
+ }
+ [] T.timeout {
+ setverdict(fail, "no message from MME");
+ }
+ }
+
+ /* TODO: Finish this procedure until Attach Complete */
+
}
testcase TC_s1ap_attach() runs on MTC_CT {
var charstring id := testcasename();
@@ -656,6 +675,7 @@ testcase TC_s1ap_attach() runs on MTC_CT {
f_init_diameter(id);
f_sleep(10.0);
f_init_s1ap(id, 4);
+ f_init_gtpv2_s11(id);
f_s1ap_setup(0);
var ConnHdlrPars pars := f_init_pars(ue_idx := 0);