Change in osmo-ttcn3-hacks[master]: msc: add MSC_Tests.TC_call_re_establishment_auth

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

neels gerrit-no-reply at lists.osmocom.org
Tue Jul 27 23:07:54 UTC 2021


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


Change subject: msc: add MSC_Tests.TC_call_re_establishment_auth
......................................................................

msc: add MSC_Tests.TC_call_re_establishment_auth

Invoke TC_call_re_establishment with authentication required.

Related: SYS#5130
Change-Id: I8110a6b432de734d53b111c7b69aabca12129691
---
M msc/MSC_Tests.ttcn
1 file changed, 22 insertions(+), 0 deletions(-)



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

diff --git a/msc/MSC_Tests.ttcn b/msc/MSC_Tests.ttcn
index 428dae3..a46a25f 100644
--- a/msc/MSC_Tests.ttcn
+++ b/msc/MSC_Tests.ttcn
@@ -6652,6 +6652,9 @@
 	COORD.receive(REEST_LOST_CONNECTION);
 	COORD.receive(tr_CallParams) -> value cpars;
 
+	f_gsup_imsi_steal(hex2str(g_pars.imsi));
+	f_create_smpp_expect(hex2str(pars.msisdn));
+
 	/* The MS has lost the first channel and decides to show up on a new conn (on a nearby neighbor cell) to ask for
 	 * CM Re-Establishment. Send a Complete Layer 3 to osmo-msc with a CM Re-Establishment Request. */
 	var MobileIdentityLV mi := valueof(ts_MI_IMSI_LV(g_pars.imsi));
@@ -6730,6 +6733,24 @@
 	vc_conn2.done;
 }
 
+testcase TC_call_re_establishment_auth() runs on MTC_CT {
+	var BSC_ConnHdlr vc_conn1;
+	var BSC_ConnHdlr vc_conn2;
+	f_init();
+
+	f_vty_config(MSCVTY, "network", "authentication required");
+
+	var BSC_ConnHdlrPars pars1 := f_init_pars(92);
+	pars1.net.expect_auth := true;
+	var BSC_ConnHdlrPars pars2 := pars1;
+
+	vc_conn1 := f_start_handler_with_pars(refers(f_tc_call_re_establishment_1), pars1);
+	vc_conn2 := f_start_handler_with_pars(refers(f_tc_call_re_establishment_2), pars2);
+	connect(vc_conn1:COORD, vc_conn2:COORD);
+	vc_conn1.done;
+	vc_conn2.done;
+}
+
 
 control {
 	execute( TC_cr_before_reset() );
@@ -6891,6 +6912,7 @@
 	execute( TC_paging_response_tmsi_unknown() );
 
 	execute( TC_call_re_establishment() );
+	execute( TC_call_re_establishment_auth() );
 }
 
 

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/25073
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: I8110a6b432de734d53b111c7b69aabca12129691
Gerrit-Change-Number: 25073
Gerrit-PatchSet: 1
Gerrit-Owner: neels <nhofmeyr at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210727/817a0727/attachment.htm>


More information about the gerrit-log mailing list