3 "_postman_id": "45694934-9bf1-485a-8b98-53f3da0b5bb8",
4 "name": "11_delete_instances",
5 "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
9 "name": "SO Delete vf-module",
14 "id": "2c20c606-a034-47e0-8a66-fc4f1b8ed1c8",
16 "pm.test(\"Status code is 202\", function () {",
17 " pm.response.to.have.status(202);",
20 "var jsonData = pm.response.json();",
22 "pm.globals.set(\"auto_so_request_id\", \"\"+jsonData.requestReferences.requestId+\"\");",
25 "type": "text/javascript"
34 "value": "application/json"
37 "key": "Content-Type",
38 "value": "application/json"
45 "key": "X-TransactionId",
46 "value": "get_aai_subscr"
49 "key": "Authorization",
50 "value": "Basic SW5mcmFQb3J0YWxDbGllbnQ6cGFzc3dvcmQxJA=="
55 "raw": "{\n\t\"requestDetails\": {\n\t\t\"requestInfo\": {\n\t\t\t\"source\": \"VID\",\n\t\t\t\"requestorId\": \"test\"\n\t\t},\n\t\t\"modelInfo\": {\n\t\t\"modelType\": \"vfModule\",\n\t\t\"modelInvariantId\": \"{{auto_vf_module_model_invariant_uuid}}\",\n\t\t\"modelVersionId\": \"{{auto_vf_module_model_uuid}}\",\n\t\t\"modelName\": \"{{auto_vf_module_model_name}}\",\n\t\t\"modelVersion\": \"1\",\n\t\t\"modelCustomizationId\": \"{{auto_vf_module_model_customization_uuid}}\",\n\t\t\"modelCustomizationName\": \"{{auto_vf_module_model_name}}\"\n\t\t},\n\t\t\"requestParameters\": {\n\t\t\t\"testApi\": \"VNF_API\"\n\t\t},\n\t\t\"cloudConfiguration\": {\n\t\t\t\"lcpCloudRegionId\": \"{{onap_cloud_region_id}}\",\n\t\t\t\"tenantId\": \"{{tenant_id}}\"\n\t\t}\n\t}\n}\n\n"
58 "raw": "{{url-so}}/onap/so/infra/serviceInstances/v7/{{auto_service_instance_id}}/vnfs/{{auto_vnf_instance_id}}/vfModules/{{auto_vfmodule_instance_id}}",
68 "{{auto_service_instance_id}}",
70 "{{auto_vnf_instance_id}}",
72 "{{auto_vfmodule_instance_id}}"
79 "name": "SO orchestrationRequests after 30s",
84 "id": "2ca20cdd-fbb0-46a3-b6af-eb36d388448c",
87 "pm.test(\"Status code is 200\", function () {",
88 " pm.response.to.have.status(200);",
90 "var jsonData = pm.response.json();",
92 "tests[\"requestState is : \"+jsonData.request.requestStatus.requestState] = jsonData.request.requestStatus.requestState === \"COMPLETE\";",
94 "tests[\"statusMessage is : \"+jsonData.request.requestStatus.statusMessage] = jsonData.request.requestStatus.statusMessage === \"Vf Module has been deleted successfully.\";"
96 "type": "text/javascript"
100 "listen": "prerequest",
102 "id": "0fc6bd97-ca45-4caa-bdc5-346d661a5409",
104 " var date = new Date();",
105 " var curDate = null;",
107 " curDate = new Date();",
109 " while (curDate - date < 10000);"
111 "type": "text/javascript"
120 "value": "application/json"
123 "key": "Content-Type",
124 "value": "application/json"
127 "key": "X-FromAppId",
131 "key": "X-TransactionId",
132 "value": "get_aai_subscr"
135 "key": "Authorization",
136 "value": "Basic SW5mcmFQb3J0YWxDbGllbnQ6cGFzc3dvcmQxJA=="
144 "raw": "{{url-so}}/onap/so/infra/orchestrationRequests/v7/{{auto_so_request_id}}",
152 "orchestrationRequests",
154 "{{auto_so_request_id}}"
161 "name": "check vfmodule instance in inventory via AAI request",
166 "id": "6244395e-23bd-4d4b-9f31-cd9b1e4102f6",
169 "var jsonData = pm.response.json();",
172 "var vfmodule_instance_found = false;",
174 "if (pm.response.code === 200){",
175 " for (var i = 0; i < jsonData[\"vf-module\"].length; i++) { ",
176 " if (jsonData[\"vf-module\"][i][\"vf-module-name\"] === pm.globals.get(\"vfmodule_instance_name\")) {",
177 " vfmodule_instance_found = true;",
183 "tests[\"vfmodule Instance : \"+ pm.globals.get(\"vfmodule_instance_name\") +\" no longer exists in AAI inventory\"] = vfmodule_instance_found === false;"
185 "type": "text/javascript"
193 "key": "Authorization",
194 "value": "Basic QUFJOkFBSQ=="
197 "key": "X-FromAppId",
202 "value": "application/json"
205 "key": "X-TransactionId",
206 "value": "get_aai_subscr"
209 "key": "Content-Type",
210 "value": "application/json"
218 "raw": "{{url-aai}}/aai/v16/network/generic-vnfs/generic-vnf/{{auto_vnf_instance_id}}/vf-modules",
228 "{{auto_vnf_instance_id}}",
236 "name": "SO Delete vnf_instance",
241 "id": "eab54e34-7898-452e-ad8e-6ac68c3efd36",
243 "pm.test(\"Status code is 202\", function () {",
244 " pm.response.to.have.status(202);",
246 "var jsonData = pm.response.json();",
248 "pm.globals.set(\"auto_so_request_id\", \"\"+jsonData.requestReferences.requestId+\"\");",
251 "type": "text/javascript"
260 "value": "application/json"
263 "key": "Content-Type",
264 "value": "application/json"
267 "key": "X-FromAppId",
271 "key": "X-TransactionId",
272 "value": "get_aai_subscr"
275 "key": "Authorization",
276 "value": "Basic SW5mcmFQb3J0YWxDbGllbnQ6cGFzc3dvcmQxJA=="
281 "raw": "{\n\t\"requestDetails\": {\n\t\t\"requestInfo\": {\n\t\t\t\"source\": \"VID\",\n\t\t\t\"requestorId\": \"test\"\n\t\t},\n\t\t\"modelInfo\": {\n\t\t\t\"modelType\": \"vnf\",\n\t\t\t\"modelInvariantId\": \"{{auto_vf_invariant_uuid}}\",\n\t\t\t\"modelVersionId\": \"{{auto_vf_uuid}}\",\n\t\t\t\"modelName\": \"{{vf_name}}\",\n\t\t\t\"modelVersion\": \"1.0\",\n\t\t\t\"modelCustomizationId\": \"{{auto_vf_customization_id}}\",\n\t\t\t\"modelCustomizationName\": \"{{vf_name}} 0\"\n\t\t},\n\t\t\"requestParameters\": {\n\t\t\t\"testApi\": \"VNF_API\"\n\t\t},\n\t\t\"cloudConfiguration\": {\n\t\t\t\"lcpCloudRegionId\": \"{{onap_cloud_region_id}}\",\n\t\t\t\"tenantId\": \"{{tenant_id}}\"\n\t\t}\n\t}\n}\n\n"
284 "raw": "{{url-so}}/onap/so/infra/serviceInstances/v7/{{auto_service_instance_id}}/vnfs/{{auto_vnf_instance_id}}",
294 "{{auto_service_instance_id}}",
296 "{{auto_vnf_instance_id}}"
303 "name": "SO Delete network",
308 "id": "eab54e34-7898-452e-ad8e-6ac68c3efd36",
312 "type": "text/javascript"
321 "value": "application/json"
324 "key": "Content-Type",
325 "value": "application/json"
328 "key": "X-FromAppId",
332 "key": "X-TransactionId",
333 "value": "get_aai_subscr"
336 "key": "Authorization",
337 "value": "Basic SW5mcmFQb3J0YWxDbGllbnQ6cGFzc3dvcmQxJA=="
342 "raw": " {\n \t\"requestDetails\": {\n \t\t\"modelInfo\": {\n \t\t\t\"modelType\": \"network\"\n \t\t},\n \t\t\"requestInfo\": {\n \t\t\t\"source\": \"VID\",\n \t\t\t\"requestorId\": \"demo\"\n \t\t},\n \t\t\"requestParameters\": {\n \t\t\t\"testApi\": \"VNF_API\"\n \t\t},\n\t\t\"cloudConfiguration\": {\n\t\t\t\"lcpCloudRegionId\": \"{{onap_cloud_region_id}}\",\n\t\t\t\"tenantId\": \"{{tenant_id}}\"\n\t\t}\n\t}\n}\n\n"
345 "raw": "{{url-so}}/onap/so/infra/serviceInstances/v7/{{auto_service_instance_id}}/networks/{{auto_virtual_link_instance_id}}",
355 "{{auto_service_instance_id}}",
357 "{{auto_virtual_link_instance_id}}"
364 "name": "SO orchestrationRequests after 10s",
369 "id": "68a5392d-2904-416b-9cf0-a89c971aa341",
371 "pm.test(\"Status code is 200\", function () {",
372 " pm.response.to.have.status(200);",
375 "var jsonData = pm.response.json();",
377 "tests[\"requestState is : \"+jsonData.request.requestStatus.requestState] = jsonData.request.requestStatus.requestState === \"COMPLETE\";",
379 "tests[\"statusMessage is : \"+jsonData.request.requestStatus.statusMessage] = jsonData.request.requestStatus.statusMessage === \"Vnf has been deleted successfully.\";"
381 "type": "text/javascript"
385 "listen": "prerequest",
387 "id": "0f9f067e-d8d4-4b69-a7eb-71f1e73b8196",
389 " var date = new Date();",
390 " var curDate = null;",
392 " curDate = new Date();",
394 " while (curDate - date < 10000);"
396 "type": "text/javascript"
405 "value": "application/json"
408 "key": "Content-Type",
409 "value": "application/json"
412 "key": "X-FromAppId",
416 "key": "X-TransactionId",
417 "value": "get_aai_subscr"
420 "key": "Authorization",
421 "value": "Basic SW5mcmFQb3J0YWxDbGllbnQ6cGFzc3dvcmQxJA=="
429 "raw": "{{url-so}}/onap/so/infra/orchestrationRequests/v7/{{auto_so_request_id}}",
437 "orchestrationRequests",
439 "{{auto_so_request_id}}"
446 "name": "check vnf instance in inventory via AAI request",
451 "id": "851c2dff-10fb-4f6a-a346-4bab48868d3a",
454 "var jsonData = pm.response.json();",
456 "var vnf_instance_found = false;",
458 "if (pm.response.code === 200){",
459 "for (var i = 0; i < jsonData[\"generic-vnf\"].length; i++) { ",
460 " if (jsonData[\"generic-vnf\"][i][\"vnf-name\"] === pm.globals.get(\"vnf_instance_name\")) {",
461 " vnf_instance_found = true;",
465 "tests[\"VNF Instance : \"+ pm.globals.get(\"vnf_instance_name\") +\" no longer exists in AAI inventory\"] = vnf_instance_found === false;"
467 "type": "text/javascript"
475 "key": "Authorization",
476 "value": "Basic QUFJOkFBSQ=="
479 "key": "X-FromAppId",
484 "value": "application/json"
487 "key": "X-TransactionId",
488 "value": "get_aai_subscr"
491 "key": "Content-Type",
492 "value": "application/json"
500 "raw": "{{url-aai}}/aai/v16/network/generic-vnfs",
515 "name": "Delete service Instance via ServiceOrder API",
520 "id": "764a92a8-efb5-48f8-999a-2cf34d9364b2",
522 "pm.test(\"Status code is 201\", function () {",
523 " pm.response.to.have.status(201);",
526 "var jsonData = pm.response.json();",
527 "pm.globals.set(\"auto_service_order_id\", jsonData.id);",
533 "type": "text/javascript"
542 "value": "application/json"
545 "key": "Content-Type",
546 "value": "application/json"
551 "raw": "{\n \"externalId\": \"{{externalId}}\",\n \"priority\": \"1\",\n \"description\": \"{{service}} ordering on generic customer via Postman\",\n \"category\": \"Consumer\",\n \"requestedStartDate\": \"2018-04-26T08:33:37.299Z\",\n \"requestedCompletionDate\": \"2018-04-26T08:33:37.299Z\",\n \"relatedParty\": [\n {\n \"id\": \"{{customer_name}}\",\n \"role\": \"ONAPcustomer\",\n \"name\": \"{{customer_name}}\"\n }\n ],\n \"orderItem\": [\n {\n \"id\": \"1\",\n \"action\": \"delete\",\n \"service\": {\n \"id\": \"{{auto_service_instance_id}}\",\n \"serviceState\": \"active\",\n \"serviceSpecification\": {\n \"id\": \"{{auto_service_id}}\"\n }\n }\n }\n ]\n}"
554 "raw": "{{url-nbi}}/nbi/api/v4/serviceOrder",
569 "name": "GET previous serviceOrder after 10s",
574 "id": "de2c349d-b58d-42ae-8454-3afc1084cef1",
576 "pm.test(\"Status code is 200\", function () {",
577 " pm.response.to.have.status(200);",
580 "var jsonData = pm.response.json();",
582 "tests[pm.globals.get(\"externalId\")+\" exists\"] = jsonData.externalId === pm.globals.get(\"externalId\");",
583 "tests[\"service_order_id exists\"] = jsonData.id === pm.globals.get(\"auto_service_order_id\");",
584 "tests[\"service Order state is : \"+jsonData.state] = jsonData.state === \"completed\";",
585 "tests[\"Service Instance state is : \"+jsonData.orderItem[0].service.serviceState] = jsonData.orderItem[0].service.serviceState === \"active\";",
588 "if(jsonData.state == \"completed\"){",
589 " pm.globals.set(\"auto_service_instance_id\", \"\"+jsonData.orderItem[0].service.id+\"\");",
591 "if (jsonData.orderMessage !== null){",
592 " tests[\"order message is : \" +jsonData.orderMessage[0].messageInformation] = jsonData.orderMessage[0].messageInformation === \"\";",
593 " pm.globals.set(\"auto_service_messageInformation\", \"\"+jsonData.orderMessage[0].messageInformation+\"\");",
598 "type": "text/javascript"
602 "listen": "prerequest",
604 "id": "b9cdde4f-bf25-4922-a8c0-b378bb0b9535",
606 " var date = new Date();",
607 " var curDate = null;",
609 " curDate = new Date();",
611 " while (curDate - date < 10000);"
613 "type": "text/javascript"
622 "value": "application/json"
625 "key": "Content-Type",
626 "value": "application/json"
634 "raw": "{{url-nbi}}/nbi/api/v4/serviceOrder/{{auto_service_order_id}}",
643 "{{auto_service_order_id}}"
650 "name": "GET all service instance via ServiceInventory API",
655 "id": "c7353dda-5afc-4c1c-a9d2-06036a9c984c",
657 "var jsonData = pm.response.json();",
659 "var service_instance_found = false;",
661 "if (pm.response.code === 200){",
662 "for (var i = 0; i < jsonData.length; i++) { ",
663 " if (jsonData[i].name === pm.globals.get(\"service_instance_name\")) {",
664 " service_instance_found = true;",
668 "tests[pm.globals.get(\"service_instance_name\")+\" no longer in list\"] = service_instance_found === false;"
670 "type": "text/javascript"
682 "raw": "{{url-nbi}}/nbi/api/v4/service?relatedParty.id={{customer_name}}",
694 "key": "relatedParty.id",
695 "value": "{{customer_name}}"
703 "name": "DELETE Virtual Link",
709 "value": "application/json"
712 "key": "Content-Type",
713 "value": "application/json"
716 "key": "X-FromAppId",
720 "key": "X-TransactionId",
721 "value": "get_aai_subscr"
724 "key": "Authorization",
725 "value": "Basic QUFJOkFBSQ=="
733 "raw": "{{url-aai}}/aai/v16/network/l3-networks/l3-network/{{auto_virtual_link_instance_id}}?resource-version=1564496333018",
743 "{{auto_virtual_link_instance_id}}"
747 "key": "resource-version",
748 "value": "1564496333018"