19a83a0d34407d5f63c16c1c9300b7810f9109ba
[integration.git] / test / postman / 05_Onboard_VF.postman_collection.json
1 {
2         "variables": [],
3         "info": {
4                 "name": "05_Onboard_VF",
5                 "_postman_id": "3a292462-bd95-304c-041a-62a8bd1538a5",
6                 "description": "",
7                 "schema": "https://schema.getpostman.com/json/collection/v2.0.0/collection.json"
8         },
9         "item": [
10                 {
11                         "name": "check vf exists and get id",
12                         "event": [
13                                 {
14                                         "listen": "test",
15                                         "script": {
16                                                 "type": "text/javascript",
17                                                 "exec": [
18                                                         "var vf_found = false;",
19                                                         "if (responseCode.code === 404) {",
20                                                         "    tests[postman.getGlobalVariable(\"vf_name\")+\" does not exists\"] = true;",
21                                                         "}",
22                                                         "else {",
23                                                         "    if (responseCode.code === 200) {",
24                                                         "        tests[\"Status code is 200\"] = responseCode.code === 200;",
25                                                         "        }",
26                                                         "    var jsonData = JSON.parse(responseBody);",
27                                                         "    for (var i = 0; i < jsonData.length; i++) { ",
28                                                         "       if (jsonData[i][\"name\"] === postman.getGlobalVariable(\"vf_name\")) {",
29                                                         "           vf_found = true;",
30                                                         "           postman.setGlobalVariable(\"auto_vf_uuid\", \"\"+jsonData[i][\"uuid\"]+\"\");",
31                                                         "           postman.setGlobalVariable(\"auto_vf_invariant_uuid\", \"\"+jsonData[i][\"invariantUUID\"]+\"\");",
32                                                         "       }",
33                                                         "    }",
34                                                         "    if (vf_found === false) {",
35                                                         "        tests[postman.getGlobalVariable(\"vf_name\")+\" does not exists, we continue the run\"] = true;",
36                                                         "    }",
37                                                         "    ",
38                                                         "    else {",
39                                                         "        tests[postman.getGlobalVariable(\"vf_name\")+\" already exists, stop the run\"] = true;",
40                                                         "        postman.setNextRequest(null);",
41                                                         "    }",
42                                                         "}"
43                                                 ]
44                                         }
45                                 }
46                         ],
47                         "request": {
48                                 "url": {
49                                         "raw": "{{url-sdc}}/sdc/v1/catalog/resources?resourceType=VF",
50                                         "host": [
51                                                 "{{url-sdc}}"
52                                         ],
53                                         "path": [
54                                                 "sdc",
55                                                 "v1",
56                                                 "catalog",
57                                                 "resources"
58                                         ],
59                                         "query": [
60                                                 {
61                                                         "key": "resourceType",
62                                                         "value": "VF",
63                                                         "equals": true,
64                                                         "description": ""
65                                                 }
66                                         ],
67                                         "variable": []
68                                 },
69                                 "method": "GET",
70                                 "header": [
71                                         {
72                                                 "key": "Content-Type",
73                                                 "value": "application/json",
74                                                 "description": ""
75                                         },
76                                         {
77                                                 "key": "Accept",
78                                                 "value": "application/json",
79                                                 "description": ""
80                                         },
81                                         {
82                                                 "key": "X-TransactionId",
83                                                 "value": "ONAP-Test",
84                                                 "description": ""
85                                         },
86                                         {
87                                                 "key": "USER_ID",
88                                                 "value": "cs0008",
89                                                 "description": ""
90                                         },
91                                         {
92                                                 "key": "X-FromAppId",
93                                                 "value": "ONAP-Test",
94                                                 "description": ""
95                                         },
96                                         {
97                                                 "key": "Authorization",
98                                                 "value": "Basic YWFpOktwOGJKNFNYc3pNMFdYbGhhazNlSGxjc2UyZ0F3ODR2YW9HR21KdlV5MlU=",
99                                                 "description": ""
100                                         },
101                                         {
102                                                 "key": "x-ecomp-instanceid",
103                                                 "value": "ONAP-Test",
104                                                 "description": ""
105                                         }
106                                 ],
107                                 "body": {
108                                         "mode": "raw",
109                                         "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\": []}"
110                                 },
111                                 "description": ""
112                         },
113                         "response": []
114                 },
115                 {
116                         "name": "check VSP exists and get infos",
117                         "event": [
118                                 {
119                                         "listen": "test",
120                                         "script": {
121                                                 "type": "text/javascript",
122                                                 "exec": [
123                                                         "tests[\"Status code is 200\"] = responseCode.code === 200;",
124                                                         "",
125                                                         "var jsonData = JSON.parse(responseBody);",
126                                                         "var vsp_found = false;",
127                                                         "for (var i = 0; i < jsonData.results.length; i++) { ",
128                                                         "   if (jsonData.results[i].name === postman.getGlobalVariable(\"vsp_name\")) {",
129                                                         "       vsp_found = true;",
130                                                         "       postman.setGlobalVariable(\"auto_vsp_id\", \"\"+jsonData.results[i].id+\"\");",
131                                                         "",
132                                                         "   }",
133                                                         "}",
134                                                         "if (vsp_found === false) {",
135                                                         "    tests[postman.getGlobalVariable(\"vsp_name\")+\" does not exists, we stop the run\"] = true;",
136                                                         "    postman.setNextRequest(null);    ",
137                                                         "}",
138                                                         "",
139                                                         "else {",
140                                                         "    tests[postman.getGlobalVariable(\"vsp_name\")+\" exists, we can continue\"] = true;",
141                                                         "}"
142                                                 ]
143                                         }
144                                 }
145                         ],
146                         "request": {
147                                 "url": "{{url-sdc2}}/sdc1/feProxy/onboarding-api/v1.0/vendor-software-products",
148                                 "method": "GET",
149                                 "header": [
150                                         {
151                                                 "key": "Content-Type",
152                                                 "value": "application/json",
153                                                 "description": ""
154                                         },
155                                         {
156                                                 "key": "Accept",
157                                                 "value": "application/json",
158                                                 "description": ""
159                                         },
160                                         {
161                                                 "key": "X-TransactionId",
162                                                 "value": "robot-ete-ba84612d-c1c6-4c53-9967-7b1dff276c7a",
163                                                 "description": ""
164                                         },
165                                         {
166                                                 "key": "USER_ID",
167                                                 "value": "cs0008",
168                                                 "description": ""
169                                         },
170                                         {
171                                                 "key": "X-FromAppId",
172                                                 "value": "robot-ete",
173                                                 "description": ""
174                                         }
175                                 ],
176                                 "body": {
177                                         "mode": "raw",
178                                         "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\"}"
179                                 },
180                                 "description": ""
181                         },
182                         "response": []
183                 },
184                 {
185                         "name": "Get VSP versions",
186                         "event": [
187                                 {
188                                         "listen": "test",
189                                         "script": {
190                                                 "type": "text/javascript",
191                                                 "exec": [
192                                                         "tests[\"Status code is 200\"] = responseCode.code === 200;",
193                                                         "",
194                                                         "var jsonData = JSON.parse(responseBody);",
195                                                         "var vsp_found = false;",
196                                                         "for (var i = 0; i < jsonData.results.length; i++) { ",
197                                                         "   if (jsonData.results[i].name === postman.getGlobalVariable(\"vsp_name\")) {",
198                                                         "       vsp_found = true;",
199                                                         "       postman.setGlobalVariable(\"auto_vsp_version_id\", \"\"+jsonData.results[i].id+\"\");",
200                                                         "       postman.setGlobalVariable(\"auto_vsp_version_name\", \"\"+jsonData.results[i].name+\"\");",
201                                                         "   }",
202                                                         "}"
203                                                 ]
204                                         }
205                                 }
206                         ],
207                         "request": {
208                                 "url": "{{url-sdc2}}/sdc1/feProxy/onboarding-api/v1.0/items/{{auto_vsp_id}}/versions",
209                                 "method": "GET",
210                                 "header": [
211                                         {
212                                                 "key": "Content-Type",
213                                                 "value": "application/json",
214                                                 "description": ""
215                                         },
216                                         {
217                                                 "key": "Accept",
218                                                 "value": "application/json",
219                                                 "description": ""
220                                         },
221                                         {
222                                                 "key": "X-TransactionId",
223                                                 "value": "robot-ete-ba84612d-c1c6-4c53-9967-7b1dff276c7a",
224                                                 "description": ""
225                                         },
226                                         {
227                                                 "key": "USER_ID",
228                                                 "value": "cs0008",
229                                                 "description": ""
230                                         },
231                                         {
232                                                 "key": "X-FromAppId",
233                                                 "value": "robot-ete",
234                                                 "description": ""
235                                         }
236                                 ],
237                                 "body": {
238                                         "mode": "raw",
239                                         "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\"}"
240                                 },
241                                 "description": ""
242                         },
243                         "response": []
244                 },
245                 {
246                         "name": "Get Vendor infos",
247                         "event": [
248                                 {
249                                         "listen": "test",
250                                         "script": {
251                                                 "type": "text/javascript",
252                                                 "exec": [
253                                                         "tests[\"Status code is 200\"] = responseCode.code === 200;",
254                                                         "",
255                                                         "var jsonData = JSON.parse(responseBody);",
256                                                         "var vendor_found = false;",
257                                                         "for (var i = 0; i < jsonData.results.length; i++) { ",
258                                                         "   if (jsonData.results[i][\"name\"] === postman.getGlobalVariable(\"vendor_name\")) {",
259                                                         "       vendor_found = true;",
260                                                         "       postman.setGlobalVariable(\"auto_vendor_id\", \"\"+jsonData.results[i][\"id\"]+\"\");",
261                                                         "   }",
262                                                         "}",
263                                                         "if (vendor_found === false) {",
264                                                         "    tests[postman.getGlobalVariable(\"vendor_name\")+\" does not exists : we stop the run\"] = false;",
265                                                         "    postman.setNextRequest(null);",
266                                                         "}",
267                                                         "",
268                                                         "else {",
269                                                         "    tests[postman.getGlobalVariable(\"vendor_name\")+\" exists\"] = true;",
270                                                         "}",
271                                                         "",
272                                                         "",
273                                                         ""
274                                                 ]
275                                         }
276                                 }
277                         ],
278                         "request": {
279                                 "url": "{{url-sdc2}}/sdc1/feProxy/onboarding-api/v1.0/vendor-license-models",
280                                 "method": "GET",
281                                 "header": [
282                                         {
283                                                 "key": "Content-Type",
284                                                 "value": "application/json",
285                                                 "description": ""
286                                         },
287                                         {
288                                                 "key": "Accept",
289                                                 "value": "application/json",
290                                                 "description": ""
291                                         },
292                                         {
293                                                 "key": "X-TransactionId",
294                                                 "value": "robot-ete-ba84612d-c1c6-4c53-9967-7b1dff276c7a",
295                                                 "description": ""
296                                         },
297                                         {
298                                                 "key": "USER_ID",
299                                                 "value": "cs0008",
300                                                 "description": ""
301                                         },
302                                         {
303                                                 "key": "X-FromAppId",
304                                                 "value": "robot-ete",
305                                                 "description": ""
306                                         }
307                                 ],
308                                 "body": {
309                                         "mode": "raw",
310                                         "raw": "{\"iconRef\": \"icon\", \"vendorName\": \"test-api-license-model\", \"description\": \"vendor license model\"}"
311                                 },
312                                 "description": ""
313                         },
314                         "response": []
315                 },
316                 {
317                         "name": "Create VF resource",
318                         "event": [
319                                 {
320                                         "listen": "test",
321                                         "script": {
322                                                 "type": "text/javascript",
323                                                 "exec": [
324                                                         "tests[\"Status code is 201\"] = responseCode.code === 201;",
325                                                         "",
326                                                         "var jsonData = JSON.parse(responseBody);",
327                                                         "postman.setGlobalVariable(\"auto_vf_invariant_uuid\", \"\"+jsonData[\"invariantUUID\"]+\"\");",
328                                                         "postman.setGlobalVariable(\"auto_vf_uuid\", \"\"+jsonData[\"uuid\"]+\"\");",
329                                                         "postman.setGlobalVariable(\"auto_vf_unique_id\", \"\"+jsonData[\"uniqueId\"]+\"\");",
330                                                         "",
331                                                         "tests[\"VF version is in NOT_CERTIFIED_CHECKOUT status\"] = jsonData[\"lifecycleState\"] === \"NOT_CERTIFIED_CHECKOUT\";"
332                                                 ]
333                                         }
334                                 }
335                         ],
336                         "request": {
337                                 "url": "{{url-sdc2}}/sdc1/feProxy/rest/v1/catalog/resources",
338                                 "method": "POST",
339                                 "header": [
340                                         {
341                                                 "key": "Content-Type",
342                                                 "value": "application/json",
343                                                 "description": ""
344                                         },
345                                         {
346                                                 "key": "Accept",
347                                                 "value": "application/json",
348                                                 "description": ""
349                                         },
350                                         {
351                                                 "key": "X-TransactionId",
352                                                 "value": "ONAP-Test",
353                                                 "description": ""
354                                         },
355                                         {
356                                                 "key": "USER_ID",
357                                                 "value": "cs0008",
358                                                 "description": ""
359                                         },
360                                         {
361                                                 "key": "X-FromAppId",
362                                                 "value": "ONAP-Test",
363                                                 "description": ""
364                                         },
365                                         {
366                                                 "key": "Authorization",
367                                                 "value": "Basic YWFpOktwOGJKNFNYc3pNMFdYbGhhazNlSGxjc2UyZ0F3ODR2YW9HR21KdlV5MlU=",
368                                                 "description": ""
369                                         },
370                                         {
371                                                 "key": "x-ecomp-instanceid",
372                                                 "value": "ONAP-Test",
373                                                 "description": ""
374                                         }
375                                 ],
376                                 "body": {
377                                         "mode": "raw",
378                                         "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}"
379                                 },
380                                 "description": ""
381                         },
382                         "response": []
383                 },
384                 {
385                         "name": "Checkin VF resource",
386                         "event": [
387                                 {
388                                         "listen": "test",
389                                         "script": {
390                                                 "type": "text/javascript",
391                                                 "exec": [
392                                                         "var jsonData = JSON.parse(responseBody);",
393                                                         "",
394                                                         "tests[\"VF version is in NOT_CERTIFIED_CHECKIN status\"] = jsonData[\"lifecycleState\"] === \"NOT_CERTIFIED_CHECKIN\";"
395                                                 ]
396                                         }
397                                 }
398                         ],
399                         "request": {
400                                 "url": "{{url-sdc}}/sdc/v1/catalog/resources/{{auto_vf_uuid}}/lifecycleState/checkin",
401                                 "method": "POST",
402                                 "header": [
403                                         {
404                                                 "key": "Content-Type",
405                                                 "value": "application/json",
406                                                 "description": ""
407                                         },
408                                         {
409                                                 "key": "Accept",
410                                                 "value": "application/json",
411                                                 "description": ""
412                                         },
413                                         {
414                                                 "key": "X-TransactionId",
415                                                 "value": "ONAP-Test",
416                                                 "description": ""
417                                         },
418                                         {
419                                                 "key": "USER_ID",
420                                                 "value": "cs0008",
421                                                 "description": ""
422                                         },
423                                         {
424                                                 "key": "X-FromAppId",
425                                                 "value": "ONAP-Test",
426                                                 "description": ""
427                                         },
428                                         {
429                                                 "key": "X-ECOMP-InstanceID",
430                                                 "value": "ONAP-Test",
431                                                 "description": ""
432                                         },
433                                         {
434                                                 "key": "Authorization",
435                                                 "value": "Basic YWFpOktwOGJKNFNYc3pNMFdYbGhhazNlSGxjc2UyZ0F3ODR2YW9HR21KdlV5MlU=",
436                                                 "description": ""
437                                         }
438                                 ],
439                                 "body": {
440                                         "mode": "raw",
441                                         "raw": "{\"userRemarks\": \"ONAP-Test checkin\"}"
442                                 },
443                                 "description": ""
444                         },
445                         "response": []
446                 },
447                 {
448                         "name": "Certify VF resource",
449                         "event": [
450                                 {
451                                         "listen": "test",
452                                         "script": {
453                                                 "type": "text/javascript",
454                                                 "exec": [
455                                                         "var jsonData = JSON.parse(responseBody);",
456                                                         "",
457                                                         "tests[\"VF version is in CERTIFIED status\"] = jsonData[\"lifecycleState\"] === \"CERTIFIED\";"
458                                                 ]
459                                         }
460                                 }
461                         ],
462                         "request": {
463                                 "url": "{{url-sdc2}}/sdc1/feProxy/rest/v1/catalog/resources/{{auto_vf_unique_id}}/lifecycleState/certify",
464                                 "method": "POST",
465                                 "header": [
466                                         {
467                                                 "key": "Content-Type",
468                                                 "value": "application/json",
469                                                 "description": ""
470                                         },
471                                         {
472                                                 "key": "Accept",
473                                                 "value": "application/json",
474                                                 "description": ""
475                                         },
476                                         {
477                                                 "key": "X-TransactionId",
478                                                 "value": "ONAP-Test",
479                                                 "description": ""
480                                         },
481                                         {
482                                                 "key": "USER_ID",
483                                                 "value": "cs0008",
484                                                 "description": ""
485                                         },
486                                         {
487                                                 "key": "X-FromAppId",
488                                                 "value": "ONAP-Test",
489                                                 "description": ""
490                                         },
491                                         {
492                                                 "key": "Authorization",
493                                                 "value": "Basic YWFpOktwOGJKNFNYc3pNMFdYbGhhazNlSGxjc2UyZ0F3ODR2YW9HR21KdlV5MlU=",
494                                                 "description": ""
495                                         },
496                                         {
497                                                 "key": "X-ECOMP-InstanceID",
498                                                 "value": "ONAP-Test",
499                                                 "description": ""
500                                         }
501                                 ],
502                                 "body": {
503                                         "mode": "raw",
504                                         "raw": "{\"userRemarks\": \"certify\"}"
505                                 },
506                                 "description": ""
507                         },
508                         "response": []
509                 },
510                 {
511                         "name": "Get VF infos by uniqueId to get new vf_unique_Id (=new version id)",
512                         "event": [
513                                 {
514                                         "listen": "test",
515                                         "script": {
516                                                 "type": "text/javascript",
517                                                 "exec": [
518                                                         "tests[\"Status code is 200\"] = responseCode.code === 200;",
519                                                         "",
520                                                         "var jsonData = JSON.parse(responseBody);",
521                                                         "postman.setGlobalVariable(\"auto_vf_new_unique_id\", \"\"+jsonData[\"metadata\"][\"allVersions\"][\"1.0\"]+\"\");",
522                                                         ""
523                                                 ]
524                                         }
525                                 }
526                         ],
527                         "request": {
528                                 "url": {
529                                         "raw": "{{url-sdc2}}/sdc1/feProxy/rest/v1/catalog/resources/{{auto_vf_unique_id}}/filteredDataByParams?include=metadata",
530                                         "host": [
531                                                 "{{url-sdc2}}"
532                                         ],
533                                         "path": [
534                                                 "sdc1",
535                                                 "feProxy",
536                                                 "rest",
537                                                 "v1",
538                                                 "catalog",
539                                                 "resources",
540                                                 "{{auto_vf_unique_id}}",
541                                                 "filteredDataByParams"
542                                         ],
543                                         "query": [
544                                                 {
545                                                         "key": "include",
546                                                         "value": "metadata",
547                                                         "equals": true,
548                                                         "description": ""
549                                                 }
550                                         ],
551                                         "variable": []
552                                 },
553                                 "method": "GET",
554                                 "header": [
555                                         {
556                                                 "key": "Content-Type",
557                                                 "value": "application/json",
558                                                 "description": ""
559                                         },
560                                         {
561                                                 "key": "Accept",
562                                                 "value": "application/json",
563                                                 "description": ""
564                                         },
565                                         {
566                                                 "key": "X-TransactionId",
567                                                 "value": "ONAP-Test",
568                                                 "description": ""
569                                         },
570                                         {
571                                                 "key": "USER_ID",
572                                                 "value": "cs0008",
573                                                 "description": ""
574                                         },
575                                         {
576                                                 "key": "X-FromAppId",
577                                                 "value": "ONAP-Test",
578                                                 "description": ""
579                                         },
580                                         {
581                                                 "key": "Authorization",
582                                                 "value": "Basic YWFpOktwOGJKNFNYc3pNMFdYbGhhazNlSGxjc2UyZ0F3ODR2YW9HR21KdlV5MlU=",
583                                                 "description": ""
584                                         },
585                                         {
586                                                 "key": "x-ecomp-instanceid",
587                                                 "value": "ONAP-Test",
588                                                 "description": ""
589                                         }
590                                 ],
591                                 "body": {
592                                         "mode": "raw",
593                                         "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\": []}"
594                                 },
595                                 "description": ""
596                         },
597                         "response": []
598                 }
599         ]
600 }