Change in osmo-ttcn3-hacks[master]: bsc: Add TC_chan_rel_hard_rlsd_ms_dead

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

Harald Welte gerrit-no-reply at lists.osmocom.org
Mon Jun 11 18:30:16 UTC 2018


Harald Welte has submitted this change and it was merged. ( https://gerrit.osmocom.org/9548 )

Change subject: bsc: Add TC_chan_rel_hard_rlsd_ms_dead
......................................................................

bsc: Add TC_chan_rel_hard_rlsd_ms_dead

In this test case, the MSC performs a hard SCCP release of the
SCCP connection.  This makes the BSC send a RLL REL REQ on the lchan,
but we simulate a broken/lost MS which doesn't respond to that.

Current OsmoBSC master will fail this test, and that's exactly why we
need it.

Change-Id: I800168499c2ab30af72625aba6fc740bc16e5653
Related: OS#3333
---
M bsc/BSC_Tests.ttcn
1 file changed, 16 insertions(+), 0 deletions(-)

Approvals:
  Jenkins Builder: Verified
  Harald Welte: Looks good to me, approved



diff --git a/bsc/BSC_Tests.ttcn b/bsc/BSC_Tests.ttcn
index 9c0ec62..bab56d1 100644
--- a/bsc/BSC_Tests.ttcn
+++ b/bsc/BSC_Tests.ttcn
@@ -814,6 +814,21 @@
 	setverdict(pass);
 }
 
+/* Test behavior of channel release after hard RLSD from MSC and MS is not responding to RLL REL REQ */
+testcase TC_chan_rel_hard_rlsd_ms_dead() runs on test_CT {
+	var DchanTuple dt;
+
+	f_init(1);
+
+	dt := f_est_dchan('23'O, 23, '00010203040506'O);
+
+	/* release the SCCP connection */
+	BSSAP.send(ts_BSSAP_DISC_req(dt.sccp_conn_id, 0));
+
+	f_expect_chan_rel(0, dt.rsl_chan_nr, true, false);
+	setverdict(pass);
+}
+
 /* Test behavior of channel release after BSSMAP RESET from MSC */
 testcase TC_chan_rel_a_reset() runs on test_CT {
 	var DchanTuple dt;
@@ -2444,6 +2459,7 @@
 	execute( TC_chan_rel_conn_fail() );
 	execute( TC_chan_rel_hard_clear() );
 	execute( TC_chan_rel_hard_rlsd() );
+	execute( TC_chan_rel_hard_rlsd_ms_dead() );
 	execute( TC_chan_rel_a_reset() );
 
 	execute( TC_outbound_connect() );

-- 
To view, visit https://gerrit.osmocom.org/9548
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I800168499c2ab30af72625aba6fc740bc16e5653
Gerrit-Change-Number: 9548
Gerrit-PatchSet: 1
Gerrit-Owner: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Jenkins Builder
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20180611/b03f1aa2/attachment.htm>


More information about the gerrit-log mailing list