summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVadim Yanitskiy <vyanitskiy@sysmocom.de>2020-12-08 19:27:51 +0100
committerVadim Yanitskiy <vyanitskiy@sysmocom.de>2020-12-08 19:28:06 +0100
commitb9a7bbf5374d96654f8fca24046b5e71947645d0 (patch)
tree4f6540188bb5bc07f659278a23a1c3bb77779015
parent62b1e4812ab3d75c6d9d8c78d644fac9fe11cd63 (diff)
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
-rw-r--r--bts/BTS_Tests_OML.ttcn25
1 files changed, 25 insertions, 0 deletions
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 @@ testcase TC_initial_state_reports() runs on BSC_OML_CT {
}
}
+/* 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 @@ control {
execute( TC_ts_opstart() );
execute( TC_ts_opstart_noattr() );
execute( TC_initial_state_reports() );
+ execute( TC_ipa_rsl_connect_nack() );
}
/* BTS: