[S] Change in osmo-ttcn3-hacks[master]: IPAd: Add test to verify IPAd polling non forbidden eIMs only
jolly has submitted this change. ( 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, 23 insertions(+), 5 deletions(-) Approvals: Jenkins Builder: Verified dexter: Looks good to me, approved diff --git a/ipad/IPAd_Tests.ttcn b/ipad/IPAd_Tests.ttcn index 105a53d..4eb6843 100644 --- a/ipad/IPAd_Tests.ttcn +++ b/ipad/IPAd_Tests.ttcn @@ -106,7 +106,8 @@ type record EimConfigParam { charstring eim_id, - charstring eim_fqdn optional + charstring eim_fqdn optional, + boolean skip }; type record of EimConfigParam EimConfigParamList; @@ -115,7 +116,7 @@ EimConfigParamList eim_list }; -private function f_init_pars(EimConfigParamList eim_list := { { eim_id := "myEIM", eim_fqdn := omit } }) +private function f_init_pars(EimConfigParamList eim_list := { { eim_id := "myEIM", eim_fqdn := omit, skip := false } }) runs on MTC_CT return IPAd_ConnHdlrPars { var IPAd_ConnHdlrPars pars := { eim_list := eim_list @@ -804,11 +805,16 @@ var integer i; var boolean do_next_eim := false; - 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].skip) { + continue; + } + if (do_next_eim) { /* Expect the IPAd to query the eUICC for pending notifications, we respond with an empty list */ f_respond_empty_notifications(); @@ -842,8 +848,19 @@ testcase TC_proc_euicc_data_req_2eim() runs on MTC_CT { var charstring id := testcasename(); - var IPAd_ConnHdlrPars pars := f_init_pars({ { eim_id := "myEIM_1", eim_fqdn := omit }, - { eim_id := "myEIM_2", eim_fqdn := omit } }); + var IPAd_ConnHdlrPars pars := f_init_pars({ { eim_id := "myEIM_1", eim_fqdn := omit, skip := false }, + { eim_id := "myEIM_2", eim_fqdn := omit, skip := false } }); + 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); +} + +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, skip := true }, + { eim_id := "myEIM_2", eim_fqdn := omit, skip := false } }); var IPAd_ConnHdlr vc_conn; f_init(id); vc_conn := f_start_handler(refers(f_TC_proc_euicc_data_req), pars); @@ -1289,6 +1306,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: merged Gerrit-Project: osmo-ttcn3-hacks Gerrit-Branch: master Gerrit-Change-Id: Ib946fee6ad8a448cfa4411966e3d4927cbf30033 Gerrit-Change-Number: 43706 Gerrit-PatchSet: 5 Gerrit-Owner: jolly <andreas@eversberg.eu> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: dexter <pmaier@sysmocom.de> Gerrit-Reviewer: jolly <andreas@eversberg.eu> Gerrit-Reviewer: laforge <laforge@osmocom.org>
participants (1)
-
jolly