dexter has uploaded this change for review. ( 
https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/43851?usp=email )


Change subject: SGP32Definitions_Templates: rework 
tr_SGP32_pendingNotification_prfleInstRslt
......................................................................

SGP32Definitions_Templates: rework tr_SGP32_pendingNotification_prfleInstRslt

The template ts_SGP32_pendingNotification_prfleInstRslt has only one
parameter, which is the notificationAddress. This parameter is passed
to another template within the template. This is an unfortunate
combination.

Let's untangle this by giving tr/ts_SGP32_pendingNotification_prfleInstRslt
proper parameters that actually match the fields. This slightly changes
the API of the template, so we have to re-align eIM_Tests as well.

Change-Id: I1867dad3a817785623029b9fd1fc9c4f746a6faa
Related: SYS#8203
---
M eim/eIM_Tests.ttcn
M library/euicc/SGP32Definitions_Templates.ttcn
2 files changed, 14 insertions(+), 7 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks 
refs/changes/51/43851/1

diff --git a/eim/eIM_Tests.ttcn b/eim/eIM_Tests.ttcn
index 1547eab..df02a08 100644
--- a/eim/eIM_Tests.ttcn
+++ b/eim/eIM_Tests.ttcn
@@ -530,7 +530,10 @@
        f_esipa_receive(tr_getBoundProfilePackageResponseEsipa);

        /* Handle notification */
-       
f_esipa_send(valueof(ts_handleNotificationEsipa_pendingNotif(ts_SGP32_pendingNotification_prfleInstRslt(notificationAddress
 := smdpp_addr))));
+       f_esipa_send(valueof(ts_handleNotificationEsipa_pendingNotif(
+                               ts_SGP32_pendingNotification_prfleInstRslt(
+                                       profileInstallationResultData := 
ts_profileInstallationResultData(
+                                               notificationAddress := 
smdpp_addr)))));
        f_es9p_transceive_empty_response(tr_handleNotification);

        f_rest_lookup_resource(resource_id, "download", tr_JSON_REST_success);
diff --git a/library/euicc/SGP32Definitions_Templates.ttcn 
b/library/euicc/SGP32Definitions_Templates.ttcn
index 1911515..b6ab0f4 100644
--- a/library/euicc/SGP32Definitions_Templates.ttcn
+++ b/library/euicc/SGP32Definitions_Templates.ttcn
@@ -880,16 +880,20 @@
 }

 /* GSMA SGP.32, section 6.3.2.4 */
-template (present) SGP32_PendingNotification 
tr_SGP32_pendingNotification_prfleInstRslt := {
+template (present) SGP32_PendingNotification
+tr_SGP32_pendingNotification_prfleInstRslt(template (present) 
ProfileInstallationResultData profileInstallationResultData := 
tr_profileInstallationResultData,
+                                          template (present) octetstring 
euiccSignPIR := ?) := {
        profileInstallationResult := {
-               profileInstallationResultData := 
tr_profileInstallationResultData,
-               euiccSignPIR := ?
+               profileInstallationResultData := profileInstallationResultData,
+               euiccSignPIR := euiccSignPIR
        }
 }
-template (value) SGP32_PendingNotification 
ts_SGP32_pendingNotification_prfleInstRslt(template (value) charstring 
notificationAddress := SGP23_TEST_DP_ADDRESS1) := {
+template (value) SGP32_PendingNotification
+ts_SGP32_pendingNotification_prfleInstRslt(template (value) 
ProfileInstallationResultData profileInstallationResultData := 
ts_profileInstallationResultData,
+                                          template (value) octetstring 
euiccSignPIR := SGP23_EUICC_SIGN_PIR) := {
        profileInstallationResult := {
-               profileInstallationResultData := 
ts_profileInstallationResultData(notificationAddress),
-               euiccSignPIR := SGP23_EUICC_SIGN_PIR
+               profileInstallationResultData := profileInstallationResultData,
+               euiccSignPIR := euiccSignPIR
        }
 }
 template (present) SGP32_PendingNotification

--
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/43851?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: I1867dad3a817785623029b9fd1fc9c4f746a6faa
Gerrit-Change-Number: 43851
Gerrit-PatchSet: 1
Gerrit-Owner: dexter <[email protected]>

Reply via email to