<p>lynxis lazus has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/9581">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">sgsn: add TC_attach_check_subscriber_list<br><br>MS <-> SGSN: Attach<br>VTY -> SGSN: Check if MS is in subscriber cache<br><br>Change-Id: If19073ef4a5b1e2219bd5184ae30d55ffb71844a<br>---<br>M sgsn/SGSN_Tests.ttcn<br>1 file changed, 22 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/81/9581/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 f812fbe..4b6fc4c 100644</span><br><span>--- a/sgsn/SGSN_Tests.ttcn</span><br><span>+++ b/sgsn/SGSN_Tests.ttcn</span><br><span>@@ -1475,6 +1475,27 @@</span><br><span>     vc_conn.done;</span><br><span> }</span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+private function f_sgsn_vty_destroy_subscriber_imsi(TELNETasp_PT pt, charstring imsi) {</span><br><span style="color: hsl(120, 100%, 40%);">+       f_vty_transceive(pt, "update-subscriber imsi " & imsi & " destroy");</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_attach_check_subscriber_list() runs on test_CT {</span><br><span style="color: hsl(120, 100%, 40%);">+   /* MS <-> SGSN: Attach</span><br><span style="color: hsl(120, 100%, 40%);">+   * VTY -> SGSN: Check if MS is in subscriber cache</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%);">+   var integer id := 34;</span><br><span style="color: hsl(120, 100%, 40%);">+ var charstring imsi := hex2str(f_gen_imsi(id));</span><br><span style="color: hsl(120, 100%, 40%);">+</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_attach), testcasename(), g_gb[0], id);</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%);">+       f_vty_transceive_match(SGSNVTY, "show subscriber cache", pattern "* IMSI: {imsi}*");</span><br><span style="color: hsl(120, 100%, 40%);">+      f_sgsn_vty_destroy_subscriber_imsi(SGSNVTY, imsi);</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>@@ -1490,6 +1511,7 @@</span><br><span>         execute( TC_attach_closed() );</span><br><span>       execute( TC_attach_no_imei_response() );</span><br><span>     execute( TC_attach_no_imsi_response() );</span><br><span style="color: hsl(120, 100%, 40%);">+      execute( TC_attach_check_subscriber_list(), 10.0 );</span><br><span>  execute( TC_attach_detach_check_subscriber_list(), 10.0 );</span><br><span>   execute( TC_hlr_location_cancel_request_update(), 10.0 );</span><br><span>    execute( TC_hlr_location_cancel_request_withdraw(), 10.0 );</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/9581">change 9581</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/9581"/><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: If19073ef4a5b1e2219bd5184ae30d55ffb71844a </div>
<div style="display:none"> Gerrit-Change-Number: 9581 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: lynxis lazus <lynxis@fe80.eu> </div>