msc: Add a test for LU with invalid MCC/MNC in BSSAP/RANAP
Verify that the MSC rejects a location update from a Cell/BSC that
contains a PLMN which does not match the core network's PLMN.
Related: OS#3162
Change-Id: I676894358259b9cc0f973769ce552ba58a2a58a1
diff --git a/msc/MSC_Tests_Iu.ttcn b/msc/MSC_Tests_Iu.ttcn
index 991c9b8..5798821 100644
--- a/msc/MSC_Tests_Iu.ttcn
+++ b/msc/MSC_Tests_Iu.ttcn
@@ -387,6 +387,13 @@
f_vty_config(MSCVTY, "msc", "ncss guard-timeout 0");
}
+testcase TC_iu_lu_with_invalid_mcc_mnc() runs on MTC_CT {
+ var BSC_ConnHdlr vc_conn;
+ f_init(3);
+ vc_conn := f_start_handler(refers(f_tc_lu_with_invalid_mcc_mnc), 1054, ran_idx := 2, ran_is_geran := false);
+ vc_conn.done;
+}
+
control {
execute( TC_iu_lu_imsi_reject() );
execute( TC_iu_lu_imsi_timeout_gsup() );
@@ -430,6 +437,7 @@
execute( TC_iu_lu_and_mt_ussd_during_mt_call() );
execute( TC_iu_lu_and_mo_ussd_mo_release() );
execute( TC_iu_lu_and_ss_session_timeout() );
+ execute( TC_iu_lu_with_invalid_mcc_mnc() );
/* TODO: Iu + SGsAP related tests, e.g. paging on IuCS */