aboutsummaryrefslogtreecommitdiffstats
path: root/test/postman/02_Onboard_VSP_part1.postman_collection.json
diff options
context:
space:
mode:
authorRene_Robert <rene.robert@orange.com>2019-10-22 17:27:21 +0200
committerRene_Robert <rene.robert@orange.com>2019-10-23 08:40:24 +0200
commit11c5783d20e52601853552ab00819a546b49fa83 (patch)
treec139a4a49332226b98d5376eebf63146cb71affc /test/postman/02_Onboard_VSP_part1.postman_collection.json
parent057c10b4339a1adff9846db38297c70e45094b15 (diff)
update Postman collections and doc,with corrections
Issue-ID: INT-1340 Signed-off-by: Rene_Robert <rene.robert@orange.com> Change-Id: Idcb5ef7669805f0d8c4266ee45310078d33260c2
Diffstat (limited to 'test/postman/02_Onboard_VSP_part1.postman_collection.json')
-rw-r--r--test/postman/02_Onboard_VSP_part1.postman_collection.json22
1 files changed, 11 insertions, 11 deletions
diff --git a/test/postman/02_Onboard_VSP_part1.postman_collection.json b/test/postman/02_Onboard_VSP_part1.postman_collection.json
index 557b55727..0e461930e 100644
--- a/test/postman/02_Onboard_VSP_part1.postman_collection.json
+++ b/test/postman/02_Onboard_VSP_part1.postman_collection.json
@@ -1,6 +1,6 @@
{
"info": {
- "_postman_id": "e226e82c-74b6-42bc-a1e9-1168b860a234",
+ "_postman_id": "7f61efa5-8b7f-4593-9d57-26da61bb8604",
"name": "02_Onboard_VSP_part1",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
@@ -20,17 +20,17 @@
"var jsonData = pm.response.json();",
"var vsp_found = false;",
"for (var i = 0; i < jsonData.results.length; i++) { ",
- " if (jsonData.results[i].name === pm.globals.get(\"vsp_name\")) {",
+ " if (jsonData.results[i].name === pm.environment.get(\"vsp_name\")) {",
" vsp_found = true;",
" }",
"}",
"",
"if (vsp_found === false) {",
- " tests[pm.globals.get(\"vsp_name\")+\" does not yet exist, we continue\"] = true;",
+ " tests[pm.environment.get(\"vsp_name\")+\" does not yet exist, we continue\"] = true;",
"}",
"",
"else {",
- " tests[pm.globals.get(\"vsp_name\")+\" already exists, we stop the run\"] = false;",
+ " tests[pm.environment.get(\"vsp_name\")+\" already exists, we stop the run\"] = false;",
" postman.setNextRequest(null);",
"}"
],
@@ -98,18 +98,18 @@
"var jsonData = pm.response.json();",
"var vendor_found = false;",
"for (var i = 0; i < jsonData.results.length; i++) { ",
- " if (jsonData.results[i].name === pm.globals.get(\"vendor_name\")) {",
+ " if (jsonData.results[i].name === pm.environment.get(\"vendor_name\")) {",
" vendor_found = true;",
- " pm.globals.set(\"auto_vendor_id\", \"\"+jsonData.results[i].id+\"\");",
+ " pm.environment.set(\"auto_vendor_id\", \"\"+jsonData.results[i].id+\"\");",
" }",
"}",
"if (vendor_found === false) {",
- " tests[pm.globals.get(\"vendor_name\")+\" does not exists : we stop the run\"] = false;",
+ " tests[pm.environment.get(\"vendor_name\")+\" does not exists : we stop the run\"] = false;",
" postman.setNextRequest(null);",
"}",
"",
"else {",
- " tests[pm.globals.get(\"vendor_name\")+\" exists\"] = true;",
+ " tests[pm.environment.get(\"vendor_name\")+\" exists\"] = true;",
"}",
"",
"",
@@ -176,9 +176,9 @@
"});",
"",
"var jsonData = pm.response.json();",
- "pm.globals.set(\"auto_vsp_id\", \"\"+jsonData.itemId+\"\");",
- "pm.globals.set(\"auto_vsp_version_id\", \"\"+jsonData.version.id+\"\");",
- "pm.globals.set(\"auto_vsp_version_name\", \"\"+jsonData.version.name+\"\");",
+ "pm.environment.set(\"auto_vsp_id\", \"\"+jsonData.itemId+\"\");",
+ "pm.environment.set(\"auto_vsp_version_id\", \"\"+jsonData.version.id+\"\");",
+ "pm.environment.set(\"auto_vsp_version_name\", \"\"+jsonData.version.name+\"\");",
"",
"tests[\"VSP version is : \"+jsonData.version.status] = jsonData.version.status === \"Draft\";"
],