Change in osmo-ttcn3-hacks[master]: BTS_Tests_OML: add new test case TC_ipa_rsl_connect_nack

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

fixeria gerrit-no-reply at lists.osmocom.org
Tue Dec 8 18:29:18 UTC 2020


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


Change subject: BTS_Tests_OML: add new test case TC_ipa_rsl_connect_nack
......................................................................

BTS_Tests_OML: add new test case TC_ipa_rsl_connect_nack

Currently osmo-bts seems to be sending IPA RSL Connect ACK
unconditionally, even if the remote peer is not reachable.

Change-Id: Ibfa58f670401907801f610578dd9b4ebf155a83a
---
M bts/BTS_Tests_OML.ttcn
1 file changed, 25 insertions(+), 0 deletions(-)



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

diff --git a/bts/BTS_Tests_OML.ttcn b/bts/BTS_Tests_OML.ttcn
index 396ed38..6770dab 100644
--- a/bts/BTS_Tests_OML.ttcn
+++ b/bts/BTS_Tests_OML.ttcn
@@ -589,6 +589,30 @@
 	}
 }
 
+/* Make sure that the IUT sends RSL Connect NACK when the remote is not reachable. */
+testcase TC_ipa_rsl_connect_nack() runs on BSC_OML_CT {
+	timer T := 2.0;
+
+	f_init_oml(testcasename());
+
+	/* Most likely, nobody is listening to this port */
+	OML.send(ts_OML_IPA_RslConnect(0, 65535));
+
+	T.start;
+	alt {
+	[] OML.receive(tr_OML_IPA_MsgType(NM_MT_IPACC_RSL_CONNECT_NACK)) {
+		setverdict(pass);
+		}
+	[] OML.receive(tr_OML_IPA_MsgType(NM_MT_IPACC_RSL_CONNECT_ACK)) {
+		setverdict(fail, "RSL Connect ACK is not expected");
+		}
+	[] OML.receive { repeat; }
+	[] T.timeout {
+		setverdict(fail, "Timeout waiting for RSL Connect NACK");
+		}
+	}
+}
+
 
 control {
 	execute( TC_wrong_mdisc() );
@@ -606,6 +630,7 @@
 	execute( TC_ts_opstart() );
 	execute( TC_ts_opstart_noattr() );
 	execute( TC_initial_state_reports() );
+	execute( TC_ipa_rsl_connect_nack() );
 }
 
 /* BTS:

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/21608
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: Ibfa58f670401907801f610578dd9b4ebf155a83a
Gerrit-Change-Number: 21608
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <vyanitskiy at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20201208/24e5dfa4/attachment.htm>


More information about the gerrit-log mailing list