[PATCH] osmo-ttcn3-hacks[master]: add regression test for paging with unknown MCC/MNC

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

Stefan Sperling gerrit-no-reply at lists.osmocom.org
Tue Mar 20 14:55:55 UTC 2018


Review at  https://gerrit.osmocom.org/7403

add regression test for paging with unknown MCC/MNC

Verify that the BSC does not page a subscriber when a cell identifier
with an unknown MCC/MNC is provided by the MSC.

This test introduces a magic value which represents an unknown MCC/MNC
combination: MCC=678 MNC=f90

Change-Id: I0b0af14a9a1cb7e5a7a4ec12cc489473fd7ead02
Related: OS#2980
---
M bsc/BSC_Tests.cfg
M bsc/BSC_Tests.ttcn
2 files changed, 11 insertions(+), 0 deletions(-)


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

diff --git a/bsc/BSC_Tests.cfg b/bsc/BSC_Tests.cfg
index ef6823c..175654a 100644
--- a/bsc/BSC_Tests.cfg
+++ b/bsc/BSC_Tests.cfg
@@ -65,6 +65,7 @@
 #BSC_Tests.TC_paging_imsi_a_reset
 #BSC_Tests.TC_paging_imsi_load
 #BSC_Tests.TC_paging_counter
+#BSC_Tests.TC_paging_imsi_nochan_cgi_unknown_cid
 #BSC_Tests.TC_rsl_drop_counter
 #BSC_Tests.TC_classmark
 #BSC_Tests.TC_unsol_ass_fail
diff --git a/bsc/BSC_Tests.ttcn b/bsc/BSC_Tests.ttcn
index a2111fd..3522358 100644
--- a/bsc/BSC_Tests.ttcn
+++ b/bsc/BSC_Tests.ttcn
@@ -966,6 +966,7 @@
 	GsmCellId	ci
 };
 private const Cell_Identity cid := { '001'H, '01'H, 1, 0 };
+private const Cell_Identity unknown_cid := { '678'H, 'f90'H, 1, 0 };
 
 type set of integer BtsIdList;
 
@@ -1180,6 +1181,14 @@
 	var template BSSMAP_FIELD_CellIdentificationList cid_list;
 	cid_list := { cIl_LAC := { } };
 	f_pageing_helper('001010000000016'H, cid_list, c_BtsId_none);
+	f_shutdown_helper();
+}
+
+/* Paging by CGI with unknown MCC/MNC: Verify nothing is paged. */
+testcase TC_paging_imsi_nochan_cgi_unknown_cid() runs on test_CT {
+	var template BSSMAP_FIELD_CellIdentificationList cid_list;
+	cid_list := { cIl_CGI := { ts_BSSMAP_CI_CGI(unknown_cid.mcc, unknown_cid.mnc, unknown_cid.lac, unknown_cid.ci) } };
+	f_pageing_helper('001010000000006'H, cid_list, c_BtsId_none);
 	f_shutdown_helper();
 }
 
@@ -1961,6 +1970,7 @@
 	execute( TC_paging_imsi_nochan_lac_rnc() );
 	execute( TC_paging_imsi_nochan_lacs() );
 	execute( TC_paging_imsi_nochan_lacs_empty() );
+	execute( TC_paging_imsi_nochan_cgi_unknown_cid() );
 	execute( TC_paging_imsi_a_reset() );
 	execute( TC_paging_imsi_load() );
 	execute( TC_paging_counter() );

-- 
To view, visit https://gerrit.osmocom.org/7403
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I0b0af14a9a1cb7e5a7a4ec12cc489473fd7ead02
Gerrit-PatchSet: 1
Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Owner: Stefan Sperling <ssperling at sysmocom.de>



More information about the gerrit-log mailing list