<p>laforge has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/21338">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">gbproxy: Add TC_bvc_reset_ptp_from_bss<br><br>This tests a BSS-originated BVC-RESET procedure on a PTP BVC.<br><br>Change-Id: Ie0a4899b6e793e3d69f117f350c5a2542fc4d402<br>---<br>M gbproxy/GBProxy_Tests.ttcn<br>1 file changed, 27 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/38/21338/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 df32174..e72d6ae 100644</span><br><span>--- a/gbproxy/GBProxy_Tests.ttcn</span><br><span>+++ b/gbproxy/GBProxy_Tests.ttcn</span><br><span>@@ -1888,6 +1888,32 @@</span><br><span>        f_cleanup();</span><br><span> }</span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+private function f_reset_ptp_bvc_from_pcu(integer pcu_idx, integer bvc_idx) runs on test_CT</span><br><span style="color: hsl(120, 100%, 40%);">+{</span><br><span style="color: hsl(120, 100%, 40%);">+ var BSSGP_BVC_CT bvc_ct := g_pcu[pcu_idx].vc_BSSGP_BVC[bvc_idx];</span><br><span style="color: hsl(120, 100%, 40%);">+      var BssgpBvcConfig bvc_cfg := g_pcu[pcu_idx].cfg.bvc[bvc_idx];</span><br><span style="color: hsl(120, 100%, 40%);">+        var Nsei nsei_pcu := g_pcu[pcu_idx].cfg.nsei;</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+       SGSN_MGMT.clear;</span><br><span style="color: hsl(120, 100%, 40%);">+      PCU_MGMT.clear;</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+     /* block the PTP BVC from the PCU side */</span><br><span style="color: hsl(120, 100%, 40%);">+     PCU_MGMT.send(BssgpResetRequest:{cause:=BSSGP_CAUSE_OM_INTERVENTION}) to bvc_ct;</span><br><span style="color: hsl(120, 100%, 40%);">+      /* expect state on both PCU and SGSN side to change */</span><br><span style="color: hsl(120, 100%, 40%);">+        interleave {</span><br><span style="color: hsl(120, 100%, 40%);">+  [] PCU_MGMT.receive(tr_BssgpStsInd(nsei_pcu, bvc_cfg.bvci, BVC_S_BLOCKED)) from bvc_ct;</span><br><span style="color: hsl(120, 100%, 40%);">+       [] SGSN_MGMT.receive(tr_BssgpStsInd(*, bvc_cfg.bvci, BVC_S_BLOCKED));</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%);">+testcase TC_bvc_reset_ptp_from_bss() runs on test_CT</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%);">+ f_reset_ptp_bvc_from_pcu(0, 0);</span><br><span style="color: hsl(120, 100%, 40%);">+       f_cleanup();</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_BVC_bringup() );</span><br><span>         execute( TC_ul_unitdata() );</span><br><span>@@ -1899,6 +1925,7 @@</span><br><span>         execute( TC_resume() );</span><br><span>      execute( TC_bvc_block_ptp() );</span><br><span>       execute( TC_bvc_unblock_ptp() );</span><br><span style="color: hsl(120, 100%, 40%);">+      execute( TC_bvc_reset_ptp_from_bss() );</span><br><span>      if (false) {</span><br><span>                 /* don't enable this by default, as we don't yet have any automatic test setup for FR with 4 NS-VC */</span><br><span>                execute( TC_load_sharing_dl() );</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/21338">change 21338</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/+/21338"/><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: Ie0a4899b6e793e3d69f117f350c5a2542fc4d402 </div>
<div style="display:none"> Gerrit-Change-Number: 21338 </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>