From 0706330e865c628cb379364b054868887282f0a7 Mon Sep 17 00:00:00 2001 From: omhanin Date: Mon, 9 Jul 2018 15:39:34 +0200 Subject: [PATCH] Preliminary TESTS v2.postman_collection --- ...eliminary TESTS v2.postman_collection.json | 990 ++++++++++++++++++ 1 file changed, 990 insertions(+) create mode 100644 collections/nfv-plu-3/SOL005 - NSD Management Interface - GL Preliminary TESTS v2.postman_collection.json diff --git a/collections/nfv-plu-3/SOL005 - NSD Management Interface - GL Preliminary TESTS v2.postman_collection.json b/collections/nfv-plu-3/SOL005 - NSD Management Interface - GL Preliminary TESTS v2.postman_collection.json new file mode 100644 index 0000000..eaa7113 --- /dev/null +++ b/collections/nfv-plu-3/SOL005 - NSD Management Interface - GL Preliminary TESTS v2.postman_collection.json @@ -0,0 +1,990 @@ +{ + "info": { + "_postman_id": "db191add-50b2-40ea-be8f-29e272d0a3b2", + "name": "SOL005 - NSD Management Interface - GL Preliminary TESTS v2", + "description": "DRAFT - SOL005 - NSD Management Interface IMPORTANT: Please note that this file might be not aligned to the current version of the ETSI Group Specification it refers to and has not been approved by the ETSI NFV ISG. In case of discrepancies the published ETSI Group Specification takes precedence. Please report bugs to https://forge.etsi.org/bugzilla/buglist.cgi?component=Nfv-Openapis\n", + "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" + }, + "item": [ + { + "name": "ns_descriptors", + "description": "Folder for ns_descriptors", + "item": [ + { + "name": "get token", + "event": [ + { + "listen": "test", + "script": { + "id": "1247d92e-729d-4c0f-8e30-099dd6c339f5", + "type": "text/javascript", + "exec": [ + "tests[\"Status code is 201\"] = responseCode.code === 200;", + "//var data = JSON.parse(responseHeaders);", + "var data=postman.getResponseHeader(\"x-subject-token\");", + "postman.setEnvironmentVariable(\"Authorization\", data);", + "//postman.setEnvironmentVariable(\"roaRand\",\"roaRand=\" +data.roaRand);" + ] + } + } + ], + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"username\": \"admin\",\n \"password\": \"admin\",\n \"project\": \"admin\"\n}" + }, + "url": { + "raw": "{{scheme}}://{{host}}{{port}}/{{uri_prefix}}/admin/v1/tokens", + "protocol": "{{scheme}}", + "host": [ + "{{host}}{{port}}" + ], + "path": [ + "{{uri_prefix}}", + "admin", + "v1", + "tokens" + ] + } + }, + "response": [] + }, + { + "name": "Query NSD Info", + "request": { + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + }, + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": {}, + "url": { + "raw": "{{scheme}}://{{host}}{{port}}/{{uri_prefix}}nsd/v1/ns_descriptors", + "protocol": "{{scheme}}", + "host": [ + "{{host}}{{port}}" + ], + "path": [ + "{{uri_prefix}}nsd", + "v1", + "ns_descriptors" + ] + }, + "description": "The GET method queries information about multiple NS descriptor resources. This method shall follow the provisions specified in the Tables 5.4.2.3.2-1 and 5.4.2.3.2-2 of GS NFV-SOL 005 for URI query parameters, request and response data structures, and response codes." + }, + "response": [] + }, + { + "name": "Create NSD Info", + "event": [ + { + "listen": "test", + "script": { + "type": "text/javascript", + "exec": [ + "tests[\"Status code is 201\"] = responseCode.code === 201;", + "//var data = JSON.parse(responseHeaders);", + "var jsonData = JSON.parse(responseBody);", + "//postman.setEnvironmentVariable(\"roaRand\",\"roaRand=\" +data.roaRand);", + "pm.environment.set(\"nsdInfoId\", jsonData.id);" + ] + } + } + ], + "request": { + "method": "POST", + "header": [ + { + "key": "Accept", + "value": "application/json" + }, + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"additionalProp1\": {\"number\": \"1\"}\n}" + }, + "url": { + "raw": "{{scheme}}://{{host}}{{port}}/{{uri_prefix}}nsd/v1/ns_descriptors", + "protocol": "{{scheme}}", + "host": [ + "{{host}}{{port}}" + ], + "path": [ + "{{uri_prefix}}nsd", + "v1", + "ns_descriptors" + ] + }, + "description": "The POST method is used to create a new NS descriptor resource. This method shall follow the provisions specified in the Tables 5.4.2.3.1-1 and 5.4.2.3.1-2 of GS NFV-SOL 005 for URI query parameters, request and response data structures, and response codes." + }, + "response": [] + }, + { + "name": "Query NSD Info_mine", + "request": { + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + }, + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": {}, + "url": { + "raw": "{{scheme}}://{{host}}{{port}}/{{uri_prefix}}nsd/v1/ns_descriptors/{{nsdInfoId}}", + "protocol": "{{scheme}}", + "host": [ + "{{host}}{{port}}" + ], + "path": [ + "{{uri_prefix}}nsd", + "v1", + "ns_descriptors", + "{{nsdInfoId}}" + ] + }, + "description": "The GET method reads information about an individual NS descriptor. This method shall follow the provisions specified in GS NFV-SOL 005 Tables 5.4.3.3.2-1 and 5.4.3.3.2-2 of GS NFV-SOL 005 for URI query parameters, request and response data structures, and response codes." + }, + "response": [] + }, + { + "name": "Upload NSD", + "request": { + "method": "PUT", + "header": [ + { + "key": "Accept", + "value": "application/json" + }, + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"nsd:nsd-catalog\": {\n \"nsd\": [\n {\n \"id\": \"ubuntu_nsd_test\",\n \"name\": \"ubuntu_nsd_test\",\n \"short-name\": \"ubuntu_nsd_test\",\n \"constituent-vnfd\": [\n {\n \"member-vnf-index\": \"1\",\n \"start-by-default\": \"true\",\n \"vnfd-id-ref\": \"ubuntuvnf_vnfd\"\n }\n ],\n \"vendor\": \"Whitestack\",\n \"vld\": [\n {\n \"id\": \"mgmt\",\n \"mgmt-network\": \"true\",\n \"name\": \"mgmt_demo\",\n \"type\": \"ELAN\",\n \"vim-network-name\": \"mgmt_demo\",\n \"vnfd-connection-point-ref\": [\n {\n \"member-vnf-index-ref\": \"1\",\n \"vnfd-connection-point-ref\": \"eth0\",\n \"vnfd-id-ref\": \"ubuntuvnf_vnfd\"\n }\n ]\n }\n ]\n }\n ]\n }\n}" + }, + "url": { + "raw": "{{scheme}}://{{host}}{{port}}/{{uri_prefix}}nsd/v1/ns_descriptors/{{nsdInfoId}}/nsd_content", + "protocol": "{{scheme}}", + "host": [ + "{{host}}{{port}}" + ], + "path": [ + "{{uri_prefix}}nsd", + "v1", + "ns_descriptors", + "{{nsdInfoId}}", + "nsd_content" + ] + }, + "description": "The PUT method is used to upload the content of a NSD. The NSD to be uploaded can be implemented as a single file or as a collection of multiple files, as defined in clause 5.4.4.3.2 of GS NFV-SOL 005. If the NSD is implemented in the form of multiple files, a ZIP file embedding these files shall be uploaded. If the NSD is implemented as a single file, either that file or a ZIP file embedding that file shall be uploaded. The \"Content-Type\" HTTP header in the PUT request shall be set accordingly based on the format selection of the NSD. If the NSD to be uploaded is a text file, the \"Content-Type\" header is set to \"text/plain\". If the NSD to be uploaded is a zip file, the \"Content-Type\" header is set to \"application/zip\". This method shall follow the provisions specified in the Tables 5.4.4.3.3-1 and 5.4.4.3.3-2 of GS-NFV-SOL 005 for URI query parameters, request and response data structures, and response codes." + }, + "response": [] + }, + { + "name": "Upload NSD_2", + "request": { + "method": "PUT", + "header": [ + { + "key": "Accept", + "value": "application/json" + }, + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"nsd:nsd-catalog\": {\n \"nsd\": [\n {\n \"id\": \"ubuntu_nsd_test\",\n \"name\": \"ubuntu_nsd_test\",\n \"short-name\": \"ubuntu_nsd_test\",\n \"constituent-vnfd\": [\n {\n \"member-vnf-index\": \"1\",\n \"start-by-default\": \"true\",\n \"vnfd-id-ref\": \"ubuntuvnf_vnfd\"\n }\n ],\n \"vendor\": \"Whitestack\",\n \"vld\": [\n {\n \"id\": \"mgmt\",\n \"mgmt-network\": \"true\",\n \"name\": \"mgmt_demo\",\n \"type\": \"ELAN\",\n \"vim-network-name\": \"mgmt_demo\",\n \"vnfd-connection-point-ref\": [\n {\n \"member-vnf-index-ref\": \"1\",\n \"vnfd-connection-point-ref\": \"eth0\",\n \"vnfd-id-ref\": \"ubuntuvnf_vnfd\"\n }\n ]\n }\n ]\n }\n ]\n }\n}" + }, + "url": { + "raw": "{{scheme}}://{{host}}{{port}}/{{uri_prefix}}nsd/v1/ns_descriptors/{{nsdInfoId}}/nsd_content", + "protocol": "{{scheme}}", + "host": [ + "{{host}}{{port}}" + ], + "path": [ + "{{uri_prefix}}nsd", + "v1", + "ns_descriptors", + "{{nsdInfoId}}", + "nsd_content" + ] + }, + "description": "The PUT method is used to upload the content of a NSD. The NSD to be uploaded can be implemented as a single file or as a collection of multiple files, as defined in clause 5.4.4.3.2 of GS NFV-SOL 005. If the NSD is implemented in the form of multiple files, a ZIP file embedding these files shall be uploaded. If the NSD is implemented as a single file, either that file or a ZIP file embedding that file shall be uploaded. The \"Content-Type\" HTTP header in the PUT request shall be set accordingly based on the format selection of the NSD. If the NSD to be uploaded is a text file, the \"Content-Type\" header is set to \"text/plain\". If the NSD to be uploaded is a zip file, the \"Content-Type\" header is set to \"application/zip\". This method shall follow the provisions specified in the Tables 5.4.4.3.3-1 and 5.4.4.3.3-2 of GS-NFV-SOL 005 for URI query parameters, request and response data structures, and response codes." + }, + "response": [] + }, + { + "name": "Update NSD Info", + "request": { + "method": "PATCH", + "header": [ + { + "key": "Accept", + "value": "application/json" + }, + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"nsd:nsd-catalog\": {\n \"nsd\": [\n {\n \"id\": \"ubuntu_nsd_test\",\n \"name\": \"ubuntu_nsd_test\",\n \"short-name\": \"ubuntu_nsd_test\",\n \"constituent-vnfd\": [\n {\n \"member-vnf-index\": \"1\",\n \"start-by-default\": \"true\",\n \"vnfd-id-ref\": \"ubuntuvnf_vnfd\"\n }\n ],\n \"vendor\": \"Whitestack111\",\n \"vld\": [\n {\n \"id\": \"mgmt\",\n \"mgmt-network\": \"true\",\n \"name\": \"mgmt_demo\",\n \"type\": \"ELAN\",\n \"vim-network-name\": \"mgmt_demo\",\n \"vnfd-connection-point-ref\": [\n {\n \"member-vnf-index-ref\": \"1\",\n \"vnfd-connection-point-ref\": \"eth0\",\n \"vnfd-id-ref\": \"ubuntuvnf_vnfd\"\n }\n ]\n }\n ]\n }\n ]\n }\n}" + }, + "url": { + "raw": "{{scheme}}://{{host}}{{port}}/{{uri_prefix}}nsd/v1/ns_descriptors/{{nsdInfoId}}", + "protocol": "{{scheme}}", + "host": [ + "{{host}}{{port}}" + ], + "path": [ + "{{uri_prefix}}nsd", + "v1", + "ns_descriptors", + "{{nsdInfoId}}" + ] + }, + "description": "The PATCH method modifies the operational state and/or user defined data of an individual NS descriptor resource. This method can be used to:\n1) Enable a previously disabled individual NS descriptor resource, allowing again its use for instantiation of new\nnetwork service with this descriptor. The usage state (i.e. \"IN_USE/NOT_IN_USE\") shall not change as a\nresult.\n2) Disable a previously enabled individual NS descriptor resource, preventing any further use for instantiation of\nnew network service(s) with this descriptor. The usage state (i.e. \"IN_USE/NOT_IN_USE\") shall not change\nas a result.\n3) Modify the user defined data of an individual NS descriptor resource.\nThis method shall follow the provisions specified in the Tables 5.4.3.3.4-1 and 5.4.3.3.4-2 for URI query parameters,\nrequest and response data structures, and response codes." + }, + "response": [] + }, + { + "name": "Get NSD Content", + "request": { + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "text/plain" + }, + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "{{Accept}}" + }, + { + "key": "Range", + "value": "{{Range}}" + } + ], + "body": {}, + "url": { + "raw": "{{scheme}}://{{host}}{{port}}/{{uri_prefix}}nsd/v1/ns_descriptors/{{nsdInfoId}}/nsd_content", + "protocol": "{{scheme}}", + "host": [ + "{{host}}{{port}}" + ], + "path": [ + "{{uri_prefix}}nsd", + "v1", + "ns_descriptors", + "{{nsdInfoId}}", + "nsd_content" + ] + }, + "description": "The GET method fetches the content of the NSD.\n\nThe NSD can be implemented as a single file or as a collection of multiple files. If the NSD is implemented in the form of multiple files, a ZIP file embedding these files shall be returned. If the NSD is implemented as a single file, either that file or a ZIP file embedding that file shall be returned.\n\nThe selection of the format is controlled by the \"Accept\" HTTP header passed in the GET request:\n\n• If the \"Accept\" header contains only \"text/plain\" and the NSD is implemented as a single file, the file shall be returned; otherwise, an error message shall be returned.\n\n• If the \"Accept\" header contains only \"application/zip\", the single file or the multiple files that make up the NSD shall be returned embedded in a ZIP file.\n\n• If the \"Accept\" header contains both \"text/plain\" and \"application/zip\", it is up to the NFVO to choose the format to return for a single-file NSD; for a multi-file NSD, a ZIP file shall be returned.\n\nNOTE: The structure of the NSD zip file is outside the scope of the present document." + }, + "response": [] + }, + { + "name": "Delete NSD", + "request": { + "method": "DELETE", + "header": [ + { + "key": "Accept", + "value": "application/json" + }, + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": {}, + "url": { + "raw": "{{scheme}}://{{host}}{{port}}/{{uri_prefix}}nsd/v1/ns_descriptors/{{nsdInfoId}}", + "protocol": "{{scheme}}", + "host": [ + "{{host}}{{port}}" + ], + "path": [ + "{{uri_prefix}}nsd", + "v1", + "ns_descriptors", + "{{nsdInfoId}}" + ] + }, + "description": "The DELETE method deletes an individual NS descriptor resource. An individual NS descriptor resource can only be deleted when there is no NS instance using it (i.e. usageState = NOT_IN_USE) and has been disabled already (i.e. operationalState = DISABLED). Otherwise, the DELETE method shall fail. This method shall follow the provisions specified in the Tables 5.4.3.3.5-1 and 5.4.3.3.5-2 of GS NFV-SOL 005 for URI query parameters, request and response data structures, and response codes." + }, + "response": [] + } + ] + }, + { + "name": "ns_instances", + "description": "Folder for ns_instances", + "item": [ + { + "name": "Query NS Info", + "request": { + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + }, + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": {}, + "url": { + "raw": "{{scheme}}://{{host}}{{port}}/{{uri_prefix}}nslcm/v1/ns_instances", + "protocol": "{{scheme}}", + "host": [ + "{{host}}{{port}}" + ], + "path": [ + "{{uri_prefix}}nslcm", + "v1", + "ns_instances" + ] + }, + "description": "The GET method queries information about multiple NS descriptor resources. This method shall follow the provisions specified in the Tables 5.4.2.3.2-1 and 5.4.2.3.2-2 of GS NFV-SOL 005 for URI query parameters, request and response data structures, and response codes." + }, + "response": [] + }, + { + "name": "Create NS Info", + "event": [ + { + "listen": "test", + "script": { + "type": "text/javascript", + "exec": [ + "tests[\"Status code is 201\"] = responseCode.code === 201;", + "//var data = JSON.parse(responseHeaders);", + "var jsonData = JSON.parse(responseBody);", + "//postman.setEnvironmentVariable(\"roaRand\",\"roaRand=\" +data.roaRand);", + "pm.environment.set(\"nsInstanceId\", jsonData.id);" + ] + } + } + ], + "request": { + "method": "POST", + "header": [ + { + "key": "Accept", + "value": "application/json" + }, + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"nsdId\": \"fb2b0ca5-3df9-4919-9ec9-65d2b942896f\",\n \"nsName\": \"ns_test\",\n \"nsDescription\": \"description sample\",\n \"vimAccountId\": \"dcbf6abc-ec10-481b-ac8f-1948d3765585\"\n}" + }, + "url": { + "raw": "{{scheme}}://{{host}}{{port}}/{{uri_prefix}}nslcm/v1/ns_instances", + "protocol": "{{scheme}}", + "host": [ + "{{host}}{{port}}" + ], + "path": [ + "{{uri_prefix}}nslcm", + "v1", + "ns_instances" + ] + }, + "description": "The POST method is used to create a new NS descriptor resource. This method shall follow the provisions specified in the Tables 5.4.2.3.1-1 and 5.4.2.3.1-2 of GS NFV-SOL 005 for URI query parameters, request and response data structures, and response codes." + }, + "response": [] + }, + { + "name": "Query NS Info_mine", + "request": { + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + }, + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": {}, + "url": { + "raw": "{{scheme}}://{{host}}{{port}}/{{uri_prefix}}nslcm/v1/ns_instances/{{nsInstanceId}}", + "protocol": "{{scheme}}", + "host": [ + "{{host}}{{port}}" + ], + "path": [ + "{{uri_prefix}}nslcm", + "v1", + "ns_instances", + "{{nsInstanceId}}" + ] + }, + "description": "The GET method reads information about an individual NS descriptor. This method shall follow the provisions specified in GS NFV-SOL 005 Tables 5.4.3.3.2-1 and 5.4.3.3.2-2 of GS NFV-SOL 005 for URI query parameters, request and response data structures, and response codes." + }, + "response": [] + }, + { + "name": "NS Instantiate", + "request": { + "method": "POST", + "header": [ + { + "key": "Accept", + "value": "application/json" + }, + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "{{Accept}}" + }, + { + "key": "Range", + "value": "{{Range}}" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"nsFlavourId\": \"\"\n}" + }, + "url": { + "raw": "{{scheme}}://{{host}}{{port}}/{{uri_prefix}}nslcm/v1/ns_instances/{{nsInstanceId}}/instantiate", + "protocol": "{{scheme}}", + "host": [ + "{{host}}{{port}}" + ], + "path": [ + "{{uri_prefix}}nslcm", + "v1", + "ns_instances", + "{{nsInstanceId}}", + "instantiate" + ] + } + }, + "response": [] + }, + { + "name": "NS Terminate", + "request": { + "method": "POST", + "header": [ + { + "key": "Accept", + "value": "application/json" + }, + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "{{Accept}}" + }, + { + "key": "Range", + "value": "{{Range}}" + } + ], + "body": {}, + "url": { + "raw": "{{scheme}}://{{host}}{{port}}/{{uri_prefix}}nslcm/v1/ns_instances/{{nsInstanceId}}/terminate", + "protocol": "{{scheme}}", + "host": [ + "{{host}}{{port}}" + ], + "path": [ + "{{uri_prefix}}nslcm", + "v1", + "ns_instances", + "{{nsInstanceId}}", + "terminate" + ] + } + }, + "response": [] + }, + { + "name": "Delete NS", + "request": { + "method": "DELETE", + "header": [ + { + "key": "Accept", + "value": "application/json" + }, + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": {}, + "url": { + "raw": "{{scheme}}://{{host}}{{port}}/{{uri_prefix}}nslcm/v1/ns_instances/{{nsInstanceId}}", + "protocol": "{{scheme}}", + "host": [ + "{{host}}{{port}}" + ], + "path": [ + "{{uri_prefix}}nslcm", + "v1", + "ns_instances", + "{{nsInstanceId}}" + ] + }, + "description": "The DELETE method deletes an individual NS descriptor resource. An individual NS descriptor resource can only be deleted when there is no NS instance using it (i.e. usageState = NOT_IN_USE) and has been disabled already (i.e. operationalState = DISABLED). Otherwise, the DELETE method shall fail. This method shall follow the provisions specified in the Tables 5.4.3.3.5-1 and 5.4.3.3.5-2 of GS NFV-SOL 005 for URI query parameters, request and response data structures, and response codes." + }, + "response": [] + }, + { + "name": "NS Scale", + "request": { + "method": "POST", + "header": [ + { + "key": "Accept", + "value": "application/json" + }, + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "{{Accept}}" + }, + { + "key": "Range", + "value": "{{Range}}" + } + ], + "body": {}, + "url": { + "raw": "{{scheme}}://{{host}}{{port}}/{{uri_prefix}}nslcm/v1/ns_instances/{{nsInstanceId}}/scale", + "protocol": "{{scheme}}", + "host": [ + "{{host}}{{port}}" + ], + "path": [ + "{{uri_prefix}}nslcm", + "v1", + "ns_instances", + "{{nsInstanceId}}", + "scale" + ] + } + }, + "response": [] + }, + { + "name": "NS Update", + "request": { + "method": "POST", + "header": [ + { + "key": "Accept", + "value": "application/json" + }, + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "{{Accept}}" + }, + { + "key": "Range", + "value": "{{Range}}" + } + ], + "body": {}, + "url": { + "raw": "{{scheme}}://{{host}}{{port}}/{{uri_prefix}}nslcm/v1/ns_instances/{{nsInstanceId}}/update", + "protocol": "{{scheme}}", + "host": [ + "{{host}}{{port}}" + ], + "path": [ + "{{uri_prefix}}nslcm", + "v1", + "ns_instances", + "{{nsInstanceId}}", + "update" + ] + } + }, + "response": [] + }, + { + "name": "NS Heal", + "request": { + "method": "POST", + "header": [ + { + "key": "Accept", + "value": "application/json" + }, + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "{{Accept}}" + }, + { + "key": "Range", + "value": "{{Range}}" + } + ], + "body": {}, + "url": { + "raw": "{{scheme}}://{{host}}{{port}}/{{uri_prefix}}nslcm/v1/ns_instances/{{nsInstanceId}}/heal", + "protocol": "{{scheme}}", + "host": [ + "{{host}}{{port}}" + ], + "path": [ + "{{uri_prefix}}nslcm", + "v1", + "ns_instances", + "{{nsInstanceId}}", + "heal" + ] + } + }, + "response": [] + } + ] + }, + { + "name": "vnfpkg", + "description": "", + "item": [ + { + "name": "Query VNFPKG Info", + "request": { + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + }, + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": {}, + "url": { + "raw": "{{scheme}}://{{host}}{{port}}/{{uri_prefix}}vnfpkgm/v1/vnf_packages", + "protocol": "{{scheme}}", + "host": [ + "{{host}}{{port}}" + ], + "path": [ + "{{uri_prefix}}vnfpkgm", + "v1", + "vnf_packages" + ] + } + }, + "response": [] + }, + { + "name": "Create VNFPKG Info", + "event": [ + { + "listen": "test", + "script": { + "type": "text/javascript", + "exec": [ + "tests[\"Status code is 201\"] = responseCode.code === 201;", + "//var data = JSON.parse(responseHeaders);", + "var jsonData = JSON.parse(responseBody);", + "//postman.setEnvironmentVariable(\"roaRand\",\"roaRand=\" +data.roaRand);", + "pm.environment.set(\"vnfdId\", jsonData.id);" + ] + } + } + ], + "request": { + "method": "POST", + "header": [ + { + "key": "Accept", + "value": "application/json" + }, + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"additionalProp1\": {\"number\": \"1\"}\n}" + }, + "url": { + "raw": "{{scheme}}://{{host}}{{port}}/{{uri_prefix}}vnfpkgm/v1/vnf_packages", + "protocol": "{{scheme}}", + "host": [ + "{{host}}{{port}}" + ], + "path": [ + "{{uri_prefix}}vnfpkgm", + "v1", + "vnf_packages" + ] + } + }, + "response": [] + }, + { + "name": "Query VNFPKG Info_mine", + "request": { + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + }, + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": {}, + "url": { + "raw": "{{scheme}}://{{host}}{{port}}/{{uri_prefix}}vnfpkgm/v1/vnf_packages/{{vnfdId}}", + "protocol": "{{scheme}}", + "host": [ + "{{host}}{{port}}" + ], + "path": [ + "{{uri_prefix}}vnfpkgm", + "v1", + "vnf_packages", + "{{vnfdId}}" + ] + } + }, + "response": [] + }, + { + "name": "Upload VNFPKG", + "request": { + "method": "PUT", + "header": [ + { + "key": "Accept", + "value": "application/json" + }, + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"vnfd:vnfd-catalog\": {\n \"vnfd\": [\n {\n \"id\": \"ubuntuvnf_vnfd_test\",\n \"connection-point\": [\n {\n \"name\": \"eth0\",\n \"type\": \"VPORT\"\n }\n ],\n \"mgmt-interface\": {\n \"cp\": \"eth0\"\n },\n \"name\": \"ubuntuvnf_vnfd_test\",\n \"service-function-chain\": \"UNAWARE\",\n \"short-name\": \"ubuntuvnf_vnfd_test\",\n \"vdu\": [\n {\n \"cloud-init-file\": \"cloud_init\",\n \"count\": \"1\",\n \"description\": \"ubuntuvnf_vnfd-VM\",\n \"guest-epa\": {\n \"cpu-pinning-policy\": \"ANY\"\n },\n \"id\": \"ubuntuvnf_vnfd-VM\",\n \"image\": \"ubuntu\",\n \"interface\": [\n {\n \"external-connection-point-ref\": \"eth0\",\n \"name\": \"eth0\",\n \"type\": \"EXTERNAL\",\n \"virtual-interface\": {\n \"bandwidth\": \"0\",\n \"type\": \"OM-MGMT\",\n \"vpci\": \"0000:00:0a.0\"\n }\n }\n ],\n \"name\": \"ubuntuvnf_vnfd-VM\",\n \"supplemental-boot-data\": {\n \"boot-data-drive\": \"false\"\n },\n \"vm-flavor\": {\n \"memory-mb\": \"4096\",\n \"storage-gb\": \"10\",\n \"vcpu-count\": \"1\"\n }\n }\n ],\n \"vendor\": \"Whitestack\",\n \"version\": \"1.0\"\n }\n ]\n }\n}" + }, + "url": { + "raw": "{{scheme}}://{{host}}{{port}}/{{uri_prefix}}vnfpkgm/v1/vnf_packages/{{vnfdId}}/package_content", + "protocol": "{{scheme}}", + "host": [ + "{{host}}{{port}}" + ], + "path": [ + "{{uri_prefix}}vnfpkgm", + "v1", + "vnf_packages", + "{{vnfdId}}", + "package_content" + ] + } + }, + "response": [] + }, + { + "name": "Upload VNFPKG_2", + "request": { + "method": "PUT", + "header": [ + { + "key": "Accept", + "value": "application/json" + }, + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"vnfd:vnfd-catalog\": {\n \"vnfd\": [\n {\n \"id\": \"ubuntuvnf_vnfd_test\",\n \"connection-point\": [\n {\n \"name\": \"eth0\",\n \"type\": \"VPORT\"\n }\n ],\n \"mgmt-interface\": {\n \"cp\": \"eth0\"\n },\n \"name\": \"ubuntuvnf_vnfd_test\",\n \"service-function-chain\": \"UNAWARE\",\n \"short-name\": \"ubuntuvnf_vnfd_test\",\n \"vdu\": [\n {\n \"cloud-init-file\": \"cloud_init\",\n \"count\": \"1\",\n \"description\": \"ubuntuvnf_vnfd-VM\",\n \"guest-epa\": {\n \"cpu-pinning-policy\": \"ANY\"\n },\n \"id\": \"ubuntuvnf_vnfd-VM\",\n \"image\": \"ubuntu\",\n \"interface\": [\n {\n \"external-connection-point-ref\": \"eth0\",\n \"name\": \"eth0\",\n \"type\": \"EXTERNAL\",\n \"virtual-interface\": {\n \"bandwidth\": \"0\",\n \"type\": \"OM-MGMT\",\n \"vpci\": \"0000:00:0a.0\"\n }\n }\n ],\n \"name\": \"ubuntuvnf_vnfd-VM\",\n \"supplemental-boot-data\": {\n \"boot-data-drive\": \"false\"\n },\n \"vm-flavor\": {\n \"memory-mb\": \"4096\",\n \"storage-gb\": \"10\",\n \"vcpu-count\": \"1\"\n }\n }\n ],\n \"vendor\": \"Whitestack\",\n \"version\": \"1.0\"\n }\n ]\n }\n}" + }, + "url": { + "raw": "{{scheme}}://{{host}}{{port}}/{{uri_prefix}}vnfpkgm/v1/vnf_packages/{{vnfdId}}/package_content", + "protocol": "{{scheme}}", + "host": [ + "{{host}}{{port}}" + ], + "path": [ + "{{uri_prefix}}vnfpkgm", + "v1", + "vnf_packages", + "{{vnfdId}}", + "package_content" + ] + } + }, + "response": [] + }, + { + "name": "Update VNFPKG Info", + "request": { + "method": "PATCH", + "header": [ + { + "key": "Accept", + "value": "application/json" + }, + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": {}, + "url": { + "raw": "{{scheme}}://{{host}}{{port}}/{{uri_prefix}}vnfpkgm/v1/vnf_packages/{{vnfdId}}", + "protocol": "{{scheme}}", + "host": [ + "{{host}}{{port}}" + ], + "path": [ + "{{uri_prefix}}vnfpkgm", + "v1", + "vnf_packages", + "{{vnfdId}}" + ] + } + }, + "response": [] + }, + { + "name": "Get VNFPKG Content_mine", + "request": { + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "text/plain" + }, + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": {}, + "url": { + "raw": "{{scheme}}://{{host}}{{port}}/{{uri_prefix}}vnfpkgm/v1/vnf_packages/{{vnfdId}}/package_content", + "protocol": "{{scheme}}", + "host": [ + "{{host}}{{port}}" + ], + "path": [ + "{{uri_prefix}}vnfpkgm", + "v1", + "vnf_packages", + "{{vnfdId}}", + "package_content" + ] + } + }, + "response": [] + }, + { + "name": "Delete VNFPKG", + "request": { + "method": "DELETE", + "header": [ + { + "key": "Accept", + "value": "application/json" + }, + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": {}, + "url": { + "raw": "{{scheme}}://{{host}}{{port}}/{{uri_prefix}}vnfpkgm/v1/vnf_packages/{{vnfdId}}", + "protocol": "{{scheme}}", + "host": [ + "{{host}}{{port}}" + ], + "path": [ + "{{uri_prefix}}vnfpkgm", + "v1", + "vnf_packages", + "{{vnfdId}}" + ] + } + }, + "response": [] + } + ] + } + ] +} \ No newline at end of file -- GitLab