diff options
author | Rene Robert <rene.robert@orange.com> | 2019-02-01 22:00:57 +0100 |
---|---|---|
committer | Rene Robert <rene.robert@orange.com> | 2019-02-01 22:09:52 +0100 |
commit | 62163beebaa5fc9742eff6ca6262b9d04743a28a (patch) | |
tree | 5a39072404bafbefbace60f3b9754a4555457612 /test/postman/10_Service_Order.postman_collection.json | |
parent | 2eab9efad856edc6a111921906895d52ac836e6b (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.json | 6 |
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+\"\");", "" ] } |