summaryrefslogtreecommitdiffstats
path: root/test/lock-device/success/expected-payloads
diff options
context:
space:
mode:
Diffstat (limited to 'test/lock-device/success/expected-payloads')
-rw-r--r--test/lock-device/success/expected-payloads/expected-payload-1.json28
-rw-r--r--test/lock-device/success/expected-payloads/expected-payload-2.json26
-rw-r--r--test/lock-device/success/expected-payloads/expected-payload-3.json28
-rw-r--r--test/lock-device/success/expected-payloads/expected-payload-4.json26
4 files changed, 108 insertions, 0 deletions
diff --git a/test/lock-device/success/expected-payloads/expected-payload-1.json b/test/lock-device/success/expected-payloads/expected-payload-1.json
new file mode 100644
index 0000000..82be771
--- /dev/null
+++ b/test/lock-device/success/expected-payloads/expected-payload-1.json
@@ -0,0 +1,28 @@
+{
+ "correlationUUID": "41176125-5d22-4719-846c-71d6d9e375cd",
+ "commonHeader": {
+ "timestamp": "2020-10-21T14:34:24.222Z",
+ "originatorId": "System",
+ "requestId": "lock-request-1",
+ "subRequestId": "1",
+ "flags": null
+ },
+ "actionIdentifiers": {
+ "blueprintName": "RT-lock-device",
+ "blueprintVersion": "1.0.0",
+ "actionName": "resolve-deploy-kotlin",
+ "mode": "sync"
+ },
+ "status": {
+ "code": 200,
+ "eventType": "EVENT_COMPONENT_EXECUTED",
+ "timestamp": "2020-10-21T14:35:22.702Z",
+ "errorMessage": null,
+ "message": "success"
+ },
+ "payload": {
+ "resolve-deploy-kotlin-response": {
+ "response-data": "Success: lock-request-1"
+ }
+ }
+}
diff --git a/test/lock-device/success/expected-payloads/expected-payload-2.json b/test/lock-device/success/expected-payloads/expected-payload-2.json
new file mode 100644
index 0000000..e241a1d
--- /dev/null
+++ b/test/lock-device/success/expected-payloads/expected-payload-2.json
@@ -0,0 +1,26 @@
+{
+ "correlationUUID": "699706a7-380b-464b-8c84-6eb7c356099a",
+ "commonHeader": {
+ "timestamp": "2020-10-21T14:34:29.157Z",
+ "originatorId": "System",
+ "requestId": "lock-request-2",
+ "subRequestId": "1",
+ "flags": null
+ },
+ "actionIdentifiers": {
+ "blueprintName": "RT-lock-device",
+ "blueprintVersion": "1.0.0",
+ "actionName": "resolve-deploy-kotlin",
+ "mode": "sync"
+ },
+ "status": {
+ "code": 500,
+ "eventType": "EVENT_COMPONENT_FAILURE",
+ "timestamp": "2020-10-21T14:34:40.817Z",
+ "errorMessage": "Failed in ComponentScriptExecutor : Failed to acquire lock within timeout, failed to get execution property(node_templates/execute-kotlin/attributes/response-data)",
+ "message": "failure"
+ },
+ "payload": {
+ "resolve-deploy-kotlin-response": {}
+ }
+}
diff --git a/test/lock-device/success/expected-payloads/expected-payload-3.json b/test/lock-device/success/expected-payloads/expected-payload-3.json
new file mode 100644
index 0000000..cc03eae
--- /dev/null
+++ b/test/lock-device/success/expected-payloads/expected-payload-3.json
@@ -0,0 +1,28 @@
+{
+ "correlationUUID": "846b5cf8-c914-4bb4-abd9-5aae49fce8bd",
+ "commonHeader": {
+ "timestamp": "2020-10-21T14:35:29.222Z",
+ "originatorId": "System",
+ "requestId": "lock-request-3",
+ "subRequestId": "1",
+ "flags": null
+ },
+ "actionIdentifiers": {
+ "blueprintName": "RT-lock-device",
+ "blueprintVersion": "1.0.0",
+ "actionName": "resolve-deploy-kotlin",
+ "mode": "sync"
+ },
+ "status": {
+ "code": 200,
+ "eventType": "EVENT_COMPONENT_EXECUTED",
+ "timestamp": "2020-10-21T14:35:59.688Z",
+ "errorMessage": null,
+ "message": "success"
+ },
+ "payload": {
+ "resolve-deploy-kotlin-response": {
+ "response-data": "Success: lock-request-3"
+ }
+ }
+}
diff --git a/test/lock-device/success/expected-payloads/expected-payload-4.json b/test/lock-device/success/expected-payloads/expected-payload-4.json
new file mode 100644
index 0000000..52b5bc7
--- /dev/null
+++ b/test/lock-device/success/expected-payloads/expected-payload-4.json
@@ -0,0 +1,26 @@
+{
+ "correlationUUID": "b6cbef49-7313-4408-b48f-00c996378321",
+ "commonHeader": {
+ "timestamp": "2020-10-21T14:35:34.095Z",
+ "originatorId": "System",
+ "requestId": "lock-request-4",
+ "subRequestId": "1",
+ "flags": null
+ },
+ "actionIdentifiers": {
+ "blueprintName": "RT-lock-device",
+ "blueprintVersion": "1.0.0",
+ "actionName": "resolve-deploy-kotlin",
+ "mode": "sync"
+ },
+ "status": {
+ "code": 500,
+ "eventType": "EVENT_COMPONENT_FAILURE",
+ "timestamp": "2020-10-21T14:35:44.813Z",
+ "errorMessage": "Failed in ComponentScriptExecutor : Failed to acquire lock within timeout, failed to get execution property(node_templates/execute-kotlin/attributes/response-data)",
+ "message": "failure"
+ },
+ "payload": {
+ "resolve-deploy-kotlin-response": {}
+ }
+}