Update documentation
[integration.git] / test / postman / 10_instantiate_service_vnf_vfmodule.postman_collection.json
1 {
2   "info": {
3     "_postman_id": "200601a1-b07a-4a07-ba56-a3fc357e9f55",
4     "name": "10_instantiate_service_vnf_vfmodule",
5     "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
6   },
7   "item": [
8     {
9       "name": "GET ExternalAPI-NBI component Status (HealthCheck)",
10       "event": [
11         {
12           "listen": "test",
13           "script": {
14             "id": "ddeb2e4b-2ef6-4b58-8e5c-cc202fbb232a",
15             "exec": [
16               "pm.test(\"Status code is 200\", function () {",
17               "    pm.response.to.have.status(200);",
18               "});",
19               "var NBI_status = false;",
20               "var jsonData = pm.response.json();",
21               "",
22               "if (jsonData.status === \"ok\") {",
23               "       NBI_status = true;",
24               "}",
25               "tests[\"NBI status OK\"] = NBI_status === true;",
26               ""
27             ],
28             "type": "text/javascript"
29           }
30         }
31       ],
32       "request": {
33         "method": "GET",
34         "header": [],
35         "body": {
36           "mode": "raw",
37           "raw": ""
38         },
39         "url": {
40           "raw": "{{url-nbi}}/nbi/api/v4/status",
41           "host": [
42             "{{url-nbi}}"
43           ],
44           "path": [
45             "nbi",
46             "api",
47             "v4",
48             "status"
49           ]
50         }
51       },
52       "response": []
53     },
54     {
55       "name": "GET all service models from Service Catalog API",
56       "event": [
57         {
58           "listen": "test",
59           "script": {
60             "id": "d020751d-1ca5-4c47-af33-40faea633e62",
61             "exec": [
62               "pm.test(\"Status code is 200\", function () {",
63               "    pm.response.to.have.status(200);",
64               "});",
65               "var jsonData = pm.response.json();",
66               "var service_found = false;",
67               "for (var i = 0; i < jsonData.length; i++) { ",
68               "   if (jsonData[i].name === pm.environment.get(\"service\")) {",
69               "       service_found = true;",
70               "       pm.environment.set(\"auto_service_id\", \"\"+jsonData[i].id+\"\");",
71               "   }",
72               "}",
73               "tests[\"Service : \"+pm.environment.get(\"service\")+\" exists\"] = service_found === true;",
74               ""
75             ],
76             "type": "text/javascript"
77           }
78         }
79       ],
80       "request": {
81         "method": "GET",
82         "header": [],
83         "body": {
84           "mode": "raw",
85           "raw": ""
86         },
87         "url": {
88           "raw": "{{url-nbi}}/nbi/api/v4/serviceSpecification",
89           "host": [
90             "{{url-nbi}}"
91           ],
92           "path": [
93             "nbi",
94             "api",
95             "v4",
96             "serviceSpecification"
97           ]
98         }
99       },
100       "response": []
101     },
102     {
103       "name": "GET all service instances via ServiceInventory API",
104       "event": [
105         {
106           "listen": "test",
107           "script": {
108             "id": "79e173a3-297e-467f-8c9b-be90035a91aa",
109             "exec": [
110               "pm.test(\"Status code is 200\", function () {",
111               "    pm.response.to.have.status(200);",
112               "});",
113               "var jsonData = pm.response.json();",
114               "var service_instance_found = false;",
115               "for (var i = 0; i < jsonData.length; i++) { ",
116               "   if (jsonData[i].name === pm.environment.get(\"service_instance_name\")) {",
117               "       service_instance_found = true;",
118               "   }",
119               "}",
120               "tests[\"Service instance : \"+pm.environment.get(\"service_instance_name\")+\" does not exist\"] = service_instance_found === false;"
121             ],
122             "type": "text/javascript"
123           }
124         }
125       ],
126       "request": {
127         "method": "GET",
128         "header": [],
129         "body": {
130           "mode": "raw",
131           "raw": ""
132         },
133         "url": {
134           "raw": "{{url-nbi}}/nbi/api/v4/service?relatedParty.id={{customer_name}}",
135           "host": [
136             "{{url-nbi}}"
137           ],
138           "path": [
139             "nbi",
140             "api",
141             "v4",
142             "service"
143           ],
144           "query": [
145             {
146               "key": "relatedParty.id",
147               "value": "{{customer_name}}"
148             }
149           ]
150         }
151       },
152       "response": []
153     },
154     {
155       "name": "Add service instance via ServiceOrder API",
156       "event": [
157         {
158           "listen": "test",
159           "script": {
160             "id": "9e3790c5-456a-44aa-9579-de3e9be2b61a",
161             "exec": [
162               "pm.test(\"Status code is 201\", function () {",
163               "    pm.response.to.have.status(201);",
164               "});",
165               "",
166               "var jsonData = pm.response.json();",
167               "tests[pm.environment.get(\"externalId\")+\" exists\"] = jsonData.externalId === pm.environment.get(\"externalId\");",
168               "",
169               "pm.environment.set(\"auto_service_order_id\", jsonData.id);",
170               "    "
171             ],
172             "type": "text/javascript"
173           }
174         }
175       ],
176       "request": {
177         "method": "POST",
178         "header": [
179           {
180             "key": "Accept",
181             "value": "application/json"
182           },
183           {
184             "key": "Content-Type",
185             "value": "application/json"
186           }
187         ],
188         "body": {
189           "mode": "raw",
190           "raw": "{\n  \"externalId\": \"{{externalId}}\",\n  \"priority\": \"1\",\n  \"description\": \"{{service}} order for 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\": \"add\",\n      \"service\": {\n        \"name\": \"{{service_instance_name}}\",\n        \"serviceState\": \"active\",\n        \"serviceSpecification\": {\n          \"id\": \"{{auto_service_id}}\"\n        }\n      }\n    }\n  ]\n}"
191         },
192         "url": {
193           "raw": "{{url-nbi}}/nbi/api/v4/serviceOrder",
194           "host": [
195             "{{url-nbi}}"
196           ],
197           "path": [
198             "nbi",
199             "api",
200             "v4",
201             "serviceOrder"
202           ]
203         }
204       },
205       "response": []
206     },
207     {
208       "name": "GET previous serviceOrder after 10s",
209       "event": [
210         {
211           "listen": "test",
212           "script": {
213             "id": "dc4fc1f9-cd6a-41c8-a972-06694d869384",
214             "exec": [
215               "pm.test(\"Status code is 200\", function () {",
216               "    pm.response.to.have.status(200);",
217               "});",
218               "",
219               "var jsonData = pm.response.json();",
220               "",
221               "tests[pm.environment.get(\"externalId\")+\" exists\"] = jsonData.externalId === pm.environment.get(\"externalId\");",
222               "tests[\"service_order_id exists\"] = jsonData.id === pm.environment.get(\"auto_service_order_id\");",
223               "tests[\"service Order state is : \"+jsonData.state] = jsonData.state === \"completed\";",
224               "tests[\"Service Instance state is : \"+jsonData.orderItem[0].service.serviceState] = jsonData.orderItem[0].service.serviceState === \"active\";",
225               "",
226               "",
227               "if(jsonData.state == \"completed\"){",
228               "    pm.environment.set(\"auto_service_instance_id\", \"\"+jsonData.orderItem[0].service.id+\"\");",
229               "}",
230               "if (jsonData.orderMessage !== null){",
231               "    tests[\"order message is : \" +jsonData.orderMessage[0].messageInformation] = jsonData.orderMessage[0].messageInformation === \"\";",
232               "    pm.environment.set(\"auto_service_messageInformation\", \"\"+jsonData.orderMessage[0].messageInformation+\"\");",
233               "    }",
234               ""
235             ],
236             "type": "text/javascript"
237           }
238         },
239         {
240           "listen": "prerequest",
241           "script": {
242             "id": "b2473649-e045-465e-84cc-0725d83d57ed",
243             "exec": [
244               "  var date = new Date();",
245               "  var curDate = null;",
246               "  do {",
247               "    curDate = new Date();",
248               "  }",
249               "  while (curDate - date < 10000);"
250             ],
251             "type": "text/javascript"
252           }
253         }
254       ],
255       "request": {
256         "method": "GET",
257         "header": [
258           {
259             "key": "Accept",
260             "value": "application/json"
261           },
262           {
263             "key": "Content-Type",
264             "value": "application/json"
265           }
266         ],
267         "body": {
268           "mode": "raw",
269           "raw": ""
270         },
271         "url": {
272           "raw": "{{url-nbi}}/nbi/api/v4/serviceOrder/{{auto_service_order_id}}",
273           "host": [
274             "{{url-nbi}}"
275           ],
276           "path": [
277             "nbi",
278             "api",
279             "v4",
280             "serviceOrder",
281             "{{auto_service_order_id}}"
282           ]
283         }
284       },
285       "response": []
286     },
287     {
288       "name": "SO orchestrationRequests",
289       "event": [
290         {
291           "listen": "test",
292           "script": {
293             "id": "1536607a-13f7-4c9a-97a6-af7f5dbc0593",
294             "exec": [
295               "pm.test(\"Status code is 200\", function () {",
296               "    pm.response.to.have.status(200);",
297               "});",
298               "var jsonData = pm.response.json();",
299               "",
300               "if (jsonData.requestList.length > 0){",
301               "    tests[\"requestState is : \"+jsonData.requestList[0].request.requestStatus.requestState] = jsonData.requestList[0].request.requestStatus.requestState === \"COMPLETE\";",
302               "    tests[\"statusMessage is : \"+jsonData.requestList[0].request.requestStatus.statusMessage] = jsonData.requestList[0].request.requestStatus.statusMessage === \"Service Instance was created successfully.\";",
303               "}",
304               "else {",
305               "    tests[\"no order for that service instance\"] = true === false;",
306               "}"
307             ],
308             "type": "text/javascript"
309           }
310         }
311       ],
312       "request": {
313         "method": "GET",
314         "header": [
315           {
316             "key": "Accept",
317             "value": "application/json"
318           },
319           {
320             "key": "Content-Type",
321             "value": "application/json"
322           },
323           {
324             "key": "X-FromAppId",
325             "value": "AAI"
326           },
327           {
328             "key": "X-TransactionId",
329             "value": "get_aai_subscr"
330           },
331           {
332             "key": "Authorization",
333             "value": "Basic SW5mcmFQb3J0YWxDbGllbnQ6cGFzc3dvcmQxJA=="
334           }
335         ],
336         "body": {
337           "mode": "raw",
338           "raw": ""
339         },
340         "url": {
341           "raw": "{{url-so}}/onap/so/infra/orchestrationRequests/v7?filter=serviceInstanceName:EQUALS:{{service_instance_name}}",
342           "host": [
343             "{{url-so}}"
344           ],
345           "path": [
346             "onap",
347             "so",
348             "infra",
349             "orchestrationRequests",
350             "v7"
351           ],
352           "query": [
353             {
354               "key": "filter",
355               "value": "serviceInstanceName:EQUALS:{{service_instance_name}}"
356             }
357           ]
358         }
359       },
360       "response": []
361     },
362     {
363       "name": "Check service instance in inventory via NBI request",
364       "event": [
365         {
366           "listen": "test",
367           "script": {
368             "id": "f1cbf2f1-1ed2-4d21-9483-46602241705d",
369             "exec": [
370               "tests[\"Service Instance : \"+ pm.environment.get(\"service_instance_name\") +\" exists in AAI inventory\"] = pm.response.code === 200;",
371               ""
372             ],
373             "type": "text/javascript"
374           }
375         }
376       ],
377       "request": {
378         "method": "GET",
379         "header": [],
380         "body": {
381           "mode": "raw",
382           "raw": ""
383         },
384         "url": {
385           "raw": "{{url-nbi}}/nbi/api/v4/service/{{auto_service_instance_id}}?relatedParty.id={{customer_name}}&serviceSpecification.name={{service}}",
386           "host": [
387             "{{url-nbi}}"
388           ],
389           "path": [
390             "nbi",
391             "api",
392             "v4",
393             "service",
394             "{{auto_service_instance_id}}"
395           ],
396           "query": [
397             {
398               "key": "relatedParty.id",
399               "value": "{{customer_name}}"
400             },
401             {
402               "key": "serviceSpecification.name",
403               "value": "{{service}}"
404             }
405           ]
406         }
407       },
408       "response": []
409     },
410     {
411       "name": "Instantiate vnf",
412       "event": [
413         {
414           "listen": "test",
415           "script": {
416             "id": "e779f618-dd36-474f-802d-a36abdf69708",
417             "exec": [
418               "pm.test(\"Status code is 202\", function () {",
419               "    pm.response.to.have.status(202);",
420               "});",
421               "",
422               "var jsonData = pm.response.json();",
423               "",
424               "pm.environment.set(\"auto_so_request_id\", \"\"+jsonData.requestReferences.requestId+\"\");",
425               "pm.environment.set(\"auto_vnf_instance_id\", \"\"+jsonData.requestReferences.instanceId+\"\");",
426               ""
427             ],
428             "type": "text/javascript"
429           }
430         }
431       ],
432       "request": {
433         "method": "POST",
434         "header": [
435           {
436             "key": "Accept",
437             "value": "application/json",
438             "type": "text"
439           },
440           {
441             "key": "Content-Type",
442             "value": "application/json",
443             "type": "text"
444           },
445           {
446             "key": "Authorization",
447             "value": "Basic SW5mcmFQb3J0YWxDbGllbnQ6cGFzc3dvcmQxJA==",
448             "type": "text"
449           },
450           {
451             "key": "X-ONAP-PartnerName",
452             "value": "NBI",
453             "type": "text"
454           }
455         ],
456         "body": {
457           "mode": "raw",
458           "raw": "{\n  \"requestDetails\": {\n    \"requestInfo\": {\n      \"instanceName\": \"{{vnf_instance_name}}\",\n      \"source\": \"VID\",\n      \"suppressRollback\": false,\n      \"requestorId\": \"test\",\n\t  \"productFamilyId\": \"1234\"\n    },\n\t\"modelInfo\": {\n\t\t\"modelType\": \"vnf\",\n\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_uuid}}\",\n\t\t\t\"modelCustomizationName\": \"{{auto_vf_name_for_model}}\"\n\t\t},\n    \"requestParameters\": {\n      \"userParams\": [],\n      \"aLaCarte\": true,\n\t  \"testApi\": \"VNF_API\"\n    },\n    \"cloudConfiguration\": {\n      \"lcpCloudRegionId\": \"{{onap_cloud_region_id}}\",\n      \"cloudOwner\": \"{{cloud_owner_name}}\",\n      \"tenantId\": \"{{tenant_id}}\"\n    },\n\t\t\"lineOfBusiness\": {\n\t\t\t\"lineOfBusinessName\": \"{{lineofbusiness}}\"\n\t\t},\n\t\t\"platform\": {\n\t\t\t\"platformName\": \"{{platform}}\"\n\t\t},\n\t\t\"relatedInstanceList\": [{\n\t\t\t\"relatedInstance\": {\n\t\t\t\t\"instanceId\": \"{{auto_service_instance_id}}\",\n\t\t\t\t\"modelInfo\": {\n\t\t\t\t\t\"modelType\": \"service\",\n\t\t\t\t\t\"modelName\": \"{{service}}\",\n\t\t\t\t\t\"modelInvariantId\": \"{{auto_service_invariant_uuid}}\",\n\t\t\t\t\t\"modelVersion\": \"1.0\",\n\t\t\t\t\t\"modelVersionId\": \"{{auto_service_uuid}}\"\n\t\t\t\t}\n\t\t\t}\n\t\t}]\n  }\n}\n\n"
459         },
460         "url": {
461           "raw": "{{url-so}}/onap/so/infra/serviceInstantiation/v7/serviceInstances/{{auto_service_instance_id}}/vnfs",
462           "host": [
463             "{{url-so}}"
464           ],
465           "path": [
466             "onap",
467             "so",
468             "infra",
469             "serviceInstantiation",
470             "v7",
471             "serviceInstances",
472             "{{auto_service_instance_id}}",
473             "vnfs"
474           ]
475         }
476       },
477       "response": []
478     },
479     {
480       "name": "SO orchestrationRequests after 10s",
481       "event": [
482         {
483           "listen": "test",
484           "script": {
485             "id": "750de5df-76ee-42c6-8f04-bfb9e1a9ea33",
486             "exec": [
487               "pm.test(\"Status code is 200\", function () {",
488               "    pm.response.to.have.status(200);",
489               "});",
490               "var jsonData = pm.response.json();",
491               "",
492               "pm.environment.set(\"auto_vnf_instance_id\", \"\"+jsonData.request.instanceReferences.vnfInstanceId+\"\");",
493               "tests[\"requestState is : \"+jsonData.request.requestStatus.requestState] = jsonData.request.requestStatus.requestState === \"COMPLETE\";",
494               "tests[\"statusMessage is : \"+jsonData.request.requestStatus.statusMessage] = jsonData.request.requestStatus.statusMessage === \"Vnf has been created successfully.\";",
495               ""
496             ],
497             "type": "text/javascript"
498           }
499         },
500         {
501           "listen": "prerequest",
502           "script": {
503             "id": "15a5b018-1d8a-4326-9810-cf94a1f4d80f",
504             "exec": [
505               "  var date = new Date();",
506               "  var curDate = null;",
507               "  do {",
508               "    curDate = new Date();",
509               "  }",
510               "  while (curDate - date < 10000);"
511             ],
512             "type": "text/javascript"
513           }
514         }
515       ],
516       "request": {
517         "method": "GET",
518         "header": [
519           {
520             "key": "Accept",
521             "value": "application/json"
522           },
523           {
524             "key": "Content-Type",
525             "value": "application/json"
526           },
527           {
528             "key": "X-FromAppId",
529             "value": "AAI"
530           },
531           {
532             "key": "X-TransactionId",
533             "value": "get_aai_subscr"
534           },
535           {
536             "key": "Authorization",
537             "value": "Basic SW5mcmFQb3J0YWxDbGllbnQ6cGFzc3dvcmQxJA=="
538           }
539         ],
540         "body": {
541           "mode": "raw",
542           "raw": ""
543         },
544         "url": {
545           "raw": "{{url-so}}/onap/so/infra/orchestrationRequests/v7/{{auto_so_request_id}}",
546           "host": [
547             "{{url-so}}"
548           ],
549           "path": [
550             "onap",
551             "so",
552             "infra",
553             "orchestrationRequests",
554             "v7",
555             "{{auto_so_request_id}}"
556           ]
557         }
558       },
559       "response": []
560     },
561     {
562       "name": "check vnf instance in inventory via AAI request",
563       "event": [
564         {
565           "listen": "test",
566           "script": {
567             "id": "a08edc1f-6b8c-4a7e-91ce-6d774d0dfb1e",
568             "exec": [
569               "pm.test(\"Status code is 200\", function () {",
570               "    pm.response.to.have.status(200);",
571               "});",
572               "var jsonData = pm.response.json();",
573               "var vnf_instance_found = false;",
574               "for (var i = 0; i < jsonData[\"generic-vnf\"].length; i++) { ",
575               "   if (jsonData[\"generic-vnf\"][i][\"vnf-name\"] === pm.environment.get(\"vnf_instance_name\")) {",
576               "       vnf_instance_found = true;",
577               "   }",
578               "}",
579               "tests[\"VNF Instance : \"+ pm.environment.get(\"vnf_instance_name\") +\" exists in AAI inventory\"] = vnf_instance_found === true;"
580             ],
581             "type": "text/javascript"
582           }
583         }
584       ],
585       "request": {
586         "method": "GET",
587         "header": [
588           {
589             "key": "Authorization",
590             "value": "Basic QUFJOkFBSQ=="
591           },
592           {
593             "key": "X-FromAppId",
594             "value": "AAI"
595           },
596           {
597             "key": "Accept",
598             "value": "application/json"
599           },
600           {
601             "key": "X-TransactionId",
602             "value": "get_aai_subscr"
603           },
604           {
605             "key": "Content-Type",
606             "value": "application/json"
607           }
608         ],
609         "body": {
610           "mode": "raw",
611           "raw": ""
612         },
613         "url": {
614           "raw": "{{url-aai}}/aai/v16/network/generic-vnfs",
615           "host": [
616             "{{url-aai}}"
617           ],
618           "path": [
619             "aai",
620             "v16",
621             "network",
622             "generic-vnfs"
623           ]
624         }
625       },
626       "response": []
627     },
628     {
629       "name": "preload for VFmodule",
630       "event": [
631         {
632           "listen": "test",
633           "script": {
634             "id": "62a8ef7f-7fde-423c-8b70-5f74bb6bc00b",
635             "exec": [
636               "pm.test(\"Status code is 200\", function () {",
637               "    pm.response.to.have.status(200);",
638               "});"
639             ],
640             "type": "text/javascript"
641           }
642         }
643       ],
644       "request": {
645         "method": "POST",
646         "header": [
647           {
648             "key": "Accept",
649             "value": "application/json"
650           },
651           {
652             "key": "Content-Type",
653             "value": "application/json"
654           },
655           {
656             "key": "X-TransactionId",
657             "value": "0a3f6713-ba96-4971-a6f8-c2da85a3176e"
658           },
659           {
660             "key": "X-FromAppId",
661             "value": "API client"
662           },
663           {
664             "key": "Authorization",
665             "value": "Basic YWRtaW46S3A4Yko0U1hzek0wV1hsaGFrM2VIbGNzZTJnQXc4NHZhb0dHbUp2VXkyVQ=="
666           }
667         ],
668         "body": {
669           "mode": "raw",
670           "raw": "{\n    \"input\": {\n        \"request-information\": {\n            \"notification-url\": \"onap.org\",\n            \"order-number\": \"1\",\n            \"order-version\": \"1\",\n            \"request-action\": \"PreloadVNFRequest\",\n            \"request-id\": \"test\"\n        },\n        \"sdnc-request-header\": {\n            \"svc-action\": \"reserve\",\n            \"svc-notification-url\": \"http:\\/\\/onap.org:8080\\/adapters\\/rest\\/SDNCNotify\",\n            \"svc-request-id\": \"test\"\n        },\n        \"vnf-topology-information\": {\n            \"vnf-assignments\": {\n                \"availability-zones\": [],\n                \"vnf-networks\": [],\n                \"vnf-vms\": []\n            },\n            \"vnf-parameters\": [],\n            \"vnf-topology-identifier\": {\n                \"generic-vnf-name\": \"{{vnf_instance_name}}\",\n                \"generic-vnf-type\": \"{{auto_vf_name_for_model}}\",\n                \"service-type\": \"{{auto_service_instance_id}}\",\n                \"vnf-name\": \"{{vfmodule_instance_name}}\",\n                \"vnf-type\": \"{{auto_vf_module_model_name}}\"\n            }\n        }\n    }\n}\n\n"
671         },
672         "url": {
673           "raw": "{{url-sdnc}}/restconf/operations/VNF-API:preload-vnf-topology-operation",
674           "host": [
675             "{{url-sdnc}}"
676           ],
677           "path": [
678             "restconf",
679             "operations",
680             "VNF-API:preload-vnf-topology-operation"
681           ]
682         }
683       },
684       "response": []
685     },
686     {
687       "name": "Instantiate vf-module",
688       "event": [
689         {
690           "listen": "test",
691           "script": {
692             "id": "61781baf-f6d4-4229-95d0-32e85cde3e82",
693             "exec": [
694               "pm.test(\"Status code is 202\", function () {",
695               "    pm.response.to.have.status(202);",
696               "});",
697               "",
698               "var jsonData = pm.response.json();",
699               "if (responseCode.code === 202){",
700               "    pm.environment.set(\"auto_so_request_id\", \"\"+jsonData.requestReferences.requestId+\"\");",
701               "    pm.environment.set(\"auto_vfmodule_instance_id\", \"\"+jsonData.requestReferences.instanceId+\"\");",
702               "}"
703             ],
704             "type": "text/javascript"
705           }
706         }
707       ],
708       "request": {
709         "method": "POST",
710         "header": [
711           {
712             "key": "Accept",
713             "value": "application/json",
714             "type": "text"
715           },
716           {
717             "key": "Content-Type",
718             "value": "application/json",
719             "type": "text"
720           },
721           {
722             "key": "Authorization",
723             "value": "Basic SW5mcmFQb3J0YWxDbGllbnQ6cGFzc3dvcmQxJA==",
724             "type": "text"
725           },
726           {
727             "key": "X-ONAP-PartnerName",
728             "value": "NBI",
729             "type": "text"
730           }
731         ],
732         "body": {
733           "mode": "raw",
734           "raw": "{\n  \"requestDetails\": {\n    \"requestInfo\": {\n      \"instanceName\": \"{{vfmodule_instance_name}}\",\n      \"source\": \"VID\",\n      \"suppressRollback\": false,\n      \"requestorId\": \"test\"\n    },\n\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},\n \t\"requestParameters\": {\n \t\t\"userParams\": [],\n \t\t\"testApi\": \"VNF_API\",\n \t\t\"usePreload\": true\n \t},\n    \"cloudConfiguration\": {\n      \"lcpCloudRegionId\": \"{{onap_cloud_region_id}}\",\n      \"cloudOwner\": \"{{cloud_owner_name}}\",\n      \"tenantId\": \"{{tenant_id}}\"\n    },\n\t\t\"relatedInstanceList\": [{\n\t\t\t\"relatedInstance\": {\n\t\t\t\t\"instanceId\": \"{{auto_service_instance_id}}\",\n\t\t\t\t\"modelInfo\": {\n\t\t\t\t\t\"modelType\": \"service\",\n\t\t\t\t\t\"modelName\": \"{{service}}\",\n\t\t\t\t\t\"modelInvariantId\": \"{{auto_service_invariant_uuid}}\",\n\t\t\t\t\t\"modelVersion\": \"1.0\",\n\t\t\t\t\t\"modelVersionId\": \"{{auto_service_uuid}}\"\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\t\"relatedInstance\": {\n\t\t\t\t\"instanceId\": \"{{auto_vnf_instance_id}}\",\n\t\t\t\t\"modelInfo\": {\n\t\t\t\t\t\"modelType\": \"vnf\",\n\t\t\t\t\t\"modelName\": \"{{vf_name}}\",\n\t\t\t\t\t\"modelInvariantId\": \"{{auto_vf_invariant_uuid}}\",\n\t\t\t\t\t\"modelVersion\": \"1.0\",\n\t\t\t\t\t\"modelVersionId\": \"{{auto_vf_uuid}}\",\n\t\t\t\t\t\"modelCustomizationId\": \"{{auto_vf_customization_uuid}}\",\n\t\t\t\t\t\"modelCustomizationName\": \"{{auto_vf_name_for_model}}\"\n\t\t\t\t}\n\t\t\t}\n\t\t}]\n  }\n}\n\n"
735         },
736         "url": {
737           "raw": "{{url-so}}/onap/so/infra/serviceInstantiation/v7/serviceInstances/{{auto_service_instance_id}}/vnfs/{{auto_vnf_instance_id}}/vfModules",
738           "host": [
739             "{{url-so}}"
740           ],
741           "path": [
742             "onap",
743             "so",
744             "infra",
745             "serviceInstantiation",
746             "v7",
747             "serviceInstances",
748             "{{auto_service_instance_id}}",
749             "vnfs",
750             "{{auto_vnf_instance_id}}",
751             "vfModules"
752           ]
753         }
754       },
755       "response": []
756     },
757     {
758       "name": "SO orchestrationRequests after 120s",
759       "event": [
760         {
761           "listen": "test",
762           "script": {
763             "id": "ef3be415-7453-4d2d-91ce-de6e2df05dbe",
764             "exec": [
765               "pm.test(\"Status code is 200\", function () {",
766               "    pm.response.to.have.status(200);",
767               "});",
768               "var jsonData = pm.response.json();",
769               "",
770               "pm.environment.set(\"auto_vfmodule_instance_id\", \"\"+jsonData.request.instanceReferences.vfModuleInstanceId+\"\");",
771               "tests[\"requestState is : \"+jsonData.request.requestStatus.requestState] = jsonData.request.requestStatus.requestState === \"COMPLETE\";",
772               "tests[\"statusMessage is : \"+jsonData.request.requestStatus.statusMessage] = jsonData.request.requestStatus.statusMessage === \"Vf Module has been created successfully.\";"
773             ],
774             "type": "text/javascript"
775           }
776         },
777         {
778           "listen": "prerequest",
779           "script": {
780             "id": "8f7cbf38-cb21-45af-9648-1915c92bcb12",
781             "exec": [
782               "  var date = new Date();",
783               "  var curDate = null;",
784               "  do {",
785               "    curDate = new Date();",
786               "  }",
787               "  while (curDate - date < 10000);"
788             ],
789             "type": "text/javascript"
790           }
791         }
792       ],
793       "request": {
794         "method": "GET",
795         "header": [
796           {
797             "key": "Accept",
798             "value": "application/json"
799           },
800           {
801             "key": "Content-Type",
802             "value": "application/json"
803           },
804           {
805             "key": "X-FromAppId",
806             "value": "AAI"
807           },
808           {
809             "key": "X-TransactionId",
810             "value": "get_aai_subscr"
811           },
812           {
813             "key": "Authorization",
814             "value": "Basic SW5mcmFQb3J0YWxDbGllbnQ6cGFzc3dvcmQxJA=="
815           }
816         ],
817         "body": {
818           "mode": "raw",
819           "raw": ""
820         },
821         "url": {
822           "raw": "{{url-so}}/onap/so/infra/orchestrationRequests/v7/{{auto_so_request_id}}",
823           "host": [
824             "{{url-so}}"
825           ],
826           "path": [
827             "onap",
828             "so",
829             "infra",
830             "orchestrationRequests",
831             "v7",
832             "{{auto_so_request_id}}"
833           ]
834         }
835       },
836       "response": []
837     },
838     {
839       "name": "check vfmodule instance in inventory via AAI request",
840       "event": [
841         {
842           "listen": "test",
843           "script": {
844             "id": "81203009-3d68-426d-9491-1276983693e5",
845             "exec": [
846               "pm.test(\"Status code is 200\", function () {",
847               "    pm.response.to.have.status(200);",
848               "});",
849               "var jsonData = pm.response.json();",
850               "var vfmodule_instance_found = false;",
851               "for (var i = 0; i < jsonData[\"vf-module\"].length; i++) { ",
852               "   if (jsonData[\"vf-module\"][i][\"vf-module-name\"] === pm.environment.get(\"vfmodule_instance_name\")) {",
853               "       vfmodule_instance_found = true;",
854               "   }",
855               "}",
856               "tests[\"vfmodule Instance : \"+ pm.environment.get(\"vfmodule_instance_name\") +\" exists in AAI inventory\"] = vfmodule_instance_found === true;"
857             ],
858             "type": "text/javascript"
859           }
860         }
861       ],
862       "request": {
863         "method": "GET",
864         "header": [
865           {
866             "key": "Authorization",
867             "value": "Basic QUFJOkFBSQ=="
868           },
869           {
870             "key": "X-FromAppId",
871             "value": "AAI"
872           },
873           {
874             "key": "Accept",
875             "value": "application/json"
876           },
877           {
878             "key": "X-TransactionId",
879             "value": "get_aai_subscr"
880           },
881           {
882             "key": "Content-Type",
883             "value": "application/json"
884           }
885         ],
886         "body": {
887           "mode": "raw",
888           "raw": ""
889         },
890         "url": {
891           "raw": "{{url-aai}}/aai/v16/network/generic-vnfs/generic-vnf/{{auto_vnf_instance_id}}/vf-modules",
892           "host": [
893             "{{url-aai}}"
894           ],
895           "path": [
896             "aai",
897             "v16",
898             "network",
899             "generic-vnfs",
900             "generic-vnf",
901             "{{auto_vnf_instance_id}}",
902             "vf-modules"
903           ]
904         }
905       },
906       "response": []
907     },
908     {
909       "name": "preload for Virtual Link",
910       "event": [
911         {
912           "listen": "test",
913           "script": {
914             "id": "62a8ef7f-7fde-423c-8b70-5f74bb6bc00b",
915             "exec": [
916               "pm.test(\"Status code is 200\", function () {",
917               "    pm.response.to.have.status(200);",
918               "});"
919             ],
920             "type": "text/javascript"
921           }
922         }
923       ],
924       "request": {
925         "method": "POST",
926         "header": [
927           {
928             "key": "Accept",
929             "value": "application/json"
930           },
931           {
932             "key": "Content-Type",
933             "value": "application/json"
934           },
935           {
936             "key": "X-TransactionId",
937             "value": "0a3f6713-ba96-4971-a6f8-c2da85a3176e"
938           },
939           {
940             "key": "X-FromAppId",
941             "value": "API client"
942           },
943           {
944             "key": "Authorization",
945             "value": "Basic YWRtaW46S3A4Yko0U1hzek0wV1hsaGFrM2VIbGNzZTJnQXc4NHZhb0dHbUp2VXkyVQ=="
946           }
947         ],
948         "body": {
949           "mode": "raw",
950           "raw": "{\n  \"input\": {\n    \"request-information\": {\n      \"request-id\": \"postman001\",\n      \"notification-url\": \"http://so.onap.org\",\n      \"order-number\": \"postman001\",\n      \"request-sub-action\": \"SUPP\",\n      \"request-action\": \"PreloadNetworkRequest\",\n      \"source\": \"postman\",\n      \"order-version\": \"1.0\"\n    },\n    \"network-topology-information\": {\n      \"network-policy\": [],\n      \"route-table-reference\": [],\n      \"vpn-bindings\": [],\n      \"network-topology-identifier\": {\n        \"network-role\": \"integration_test_net\",\n        \"network-technology\": \"neutron\",\n        \"service-type\": \"{{service}}\",\n        \"network-name\": \"rr01\",\n        \"network-type\": \"Generic NeutronNet\"\n      },\n      \"provider-network-information\": {\n        \"is-external-network\": \"false\",\n        \"is-provider-network\": \"false\",\n        \"is-shared-network\": \"false\"\n      },\n      \"subnets\": [\n        {\n\t\t  \"subnet-name\": \"rr01\",\n\t\t  \"subnet-role\": \"OAM\",\n          \"start-address\": \"192.168.90.0\",\n          \"cidr-mask\": \"24\",\n          \"ip-version\": \"4\",\n          \"dhcp-enabled\": \"Y\",\n\t\t  \"dhcp-start-address\": \"\",\n\t\t  \"dhcp-end-address\": \"\",\n          \"gateway-address\": \"192.168.90.1\",\n\t\t  \"host-routes\":[]\n        }\n              ]\n    },\n    \"sdnc-request-header\": {\n      \"svc-action\": \"reserve\",\n      \"svc-notification-url\": \"http://so.onap.org\",\n      \"svc-request-id\": \"postman001\"\n    }\n  }\n}\n\n"
951         },
952         "url": {
953           "raw": "{{url-sdnc}}/restconf/operations/VNF-API:preload-network-topology-operation",
954           "host": [
955             "{{url-sdnc}}"
956           ],
957           "path": [
958             "restconf",
959             "operations",
960             "VNF-API:preload-network-topology-operation"
961           ]
962         }
963       },
964       "response": []
965     },
966     {
967       "name": "Instantiate Generic Neutron Virtual Link",
968       "event": [
969         {
970           "listen": "test",
971           "script": {
972             "id": "030a6341-9ba8-4dc4-bbe4-9818c34d5f1c",
973             "exec": [
974               "pm.test(\"Status code is 202\", function () {",
975               "    pm.response.to.have.status(202);",
976               "});",
977               "",
978               "var jsonData = pm.response.json();",
979               "",
980               "pm.environment.set(\"auto_so_request_id\", \"\"+jsonData.requestReferences.requestId+\"\");",
981               "pm.environment.set(\"auto_virtual_link_instance_id\", \"\"+jsonData.requestReferences.instanceId+\"\");",
982               ""
983             ],
984             "type": "text/javascript"
985           }
986         }
987       ],
988       "request": {
989         "method": "POST",
990         "header": [
991           {
992             "key": "Accept",
993             "value": "application/json",
994             "type": "text"
995           },
996           {
997             "key": "Content-Type",
998             "value": "application/json",
999             "type": "text"
1000           },
1001           {
1002             "key": "Authorization",
1003             "value": "Basic SW5mcmFQb3J0YWxDbGllbnQ6cGFzc3dvcmQxJA==",
1004             "type": "text"
1005           },
1006           {
1007             "key": "X-ONAP-PartnerName",
1008             "value": "NBI",
1009             "type": "text"
1010           }
1011         ],
1012         "body": {
1013           "mode": "raw",
1014           "raw": "{\n\t\"requestDetails\": {\n\t\t\"requestInfo\": {\n\t\t\t\"instanceName\": \"{{virtual_link_instance_name}}\",\n\t\t\t\"source\": \"VID\",\n\t\t\t\"suppressRollback\": false,\n\t\t\t\"requestorId\": \"demo\"\n\t\t},\n \t\t\"modelInfo\": {\n \t\t\t\"modelType\": \"network\",\n \t\t\t\"modelInvariantId\": \"{{auto_virtual_link_invariant_uuid}}\",\n \t\t\t\"modelVersionId\": \"{{auto_virtual_link_uuid}}\",\n \t\t\t\"modelName\": \"Generic NeutronNet\",\n \t\t\t\"modelVersion\": \"1.0\",\n \t\t\t\"modelCustomizationId\": \"{{auto_virtual_link_customization_uuid}}\",\n \t\t\t\"modelCustomizationName\": \"Generic NeutronNet 0\"\n \t\t},\n    \"requestParameters\": {\n      \"userParams\": [],\n      \"aLaCarte\": true,\n\t  \"testApi\": \"VNF_API\"\n    },\n    \"cloudConfiguration\": {\n      \"cloudOwner\": \"{{cloud_owner_name}}\",\n      \"lcpCloudRegionId\": \"{{onap_cloud_region_id}}\",\n      \"tenantId\": \"{{tenant_id}}\"\n    },\n\t\t\"lineOfBusiness\": {\n\t\t\t\"lineOfBusinessName\": \"{{lineofbusiness}}\"\n\t\t},\n\t\t\"platform\": {\n\t\t\t\"platformName\": \"{{platform}}\"\n\t\t},\n \t\t\"relatedInstanceList\": [{\n \t\t\t\"relatedInstance\": {\n \t\t\t\t\"instanceId\": \"{{auto_service_instance_id}}\",\n \t\t\t\t\"modelInfo\": {\n \t\t\t\t\t\"modelType\": \"service\",\n \t\t\t\t\t\"modelName\": \"{{service}}\",\n \t\t\t\t\t\"modelInvariantId\": \"{{auto_service_invariant_uuid}}\",\n \t\t\t\t\t\"modelVersion\": \"1.0\",\n \t\t\t\t\t\"modelVersionId\": \"{{auto_service_uuid}}\"\n \t\t\t\t}\n \t\t\t}\n \t\t}]\n  }\n}\n\n"
1015         },
1016         "url": {
1017           "raw": "{{url-so}}/onap/so/infra/serviceInstantiation/v7/serviceInstances/{{auto_service_instance_id}}/networks",
1018           "host": [
1019             "{{url-so}}"
1020           ],
1021           "path": [
1022             "onap",
1023             "so",
1024             "infra",
1025             "serviceInstantiation",
1026             "v7",
1027             "serviceInstances",
1028             "{{auto_service_instance_id}}",
1029             "networks"
1030           ]
1031         }
1032       },
1033       "response": []
1034     },
1035     {
1036       "name": "SO orchestrationRequests after 10s",
1037       "event": [
1038         {
1039           "listen": "test",
1040           "script": {
1041             "id": "ef3be415-7453-4d2d-91ce-de6e2df05dbe",
1042             "exec": [
1043               "pm.test(\"Status code is 200\", function () {",
1044               "    pm.response.to.have.status(200);",
1045               "});",
1046               "var jsonData = pm.response.json();",
1047               "",
1048               "pm.environment.set(\"auto_virtual_link_instance_id\", \"\"+jsonData.request.instanceReferences.networkInstanceId+\"\");",
1049               "tests[\"requestState is : \"+jsonData.request.requestStatus.requestState] = jsonData.request.requestStatus.requestState === \"COMPLETE\";",
1050               "tests[\"statusMessage is : \"+jsonData.request.requestStatus.statusMessage] = jsonData.request.requestStatus.statusMessage === \"Network has been created successfully.\";"
1051             ],
1052             "type": "text/javascript"
1053           }
1054         },
1055         {
1056           "listen": "prerequest",
1057           "script": {
1058             "id": "8f7cbf38-cb21-45af-9648-1915c92bcb12",
1059             "exec": [
1060               "  var date = new Date();",
1061               "  var curDate = null;",
1062               "  do {",
1063               "    curDate = new Date();",
1064               "  }",
1065               "  while (curDate - date < 10000);"
1066             ],
1067             "type": "text/javascript"
1068           }
1069         }
1070       ],
1071       "request": {
1072         "method": "GET",
1073         "header": [
1074           {
1075             "key": "Accept",
1076             "value": "application/json"
1077           },
1078           {
1079             "key": "Content-Type",
1080             "value": "application/json"
1081           },
1082           {
1083             "key": "X-FromAppId",
1084             "value": "AAI"
1085           },
1086           {
1087             "key": "X-TransactionId",
1088             "value": "get_aai_subscr"
1089           },
1090           {
1091             "key": "Authorization",
1092             "value": "Basic SW5mcmFQb3J0YWxDbGllbnQ6cGFzc3dvcmQxJA=="
1093           }
1094         ],
1095         "body": {
1096           "mode": "raw",
1097           "raw": ""
1098         },
1099         "url": {
1100           "raw": "{{url-so}}/onap/so/infra/orchestrationRequests/v7/{{auto_so_request_id}}",
1101           "host": [
1102             "{{url-so}}"
1103           ],
1104           "path": [
1105             "onap",
1106             "so",
1107             "infra",
1108             "orchestrationRequests",
1109             "v7",
1110             "{{auto_so_request_id}}"
1111           ]
1112         }
1113       },
1114       "response": []
1115     },
1116     {
1117       "name": "GET virtual link in AAI by id",
1118       "request": {
1119         "method": "GET",
1120         "header": [
1121           {
1122             "key": "Accept",
1123             "value": "application/json"
1124           },
1125           {
1126             "key": "Content-Type",
1127             "value": "application/json"
1128           },
1129           {
1130             "key": "X-FromAppId",
1131             "value": "AAI"
1132           },
1133           {
1134             "key": "X-TransactionId",
1135             "value": "get_aai_subscr"
1136           },
1137           {
1138             "key": "Authorization",
1139             "value": "Basic QUFJOkFBSQ=="
1140           }
1141         ],
1142         "body": {
1143           "mode": "raw",
1144           "raw": ""
1145         },
1146         "url": {
1147           "raw": "{{url-aai}}/aai/v16/network/l3-networks/l3-network/{{auto_virtual_link_instance_id}}",
1148           "host": [
1149             "{{url-aai}}"
1150           ],
1151           "path": [
1152             "aai",
1153             "v16",
1154             "network",
1155             "l3-networks",
1156             "l3-network",
1157             "{{auto_virtual_link_instance_id}}"
1158           ]
1159         }
1160       },
1161       "response": []
1162     },
1163     {
1164       "name": "GET subnets of network AAI by id",
1165       "request": {
1166         "method": "GET",
1167         "header": [
1168           {
1169             "key": "Accept",
1170             "value": "application/json"
1171           },
1172           {
1173             "key": "Content-Type",
1174             "value": "application/json"
1175           },
1176           {
1177             "key": "X-FromAppId",
1178             "value": "AAI"
1179           },
1180           {
1181             "key": "X-TransactionId",
1182             "value": "get_aai_subscr"
1183           },
1184           {
1185             "key": "Authorization",
1186             "value": "Basic QUFJOkFBSQ=="
1187           }
1188         ],
1189         "body": {
1190           "mode": "raw",
1191           "raw": ""
1192         },
1193         "url": {
1194           "raw": "{{url-aai}}/aai/v16/network/l3-networks/l3-network/{{auto_virtual_link_instance_id}}/subnets",
1195           "host": [
1196             "{{url-aai}}"
1197           ],
1198           "path": [
1199             "aai",
1200             "v16",
1201             "network",
1202             "l3-networks",
1203             "l3-network",
1204             "{{auto_virtual_link_instance_id}}",
1205             "subnets"
1206           ]
1207         }
1208       },
1209       "response": []
1210     },
1211     {
1212       "name": "SO Instantiate service",
1213       "event": [
1214         {
1215           "listen": "test",
1216           "script": {
1217             "id": "e779f618-dd36-474f-802d-a36abdf69708",
1218             "exec": [
1219               "pm.test(\"Status code is 202\", function () {",
1220               "    pm.response.to.have.status(202);",
1221               "});",
1222               "",
1223               "var jsonData = pm.response.json();",
1224               "",
1225               "pm.environment.set(\"auto_so_request_id\", \"\"+jsonData.requestReferences.requestId+\"\");",
1226               "pm.environment.set(\"auto_service_instance_id\", \"\"+jsonData.requestReferences.instanceId+\"\");",
1227               ""
1228             ],
1229             "type": "text/javascript"
1230           }
1231         }
1232       ],
1233       "request": {
1234         "method": "POST",
1235         "header": [
1236           {
1237             "key": "Accept",
1238             "value": "application/json",
1239             "type": "text"
1240           },
1241           {
1242             "key": "Content-Type",
1243             "value": "application/json",
1244             "type": "text"
1245           },
1246           {
1247             "key": "Authorization",
1248             "value": "Basic SW5mcmFQb3J0YWxDbGllbnQ6cGFzc3dvcmQxJA==",
1249             "type": "text"
1250           },
1251           {
1252             "key": "X-ONAP-PartnerName",
1253             "value": "NBI",
1254             "type": "text"
1255           }
1256         ],
1257         "body": {
1258           "mode": "raw",
1259           "raw": "{\n\t\"requestDetails\": {\n\t\t\"requestInfo\": {\n\t\t\t\"instanceName\": \"{{service_instance_name}}\",\n\t\t\t\"source\": \"VID\",\n\t\t\t\"suppressRollback\": false,\n\t\t\t\"requestorId\": \"demo\"\n\t\t},\n\t\t\"modelInfo\": {\n\t\t\t\"modelType\": \"service\",\n\t\t\t\"modelInvariantId\": \"{{auto_service_invariant_uuid}}\",\n\t\t\t\"modelVersionId\": \"{{auto_service_uuid}}\",\n\t\t\t\"modelName\": \"{{service}}\",\n\t\t\t\"modelVersion\": \"1.0\"\n\t\t},\n        \"cloudConfiguration\": {\n            \"tenantId\": \"{{tenant_id}}\",\n            \"cloudOwner\": \"{{cloud_owner_name}}\",\n            \"lcpCloudRegionId\": \"{{onap_cloud_region_id}}\"\n        },\n\t\t\"requestParameters\": {\n\t\t\t\"userParams\": [],\n\t\t\t\"testApi\": \"VNF_API\",\n\t\t\t\"subscriptionServiceType\": \"{{service}}\",\n\t\t\t\"aLaCarte\": true\n\t\t},\n\t\t\"subscriberInfo\": {\n\t\t\t\"globalSubscriberId\": \"{{customer_name}}\"\n\t\t},\n\t\t\"project\": {\n\t\t\t\"projectName\": \"{{project}}\"\n\t\t},\n\t\t\"owningEntity\": {\n\t\t\t\"owningEntityId\": \"{{auto_owning_entity_id}}\",\n\t\t\t\"owningEntityName\": \"{{owning_entity}}\"\n\t\t}\n\t}\n}"
1260         },
1261         "url": {
1262           "raw": "{{url-so}}/onap/so/infra/serviceInstantiation/v7/serviceInstances",
1263           "host": [
1264             "{{url-so}}"
1265           ],
1266           "path": [
1267             "onap",
1268             "so",
1269             "infra",
1270             "serviceInstantiation",
1271             "v7",
1272             "serviceInstances"
1273           ]
1274         }
1275       },
1276       "response": []
1277     },
1278     {
1279       "name": "SO orchestrationRequests after 10s",
1280       "event": [
1281         {
1282           "listen": "test",
1283           "script": {
1284             "id": "ef3be415-7453-4d2d-91ce-de6e2df05dbe",
1285             "exec": [
1286               "pm.test(\"Status code is 200\", function () {",
1287               "    pm.response.to.have.status(200);",
1288               "});",
1289               "var jsonData = pm.response.json();",
1290               "",
1291               "pm.environment.set(\"auto_virtual_link_instance_id\", \"\"+jsonData.request.instanceReferences.networkInstanceId+\"\");",
1292               "tests[\"requestState is : \"+jsonData.request.requestStatus.requestState] = jsonData.request.requestStatus.requestState === \"COMPLETE\";",
1293               "tests[\"statusMessage is : \"+jsonData.request.requestStatus.statusMessage] = jsonData.request.requestStatus.statusMessage === \"Network has been created successfully.\";"
1294             ],
1295             "type": "text/javascript"
1296           }
1297         },
1298         {
1299           "listen": "prerequest",
1300           "script": {
1301             "id": "8f7cbf38-cb21-45af-9648-1915c92bcb12",
1302             "exec": [
1303               "  var date = new Date();",
1304               "  var curDate = null;",
1305               "  do {",
1306               "    curDate = new Date();",
1307               "  }",
1308               "  while (curDate - date < 10000);"
1309             ],
1310             "type": "text/javascript"
1311           }
1312         }
1313       ],
1314       "request": {
1315         "method": "GET",
1316         "header": [
1317           {
1318             "key": "Accept",
1319             "value": "application/json"
1320           },
1321           {
1322             "key": "Content-Type",
1323             "value": "application/json"
1324           },
1325           {
1326             "key": "X-FromAppId",
1327             "value": "AAI"
1328           },
1329           {
1330             "key": "X-TransactionId",
1331             "value": "get_aai_subscr"
1332           },
1333           {
1334             "key": "Authorization",
1335             "value": "Basic SW5mcmFQb3J0YWxDbGllbnQ6cGFzc3dvcmQxJA=="
1336           }
1337         ],
1338         "body": {
1339           "mode": "raw",
1340           "raw": ""
1341         },
1342         "url": {
1343           "raw": "{{url-so}}/onap/so/infra/orchestrationRequests/v7/{{auto_so_request_id}}",
1344           "host": [
1345             "{{url-so}}"
1346           ],
1347           "path": [
1348             "onap",
1349             "so",
1350             "infra",
1351             "orchestrationRequests",
1352             "v7",
1353             "{{auto_so_request_id}}"
1354           ]
1355         }
1356       },
1357       "response": []
1358     }
1359   ]
1360 }