<p>laforge has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/18889">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">sgsn: Allow f_gtpu_xceive_mt() to verify non-forwarding case<br><br>In some scenarios we do not expect a PDU from GTP to show up on<br>the Gb side.  Let's add support for this.<br><br>Change-Id: Ia9fde1d433657c920ee1ec4d41004f4544ceb346<br>Related: OS#4616<br>---<br>M sgsn/SGSN_Tests.ttcn<br>1 file changed, 11 insertions(+), 2 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/89/18889/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 eeb4015..c157d39 100644</span><br><span>--- a/sgsn/SGSN_Tests.ttcn</span><br><span>+++ b/sgsn/SGSN_Tests.ttcn</span><br><span>@@ -1502,15 +1502,24 @@</span><br><span> }</span><br><span> </span><br><span> /* Transceive given 'payload' as MT message from GTP -> OsmoSGSN -> Gb */</span><br><span style="color: hsl(0, 100%, 40%);">-private function f_gtpu_xceive_mt(inout PdpActPars apars, octetstring payload, integer ran_index := 0)</span><br><span style="color: hsl(120, 100%, 40%);">+private function f_gtpu_xceive_mt(inout PdpActPars apars, octetstring payload, integer ran_index := 0, boolean expect_fwd := true)</span><br><span> runs on BSSGP_ConnHdlr {</span><br><span style="color: hsl(120, 100%, 40%);">+   timer T := 5.0;</span><br><span>      /* Send PDU via GTP from our simulated GGSN to the SGSN */</span><br><span>   f_gtpu_send(apars, payload);</span><br><span style="color: hsl(120, 100%, 40%);">+  T.start;</span><br><span>     /* Expect PDU via BSSGP/LLC on simulated PCU from SGSN */</span><br><span>    alt {</span><br><span>        [] as_xid(apars, ran_index);</span><br><span>         //[] BSSGP[ran_index].receive(tr_BD_SNDCP(apars.sapi, tr_SN_UD(apars.nsapi, payload)));</span><br><span style="color: hsl(0, 100%, 40%);">- [] BSSGP[ran_index].receive(tr_SN_UD(apars.nsapi, payload));</span><br><span style="color: hsl(120, 100%, 40%);">+  [expect_fwd] BSSGP[ran_index].receive(tr_SN_UD(apars.nsapi, payload));</span><br><span style="color: hsl(120, 100%, 40%);">+        [expect_fwd] T.timeout {</span><br><span style="color: hsl(120, 100%, 40%);">+              setverdict(fail, "Timeout waiting for GTP-U to appear on BSSGP");</span><br><span style="color: hsl(120, 100%, 40%);">+           }</span><br><span style="color: hsl(120, 100%, 40%);">+     [not expect_fwd] BSSGP[ran_index].receive(tr_SN_UD(apars.nsapi, payload)) {</span><br><span style="color: hsl(120, 100%, 40%);">+           setverdict(fail, "GTP-U forwarded to BSSGP but not expected")</span><br><span style="color: hsl(120, 100%, 40%);">+               }</span><br><span style="color: hsl(120, 100%, 40%);">+     [not expect_fwd] T.timeout {}</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/+/18889">change 18889</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/+/18889"/><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: Ia9fde1d433657c920ee1ec4d41004f4544ceb346 </div>
<div style="display:none"> Gerrit-Change-Number: 18889 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: laforge <laforge@osmocom.org> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>