Change in osmo-ttcn3-hacks[master]: pcu: add TC_sns_so_bvc_reset_unknown_bvci

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

lynxis lazus gerrit-no-reply at lists.osmocom.org
Mon Feb 22 02:05:09 UTC 2021


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


Change subject: pcu: add TC_sns_so_bvc_reset_unknown_bvci
......................................................................

pcu: add TC_sns_so_bvc_reset_unknown_bvci

Do an SGSN oriented reset of signalling BVCI,
then the SGSN tries to reset an unknown BVCI.

Related: OS#3879
Change-Id: Iea5519b453dd544c5a78b3b16ddb5132d20cf67c
---
M pcu/PCU_Tests_SNS.ttcn
1 file changed, 34 insertions(+), 0 deletions(-)



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

diff --git a/pcu/PCU_Tests_SNS.ttcn b/pcu/PCU_Tests_SNS.ttcn
index c4f6b6e..fabe06c 100644
--- a/pcu/PCU_Tests_SNS.ttcn
+++ b/pcu/PCU_Tests_SNS.ttcn
@@ -17,6 +17,7 @@
 import from NS_Emulation all;
 import from NS_Types all;
 import from RAW_NS all;
+import from BSSGP_Types all;
 
 /**********************************************************************************
  * Modern Gb/IP bring-up test cases using IP Sub-Network Service (SNS)
@@ -246,6 +247,38 @@
 	f_clean_ns_codec();
 }
 
+/* do an SGSN oriented reset of signalling BVCI, then the SGSN tries to reset an unknown BVCI. */
+testcase TC_sns_so_bvc_reset_unknown_bvci() runs on RAW_Test_CT {
+	f_init_ns_codec(mp_nsconfig);
+	f_init_pcuif();
+	f_incoming_sns_size();
+	f_incoming_sns_config();
+	f_outgoing_sns_config();
+
+	/* wait for one ALIVE cycle, then ACK any further ALIVE in the background */
+	as_rx_alive_tx_ack(oneshot := true);
+	activate(as_rx_alive_tx_ack());
+
+	/* Expect BVC-RESET, but ignore it to prevent a race condition of BVC RESETs */
+	var template PDU_NS pdu := tr_NS_UNITDATA(t_SduCtrlB, 0, decmatch tr_BVC_RESET(?, 0, omit));
+	f_ns_exp(pdu, idx := 0);
+	/* SGSN originated BVC-RESET on an uninitialized sign BVC */
+	f_tx_bvc_reset_rx_ack(0, omit, omit, idx := 0);
+
+	/* Expect BVC-RESET PTP BVC, but ignore it to prevent a race condition of BVC RESETs */
+	pdu := tr_NS_UNITDATA(t_SduCtrlB, 0, decmatch tr_BVC_RESET(?, mp_gb_cfg.bvc[0].bvci, mp_gb_cfg.bvc[0].cell_id));
+	f_ns_exp(pdu);
+
+	/* Send a BVC-RESET on the wrong BVC */
+	var PDU_BSSGP bssgp_tx := valueof(ts_BVC_RESET(BSSGP_CAUSE_NET_SV_CAP_MOD_GT_ZERO_KBPS, mp_gb_cfg.bvc[0].bvci + 1,
+						       omit));
+	NSCP[0].send(ts_NS_UNITDATA(t_SduCtrlB, 0, enc_PDU_BSSGP(bssgp_tx)));
+	NSCP[0].receive(tr_NS_UNITDATA(t_SduCtrlB, 0, decmatch tr_BSSGP_STATUS(mp_gb_cfg.bvc[0].bvci + 1, BSSGP_CAUSE_BVCI_UNKNOWN, *)));
+	setverdict(pass);
+
+	f_clean_ns_codec();
+}
+
 /* Test adding new IP endpoints at runtime */
 testcase TC_sns_add() runs on RAW_Test_CT {
 	f_sns_bringup_1c1u();
@@ -328,6 +361,7 @@
 	execute( TC_sns_1c1u_separate() );
 	execute( TC_sns_1c1u_so_bvc_reset() );
 	execute( TC_sns_1c1u_so_bvc_reset_too_early() );
+	execute( TC_sns_so_bvc_reset_unknown_bvci() );
 	execute( TC_sns_add() );
 	execute( TC_sns_add_nack() );
 	execute( TC_sns_del() );

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/23016
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: Iea5519b453dd544c5a78b3b16ddb5132d20cf67c
Gerrit-Change-Number: 23016
Gerrit-PatchSet: 1
Gerrit-Owner: lynxis lazus <lynxis at fe80.eu>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210222/0aa93096/attachment.htm>


More information about the gerrit-log mailing list