Change in osmo-ttcn3-hacks[master]: Add test whether we accept DATA without Routing Context IE

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/.

laforge gerrit-no-reply at lists.osmocom.org
Sat Jun 13 15:41:52 UTC 2020


laforge has submitted this change. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/18817 )

Change subject: Add test whether we accept DATA without Routing Context IE
......................................................................

Add test whether we accept DATA without Routing Context IE

There are some M3UA implementations out there who use a routing context
during the ASPAC procedure, but who then don't use it in subsequent DATA
transmission.  Let's add a test case for that.

Change-Id: Iaf95f8eafa53cff94910d89584eef95f1b474c7f
Related: OS#4594
---
M stp/STP_Tests_M3UA.ttcn
1 file changed, 20 insertions(+), 0 deletions(-)

Approvals:
  Jenkins Builder: Verified
  laforge: Looks good to me, approved



diff --git a/stp/STP_Tests_M3UA.ttcn b/stp/STP_Tests_M3UA.ttcn
index a44e6ad..f6fa625 100644
--- a/stp/STP_Tests_M3UA.ttcn
+++ b/stp/STP_Tests_M3UA.ttcn
@@ -261,6 +261,25 @@
 	f_clear_m3ua();
 }
 
+/* test whether the STP accepts M3UA DATA without Routing Context IE */
+testcase TC_act_rctx_data_no_rctx() runs on RAW_M3UA_CT {
+	var OCT4 rctx_sender := int2oct(1023, 4);
+	var OCT4 pc_sender := int2oct(23, 4);
+	var OCT4 rctx_receiver := int2oct(1042, 4);
+	var OCT4 pc_receiver := int2oct(42, 4);
+
+	f_init_m3ua();
+	/* bring up the sender specifying a routing context */
+
+	f_M3UA_asp_up_act(0, rctx := rctx_sender);
+	f_M3UA_asp_up_act(1);
+
+	/* check if DATA is accepted without Routing Context IE */
+	f_test_traffic(0, omit, pc_sender, 1, rctx_receiver, pc_receiver);
+
+	f_clear_m3ua();
+}
+
 /* Test if traffic is routed from idx_tx/pc_tx to idx_rx/pc_rx */
 private function f_test_traffic(integer idx_tx, template (omit) OCT4 rctx_sender, OCT4 pc_tx,
 				integer idx_rx, template (omit) OCT4 rctx_receiver, OCT4 pc_rx,
@@ -623,6 +642,7 @@
 	execute( TC_tmt_override() );
 	execute( TC_tmt_loadshare() );
 	execute( TC_tmt_broadcast() );
+	execute( TC_act_rctx_data_no_rctx() );
 
 	/* M3UA RKM tests */
 	execute( TC_rkm_reg_static_notpermitted() );

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/18817
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: Iaf95f8eafa53cff94910d89584eef95f1b474c7f
Gerrit-Change-Number: 18817
Gerrit-PatchSet: 1
Gerrit-Owner: laforge <laforge at osmocom.org>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge at osmocom.org>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200613/84c5d676/attachment.htm>


More information about the gerrit-log mailing list