aboutsummaryrefslogtreecommitdiffstats
path: root/test/postman/05_Onboard_VF.postman_collection.json
diff options
context:
space:
mode:
authorRene_Robert <rene.robert@orange.com>2019-07-30 17:11:26 +0200
committerRené ROBERT <rene.robert@orange.com>2019-08-01 06:42:30 +0000
commitf049426bfd8142f0ee9851d7ec6281b5c2b5f2e0 (patch)
tree3ccae4a6e74078824f53b6c49c0e19b2e16910af /test/postman/05_Onboard_VF.postman_collection.json
parent11b0d73014e1c680591f3989a8d54425f1383a15 (diff)
Issue-ID: INT-1178
updated Postman collection for Dublin Signed-off-by: Rene_Robert <rene.robert@orange.com> Change-Id: I94b9180e86b96f75780854211da67d85acc90d48 (cherry picked from commit 0ebd04f1cbce5640747b6791582c7b8db09ef8ea)
Diffstat (limited to 'test/postman/05_Onboard_VF.postman_collection.json')
-rw-r--r--test/postman/05_Onboard_VF.postman_collection.json472
1 files changed, 252 insertions, 220 deletions
diff --git a/test/postman/05_Onboard_VF.postman_collection.json b/test/postman/05_Onboard_VF.postman_collection.json
index 19a83a0d3..c26770566 100644
--- a/test/postman/05_Onboard_VF.postman_collection.json
+++ b/test/postman/05_Onboard_VF.postman_collection.json
@@ -1,10 +1,8 @@
{
- "variables": [],
"info": {
+ "_postman_id": "64f5d392-0346-402f-ab22-cdd46b13aa04",
"name": "05_Onboard_VF",
- "_postman_id": "3a292462-bd95-304c-041a-62a8bd1538a5",
- "description": "",
- "schema": "https://schema.getpostman.com/json/collection/v2.0.0/collection.json"
+ "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
{
@@ -13,102 +11,93 @@
{
"listen": "test",
"script": {
- "type": "text/javascript",
+ "id": "a7d64193-edcb-4540-bcac-dde0f33a637f",
"exec": [
+ "",
"var vf_found = false;",
- "if (responseCode.code === 404) {",
- " tests[postman.getGlobalVariable(\"vf_name\")+\" does not exists\"] = true;",
+ "if (pm.response.code === 404) {",
+ " tests[pm.globals.get(\"vf_name\")+\" does not exists\"] = true;",
"}",
"else {",
- " if (responseCode.code === 200) {",
+ " if (pm.response.code === 200) {",
" tests[\"Status code is 200\"] = responseCode.code === 200;",
" }",
- " var jsonData = JSON.parse(responseBody);",
+ " var jsonData = pm.response.json();",
" for (var i = 0; i < jsonData.length; i++) { ",
- " if (jsonData[i][\"name\"] === postman.getGlobalVariable(\"vf_name\")) {",
+ " if (jsonData[i].name === pm.globals.get(\"vf_name\")) {",
" vf_found = true;",
- " postman.setGlobalVariable(\"auto_vf_uuid\", \"\"+jsonData[i][\"uuid\"]+\"\");",
- " postman.setGlobalVariable(\"auto_vf_invariant_uuid\", \"\"+jsonData[i][\"invariantUUID\"]+\"\");",
+ " pm.globals.set(\"auto_vf_uuid\", \"\"+jsonData[i].uuid+\"\");",
+ " pm.globals.set(\"auto_vf_invariant_uuid\", \"\"+jsonData[i].invariantUUID+\"\");",
" }",
" }",
" if (vf_found === false) {",
- " tests[postman.getGlobalVariable(\"vf_name\")+\" does not exists, we continue the run\"] = true;",
+ " tests[pm.globals.get(\"vf_name\")+\" does not yet exists, we continue the run\"] = true;",
" }",
" ",
" else {",
- " tests[postman.getGlobalVariable(\"vf_name\")+\" already exists, stop the run\"] = true;",
+ " tests[pm.globals.get(\"vf_name\")+\" already exists, stop the run\"] = false;",
" postman.setNextRequest(null);",
" }",
"}"
- ]
+ ],
+ "type": "text/javascript"
}
}
],
"request": {
- "url": {
- "raw": "{{url-sdc}}/sdc/v1/catalog/resources?resourceType=VF",
- "host": [
- "{{url-sdc}}"
- ],
- "path": [
- "sdc",
- "v1",
- "catalog",
- "resources"
- ],
- "query": [
- {
- "key": "resourceType",
- "value": "VF",
- "equals": true,
- "description": ""
- }
- ],
- "variable": []
- },
"method": "GET",
"header": [
{
"key": "Content-Type",
- "value": "application/json",
- "description": ""
+ "value": "application/json"
},
{
"key": "Accept",
- "value": "application/json",
- "description": ""
+ "value": "application/json"
},
{
"key": "X-TransactionId",
- "value": "ONAP-Test",
- "description": ""
+ "value": "ONAP-Test"
},
{
"key": "USER_ID",
- "value": "cs0008",
- "description": ""
+ "value": "cs0008"
},
{
"key": "X-FromAppId",
- "value": "ONAP-Test",
- "description": ""
+ "value": "ONAP-Test"
},
{
"key": "Authorization",
- "value": "Basic YWFpOktwOGJKNFNYc3pNMFdYbGhhazNlSGxjc2UyZ0F3ODR2YW9HR21KdlV5MlU=",
- "description": ""
+ "value": "Basic YWFpOktwOGJKNFNYc3pNMFdYbGhhazNlSGxjc2UyZ0F3ODR2YW9HR21KdlV5MlU="
},
{
"key": "x-ecomp-instanceid",
- "value": "ONAP-Test",
- "description": ""
+ "value": "ONAP-Test"
}
],
"body": {
"mode": "raw",
- "raw": "{\"contactId\": \"cs0008\", \"vendorRelease\": \"1.0\", \"requirements\": {}, \"artifacts\": {}, \"capabilities\": {}, \"componentInstancesProperties\": {}, \"deploymentArtifacts\": {}, \"icon\": \"defaulticon\", \"vendorName\": \"test-api-license-model\", \"description\": \"vendor software product\", \"tags\": [\"test-vsp\"], \"groups\": [], \"properties\": [], \"categories\": [{\"subcategories\": [{\"normalizedName\": \"abstract\", \"name\": \"Abstract\", \"uniqueId\": \"resourceNewCategory.generic.abstract\", \"icons\": [\"icon\"]}], \"normalizedName\": \"generic\", \"name\": \"Generic\", \"uniqueId\": \"resourceNewCategory.generic\"}], \"name\": \"test-vsp\", \"toscaArtifacts\": {}, \"csarUUID\": \"F3CD5189C2DF45B4B1CFA6D6E45FD613\", \"resourceType\": \"VF\", \"csarVersion\": \"1.0\", \"componentType\": \"RESOURCE\", \"componentInstancesAttributes\": {}, \"attributes\": [], \"componentInstances\": []}"
+ "raw": ""
},
- "description": ""
+ "url": {
+ "raw": "{{url-sdc}}/sdc/v1/catalog/resources?resourceType=VF",
+ "host": [
+ "{{url-sdc}}"
+ ],
+ "path": [
+ "sdc",
+ "v1",
+ "catalog",
+ "resources"
+ ],
+ "query": [
+ {
+ "key": "resourceType",
+ "value": "VF"
+ }
+ ]
+ }
},
"response": []
},
@@ -118,66 +107,75 @@
{
"listen": "test",
"script": {
- "type": "text/javascript",
+ "id": "ff2f00ca-80fc-40d6-b6ec-aac08eb91759",
"exec": [
- "tests[\"Status code is 200\"] = responseCode.code === 200;",
+ "pm.test(\"Status code is 200\", function () {",
+ " pm.response.to.have.status(200);",
+ "});",
"",
- "var jsonData = JSON.parse(responseBody);",
+ "var jsonData = pm.response.json();",
"var vsp_found = false;",
"for (var i = 0; i < jsonData.results.length; i++) { ",
- " if (jsonData.results[i].name === postman.getGlobalVariable(\"vsp_name\")) {",
+ " if (jsonData.results[i].name === pm.globals.get(\"vsp_name\")) {",
" vsp_found = true;",
- " postman.setGlobalVariable(\"auto_vsp_id\", \"\"+jsonData.results[i].id+\"\");",
+ " pm.globals.set(\"auto_vsp_id\", \"\"+jsonData.results[i].id+\"\");",
"",
" }",
"}",
"if (vsp_found === false) {",
- " tests[postman.getGlobalVariable(\"vsp_name\")+\" does not exists, we stop the run\"] = true;",
+ " tests[\"VSP \"+pm.globals.get(\"vsp_name\")+\" does not exists, we stop the run\"] = false;",
" postman.setNextRequest(null); ",
"}",
"",
"else {",
- " tests[postman.getGlobalVariable(\"vsp_name\")+\" exists, we can continue\"] = true;",
+ " tests[\"VSP \"+pm.globals.get(\"vsp_name\")+\" exists, we can continue\"] = true;",
"}"
- ]
+ ],
+ "type": "text/javascript"
}
}
],
"request": {
- "url": "{{url-sdc2}}/sdc1/feProxy/onboarding-api/v1.0/vendor-software-products",
"method": "GET",
"header": [
{
"key": "Content-Type",
- "value": "application/json",
- "description": ""
+ "value": "application/json"
},
{
"key": "Accept",
- "value": "application/json",
- "description": ""
+ "value": "application/json"
},
{
"key": "X-TransactionId",
- "value": "robot-ete-ba84612d-c1c6-4c53-9967-7b1dff276c7a",
- "description": ""
+ "value": "robot-ete-ba84612d-c1c6-4c53-9967-7b1dff276c7a"
},
{
"key": "USER_ID",
- "value": "cs0008",
- "description": ""
+ "value": "cs0008"
},
{
"key": "X-FromAppId",
- "value": "robot-ete",
- "description": ""
+ "value": "robot-ete"
}
],
"body": {
"mode": "raw",
- "raw": "{\"category\": \"resourceNewCategory.generic\", \"vendorId\": \"CE00625F0B334F7FBD7294293956649E\", \"subCategory\": \"resourceNewCategory.generic.abstract\", \"description\": \"vendor software product\", \"licensingVersion\": \"1.0\", \"licensingData\": {\"featureGroups\": [\"74F4A12BA9B5461CAF69C17AB4301889\"], \"licenseAgreement\": \"D738E60042A14FE0914B375F3FAE1BC8\"}, \"icon\": \"icon\", \"vendorName\": \"test-api-license-model\", \"name\": \"test-vsp\"}"
+ "raw": ""
},
- "description": ""
+ "url": {
+ "raw": "{{url-sdc2}}/sdc1/feProxy/onboarding-api/v1.0/vendor-software-products",
+ "host": [
+ "{{url-sdc2}}"
+ ],
+ "path": [
+ "sdc1",
+ "feProxy",
+ "onboarding-api",
+ "v1.0",
+ "vendor-software-products"
+ ]
+ }
},
"response": []
},
@@ -187,58 +185,69 @@
{
"listen": "test",
"script": {
- "type": "text/javascript",
+ "id": "f16c158f-aceb-490c-924d-3ea83c2b9431",
"exec": [
- "tests[\"Status code is 200\"] = responseCode.code === 200;",
+ "pm.test(\"Status code is 200\", function () {",
+ " pm.response.to.have.status(200);",
+ "});",
"",
- "var jsonData = JSON.parse(responseBody);",
+ "var jsonData = pm.response.json();",
"var vsp_found = false;",
"for (var i = 0; i < jsonData.results.length; i++) { ",
- " if (jsonData.results[i].name === postman.getGlobalVariable(\"vsp_name\")) {",
+ " if (jsonData.results[i].name === pm.globals.get(\"vsp_name\")) {",
" vsp_found = true;",
- " postman.setGlobalVariable(\"auto_vsp_version_id\", \"\"+jsonData.results[i].id+\"\");",
- " postman.setGlobalVariable(\"auto_vsp_version_name\", \"\"+jsonData.results[i].name+\"\");",
+ " pm.globals.set(\"auto_vsp_version_id\", \"\"+jsonData.results[i].id+\"\");",
+ " pm.globals.set(\"auto_vsp_version_name\", \"\"+jsonData.results[i].name+\"\");",
" }",
"}"
- ]
+ ],
+ "type": "text/javascript"
}
}
],
"request": {
- "url": "{{url-sdc2}}/sdc1/feProxy/onboarding-api/v1.0/items/{{auto_vsp_id}}/versions",
"method": "GET",
"header": [
{
"key": "Content-Type",
- "value": "application/json",
- "description": ""
+ "value": "application/json"
},
{
"key": "Accept",
- "value": "application/json",
- "description": ""
+ "value": "application/json"
},
{
"key": "X-TransactionId",
- "value": "robot-ete-ba84612d-c1c6-4c53-9967-7b1dff276c7a",
- "description": ""
+ "value": "robot-ete-ba84612d-c1c6-4c53-9967-7b1dff276c7a"
},
{
"key": "USER_ID",
- "value": "cs0008",
- "description": ""
+ "value": "cs0008"
},
{
"key": "X-FromAppId",
- "value": "robot-ete",
- "description": ""
+ "value": "robot-ete"
}
],
"body": {
"mode": "raw",
- "raw": "{\"category\": \"resourceNewCategory.generic\", \"vendorId\": \"CE00625F0B334F7FBD7294293956649E\", \"subCategory\": \"resourceNewCategory.generic.abstract\", \"description\": \"vendor software product\", \"licensingVersion\": \"1.0\", \"licensingData\": {\"featureGroups\": [\"74F4A12BA9B5461CAF69C17AB4301889\"], \"licenseAgreement\": \"D738E60042A14FE0914B375F3FAE1BC8\"}, \"icon\": \"icon\", \"vendorName\": \"test-api-license-model\", \"name\": \"test-vsp\"}"
+ "raw": ""
},
- "description": ""
+ "url": {
+ "raw": "{{url-sdc2}}/sdc1/feProxy/onboarding-api/v1.0/items/{{auto_vsp_id}}/versions",
+ "host": [
+ "{{url-sdc2}}"
+ ],
+ "path": [
+ "sdc1",
+ "feProxy",
+ "onboarding-api",
+ "v1.0",
+ "items",
+ "{{auto_vsp_id}}",
+ "versions"
+ ]
+ }
},
"response": []
},
@@ -248,68 +257,77 @@
{
"listen": "test",
"script": {
- "type": "text/javascript",
+ "id": "ed512660-e7af-450f-aa7e-b503c7e21a72",
"exec": [
- "tests[\"Status code is 200\"] = responseCode.code === 200;",
+ "pm.test(\"Status code is 200\", function () {",
+ " pm.response.to.have.status(200);",
+ "});",
"",
- "var jsonData = JSON.parse(responseBody);",
+ "var jsonData = pm.response.json();",
"var vendor_found = false;",
"for (var i = 0; i < jsonData.results.length; i++) { ",
- " if (jsonData.results[i][\"name\"] === postman.getGlobalVariable(\"vendor_name\")) {",
+ " if (jsonData.results[i][\"name\"] === pm.globals.get(\"vendor_name\")) {",
" vendor_found = true;",
- " postman.setGlobalVariable(\"auto_vendor_id\", \"\"+jsonData.results[i][\"id\"]+\"\");",
+ " pm.globals.set(\"auto_vendor_id\", \"\"+jsonData.results[i][\"id\"]+\"\");",
" }",
"}",
"if (vendor_found === false) {",
- " tests[postman.getGlobalVariable(\"vendor_name\")+\" does not exists : we stop the run\"] = false;",
+ " tests[pm.globals.get(\"vendor_name\")+\" does not exists : we stop the run\"] = false;",
" postman.setNextRequest(null);",
"}",
"",
"else {",
- " tests[postman.getGlobalVariable(\"vendor_name\")+\" exists\"] = true;",
+ " tests[pm.globals.get(\"vendor_name\")+\" exists\"] = true;",
"}",
"",
"",
""
- ]
+ ],
+ "type": "text/javascript"
}
}
],
"request": {
- "url": "{{url-sdc2}}/sdc1/feProxy/onboarding-api/v1.0/vendor-license-models",
"method": "GET",
"header": [
{
"key": "Content-Type",
- "value": "application/json",
- "description": ""
+ "value": "application/json"
},
{
"key": "Accept",
- "value": "application/json",
- "description": ""
+ "value": "application/json"
},
{
"key": "X-TransactionId",
- "value": "robot-ete-ba84612d-c1c6-4c53-9967-7b1dff276c7a",
- "description": ""
+ "value": "robot-ete-ba84612d-c1c6-4c53-9967-7b1dff276c7a"
},
{
"key": "USER_ID",
- "value": "cs0008",
- "description": ""
+ "value": "cs0008"
},
{
"key": "X-FromAppId",
- "value": "robot-ete",
- "description": ""
+ "value": "robot-ete"
}
],
"body": {
"mode": "raw",
- "raw": "{\"iconRef\": \"icon\", \"vendorName\": \"test-api-license-model\", \"description\": \"vendor license model\"}"
+ "raw": ""
},
- "description": ""
+ "url": {
+ "raw": "{{url-sdc2}}/sdc1/feProxy/onboarding-api/v1.0/vendor-license-models",
+ "host": [
+ "{{url-sdc2}}"
+ ],
+ "path": [
+ "sdc1",
+ "feProxy",
+ "onboarding-api",
+ "v1.0",
+ "vendor-license-models"
+ ]
+ }
},
"response": []
},
@@ -319,65 +337,73 @@
{
"listen": "test",
"script": {
- "type": "text/javascript",
+ "id": "78a4913a-db8c-4c41-8fae-28e5bf6d90b4",
"exec": [
- "tests[\"Status code is 201\"] = responseCode.code === 201;",
+ "pm.test(\"Status code is 201\", function () {",
+ " pm.response.to.have.status(201);",
+ "});",
"",
- "var jsonData = JSON.parse(responseBody);",
- "postman.setGlobalVariable(\"auto_vf_invariant_uuid\", \"\"+jsonData[\"invariantUUID\"]+\"\");",
- "postman.setGlobalVariable(\"auto_vf_uuid\", \"\"+jsonData[\"uuid\"]+\"\");",
- "postman.setGlobalVariable(\"auto_vf_unique_id\", \"\"+jsonData[\"uniqueId\"]+\"\");",
+ "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+\"\");",
"",
- "tests[\"VF version is in NOT_CERTIFIED_CHECKOUT status\"] = jsonData[\"lifecycleState\"] === \"NOT_CERTIFIED_CHECKOUT\";"
- ]
+ "tests[\"VF status is : \"+jsonData.lifecycleState] = jsonData.lifecycleState === \"NOT_CERTIFIED_CHECKOUT\";"
+ ],
+ "type": "text/javascript"
}
}
],
"request": {
- "url": "{{url-sdc2}}/sdc1/feProxy/rest/v1/catalog/resources",
"method": "POST",
"header": [
{
"key": "Content-Type",
- "value": "application/json",
- "description": ""
+ "value": "application/json"
},
{
"key": "Accept",
- "value": "application/json",
- "description": ""
+ "value": "application/json"
},
{
"key": "X-TransactionId",
- "value": "ONAP-Test",
- "description": ""
+ "value": "ONAP-Test"
},
{
"key": "USER_ID",
- "value": "cs0008",
- "description": ""
+ "value": "cs0008"
},
{
"key": "X-FromAppId",
- "value": "ONAP-Test",
- "description": ""
+ "value": "ONAP-Test"
},
{
"key": "Authorization",
- "value": "Basic YWFpOktwOGJKNFNYc3pNMFdYbGhhazNlSGxjc2UyZ0F3ODR2YW9HR21KdlV5MlU=",
- "description": ""
+ "value": "Basic YWFpOktwOGJKNFNYc3pNMFdYbGhhazNlSGxjc2UyZ0F3ODR2YW9HR21KdlV5MlU="
},
{
"key": "x-ecomp-instanceid",
- "value": "ONAP-Test",
- "description": ""
+ "value": "ONAP-Test"
}
],
"body": {
"mode": "raw",
"raw": "{\r\n\t\"artifacts\": {},\r\n\t\"toscaArtifacts\": {},\r\n\t\"contactId\": \"cs0008\",\r\n\t\"categories\": [{\r\n\t\t\"name\": \"Generic\",\r\n\t\t\"normalizedName\": \"generic\",\r\n\t\t\"uniqueId\": \"resourceNewCategory.generic\",\r\n\t\t\"icons\": null,\r\n\t\t\"subcategories\": [{\r\n\t\t\t\"name\": \"Abstract\",\r\n\t\t\t\"normalizedName\": \"abstract\",\r\n\t\t\t\"uniqueId\": \"resourceNewCategory.generic.abstract\",\r\n\t\t\t\"icons\": [\"objectStorage\", \"compute\"],\r\n\t\t\t\"groupings\": null,\r\n\t\t\t\"ownerId\": null,\r\n\t\t\t\"empty\": false\r\n\t\t}],\r\n\t\t\"ownerId\": null,\r\n\t\t\"empty\": false\r\n\t}],\r\n\t\"description\": \"VF named {{vf_name}}\",\r\n\t\"icon\": \"defaulticon\",\r\n\t\"componentInstancesProperties\": {},\r\n\t\"componentInstancesAttributes\": {},\r\n\t\"name\": \"{{vf_name}}\",\r\n\t\"tags\": [\"{{vf_name}}\"],\r\n\t\"capabilities\": {},\r\n\t\"requirements\": {},\r\n\t\"deploymentArtifacts\": {},\r\n\t\"componentType\": \"RESOURCE\",\r\n\t\"vendorName\": \"{{vendor_name}}\",\r\n\t\"vendorRelease\": \"1.0\",\r\n\t\"componentInstances\": [],\r\n\t\"properties\": [],\r\n\t\"attributes\": [],\r\n\t\"groups\": [],\r\n\t\"resourceType\": \"VF\",\r\n\t\"csarUUID\": \"{{auto_vsp_id}}\",\r\n\t\"csarVersion\": \"{{auto_vsp_version_name}}\"\r\n}"
},
- "description": ""
+ "url": {
+ "raw": "{{url-sdc2}}/sdc1/feProxy/rest/v1/catalog/resources",
+ "host": [
+ "{{url-sdc2}}"
+ ],
+ "path": [
+ "sdc1",
+ "feProxy",
+ "rest",
+ "v1",
+ "catalog",
+ "resources"
+ ]
+ }
},
"response": []
},
@@ -389,58 +415,64 @@
"script": {
"type": "text/javascript",
"exec": [
- "var jsonData = JSON.parse(responseBody);",
+ "var jsonData = pm.response.json();",
"",
- "tests[\"VF version is in NOT_CERTIFIED_CHECKIN status\"] = jsonData[\"lifecycleState\"] === \"NOT_CERTIFIED_CHECKIN\";"
+ "tests[\"VF status is : \"+jsonData.lifecycleState] = jsonData.lifecycleState === \"NOT_CERTIFIED_CHECKIN\";"
]
}
}
],
"request": {
- "url": "{{url-sdc}}/sdc/v1/catalog/resources/{{auto_vf_uuid}}/lifecycleState/checkin",
"method": "POST",
"header": [
{
"key": "Content-Type",
- "value": "application/json",
- "description": ""
+ "value": "application/json"
},
{
"key": "Accept",
- "value": "application/json",
- "description": ""
+ "value": "application/json"
},
{
"key": "X-TransactionId",
- "value": "ONAP-Test",
- "description": ""
+ "value": "ONAP-Test"
},
{
"key": "USER_ID",
- "value": "cs0008",
- "description": ""
+ "value": "cs0008"
},
{
"key": "X-FromAppId",
- "value": "ONAP-Test",
- "description": ""
+ "value": "ONAP-Test"
},
{
"key": "X-ECOMP-InstanceID",
- "value": "ONAP-Test",
- "description": ""
+ "value": "ONAP-Test"
},
{
"key": "Authorization",
- "value": "Basic YWFpOktwOGJKNFNYc3pNMFdYbGhhazNlSGxjc2UyZ0F3ODR2YW9HR21KdlV5MlU=",
- "description": ""
+ "value": "Basic YWFpOktwOGJKNFNYc3pNMFdYbGhhazNlSGxjc2UyZ0F3ODR2YW9HR21KdlV5MlU="
}
],
"body": {
"mode": "raw",
"raw": "{\"userRemarks\": \"ONAP-Test checkin\"}"
},
- "description": ""
+ "url": {
+ "raw": "{{url-sdc}}/sdc/v1/catalog/resources/{{auto_vf_uuid}}/lifecycleState/checkin",
+ "host": [
+ "{{url-sdc}}"
+ ],
+ "path": [
+ "sdc",
+ "v1",
+ "catalog",
+ "resources",
+ "{{auto_vf_uuid}}",
+ "lifecycleState",
+ "checkin"
+ ]
+ }
},
"response": []
},
@@ -452,58 +484,66 @@
"script": {
"type": "text/javascript",
"exec": [
- "var jsonData = JSON.parse(responseBody);",
+ "var jsonData = pm.response.json();",
"",
- "tests[\"VF version is in CERTIFIED status\"] = jsonData[\"lifecycleState\"] === \"CERTIFIED\";"
+ "tests[\"VF status is : \"+jsonData.lifecycleState] = jsonData.lifecycleState === \"CERTIFIED\";"
]
}
}
],
"request": {
- "url": "{{url-sdc2}}/sdc1/feProxy/rest/v1/catalog/resources/{{auto_vf_unique_id}}/lifecycleState/certify",
"method": "POST",
"header": [
{
"key": "Content-Type",
- "value": "application/json",
- "description": ""
+ "value": "application/json"
},
{
"key": "Accept",
- "value": "application/json",
- "description": ""
+ "value": "application/json"
},
{
"key": "X-TransactionId",
- "value": "ONAP-Test",
- "description": ""
+ "value": "ONAP-Test"
},
{
"key": "USER_ID",
- "value": "cs0008",
- "description": ""
+ "value": "cs0008"
},
{
"key": "X-FromAppId",
- "value": "ONAP-Test",
- "description": ""
+ "value": "ONAP-Test"
},
{
"key": "Authorization",
- "value": "Basic YWFpOktwOGJKNFNYc3pNMFdYbGhhazNlSGxjc2UyZ0F3ODR2YW9HR21KdlV5MlU=",
- "description": ""
+ "value": "Basic YWFpOktwOGJKNFNYc3pNMFdYbGhhazNlSGxjc2UyZ0F3ODR2YW9HR21KdlV5MlU="
},
{
"key": "X-ECOMP-InstanceID",
- "value": "ONAP-Test",
- "description": ""
+ "value": "ONAP-Test"
}
],
"body": {
"mode": "raw",
"raw": "{\"userRemarks\": \"certify\"}"
},
- "description": ""
+ "url": {
+ "raw": "{{url-sdc2}}/sdc1/feProxy/rest/v1/catalog/resources/{{auto_vf_unique_id}}/lifecycleState/certify",
+ "host": [
+ "{{url-sdc2}}"
+ ],
+ "path": [
+ "sdc1",
+ "feProxy",
+ "rest",
+ "v1",
+ "catalog",
+ "resources",
+ "{{auto_vf_unique_id}}",
+ "lifecycleState",
+ "certify"
+ ]
+ }
},
"response": []
},
@@ -513,86 +553,78 @@
{
"listen": "test",
"script": {
- "type": "text/javascript",
+ "id": "8d831aa8-7760-44b4-aab4-da4724e8dfc9",
"exec": [
- "tests[\"Status code is 200\"] = responseCode.code === 200;",
+ "pm.test(\"Status code is 200\", function () {",
+ " pm.response.to.have.status(200);",
+ "});",
"",
- "var jsonData = JSON.parse(responseBody);",
- "postman.setGlobalVariable(\"auto_vf_new_unique_id\", \"\"+jsonData[\"metadata\"][\"allVersions\"][\"1.0\"]+\"\");",
+ "var jsonData = pm.response.json();",
+ "pm.globals.set(\"auto_vf_new_unique_id\", \"\"+jsonData[\"metadata\"][\"allVersions\"][\"1.0\"]+\"\");",
""
- ]
+ ],
+ "type": "text/javascript"
}
}
],
"request": {
- "url": {
- "raw": "{{url-sdc2}}/sdc1/feProxy/rest/v1/catalog/resources/{{auto_vf_unique_id}}/filteredDataByParams?include=metadata",
- "host": [
- "{{url-sdc2}}"
- ],
- "path": [
- "sdc1",
- "feProxy",
- "rest",
- "v1",
- "catalog",
- "resources",
- "{{auto_vf_unique_id}}",
- "filteredDataByParams"
- ],
- "query": [
- {
- "key": "include",
- "value": "metadata",
- "equals": true,
- "description": ""
- }
- ],
- "variable": []
- },
"method": "GET",
"header": [
{
"key": "Content-Type",
- "value": "application/json",
- "description": ""
+ "value": "application/json"
},
{
"key": "Accept",
- "value": "application/json",
- "description": ""
+ "value": "application/json"
},
{
"key": "X-TransactionId",
- "value": "ONAP-Test",
- "description": ""
+ "value": "ONAP-Test"
},
{
"key": "USER_ID",
- "value": "cs0008",
- "description": ""
+ "value": "cs0008"
},
{
"key": "X-FromAppId",
- "value": "ONAP-Test",
- "description": ""
+ "value": "ONAP-Test"
},
{
"key": "Authorization",
- "value": "Basic YWFpOktwOGJKNFNYc3pNMFdYbGhhazNlSGxjc2UyZ0F3ODR2YW9HR21KdlV5MlU=",
- "description": ""
+ "value": "Basic YWFpOktwOGJKNFNYc3pNMFdYbGhhazNlSGxjc2UyZ0F3ODR2YW9HR21KdlV5MlU="
},
{
"key": "x-ecomp-instanceid",
- "value": "ONAP-Test",
- "description": ""
+ "value": "ONAP-Test"
}
],
"body": {
"mode": "raw",
- "raw": "{\"contactId\": \"cs0008\", \"vendorRelease\": \"1.0\", \"requirements\": {}, \"artifacts\": {}, \"capabilities\": {}, \"componentInstancesProperties\": {}, \"deploymentArtifacts\": {}, \"icon\": \"defaulticon\", \"vendorName\": \"test-api-license-model\", \"description\": \"vendor software product\", \"tags\": [\"test-vsp\"], \"groups\": [], \"properties\": [], \"categories\": [{\"subcategories\": [{\"normalizedName\": \"abstract\", \"name\": \"Abstract\", \"uniqueId\": \"resourceNewCategory.generic.abstract\", \"icons\": [\"icon\"]}], \"normalizedName\": \"generic\", \"name\": \"Generic\", \"uniqueId\": \"resourceNewCategory.generic\"}], \"name\": \"test-vsp\", \"toscaArtifacts\": {}, \"csarUUID\": \"F3CD5189C2DF45B4B1CFA6D6E45FD613\", \"resourceType\": \"VF\", \"csarVersion\": \"1.0\", \"componentType\": \"RESOURCE\", \"componentInstancesAttributes\": {}, \"attributes\": [], \"componentInstances\": []}"
+ "raw": ""
},
- "description": ""
+ "url": {
+ "raw": "{{url-sdc2}}/sdc1/feProxy/rest/v1/catalog/resources/{{auto_vf_unique_id}}/filteredDataByParams?include=metadata",
+ "host": [
+ "{{url-sdc2}}"
+ ],
+ "path": [
+ "sdc1",
+ "feProxy",
+ "rest",
+ "v1",
+ "catalog",
+ "resources",
+ "{{auto_vf_unique_id}}",
+ "filteredDataByParams"
+ ],
+ "query": [
+ {
+ "key": "include",
+ "value": "metadata"
+ }
+ ]
+ }
},
"response": []
}