aboutsummaryrefslogtreecommitdiffstats
path: root/test/postman/10_Service_Order.postman_collection.json
diff options
context:
space:
mode:
authorRene Robert <rene.robert@orange.com>2019-02-01 22:00:57 +0100
committerRene Robert <rene.robert@orange.com>2019-02-01 22:09:52 +0100
commit62163beebaa5fc9742eff6ca6262b9d04743a28a (patch)
tree5a39072404bafbefbace60f3b9754a4555457612 /test/postman/10_Service_Order.postman_collection.json
parent2eab9efad856edc6a111921906895d52ac836e6b (diff)
corrections and README update
Issue-ID: INT-846 Change-Id: I1537e02f31e91882c8b27b0484e72b1b1641c8a4 Signed-off-by: Rene Robert <rene.robert@orange.com>
Diffstat (limited to 'test/postman/10_Service_Order.postman_collection.json')
-rw-r--r--test/postman/10_Service_Order.postman_collection.json6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/postman/10_Service_Order.postman_collection.json b/test/postman/10_Service_Order.postman_collection.json
index 0903b1a3c..1668b762c 100644
--- a/test/postman/10_Service_Order.postman_collection.json
+++ b/test/postman/10_Service_Order.postman_collection.json
@@ -176,7 +176,11 @@
"tests[\"service_order_id exists\"] = jsonData.id === postman.getGlobalVariable(\"auto_service_order_id\");",
"tests[\"service Order state is COMPLETED\"] = jsonData.state === \"COMPLETED\";",
"tests[\"Service Instance state is ACTIVE\"] = jsonData.orderItem[0].service.serviceState === \"active\";",
- "postman.setGlobalVariable(\"auto_service_instance_id\", \"\"+jsonData.orderItem[0].service.id+\"\");",
+ "",
+ "if(jsonData.hasOwnProperty('orderItem.service.id')){",
+ " postman.setGlobalVariable(\"auto_service_instance_id\", \"\"+jsonData.orderItem.service.id+\"\");",
+ "}",
+ "postman.setGlobalVariable(\"auto_service_messageInformation\", \"\"+jsonData.orderMessage[0].messageInformation+\"\");",
""
]
}