<p>lynxis lazus has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/9248">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">SGSN: add TC_hlr_location_cancel_request<br><br>MS <-> SGSN: GMM Attach<br>HLR -> SGSN: Cancel Location Request<br>HLR <- SGSN: Cancel Location Ack<br>MS  <- SGSN: Detach Request<br>SGSN->   MS: Detach Complete<br><br>Change-Id: Id5d6b018a5a4389eefa8f5d950324aab91709f5a<br>---<br>M sgsn/SGSN_Tests.ttcn<br>1 file changed, 34 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/48/9248/1</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 36a4700..a2679cf 100644</span><br><span>--- a/sgsn/SGSN_Tests.ttcn</span><br><span>+++ b/sgsn/SGSN_Tests.ttcn</span><br><span>@@ -1249,6 +1249,39 @@</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_withdraw(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%);">+        var GSUP_PDU gsup;</span><br><span style="color: hsl(120, 100%, 40%);">+    gsup := valueof(ts_GSUP_CL_REQ(g_pars.imsi, OSMO_GSUP_CANCEL_TYPE_WITHDRAW));</span><br><span style="color: hsl(120, 100%, 40%);">+ GSUP.send(gsup);</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%);">+     /* MS: receive a Detach Request */</span><br><span style="color: hsl(120, 100%, 40%);">+    BSSGP.receive(tr_BD_L3_MT(tr_GMM_DET_REQ_MT(c_GMM_DTT_MT_IMSI_DETACH, ?, ?)));</span><br><span style="color: hsl(120, 100%, 40%);">+        BSSGP.send(ts_GMM_DET_ACCEPT_MT);</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+   setverdict(pass);</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_withdraw() 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%);">+         * MS  <- SGSN: Detach Request</span><br><span style="color: hsl(120, 100%, 40%);">+      * SGSN->   MS: Detach Complete</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_withdraw), testcasename(), g_gb[0], 29);</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> control {</span><br><span>    execute( TC_attach() );</span><br><span>      execute( TC_attach_mnc3() );</span><br><span>@@ -1262,6 +1295,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_withdraw(), 5.0 );</span><br><span>   execute( TC_rau_unknown() );</span><br><span>         execute( TC_attach_rau() );</span><br><span>  execute( TC_detach_unknown_nopoweroff() );</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/9248">change 9248</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/9248"/><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: newchange </div>
<div style="display:none"> Gerrit-Change-Id: Id5d6b018a5a4389eefa8f5d950324aab91709f5a </div>
<div style="display:none"> Gerrit-Change-Number: 9248 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: lynxis lazus <lynxis@fe80.eu> </div>