summaryrefslogtreecommitdiffstats
path: root/bsc
diff options
context:
space:
mode:
authorVadim Yanitskiy <axilirator@gmail.com>2018-11-27 01:32:57 +0700
committerVadim Yanitskiy <axilirator@gmail.com>2018-11-27 01:41:44 +0700
commit1ff1fdf63e5f96723dc6c750b1f6c888aea051e2 (patch)
tree343a6e32ef229413064e74190577268fd3786f7f /bsc
parent3466cc53d89189a90bf305d23f03f59369906fbd (diff)
BSC_Tests.ttcn: introduce TC_chan_deact_silence
The idea of this test case is to verify channel deactivation procedure due to no response to Immediate Assignment. Change-Id: I00b0838c9f919303aef72280248b0d1317f42b3b Related: OS#3709
Diffstat (limited to 'bsc')
-rw-r--r--bsc/BSC_Tests.ttcn34
-rw-r--r--bsc/expected-results.xml1
2 files changed, 35 insertions, 0 deletions
diff --git a/bsc/BSC_Tests.ttcn b/bsc/BSC_Tests.ttcn
index a155fef..53e4396 100644
--- a/bsc/BSC_Tests.ttcn
+++ b/bsc/BSC_Tests.ttcn
@@ -524,6 +524,39 @@ testcase TC_chan_exhaustion() runs on test_CT {
}
}
+/* Test channel deactivation due to silence from MS */
+testcase TC_chan_deact_silence() runs on test_CT {
+ var RslChannelNr chan_nr;
+
+ f_init(1);
+
+ /* Request for a dedicated channel */
+ chan_nr := f_chreq_act_ack('23'O);
+
+ /* Wait some time until the channel is released */
+ f_sleep(2.0);
+
+ /* Expect CHANnel RELease */
+ alt {
+ [] IPA_RSL[0].receive(tr_ASP_RSL_UD(IPAC_PROTO_RSL_TRX0,
+ tr_RSL_MsgTypeD(RSL_MT_RF_CHAN_REL))) {
+ log("Received CHANnel RELease");
+ setverdict(pass);
+ }
+ [] IPA_RSL[0].receive(tr_ASP_RSL_UD(IPAC_PROTO_RSL_TRX0,
+ tr_RSL_IMM_ASSIGN(?))) {
+ /* See OS#3709, OsmoBSC should not send Immediate
+ * Assignment Reject since a dedicated channel was
+ * already allocated, and Immediate Assignment was
+ * already sent. */
+ setverdict(fail, "Unexpected Immediate Assignment!");
+ }
+ [] IPA_RSL[0].receive {
+ setverdict(fail, "Unexpected RSL message!");
+ }
+ }
+}
+
/***********************************************************************
* Assignment Testing
***********************************************************************/
@@ -3372,6 +3405,7 @@ control {
execute( TC_chan_act_ack_est_ind_refused() );
execute( TC_chan_act_nack() );
execute( TC_chan_exhaustion() );
+ execute( TC_chan_deact_silence() );
execute( TC_chan_rel_rll_rel_ind() );
execute( TC_chan_rel_conn_fail() );
execute( TC_chan_rel_hard_clear() );
diff --git a/bsc/expected-results.xml b/bsc/expected-results.xml
index d558e72..fd26922 100644
--- a/bsc/expected-results.xml
+++ b/bsc/expected-results.xml
@@ -10,6 +10,7 @@
<testcase classname='BSC_Tests' name='TC_chan_act_ack_est_ind_refused' time='MASKED'/>
<testcase classname='BSC_Tests' name='TC_chan_act_nack' time='MASKED'/>
<testcase classname='BSC_Tests' name='TC_chan_exhaustion' time='MASKED'/>
+ <testcase classname='BSC_Tests' name='TC_chan_deact_silence' time='MASKED'/>
<testcase classname='BSC_Tests' name='TC_chan_rel_rll_rel_ind' time='MASKED'/>
<testcase classname='BSC_Tests' name='TC_chan_rel_conn_fail' time='MASKED'/>
<testcase classname='BSC_Tests' name='TC_chan_rel_hard_clear' time='MASKED'/>