<p>Harald Welte <strong>merged</strong> this change.</p><p><a href="https://gerrit.osmocom.org/9251">View Change</a></p><div style="white-space:pre-wrap">Approvals:
  Harald Welte: Looks good to me, approved
  Jenkins Builder: Verified

</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">SGSN: add TC_hlr_location_cancel_request_update<br><br>MS <-> SGSN: GMM Attach<br>HLR -> SGSN: Cancel Location Request<br>HLR <- SGSN: Cancel Location Ack<br><br>Change-Id: I5d3a818eb0a4eb3b0d4bd7bd88874bd2ac6adb11<br>---<br>M sgsn/SGSN_Tests.ttcn<br>1 file changed, 41 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/sgsn/SGSN_Tests.ttcn b/sgsn/SGSN_Tests.ttcn</span><br><span>index 0685e30..f8ce5e7 100644</span><br><span>--- a/sgsn/SGSN_Tests.ttcn</span><br><span>+++ b/sgsn/SGSN_Tests.ttcn</span><br><span>@@ -1249,6 +1249,46 @@</span><br><span> }</span><br><span> </span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+private function f_TC_hlr_location_cancel_request_update(charstring id) runs on BSSGP_ConnHdlr {</span><br><span style="color: hsl(120, 100%, 40%);">+   /* MS: perform regular attach */</span><br><span style="color: hsl(120, 100%, 40%);">+      f_TC_attach(id);</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+    /* HLR: cancel the location request */</span><br><span style="color: hsl(120, 100%, 40%);">+        GSUP.send(ts_GSUP_CL_REQ(g_pars.imsi, OSMO_GSUP_CANCEL_TYPE_UPDATE));</span><br><span style="color: hsl(120, 100%, 40%);">+ GSUP.receive(tr_GSUP_CL_RES(g_pars.imsi));</span><br><span style="color: hsl(120, 100%, 40%);">+    GSUP.send(ts_GSUP_UL_RES(g_pars.imsi));</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+     /* ensure no Detach Request got received */</span><br><span style="color: hsl(120, 100%, 40%);">+   timer T := 5.0;</span><br><span style="color: hsl(120, 100%, 40%);">+       T.start;</span><br><span style="color: hsl(120, 100%, 40%);">+      alt {</span><br><span style="color: hsl(120, 100%, 40%);">+         [] BSSGP.receive(tr_BD_L3_MT(tr_GMM_DET_REQ_MT(*, *, *))) {</span><br><span style="color: hsl(120, 100%, 40%);">+                   T.stop;</span><br><span style="color: hsl(120, 100%, 40%);">+                       setverdict(fail, "Unexpected GMM Detach Request");</span><br><span style="color: hsl(120, 100%, 40%);">+          }</span><br><span style="color: hsl(120, 100%, 40%);">+             [] T.timeout {</span><br><span style="color: hsl(120, 100%, 40%);">+                        setverdict(pass);</span><br><span style="color: hsl(120, 100%, 40%);">+                     self.stop;</span><br><span style="color: hsl(120, 100%, 40%);">+            }</span><br><span style="color: hsl(120, 100%, 40%);">+             [] BSSGP.receive {</span><br><span style="color: hsl(120, 100%, 40%);">+                    repeat;</span><br><span style="color: hsl(120, 100%, 40%);">+               }</span><br><span style="color: hsl(120, 100%, 40%);">+     }</span><br><span style="color: hsl(120, 100%, 40%);">+}</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+testcase TC_hlr_location_cancel_request_update() runs on test_CT {</span><br><span style="color: hsl(120, 100%, 40%);">+    /* MS <-> SGSN: GMM Attach</span><br><span style="color: hsl(120, 100%, 40%);">+       * HLR -> SGSN: Cancel Location Request</span><br><span style="color: hsl(120, 100%, 40%);">+     * HLR <- SGSN: Cancel Location Ack</span><br><span style="color: hsl(120, 100%, 40%);">+         */</span><br><span style="color: hsl(120, 100%, 40%);">+   var BSSGP_ConnHdlr vc_conn;</span><br><span style="color: hsl(120, 100%, 40%);">+   f_init();</span><br><span style="color: hsl(120, 100%, 40%);">+     f_sleep(1.0);</span><br><span style="color: hsl(120, 100%, 40%);">+ vc_conn := f_start_handler(refers(f_TC_hlr_location_cancel_request_update), testcasename(), g_gb[0], 31);</span><br><span style="color: hsl(120, 100%, 40%);">+     vc_conn.done;</span><br><span style="color: hsl(120, 100%, 40%);">+}</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span> private function f_TC_hlr_location_cancel_request_withdraw(charstring id) runs on BSSGP_ConnHdlr {</span><br><span>   /* MS: perform regular attach */</span><br><span>     f_TC_attach(id);</span><br><span>@@ -1340,6 +1380,7 @@</span><br><span>     execute( TC_attach_combined() );</span><br><span>     execute( TC_attach_accept_all() );</span><br><span>   execute( TC_attach_closed() );</span><br><span style="color: hsl(120, 100%, 40%);">+        execute( TC_hlr_location_cancel_request_update(), 10.0 );</span><br><span>    execute( TC_hlr_location_cancel_request_withdraw(), 5.0 );</span><br><span>   execute( TC_hlr_location_cancel_request_unknown_subscriber_withdraw(), 5.0 );</span><br><span>        execute( TC_hlr_location_cancel_request_unknown_subscriber_update(), 5.0 );</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/9251">change 9251</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/9251"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-ttcn3-hacks </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: merged </div>
<div style="display:none"> Gerrit-Change-Id: I5d3a818eb0a4eb3b0d4bd7bd88874bd2ac6adb11 </div>
<div style="display:none"> Gerrit-Change-Number: 9251 </div>
<div style="display:none"> Gerrit-PatchSet: 6 </div>
<div style="display:none"> Gerrit-Owner: lynxis lazus <lynxis@fe80.eu> </div>
<div style="display:none"> Gerrit-Reviewer: Harald Welte <laforge@gnumonks.org> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder </div>