4 "name": "02_Onboard_VSP_part1",
5 "_postman_id": "8c958074-e35a-6ae9-4ce4-2133b11d72b0",
7 "schema": "https://schema.getpostman.com/json/collection/v2.0.0/collection.json"
11 "name": "check VSP exists",
16 "type": "text/javascript",
18 "tests[\"Status code is 200\"] = responseCode.code === 200;",
20 "var jsonData = JSON.parse(responseBody);",
21 "var vsp_found = false;",
22 "for (var i = 0; i < jsonData['results'].length; i++) { ",
23 " if (jsonData['results'][i].name === postman.getGlobalVariable(\"vsp_name\")) {",
28 "if (vsp_found === false) {",
29 " tests[postman.getGlobalVariable(\"vsp_name\")+\" does not exists, we continue\"] = true;",
33 " tests[postman.getGlobalVariable(\"vsp_name\")+\" already exists, we stop the run\"] = true;",
34 " postman.setNextRequest(null);",
41 "url": "{{url-sdc2}}/sdc1/feProxy/onboarding-api/v1.0/vendor-software-products",
45 "key": "Content-Type",
46 "value": "application/json",
51 "value": "application/json",
55 "key": "X-TransactionId",
56 "value": "robot-ete-ba84612d-c1c6-4c53-9967-7b1dff276c7a",
72 "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\"}"
79 "name": "Get Vendor infos",
84 "type": "text/javascript",
86 "tests[\"Status code is 200\"] = responseCode.code === 200;",
88 "var jsonData = JSON.parse(responseBody);",
89 "var vendor_found = false;",
90 "for (var i = 0; i < jsonData.results.length; i++) { ",
91 " if (jsonData.results[i][\"name\"] === postman.getGlobalVariable(\"vendor_name\")) {",
92 " vendor_found = true;",
93 " postman.setGlobalVariable(\"auto_vendor_id\", \"\"+jsonData.results[i][\"id\"]+\"\");",
96 "if (vendor_found === false) {",
97 " tests[postman.getGlobalVariable(\"vendor_name\")+\" does not exists : we stop the run\"] = false;",
98 " postman.setNextRequest(null);",
102 " tests[postman.getGlobalVariable(\"vendor_name\")+\" exists\"] = true;",
112 "url": "{{url-sdc2}}/sdc1/feProxy/onboarding-api/v1.0/vendor-license-models",
116 "key": "Content-Type",
117 "value": "application/json",
122 "value": "application/json",
126 "key": "X-TransactionId",
127 "value": "robot-ete-ba84612d-c1c6-4c53-9967-7b1dff276c7a",
136 "key": "X-FromAppId",
137 "value": "robot-ete",
143 "raw": "{\"iconRef\": \"icon\", \"vendorName\": \"test-api-license-model\", \"description\": \"vendor license model\"}"
150 "name": "Create VSP",
155 "type": "text/javascript",
157 "tests[\"Status code is 200\"] = responseCode.code === 200;",
159 "var jsonData = JSON.parse(responseBody);",
160 "postman.setGlobalVariable(\"auto_vsp_id\", \"\"+jsonData[\"itemId\"]+\"\");",
161 "postman.setGlobalVariable(\"auto_vsp_version_id\", \"\"+jsonData[\"version\"][\"id\"]+\"\");",
162 "postman.setGlobalVariable(\"auto_vsp_version_name\", \"\"+jsonData[\"version\"][\"name\"]+\"\");",
164 "tests[\"Vendor version is in Draft status\"] = jsonData[\"version\"][\"status\"] === \"Draft\";"
170 "url": "{{url-sdc2}}/sdc1/feProxy/onboarding-api/v1.0/vendor-software-products",
174 "key": "Content-Type",
175 "value": "application/json",
180 "value": "application/json",
184 "key": "X-TransactionId",
185 "value": "robot-ete-ba84612d-c1c6-4c53-9967-7b1dff276c7a",
194 "key": "X-FromAppId",
195 "value": "robot-ete",
201 "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}"
207 "id": "ca88aaf4-ec1b-4d75-8834-85c628a10c50",
208 "name": "Create Vendor Software Product",
220 "_postman_previewlanguage": "json",
221 "_postman_previewtype": "text",
224 "name": "access-control-allow-credentials",
225 "key": "access-control-allow-credentials",
227 "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."
230 "name": "access-control-allow-origin",
231 "key": "access-control-allow-origin",
232 "value": "chrome-extension://fhbjgbiflinjbdggehcddcbncdddomop",
233 "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."
236 "name": "access-control-expose-headers",
237 "key": "access-control-expose-headers",
239 "description": "Lets a server whitelist headers that browsers are allowed to access."
242 "name": "content-type",
243 "key": "content-type",
244 "value": "application/json",
245 "description": "The mime type of this content"
250 "value": "Wed, 06 Jun 2018 15:02:46 GMT",
251 "description": "The date and time that the message was sent"
256 "value": "Jetty(9.3.21.v20170918)",
257 "description": "A name for the server"
260 "name": "transfer-encoding",
261 "key": "transfer-encoding",
263 "description": "The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."
268 "body": "{\"vspId\":\"b3267b0aefbd4e2ea52be0e414139b1c\"}"
273 "name": "Get VSP versions",
278 "type": "text/javascript",
280 "tests[\"Status code is 200\"] = responseCode.code === 200;"
286 "url": "{{url-sdc2}}/sdc1/feProxy/onboarding-api/v1.0/items/{{auto_vsp_id}}/versions",
290 "key": "Content-Type",
291 "value": "application/json",
296 "value": "application/json",
300 "key": "X-TransactionId",
301 "value": "robot-ete-ba84612d-c1c6-4c53-9967-7b1dff276c7a",
310 "key": "X-FromAppId",
311 "value": "robot-ete",
317 "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\"}"
324 "name": "Get VSP status",
329 "type": "text/javascript",
331 "tests[\"Status code is 200\"] = responseCode.code === 200;"
337 "url": "{{url-sdc2}}/sdc1/feProxy/onboarding-api/v1.0/items/{{auto_vsp_id}}/versions/{{auto_vsp_version_id}}",
341 "key": "Content-Type",
342 "value": "application/json",
347 "value": "application/json",
351 "key": "X-TransactionId",
352 "value": "robot-ete-ba84612d-c1c6-4c53-9967-7b1dff276c7a",
361 "key": "X-FromAppId",
362 "value": "robot-ete",
368 "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\"}"