<p>lynxis lazus has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/25135">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">ns2: add test case to call force unconfigured after SNS Size received<br><br>The old ns dummy crashed when calling force unconfigured while sending<br>SNS SIZE.<br><br>Change-Id: I16d89391c0d665485cf453c260531023de6096fb<br>---<br>M ns/NS_Tests.ttcn<br>1 file changed, 16 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/35/25135/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/ns/NS_Tests.ttcn b/ns/NS_Tests.ttcn</span><br><span>index 9fbd5ab..a0b9216 100644</span><br><span>--- a/ns/NS_Tests.ttcn</span><br><span>+++ b/ns/NS_Tests.ttcn</span><br><span>@@ -626,6 +626,21 @@</span><br><span>    f_clean_ns_codec();</span><br><span> }</span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+/* Ensure the ns2 code doesn't crash when calling force unconfigured while sending SNS SIZE */</span><br><span style="color: hsl(120, 100%, 40%);">+testcase TC_sns_rx_size_force_unconf() runs on RAW_Test_CT {</span><br><span style="color: hsl(120, 100%, 40%);">+        g_handle_rx_alive := true;</span><br><span style="color: hsl(120, 100%, 40%);">+    f_init_vty();</span><br><span style="color: hsl(120, 100%, 40%);">+ f_init_ns_codec(mp_nsconfig);</span><br><span style="color: hsl(120, 100%, 40%);">+ f_init_ns_codec(mp_nsconfig, 1);</span><br><span style="color: hsl(120, 100%, 40%);">+      f_ns_exp(tr_SNS_SIZE(mp_nsconfig.nsei, rst_flag := true, max_nsvcs := ?,</span><br><span style="color: hsl(120, 100%, 40%);">+                              num_v4 := ?, num_v6 := omit));</span><br><span style="color: hsl(120, 100%, 40%);">+        f_vty_transceive(NSVTY, "nsvc nsei " & int2str(mp_nsconfig.nsei) & " force-unconfigured");</span><br><span style="color: hsl(120, 100%, 40%);">+        f_ns_exp(tr_SNS_SIZE(mp_nsconfig.nsei, rst_flag := true, max_nsvcs := ?,</span><br><span style="color: hsl(120, 100%, 40%);">+                              num_v4 := ?, num_v6 := omit));</span><br><span style="color: hsl(120, 100%, 40%);">+        setverdict(pass);</span><br><span style="color: hsl(120, 100%, 40%);">+     f_clean_ns_codec();</span><br><span style="color: hsl(120, 100%, 40%);">+}</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span> /* Test if SNS fails when all signalling NSVCs failes</span><br><span>  * 3GPP TS 48.016 ยง 7.4b.1.1</span><br><span>  * 1. do success SNS configuration</span><br><span>@@ -712,6 +727,7 @@</span><br><span>               execute( TC_sns_bss_del() );</span><br><span>                 execute( TC_sns_bss_add_change_del() );</span><br><span>              execute( TC_sns_bss_all_signalling_nsvcs_failed() );</span><br><span style="color: hsl(120, 100%, 40%);">+          execute( TC_sns_rx_size_force_unconf() );</span><br><span>    }</span><br><span> }</span><br><span> </span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/25135">change 25135</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/+/25135"/><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: I16d89391c0d665485cf453c260531023de6096fb </div>
<div style="display:none"> Gerrit-Change-Number: 25135 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: lynxis lazus <lynxis@fe80.eu> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>