laforge has submitted this change. ( 
https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/34287?usp=email )

Change subject: TC_s1ap_attach: setup S11 interface, catch Create Session 
Request
......................................................................

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
---
M mme/MME_Tests.ttcn
1 file changed, 38 insertions(+), 1 deletion(-)

Approvals:
  laforge: Looks good to me, approved
  Jenkins Builder: Verified




diff --git a/mme/MME_Tests.ttcn b/mme/MME_Tests.ttcn
index 104c3d2..3af72bc 100644
--- a/mme/MME_Tests.ttcn
+++ b/mme/MME_Tests.ttcn
@@ -620,6 +620,8 @@
        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 @@
                }
        }

-       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 @@
        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);

--
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/34287?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: I6350a3d5cab33fa4f43e4cdcbd7bf3241821d233
Gerrit-Change-Number: 34287
Gerrit-PatchSet: 2
Gerrit-Owner: dexter <[email protected]>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <[email protected]>
Gerrit-MessageType: merged

Reply via email to