Change in osmo-ttcn3-hacks[master]: ns2: add tc TC_mirror_unitdata_tx_status_blocked

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 Sep 6 23:30:46 UTC 2021


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


Change subject: ns2: add tc TC_mirror_unitdata_tx_status_blocked
......................................................................

ns2: add tc TC_mirror_unitdata_tx_status_blocked

Change-Id: I9be2037b9228d2400bd293841ae6b957cb25c501
---
M ns/NS_Tests.ttcn
1 file changed, 29 insertions(+), 0 deletions(-)



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

diff --git a/ns/NS_Tests.ttcn b/ns/NS_Tests.ttcn
index 3d7b31a..b57d686 100644
--- a/ns/NS_Tests.ttcn
+++ b/ns/NS_Tests.ttcn
@@ -964,6 +964,34 @@
 	f_clean_ns_codec();
 }
 
+/* 48.016 7.2 ensure tx status (blocked) is correctly parsed
+ *
+ * TTCN  -> NS: reset
+ * TTCN <-  NS: reset ack
+ * TTCN  -> NS: unblock
+ * TTCN <-  NS: unblock ack
+ * TTCN  -> NS: unitdata
+ * TTCN <-  NS: unitdata (mirror)
+ * TTCN  -> NS: status (blocked)
+ * TTCN  -> NS: unitdata
+ * TTCN <-  NS: status (blocked)
+ */
+testcase TC_mirror_unitdata_tx_status_blocked() runs on RAW_Test_CT {
+	f_tx_unblock();
+
+	f_vty_config2(NSVTY, {}, "mirror-mode enable");
+	NSCP[0].send(ts_NS_UNITDATA(t_SduCtrlB, 42, '0011234242230101'O));
+	var PDU_NS pdu := f_ns_exp(tr_NS_UNITDATA(t_SduCtrlB, 42, '0011234242230101'O));
+
+	NSCP[0].send(ts_NS_STATUS(NS_CAUSE_NSVC_BLOCKED, pdu));
+	NSCP[0].send(ts_NS_UNITDATA(t_SduCtrlB, 42, '0011234242230101'O));
+	f_ns_exp(tr_NS_STATUS(NS_CAUSE_NSVC_BLOCKED));
+
+	f_vty_config2(NSVTY, {}, "mirror-mode disable");
+	f_sleep(1.0);
+	f_clean_ns_codec();
+}
+
 control {
 	if (mp_dialect == NS2_DIALECT_STATIC_RESETBLOCK or mp_dialect == NS2_DIALECT_IPACCESS) {
 		execute( TC_tx_reset() );
@@ -974,6 +1002,7 @@
 		execute( TC_tx_block_by_vty_reset() );
 		execute( TC_tx_block_unitdata_over_blocked() );
 		execute( TC_rx_block_unitdata_over_blocked() );
+		execute( TC_mirror_unitdata_tx_status_blocked() );
 		// execute( TC_block_other_nsvc() ); // reset, unblock, sleep(1), block over another nsvci
 		/* 48.016 7.2 Unblock procedure */
 		execute( TC_tx_unblock() );

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/25389
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: I9be2037b9228d2400bd293841ae6b957cb25c501
Gerrit-Change-Number: 25389
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/20210906/8ea81eaf/attachment.htm>


More information about the gerrit-log mailing list