[S] Change in osmo-ttcn3-hacks[master]: IPAd: Make existing tests work with multi eIM support
jolly has submitted this change. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/43655?usp=email ) Change subject: IPAd: Make existing tests work with multi eIM support ...................................................................... IPAd: Make existing tests work with multi eIM support The behavior of the IPAd implementation has changed. Now at the end of the poll cycle, the IPAd will request eIM configuration data from eUICC again, to check for a second eIM. If this second eIM is not provided by eUICC, the IPAd will terminate. Related: SYS#8101 Change-Id: Id67bb3acc3f90805b06f441c5352ba29a28698c4 --- M ipad/IPAd_Tests.ttcn 1 file changed, 7 insertions(+), 4 deletions(-) Approvals: dexter: Looks good to me, approved Jenkins Builder: Verified diff --git a/ipad/IPAd_Tests.ttcn b/ipad/IPAd_Tests.ttcn index 226c70b..5fc6dfe 100644 --- a/ipad/IPAd_Tests.ttcn +++ b/ipad/IPAd_Tests.ttcn @@ -459,9 +459,11 @@ /* After processing notifications and eIM packages, IPAd will poll again. * Respond with no eIM package. */ -private function f_terminate_poll_cycle() runs on IPAd_ConnHdlr { - /* IPAd requests a package, we tell it that there is no package available */ - f_esipa_transceive(valueof(ts_getEimPackageResponse_noEimPackageAvailable), tr_getEimPackageRequest); +private function f_terminate_poll_cycle(integer eimPackageError := 1) runs on IPAd_ConnHdlr { + var charstring eim_fqdn := mp_esipa_ip & ":" & int2str(mp_esipa_port); + + /* IPAd requests a package, we tell it that there is no package available (error 1) or any other given error. */ + f_esipa_transceive(valueof(ts_getEimPackageResponse_eimPkgErr(eimPackageError)), tr_getEimPackageRequest); } /* Run IPAd once in the background. @@ -802,13 +804,14 @@ private function f_TC_get_eim_pkg_req_rej(charstring id) runs on IPAd_ConnHdlr { var EsipaMessageFromIpaToEim esipa_req; var EsipaMessageFromEimToIpa esipa_res; + var charstring eim_fqdn := mp_esipa_ip & ":" & int2str(mp_esipa_port); f_exec_ipad(); f_es10x_init(); f_http_register(); /* IPAd requests a package, we respond with an eimPackageError code 127 (undefined error) */ - f_esipa_transceive(valueof(ts_getEimPackageResponse_eimPkgErr(127)), tr_getEimPackageRequest); + f_terminate_poll_cycle(127); /* Wait some time until the the last HTTP response is actually delivered */ f_sleep(2.0); -- To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/43655?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: Id67bb3acc3f90805b06f441c5352ba29a28698c4 Gerrit-Change-Number: 43655 Gerrit-PatchSet: 4 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