[S] Change in osmo-ttcn3-hacks[master]: IPAd: Add test to verify IPAd polling non forbidden eIMs only
jolly has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/43706?usp=email ) Change subject: IPAd: Add test to verify IPAd polling non forbidden eIMs only ...................................................................... IPAd: Add test to verify IPAd polling non forbidden eIMs only A command line options allows to block forbidden eIMs. Verify that the eIM with the given eIM ID is not polled. The other eIM is expected to be polled. Related: SYS#8101 Change-Id: Ib946fee6ad8a448cfa4411966e3d4927cbf30033 --- M ipad/IPAd_Tests.ttcn 1 file changed, 17 insertions(+), 1 deletion(-) git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/06/43706/1 diff --git a/ipad/IPAd_Tests.ttcn b/ipad/IPAd_Tests.ttcn index adbe64d..36a8d2c 100644 --- a/ipad/IPAd_Tests.ttcn +++ b/ipad/IPAd_Tests.ttcn @@ -807,11 +807,15 @@ private function f_TC_proc_euicc_data_req(charstring id) runs on IPAd_ConnHdlr { var integer i; - f_exec_ipad(); + f_exec_ipad("-f skipEIM"); f_es10x_init(); f_http_register(); for (i := 0; i < sizeof(g_pars.eim_list); i := i + 1) { + /* We expect a skipped eIM not to be polled. */ + if (g_pars.eim_list[i].eim_id == "skipEIM") { + continue; + } f_package_euicc_data_req(id, g_pars.eim_list[i].eim_id); if (i < sizeof(g_pars.eim_list) - 1) { @@ -855,6 +859,17 @@ setverdict(pass); } +testcase TC_proc_euicc_data_req_2eim_skip() runs on MTC_CT { + var charstring id := testcasename(); + var IPAd_ConnHdlrPars pars := f_init_pars({ { eim_id := "skipEIM", eim_fqdn := omit }, + { eim_id := "myEIM_2", eim_fqdn := omit } }); + var IPAd_ConnHdlr vc_conn; + f_init(id); + vc_conn := f_start_handler(refers(f_TC_proc_euicc_data_req), pars); + vc_conn.done; + setverdict(pass); +} + /* A testcase to try out what happens when the eIM package request is rejected */ private function f_TC_get_eim_pkg_req_rej(charstring id) runs on IPAd_ConnHdlr { f_exec_ipad(); @@ -1293,6 +1308,7 @@ execute ( TC_proc_euicc_pkg_dwnld_exec_rollback() ); execute ( TC_proc_euicc_data_req() ); execute ( TC_proc_euicc_data_req_2eim() ); + execute ( TC_proc_euicc_data_req_2eim_skip() ); execute ( TC_get_eim_pkg_req_rej() ); execute ( TC_func_exec_fallback_mech() ); execute ( TC_func_ret_from_fallback() ); -- To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/43706?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: newchange Gerrit-Project: osmo-ttcn3-hacks Gerrit-Branch: master Gerrit-Change-Id: Ib946fee6ad8a448cfa4411966e3d4927cbf30033 Gerrit-Change-Number: 43706 Gerrit-PatchSet: 1 Gerrit-Owner: jolly <andreas@eversberg.eu>
participants (1)
-
jolly