diff options
Diffstat (limited to 'test/postman/05_Onboard_VF.postman_collection.json')
-rw-r--r-- | test/postman/05_Onboard_VF.postman_collection.json | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/test/postman/05_Onboard_VF.postman_collection.json b/test/postman/05_Onboard_VF.postman_collection.json index c26770566..50ae5f89f 100644 --- a/test/postman/05_Onboard_VF.postman_collection.json +++ b/test/postman/05_Onboard_VF.postman_collection.json @@ -1,6 +1,6 @@ { "info": { - "_postman_id": "64f5d392-0346-402f-ab22-cdd46b13aa04", + "_postman_id": "8f0c4ff0-c762-4289-8547-daa0def307c1", "name": "05_Onboard_VF", "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" }, @@ -16,7 +16,7 @@ "", "var vf_found = false;", "if (pm.response.code === 404) {", - " tests[pm.globals.get(\"vf_name\")+\" does not exists\"] = true;", + " tests[pm.environment.get(\"vf_name\")+\" does not exists\"] = true;", "}", "else {", " if (pm.response.code === 200) {", @@ -24,18 +24,18 @@ " }", " var jsonData = pm.response.json();", " for (var i = 0; i < jsonData.length; i++) { ", - " if (jsonData[i].name === pm.globals.get(\"vf_name\")) {", + " if (jsonData[i].name === pm.environment.get(\"vf_name\")) {", " vf_found = true;", - " pm.globals.set(\"auto_vf_uuid\", \"\"+jsonData[i].uuid+\"\");", - " pm.globals.set(\"auto_vf_invariant_uuid\", \"\"+jsonData[i].invariantUUID+\"\");", + " pm.environment.set(\"auto_vf_uuid\", \"\"+jsonData[i].uuid+\"\");", + " pm.environment.set(\"auto_vf_invariant_uuid\", \"\"+jsonData[i].invariantUUID+\"\");", " }", " }", " if (vf_found === false) {", - " tests[pm.globals.get(\"vf_name\")+\" does not yet exists, we continue the run\"] = true;", + " tests[pm.environment.get(\"vf_name\")+\" does not yet exists, we continue the run\"] = true;", " }", " ", " else {", - " tests[pm.globals.get(\"vf_name\")+\" already exists, stop the run\"] = false;", + " tests[pm.environment.get(\"vf_name\")+\" already exists, stop the run\"] = false;", " postman.setNextRequest(null);", " }", "}" @@ -116,19 +116,19 @@ "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;", - " pm.globals.set(\"auto_vsp_id\", \"\"+jsonData.results[i].id+\"\");", + " pm.environment.set(\"auto_vsp_id\", \"\"+jsonData.results[i].id+\"\");", "", " }", "}", "if (vsp_found === false) {", - " tests[\"VSP \"+pm.globals.get(\"vsp_name\")+\" does not exists, we stop the run\"] = false;", + " tests[\"VSP \"+pm.environment.get(\"vsp_name\")+\" does not exists, we stop the run\"] = false;", " postman.setNextRequest(null); ", "}", "", "else {", - " tests[\"VSP \"+pm.globals.get(\"vsp_name\")+\" exists, we can continue\"] = true;", + " tests[\"VSP \"+pm.environment.get(\"vsp_name\")+\" exists, we can continue\"] = true;", "}" ], "type": "text/javascript" @@ -194,10 +194,10 @@ "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;", - " pm.globals.set(\"auto_vsp_version_id\", \"\"+jsonData.results[i].id+\"\");", - " pm.globals.set(\"auto_vsp_version_name\", \"\"+jsonData.results[i].name+\"\");", + " pm.environment.set(\"auto_vsp_version_id\", \"\"+jsonData.results[i].id+\"\");", + " pm.environment.set(\"auto_vsp_version_name\", \"\"+jsonData.results[i].name+\"\");", " }", "}" ], @@ -266,18 +266,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;", "}", "", "", @@ -344,9 +344,9 @@ "});", "", "var jsonData = pm.response.json();", - "pm.globals.set(\"auto_vf_invariant_uuid\", \"\"+jsonData.invariantUUID+\"\");", - "pm.globals.set(\"auto_vf_uuid\", \"\"+jsonData.uuid+\"\");", - "pm.globals.set(\"auto_vf_unique_id\", \"\"+jsonData.uniqueId+\"\");", + "pm.environment.set(\"auto_vf_invariant_uuid\", \"\"+jsonData.invariantUUID+\"\");", + "pm.environment.set(\"auto_vf_uuid\", \"\"+jsonData.uuid+\"\");", + "pm.environment.set(\"auto_vf_unique_id\", \"\"+jsonData.uniqueId+\"\");", "", "tests[\"VF status is : \"+jsonData.lifecycleState] = jsonData.lifecycleState === \"NOT_CERTIFIED_CHECKOUT\";" ], @@ -560,7 +560,7 @@ "});", "", "var jsonData = pm.response.json();", - "pm.globals.set(\"auto_vf_new_unique_id\", \"\"+jsonData[\"metadata\"][\"allVersions\"][\"1.0\"]+\"\");", + "pm.environment.set(\"auto_vf_new_unique_id\", \"\"+jsonData[\"metadata\"][\"allVersions\"][\"1.0\"]+\"\");", "" ], "type": "text/javascript" |