dexter has submitted this change. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/37234?usp=email )
Change subject: IPAd_Tests: respond to enableUsingDD ......................................................................
IPAd_Tests: respond to enableUsingDD
Since the IPAd we are testing now supports automatic profile enabeling, it will call the ES10b function enableUsingDD after the profile installation is complete. Our tests now need to expect this event.
Related: SYS#6563 Change-Id: I892485368925f9713d1dc0d44bd34277fd992875 --- M ipad/IPAd_Tests.ttcn M library/euicc/SGP32Definitions_EncDec.cc M library/euicc/SGP32Definitions_Templates.ttcn M library/euicc/SGP32Definitions_Types.ttcn 4 files changed, 47 insertions(+), 0 deletions(-)
Approvals: pespin: Looks good to me, approved Jenkins Builder: Verified laforge: Looks good to me, but someone else must approve
diff --git a/ipad/IPAd_Tests.ttcn b/ipad/IPAd_Tests.ttcn index c5ee412..1ede0b3 100644 --- a/ipad/IPAd_Tests.ttcn +++ b/ipad/IPAd_Tests.ttcn @@ -480,6 +480,9 @@ } }
+ /* Responds to the profile auto enable attempt by the iPAD */ + f_vpcd_transceive(enc_EnableUsingDDResponse(valueof(ts_enableUsingDDResponse))); + /* Receive ProfileInstallationResult from iPAD->eIM */ esipa_req := f_esipa_transceive_empty_response(); /* TODO: match response (we do not have a template yet) */ diff --git a/library/euicc/SGP32Definitions_EncDec.cc b/library/euicc/SGP32Definitions_EncDec.cc index a457943..3dbb4bf 100644 --- a/library/euicc/SGP32Definitions_EncDec.cc +++ b/library/euicc/SGP32Definitions_EncDec.cc @@ -117,6 +117,23 @@ return OCTETSTRING(buf.get_len(), buf.get_data()); }
+EnableUsingDDResponse dec__EnableUsingDDResponse(const OCTETSTRING &stream) { + TTCN_Buffer buf; + EnableUsingDDResponse msg; + buf.put_os(stream); + + msg.decode(EnableUsingDDResponse_descr_, buf, TTCN_EncDec::CT_BER, BER_ACCEPT_ALL); + return msg; +} + +OCTETSTRING enc__EnableUsingDDResponse(const EnableUsingDDResponse &msg) { + TTCN_Buffer buf; + + buf.clear(); + msg.encode(EnableUsingDDResponse_descr_, buf, TTCN_EncDec::CT_BER, BER_ENCODE_DER); + return OCTETSTRING(buf.get_len(), buf.get_data()); +} + ProfileRollbackRequest dec__ProfileRollbackRequest(const OCTETSTRING &stream) { TTCN_Buffer buf; ProfileRollbackRequest msg; diff --git a/library/euicc/SGP32Definitions_Templates.ttcn b/library/euicc/SGP32Definitions_Templates.ttcn index 218f3ed..649545b 100644 --- a/library/euicc/SGP32Definitions_Templates.ttcn +++ b/library/euicc/SGP32Definitions_Templates.ttcn @@ -1179,6 +1179,16 @@ } }
+/* GSMA SGP.32, section 5.9.15 */ +template (present) EnableUsingDDResponse +tr_enableUsingDDResponse := { + enableUsingDDResult := ? +} +template (value) EnableUsingDDResponse +ts_enableUsingDDResponse := { + enableUsingDDResult := 1 /* autoEnableNotAvailable */ +} + /* GSMA SGP.32, section 5.9.16 */ template (present) ProfileRollbackRequest tr_profileRollbackRequest := { diff --git a/library/euicc/SGP32Definitions_Types.ttcn b/library/euicc/SGP32Definitions_Types.ttcn index 4b68e67..492daef 100644 --- a/library/euicc/SGP32Definitions_Types.ttcn +++ b/library/euicc/SGP32Definitions_Types.ttcn @@ -18,6 +18,9 @@ external function dec_GetEimConfigurationDataResponse(in octetstring stream) return GetEimConfigurationDataResponse; external function enc_GetEimConfigurationDataResponse(in GetEimConfigurationDataResponse msg) return octetstring;
+external function dec_EnableUsingDDResponse(in octetstring stream) return EnableUsingDDResponse; +external function enc_EnableUsingDDResponse(in EnableUsingDDResponse msg) return octetstring; + external function dec_ProfileRollbackRequest(in octetstring stream) return ProfileRollbackRequest; external function enc_ProfileRollbackRequest(in ProfileRollbackRequest msg) return octetstring;