laforge has uploaded this change for review. ( 
https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/21338 )


Change subject: gbproxy: Add TC_bvc_reset_ptp_from_bss
......................................................................

gbproxy: Add TC_bvc_reset_ptp_from_bss

This tests a BSS-originated BVC-RESET procedure on a PTP BVC.

Change-Id: Ie0a4899b6e793e3d69f117f350c5a2542fc4d402
---
M gbproxy/GBProxy_Tests.ttcn
1 file changed, 27 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks 
refs/changes/38/21338/1

diff --git a/gbproxy/GBProxy_Tests.ttcn b/gbproxy/GBProxy_Tests.ttcn
index df32174..e72d6ae 100644
--- a/gbproxy/GBProxy_Tests.ttcn
+++ b/gbproxy/GBProxy_Tests.ttcn
@@ -1888,6 +1888,32 @@
        f_cleanup();
 }

+private function f_reset_ptp_bvc_from_pcu(integer pcu_idx, integer bvc_idx) 
runs on test_CT
+{
+       var BSSGP_BVC_CT bvc_ct := g_pcu[pcu_idx].vc_BSSGP_BVC[bvc_idx];
+       var BssgpBvcConfig bvc_cfg := g_pcu[pcu_idx].cfg.bvc[bvc_idx];
+       var Nsei nsei_pcu := g_pcu[pcu_idx].cfg.nsei;
+
+       SGSN_MGMT.clear;
+       PCU_MGMT.clear;
+
+       /* block the PTP BVC from the PCU side */
+       PCU_MGMT.send(BssgpResetRequest:{cause:=BSSGP_CAUSE_OM_INTERVENTION}) 
to bvc_ct;
+       /* expect state on both PCU and SGSN side to change */
+       interleave {
+       [] PCU_MGMT.receive(tr_BssgpStsInd(nsei_pcu, bvc_cfg.bvci, 
BVC_S_BLOCKED)) from bvc_ct;
+       [] SGSN_MGMT.receive(tr_BssgpStsInd(*, bvc_cfg.bvci, BVC_S_BLOCKED));
+       }
+       setverdict(pass);
+}
+testcase TC_bvc_reset_ptp_from_bss() runs on test_CT
+{
+       f_init();
+       f_sleep(1.0);
+       f_reset_ptp_bvc_from_pcu(0, 0);
+       f_cleanup();
+}
+
 control {
        execute( TC_BVC_bringup() );
        execute( TC_ul_unitdata() );
@@ -1899,6 +1925,7 @@
        execute( TC_resume() );
        execute( TC_bvc_block_ptp() );
        execute( TC_bvc_unblock_ptp() );
+       execute( TC_bvc_reset_ptp_from_bss() );
        if (false) {
                /* don't enable this by default, as we don't yet have any 
automatic test setup for FR with 4 NS-VC */
                execute( TC_load_sharing_dl() );

--
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/21338
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: Ie0a4899b6e793e3d69f117f350c5a2542fc4d402
Gerrit-Change-Number: 21338
Gerrit-PatchSet: 1
Gerrit-Owner: laforge <[email protected]>
Gerrit-MessageType: newchange

Reply via email to