3 "_postman_id": "e226e82c-74b6-42bc-a1e9-1168b860a234",
4 "name": "02_Onboard_VSP_part1",
5 "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
9 "name": "check VSP exists",
14 "id": "dc866867-2909-4844-9072-01c9e2e4e856",
16 "pm.test(\"Status code is 200\", function () {",
17 " pm.response.to.have.status(200);",
20 "var jsonData = pm.response.json();",
21 "var vsp_found = false;",
22 "for (var i = 0; i < jsonData.results.length; i++) { ",
23 " if (jsonData.results[i].name === pm.globals.get(\"vsp_name\")) {",
28 "if (vsp_found === false) {",
29 " tests[pm.globals.get(\"vsp_name\")+\" does not yet exist, we continue\"] = true;",
33 " tests[pm.globals.get(\"vsp_name\")+\" already exists, we stop the run\"] = false;",
34 " postman.setNextRequest(null);",
37 "type": "text/javascript"
45 "key": "Content-Type",
46 "value": "application/json"
50 "value": "application/json"
53 "key": "X-TransactionId",
54 "value": "robot-ete-ba84612d-c1c6-4c53-9967-7b1dff276c7a"
70 "raw": "{{url-sdc2}}/sdc1/feProxy/onboarding-api/v1.0/vendor-software-products",
79 "vendor-software-products"
86 "name": "Get Vendor infos",
91 "id": "dbd0ea7f-5f66-4431-8a51-2e5d757647a0",
93 "pm.test(\"Status code is 200\", function () {",
94 " pm.response.to.have.status(200);",
98 "var jsonData = pm.response.json();",
99 "var vendor_found = false;",
100 "for (var i = 0; i < jsonData.results.length; i++) { ",
101 " if (jsonData.results[i].name === pm.globals.get(\"vendor_name\")) {",
102 " vendor_found = true;",
103 " pm.globals.set(\"auto_vendor_id\", \"\"+jsonData.results[i].id+\"\");",
106 "if (vendor_found === false) {",
107 " tests[pm.globals.get(\"vendor_name\")+\" does not exists : we stop the run\"] = false;",
108 " postman.setNextRequest(null);",
112 " tests[pm.globals.get(\"vendor_name\")+\" exists\"] = true;",
118 "type": "text/javascript"
126 "key": "Content-Type",
127 "value": "application/json"
131 "value": "application/json"
134 "key": "X-TransactionId",
135 "value": "robot-ete-ba84612d-c1c6-4c53-9967-7b1dff276c7a"
142 "key": "X-FromAppId",
151 "raw": "{{url-sdc2}}/sdc1/feProxy/onboarding-api/v1.0/vendor-license-models",
160 "vendor-license-models"
167 "name": "Create VSP",
172 "id": "739f040c-f4b1-4790-bfce-4f5dae60b637",
174 "pm.test(\"Status code is 200\", function () {",
175 " pm.response.to.have.status(200);",
178 "var jsonData = pm.response.json();",
179 "pm.globals.set(\"auto_vsp_id\", \"\"+jsonData.itemId+\"\");",
180 "pm.globals.set(\"auto_vsp_version_id\", \"\"+jsonData.version.id+\"\");",
181 "pm.globals.set(\"auto_vsp_version_name\", \"\"+jsonData.version.name+\"\");",
183 "tests[\"VSP version is : \"+jsonData.version.status] = jsonData.version.status === \"Draft\";"
185 "type": "text/javascript"
193 "key": "Content-Type",
194 "value": "application/json"
198 "value": "application/json"
201 "key": "X-TransactionId",
202 "value": "robot-ete-ba84612d-c1c6-4c53-9967-7b1dff276c7a"
209 "key": "X-FromAppId",
215 "raw": "{\r\n \"name\": \"{{vsp_name}}\",\r\n \"description\": \"vendor software product\",\r\n \"icon\": \"icon\",\r\n \"category\": \"resourceNewCategory.generic\",\r\n \"subCategory\": \"resourceNewCategory.generic.abstract\",\r\n \"vendorName\": \"{{vendor_name}}\",\r\n \"vendorId\": \"{{auto_vendor_id}}\",\r\n \"licensingData\": {},\r\n \"onboardingMethod\": \"NetworkPackage\"\r\n}"
218 "raw": "{{url-sdc2}}/sdc1/feProxy/onboarding-api/v1.0/vendor-software-products",
227 "vendor-software-products"
233 "name": "Create Vendor Software Product",
247 "_postman_previewlanguage": "json",
250 "key": "access-control-allow-credentials",
252 "name": "access-control-allow-credentials",
253 "description": "Indicates whether or not the response to the request can be exposed when the credentials flag is true. When used as part of a response to a preflight request, this indicates whether or not the actual request can be made using credentials."
256 "key": "access-control-allow-origin",
257 "value": "chrome-extension://fhbjgbiflinjbdggehcddcbncdddomop",
258 "name": "access-control-allow-origin",
259 "description": "Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."
262 "key": "access-control-expose-headers",
264 "name": "access-control-expose-headers",
265 "description": "Lets a server whitelist headers that browsers are allowed to access."
268 "key": "content-type",
269 "value": "application/json",
270 "name": "content-type",
271 "description": "The mime type of this content"
275 "value": "Wed, 06 Jun 2018 15:02:46 GMT",
277 "description": "The date and time that the message was sent"
281 "value": "Jetty(9.3.21.v20170918)",
283 "description": "A name for the server"
286 "key": "transfer-encoding",
288 "name": "transfer-encoding",
289 "description": "The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."
293 "body": "{\"vspId\":\"b3267b0aefbd4e2ea52be0e414139b1c\"}"
298 "name": "Get VSP versions",
303 "id": "5e55115d-c797-4b34-bfaf-d2af24d62c01",
305 "pm.test(\"Status code is 200\", function () {",
306 " pm.response.to.have.status(200);",
309 "type": "text/javascript"
317 "key": "Content-Type",
318 "value": "application/json"
322 "value": "application/json"
325 "key": "X-TransactionId",
326 "value": "robot-ete-ba84612d-c1c6-4c53-9967-7b1dff276c7a"
333 "key": "X-FromAppId",
342 "raw": "{{url-sdc2}}/sdc1/feProxy/onboarding-api/v1.0/items/{{auto_vsp_id}}/versions",
360 "name": "Get VSP status",
365 "id": "2492d06b-4b31-4d93-aaf2-3417419c6e14",
367 "pm.test(\"Status code is 200\", function () {",
368 " pm.response.to.have.status(200);",
372 "type": "text/javascript"
380 "key": "Content-Type",
381 "value": "application/json"
385 "value": "application/json"
388 "key": "X-TransactionId",
389 "value": "robot-ete-ba84612d-c1c6-4c53-9967-7b1dff276c7a"
396 "key": "X-FromAppId",
405 "raw": "{{url-sdc2}}/sdc1/feProxy/onboarding-api/v1.0/items/{{auto_vsp_id}}/versions/{{auto_vsp_version_id}}",
417 "{{auto_vsp_version_id}}"