<p>daniel has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/22254">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">gbproxy: Use g_parse.sgsn_idx for paging<br><br>The ConnHdlr test stores the sgsn_idx in g_pars. Use that in the paging<br>tests to the correct SGSN pages the MS.<br>This is required for the paging reject test to pass.<br><br>Change-Id: I34cfc047b36cd6c139a78a7f171a9a99cc974a79<br>Related: OS#4951<br>---<br>M gbproxy/GBProxy_Tests.ttcn<br>1 file changed, 8 insertions(+), 8 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/54/22254/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/gbproxy/GBProxy_Tests.ttcn b/gbproxy/GBProxy_Tests.ttcn</span><br><span>index 9b883c7..8e6bd55 100644</span><br><span>--- a/gbproxy/GBProxy_Tests.ttcn</span><br><span>+++ b/gbproxy/GBProxy_Tests.ttcn</span><br><span>@@ -1621,7 +1621,7 @@</span><br><span> private function f_TC_paging_ps_sig_bss(charstring id) runs on BSSGP_ConnHdlr</span><br><span> {</span><br><span>        /* we expect the paging to arrive on all three NSE */</span><br><span style="color: hsl(0, 100%, 40%);">-   f_send_paging_ps_exp_multi(ts_BssgpP4BssArea, 0, {0, 1, 2});</span><br><span style="color: hsl(120, 100%, 40%);">+  f_send_paging_ps_exp_multi(ts_BssgpP4BssArea, g_pars.sgsn_idx, {0, 1, 2});</span><br><span> }</span><br><span> testcase TC_paging_ps_sig_bss() runs on test_CT {</span><br><span>         f_init();</span><br><span>@@ -1633,12 +1633,12 @@</span><br><span> private function f_TC_paging_ps_sig_lac(charstring id) runs on BSSGP_ConnHdlr</span><br><span> {</span><br><span>    /* The first LAC (13135) is shared by all three NSEs */</span><br><span style="color: hsl(0, 100%, 40%);">- f_send_paging_ps_exp_multi(ts_BssgpP4LAC(pcu_bvc_cfg[0].cell_id.ra_id.lai), 0, {0, 1, 2});</span><br><span style="color: hsl(120, 100%, 40%);">+    f_send_paging_ps_exp_multi(ts_BssgpP4LAC(pcu_bvc_cfg[0].cell_id.ra_id.lai), g_pars.sgsn_idx, {0, 1, 2});</span><br><span>     /* Reset state */</span><br><span>    g_roi := {};</span><br><span>         /* Make LAC (13300) available on pcu index 2 */</span><br><span>      f_connect_to_pcu_bvc(port_idx := 2, nse_idx := 2, bvc_idx := 1);</span><br><span style="color: hsl(0, 100%, 40%);">-        f_send_paging_ps_exp_multi(ts_BssgpP4LAC(pcu_bvc_cfg[2].cell_id.ra_id.lai), 0, {2});</span><br><span style="color: hsl(120, 100%, 40%);">+  f_send_paging_ps_exp_multi(ts_BssgpP4LAC(pcu_bvc_cfg[2].cell_id.ra_id.lai), g_pars.sgsn_idx, {2});</span><br><span> }</span><br><span> testcase TC_paging_ps_sig_lac() runs on test_CT {</span><br><span>         f_init();</span><br><span>@@ -1665,14 +1665,14 @@</span><br><span> private function f_TC_paging_ps_sig_rac(charstring id) runs on BSSGP_ConnHdlr</span><br><span> {</span><br><span>    /* Only PCU index 0 has a matching BVC with the RA ID */</span><br><span style="color: hsl(0, 100%, 40%);">-        f_send_paging_ps_exp_multi(ts_BssgpP4RAC(pcu_bvc_cfg[0].cell_id.ra_id), 0, {0});</span><br><span style="color: hsl(120, 100%, 40%);">+      f_send_paging_ps_exp_multi(ts_BssgpP4RAC(pcu_bvc_cfg[0].cell_id.ra_id), g_pars.sgsn_idx, {0});</span><br><span>       g_roi := {};</span><br><span>         /* PCU index 1 and 2 have a matching BVC with the RA ID */</span><br><span style="color: hsl(0, 100%, 40%);">-      f_send_paging_ps_exp_multi(ts_BssgpP4RAC(pcu_bvc_cfg[2].cell_id.ra_id), 0, {1, 2});</span><br><span style="color: hsl(120, 100%, 40%);">+   f_send_paging_ps_exp_multi(ts_BssgpP4RAC(pcu_bvc_cfg[2].cell_id.ra_id), g_pars.sgsn_idx, {1, 2});</span><br><span>    g_roi := {};</span><br><span>         /* PCU index 2 has two matching BVCs with the RA ID */</span><br><span>       f_connect_to_pcu_bvc(port_idx := 2, nse_idx := 2, bvc_idx := 1);</span><br><span style="color: hsl(0, 100%, 40%);">-        f_send_paging_ps_exp_multi(ts_BssgpP4RAC(pcu_bvc_cfg[2].cell_id.ra_id), 0, {2});</span><br><span style="color: hsl(120, 100%, 40%);">+      f_send_paging_ps_exp_multi(ts_BssgpP4RAC(pcu_bvc_cfg[2].cell_id.ra_id), g_pars.sgsn_idx, {2});</span><br><span> }</span><br><span> testcase TC_paging_ps_sig_rac() runs on test_CT {</span><br><span>     f_init();</span><br><span>@@ -1701,7 +1701,7 @@</span><br><span> /* PS-PAGING on SIG-BVC for BVCI (one cell) */</span><br><span> private function f_TC_paging_ps_sig_bvci(charstring id) runs on BSSGP_ConnHdlr</span><br><span> {</span><br><span style="color: hsl(0, 100%, 40%);">-      f_send_paging_ps_exp_multi(ts_BssgpP4Bvci(pcu_bvc_cfg[0].bvci), 0, {0});</span><br><span style="color: hsl(120, 100%, 40%);">+      f_send_paging_ps_exp_multi(ts_BssgpP4Bvci(pcu_bvc_cfg[0].bvci), g_pars.sgsn_idx, {0});</span><br><span> }</span><br><span> testcase TC_paging_ps_sig_bvci() runs on test_CT {</span><br><span>    f_init();</span><br><span>@@ -1720,7 +1720,7 @@</span><br><span> private function f_TC_paging_ps_reject_sig_bvci(charstring id) runs on BSSGP_ConnHdlr</span><br><span> {</span><br><span>      /* first send the PS-PAGING from SGSN -> PCU */</span><br><span style="color: hsl(0, 100%, 40%);">-      f_send_paging_ps_exp_multi(ts_BssgpP4Bvci(pcu_bvc_cfg[0].bvci), 0, {0});</span><br><span style="color: hsl(120, 100%, 40%);">+      f_send_paging_ps_exp_multi(ts_BssgpP4Bvci(pcu_bvc_cfg[0].bvci), g_pars.sgsn_idx, {0});</span><br><span>       /* then simulate the PS-PAGING-REJECT from the PCU */</span><br><span>        f_send_paging_ps_rej(use_sig:=true);</span><br><span> </span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/22254">change 22254</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/c/osmo-ttcn3-hacks/+/22254"/><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-Change-Id: I34cfc047b36cd6c139a78a7f171a9a99cc974a79 </div>
<div style="display:none"> Gerrit-Change-Number: 22254 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: daniel <dwillmann@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>