Change in osmo-ttcn3-hacks[master]: hlr: add test TC_gsup_sai_err_unknown_imsi_configurable

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

lynxis lazus gerrit-no-reply at lists.osmocom.org
Sun Jan 12 04:44:09 UTC 2020


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


Change subject: hlr: add test TC_gsup_sai_err_unknown_imsi_configurable
......................................................................

hlr: add test TC_gsup_sai_err_unknown_imsi_configurable

Test `vty imsi unknown cause` to change the reject cause

Change-Id: I1d3fa75c100f9d026ece8314bb7a70e905f1a3ef
---
M hlr/HLR_Tests.ttcn
1 file changed, 17 insertions(+), 0 deletions(-)



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

diff --git a/hlr/HLR_Tests.ttcn b/hlr/HLR_Tests.ttcn
index 50109a6..c0df1f9 100644
--- a/hlr/HLR_Tests.ttcn
+++ b/hlr/HLR_Tests.ttcn
@@ -694,6 +694,22 @@
 	vc_conn.done;
 }
 
+private function f_TC_gsup_sai_err_unknown_imsi_configurable() runs on HLR_ConnHdlr {
+	var GSUP_PDU res;
+	f_vty_config(VTY, "hlr", "imsi unknown cause 5");
+	res := f_perform_SAI(g_pars.sub.imsi, 5);
+	f_vty_config(VTY, "hlr", "imsi unknown cause 2");
+	setverdict(pass);
+}
+
+testcase TC_gsup_sai_err_unknown_imsi_configurable() runs on test_CT {
+	var HLR_ConnHdlr vc_conn;
+	var HLR_ConnHdlrPars pars := valueof(t_Pars(f_rnd_imsi('26242'H)));
+	f_init(false);
+	vc_conn := f_start_handler(refers(f_TC_gsup_sai_err_unknown_imsi_configurable), pars);
+	vc_conn.done;
+}
+
 function f_start_handler_per_sub(void_fn fn, HlrSubscriberList sl) runs on test_CT {
 	for (var integer i := 0; i < sizeof(sl); i := i+1) {
 		var HlrSubscriber sub := sl[i];
@@ -1474,6 +1490,7 @@
 	execute( TC_gsup_sai_eps() );
 	execute( TC_gsup_ul_unknown_imsi() );
 	execute( TC_gsup_sai_err_unknown_imsi() );
+	execute( TC_gsup_sai_err_unknown_imsi_configurable() );
 	execute( TC_gsup_ul() );
 	execute( TC_vty() );
 	execute( TC_vty_msisdn_isd() );

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/16809
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: I1d3fa75c100f9d026ece8314bb7a70e905f1a3ef
Gerrit-Change-Number: 16809
Gerrit-PatchSet: 1
Gerrit-Owner: lynxis lazus <lynxis at fe80.eu>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200112/50499c0c/attachment.htm>


More information about the gerrit-log mailing list