Change in osmo-ttcn3-hacks[master]: sccp: verify inactivity timers are not started in TC_udt_without_cr_cc

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
Tue Jan 21 20:45:12 UTC 2020


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

Change subject: sccp: verify inactivity timers are not started in TC_udt_without_cr_cc
......................................................................

sccp: verify inactivity timers are not started in TC_udt_without_cr_cc

Related: OS#4343
Change-Id: I2cc5e41e33aac300d33887caed1cc3fbdffcbb17
---
M sccp/SCCP_Tests_RAW.ttcn
1 file changed, 18 insertions(+), 1 deletion(-)

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



diff --git a/sccp/SCCP_Tests_RAW.ttcn b/sccp/SCCP_Tests_RAW.ttcn
index 5996846..9be9c5c 100644
--- a/sccp/SCCP_Tests_RAW.ttcn
+++ b/sccp/SCCP_Tests_RAW.ttcn
@@ -171,11 +171,17 @@
 	setverdict(pass);
 }
 
-/* Verify sccp_demo_user answers a CR with a CC for PC and SSN set up to echo back */
+/* Verify sccp_demo_user inactivty timers are not armed upon dealing with
+/* connectionless data-unit messages. Since no connection exists. */
 testcase TC_udt_without_cr_cc() runs on SCCP_Test_RAW_CT {
 	var SCCP_PAR_Address calling, called;
+	var SCCP_MTP3_TRANSFERind rx;
 	var octetstring data := f_rnd_octstring(f_rnd_int(100));
 
+	/* Keep recommended ratio of T(iar) >= T(ias)*2, but anyway no IT
+	   should be received in this case. */
+	g_demo_sccp_timer_ias := 1;
+	g_demo_sccp_timer_iar := 3;
 	f_init_raw(mp_sccp_cfg[0]);
 	f_sleep(1.0);
 
@@ -185,6 +191,17 @@
 					     mp_sccp_cfg[0].sio, mp_sccp_cfg[0].sccp_service_type));
 
 	f_tx_udt_exp(calling, called, data);
+
+	/* Make sure no SCCP message is received at all, since no connection is active. */
+	timer T := int2float(g_demo_sccp_timer_iar + 1);
+	T.start;
+	alt {
+	[] MTP3.receive {
+		setverdict(fail, "Unexpected MTP/SCCP received");
+		self.stop;
+		}
+	[] T.timeout {}
+	}
 	setverdict(pass);
 }
 

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/16975
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: I2cc5e41e33aac300d33887caed1cc3fbdffcbb17
Gerrit-Change-Number: 16975
Gerrit-PatchSet: 4
Gerrit-Owner: pespin <pespin at sysmocom.de>
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/20200121/e17eff31/attachment.htm>


More information about the gerrit-log mailing list