dexter has submitted this change. (
https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/43822?usp=email )
Change subject: esx_header_Types_JSON: add parameters to ts/tr_responseHeader
......................................................................
esx_header_Types_JSON: add parameters to ts/tr_responseHeader
The templates for ts/tr_responseHeader currently have no parameters,
Let's add parameters (and a tr/ts_statusCodeData template), so that
we can use the templates to match on error responses
Change-Id: Ie65532432b24899505e0c51d6714be58cf5f594b
Related: SYS#8203
---
M library/euicc/esx_header_Types_JSON.ttcn
1 file changed, 25 insertions(+), 6 deletions(-)
Approvals:
Jenkins Builder: Verified
laforge: Looks good to me, approved
jolly: Looks good to me, but someone else must approve
diff --git a/library/euicc/esx_header_Types_JSON.ttcn
b/library/euicc/esx_header_Types_JSON.ttcn
index 1954341..73ea7dc 100644
--- a/library/euicc/esx_header_Types_JSON.ttcn
+++ b/library/euicc/esx_header_Types_JSON.ttcn
@@ -36,18 +36,37 @@
JSON_ESx_FunctionExecutionStatus functionExecutionStatus
};
+template (value) JSON_ESx_FunctionExecutionStatusCodeData
+ts_statusCodeData(template (value) charstring subjectCode := "1",
+ template (value) charstring reasonCode := "1") := {
+ subjectCode := subjectCode,
+ reasonCode := reasonCode,
+ subjectIdentifier := omit,
+ message_ := omit
+}
+template (present) JSON_ESx_FunctionExecutionStatusCodeData
+tr_statusCodeData(template (present) charstring subjectCode := ?,
+ template (present) charstring reasonCode := ?) := {
+ subjectCode := subjectCode,
+ reasonCode := reasonCode,
+ subjectIdentifier := *,
+ message_ := *
+}
+
template (value) JSON_ESx_ResponseHeader
-ts_responseHeader := {
+ts_responseHeader(template (value) charstring status := "Executed-Success",
+ template (omit) JSON_ESx_FunctionExecutionStatusCodeData
statusCodeData := omit) := {
functionExecutionStatus := {
- status := "Executed-Success",
- statusCodeData := omit
+ status := status,
+ statusCodeData := statusCodeData
}
}
template (present) JSON_ESx_ResponseHeader
-tr_responseHeader := {
+tr_responseHeader(template (present) charstring status := ?,
+ template JSON_ESx_FunctionExecutionStatusCodeData
statusCodeData := *) := {
functionExecutionStatus := {
- status := ?,
- statusCodeData := *
+ status := status,
+ statusCodeData := statusCodeData
}
}
--
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/43822?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: Ie65532432b24899505e0c51d6714be58cf5f594b
Gerrit-Change-Number: 43822
Gerrit-PatchSet: 5
Gerrit-Owner: dexter <[email protected]>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: dexter <[email protected]>
Gerrit-Reviewer: jolly <[email protected]>
Gerrit-Reviewer: laforge <[email protected]>