Change in osmo-ttcn3-hacks[master]: msc: test reaction on Clear Request during a MO/MT Call

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
Fri Feb 5 04:36:36 UTC 2021


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


Change subject: msc: test reaction on Clear Request during a MO/MT Call
......................................................................

msc: test reaction on Clear Request during a MO/MT Call

Change-Id: Id16969fe0de04445d1320a96d35cf1d48cc8cf09
Related: SYS#5340
---
M msc/MSC_Tests.ttcn
1 file changed, 62 insertions(+), 0 deletions(-)



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

diff --git a/msc/MSC_Tests.ttcn b/msc/MSC_Tests.ttcn
index 206effa..0974eb8 100644
--- a/msc/MSC_Tests.ttcn
+++ b/msc/MSC_Tests.ttcn
@@ -935,6 +935,66 @@
 	vc_conn.done;
 }
 
+/* Test reaction on Clear Request during a MO Call */
+friend function f_TC_mo_mt_call_clear_request(charstring id, BSC_ConnHdlrPars pars)
+runs on BSC_ConnHdlr {
+	var CallParameters cpars := valueof(t_CallParams);
+	var MNCC_PDU mncc_pdu;
+	timer T := 2.0;
+
+	f_init_handler(pars);
+
+	f_perform_lu();
+
+	/* HACK: reducing code duplication ('66'H - MO, '68'H - MT) */
+	if (pars.imsi == '262420002532766'H)
+		{ f_mo_call_establish(cpars); }
+	else
+		{ f_mt_call_establish(cpars); }
+
+	/* Hold the line for a while... */
+	f_sleep(2.0);
+
+	/* BSC sends BSSMAP Clear Request (e.g. due to RR failure) */
+	BSSAP.send(ts_BSSMAP_ClearRequest(1));
+
+	/* Expect (optional) CC RELEASE and Clear Command */
+	var default ccrel := activate(as_optional_cc_rel(cpars));
+	f_expect_clear();
+	deactivate(ccrel);
+
+	/* Expect DISconnect notification on the MNCC socket */
+	T.start;
+	alt {
+	[] MNCC.receive(tr_MNCC_DISC_ind(cpars.mncc_callref)) -> value mncc_pdu {
+		log("Rx MNCC DISC.ind, cause := ", mncc_pdu.u.signal.cause);
+		setverdict(pass);
+		}
+	[] MNCC.receive(MNCC_PDU:?) -> value mncc_pdu {
+		setverdict(fail, "Rx unexpected MNCC PDU: ", mncc_pdu);
+		}
+	[] T.timeout {
+		setverdict(fail, "Timeout waiting for MNCC DISC.ind");
+		}
+	}
+}
+testcase TC_mo_call_clear_request() runs on MTC_CT {
+	var BSC_ConnHdlr vc_conn;
+
+	f_init();
+
+	vc_conn := f_start_handler(refers(f_TC_mo_mt_call_clear_request), 2532766); // '66'H - MO
+	vc_conn.done;
+}
+testcase TC_mt_call_clear_request() runs on MTC_CT {
+	var BSC_ConnHdlr vc_conn;
+
+	f_init();
+
+	vc_conn := f_start_handler(refers(f_TC_mo_mt_call_clear_request), 2532768); // '68'H - MT
+	vc_conn.done;
+}
+
 /* Test LU but BSC will send a clear request in the middle */
 friend function f_tc_lu_disconnect(charstring id, BSC_ConnHdlrPars pars) runs on BSC_ConnHdlr {
 	f_init_handler(pars);
@@ -6345,6 +6405,8 @@
 	execute( TC_lu_auth_sai_timeout() );
 	execute( TC_lu_auth_sai_err() );
 	execute( TC_lu_clear_request() );
+	execute( TC_mo_call_clear_request() );
+	execute( TC_mt_call_clear_request() );
 	execute( TC_lu_disconnect() );
 	execute( TC_lu_by_imei() );
 	execute( TC_lu_by_tmsi_noauth_unknown() );

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/22719
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: Id16969fe0de04445d1320a96d35cf1d48cc8cf09
Gerrit-Change-Number: 22719
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/20210205/fe77418f/attachment.htm>


More information about the gerrit-log mailing list