aboutsummaryrefslogtreecommitdiffstats
path: root/test/postman/10_Service_Order.postman_collection.json
diff options
context:
space:
mode:
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+\"\");",
""
]
}