jolly has uploaded this change for review.

View Change

IPAd: Make existing tests work with multi eIM support

The test cases terminate differently. At the end, 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, 12 insertions(+), 2 deletions(-)

git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/55/43655/1
diff --git a/ipad/IPAd_Tests.ttcn b/ipad/IPAd_Tests.ttcn
index 226c70b..310315d 100644
--- a/ipad/IPAd_Tests.ttcn
+++ b/ipad/IPAd_Tests.ttcn
@@ -460,8 +460,15 @@
/* 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 {
+ var charstring eim_fqdn := mp_esipa_ip & ":" & int2str(mp_esipa_port);
+
/* IPAd requests a package, we tell it that there is no package available */
f_esipa_transceive(valueof(ts_getEimPackageResponse_noEimPackageAvailable), tr_getEimPackageRequest);
+
+ /* Expect the IPAd to query the eIM configuration data from the eUICC.
+ * This is because the IPAd will check if there is another eIM configured, but it is not. */
+ f_vpcd_transceive(enc_GetEimConfigurationDataResponse(valueof(ts_getEimConfigurationDataResponse(eim_fqdn))), 'BF5500'O);
+
}

/* Run IPAd once in the background.
@@ -800,8 +807,7 @@

/* 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 {
- 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();
@@ -810,6 +816,10 @@
/* IPAd requests a package, we respond with an eimPackageError code 127 (undefined error) */
f_esipa_transceive(valueof(ts_getEimPackageResponse_eimPkgErr(127)), tr_getEimPackageRequest);

+ /* Expect the IPAd to query the eIM configuration data from the eUICC.
+ * This is because the IPAd will check if there is another eIM configured, but it is not. */
+ f_vpcd_transceive(enc_GetEimConfigurationDataResponse(valueof(ts_getEimConfigurationDataResponse(eim_fqdn))), 'BF5500'O);
+
/* Wait some time until the the last HTTP response is actually delivered */
f_sleep(2.0);


To view, visit change 43655. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-MessageType: newchange
Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: Id67bb3acc3f90805b06f441c5352ba29a28698c4
Gerrit-Change-Number: 43655
Gerrit-PatchSet: 1
Gerrit-Owner: jolly <andreas@eversberg.eu>