Issue-ID: INT-1178
[integration.git] / test / postman / 10_instantiate_service_vnf_vfmodule.postman_collection.json
1 {
2         "info": {
3                 "_postman_id": "e89df100-56db-4922-9a58-c92465f0cb9e",
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.globals.get(\"service\")) {",
69                                                         "       service_found = true;",
70                                                         "       pm.globals.set(\"auto_service_id\", \"\"+jsonData[i].id+\"\");",
71                                                         "   }",
72                                                         "}",
73                                                         "tests[\"Service : \"+pm.globals.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.globals.get(\"service_instance_name\")) {",
117                                                         "       service_instance_found = true;",
118                                                         "   }",
119                                                         "}",
120                                                         "tests[\"Service instance : \"+pm.globals.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.globals.get(\"externalId\")+\" exists\"] = jsonData.externalId === pm.globals.get(\"externalId\");",
168                                                         "",
169                                                         "pm.globals.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.globals.get(\"externalId\")+\" exists\"] = jsonData.externalId === pm.globals.get(\"externalId\");",
222                                                         "tests[\"service_order_id exists\"] = jsonData.id === pm.globals.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.globals.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.globals.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.globals.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.globals.set(\"auto_so_request_id\", \"\"+jsonData.requestReferences.requestId+\"\");",
425                                                         "pm.globals.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                                         },
439                                         {
440                                                 "key": "Content-Type",
441                                                 "value": "application/json"
442                                         },
443                                         {
444                                                 "key": "X-FromAppId",
445                                                 "value": "AAI"
446                                         },
447                                         {
448                                                 "key": "X-TransactionId",
449                                                 "value": "get_aai_subscr"
450                                         },
451                                         {
452                                                 "key": "Authorization",
453                                                 "value": "Basic SW5mcmFQb3J0YWxDbGllbnQ6cGFzc3dvcmQxJA=="
454                                         }
455                                 ],
456                                 "body": {
457                                         "mode": "raw",
458                                         "raw": "{\n  \"requestDetails\": {\n    \"requestInfo\": {\n      \"productFamilyId\": \"{{auto_service_uuid}}\",\n      \"instanceName\": \"{{vnf_instance_name}}\",\n      \"source\": \"VID\",\n      \"suppressRollback\": false,\n      \"requestorId\": \"test\"\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      \"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/serviceInstances/v7/{{auto_service_instance_id}}/vnfs",
462                                         "host": [
463                                                 "{{url-so}}"
464                                         ],
465                                         "path": [
466                                                 "onap",
467                                                 "so",
468                                                 "infra",
469                                                 "serviceInstances",
470                                                 "v7",
471                                                 "{{auto_service_instance_id}}",
472                                                 "vnfs"
473                                         ]
474                                 }
475                         },
476                         "response": []
477                 },
478                 {
479                         "name": "SO orchestrationRequests after 10s",
480                         "event": [
481                                 {
482                                         "listen": "test",
483                                         "script": {
484                                                 "id": "750de5df-76ee-42c6-8f04-bfb9e1a9ea33",
485                                                 "exec": [
486                                                         "pm.test(\"Status code is 200\", function () {",
487                                                         "    pm.response.to.have.status(200);",
488                                                         "});",
489                                                         "var jsonData = pm.response.json();",
490                                                         "",
491                                                         "pm.globals.set(\"auto_vnf_instance_id\", \"\"+jsonData.request.instanceReferences.vnfInstanceId+\"\");",
492                                                         "tests[\"requestState is : \"+jsonData.request.requestStatus.requestState] = jsonData.request.requestStatus.requestState === \"COMPLETE\";",
493                                                         "tests[\"statusMessage is : \"+jsonData.request.requestStatus.statusMessage] = jsonData.request.requestStatus.statusMessage === \"Vnf has been created successfully.\";",
494                                                         ""
495                                                 ],
496                                                 "type": "text/javascript"
497                                         }
498                                 },
499                                 {
500                                         "listen": "prerequest",
501                                         "script": {
502                                                 "id": "15a5b018-1d8a-4326-9810-cf94a1f4d80f",
503                                                 "exec": [
504                                                         "  var date = new Date();",
505                                                         "  var curDate = null;",
506                                                         "  do {",
507                                                         "    curDate = new Date();",
508                                                         "  }",
509                                                         "  while (curDate - date < 10000);"
510                                                 ],
511                                                 "type": "text/javascript"
512                                         }
513                                 }
514                         ],
515                         "request": {
516                                 "method": "GET",
517                                 "header": [
518                                         {
519                                                 "key": "Accept",
520                                                 "value": "application/json"
521                                         },
522                                         {
523                                                 "key": "Content-Type",
524                                                 "value": "application/json"
525                                         },
526                                         {
527                                                 "key": "X-FromAppId",
528                                                 "value": "AAI"
529                                         },
530                                         {
531                                                 "key": "X-TransactionId",
532                                                 "value": "get_aai_subscr"
533                                         },
534                                         {
535                                                 "key": "Authorization",
536                                                 "value": "Basic SW5mcmFQb3J0YWxDbGllbnQ6cGFzc3dvcmQxJA=="
537                                         }
538                                 ],
539                                 "body": {
540                                         "mode": "raw",
541                                         "raw": ""
542                                 },
543                                 "url": {
544                                         "raw": "{{url-so}}/onap/so/infra/orchestrationRequests/v7/{{auto_so_request_id}}",
545                                         "host": [
546                                                 "{{url-so}}"
547                                         ],
548                                         "path": [
549                                                 "onap",
550                                                 "so",
551                                                 "infra",
552                                                 "orchestrationRequests",
553                                                 "v7",
554                                                 "{{auto_so_request_id}}"
555                                         ]
556                                 }
557                         },
558                         "response": []
559                 },
560                 {
561                         "name": "check vnf instance in inventory via AAI request",
562                         "event": [
563                                 {
564                                         "listen": "test",
565                                         "script": {
566                                                 "id": "a08edc1f-6b8c-4a7e-91ce-6d774d0dfb1e",
567                                                 "exec": [
568                                                         "pm.test(\"Status code is 200\", function () {",
569                                                         "    pm.response.to.have.status(200);",
570                                                         "});",
571                                                         "var jsonData = pm.response.json();",
572                                                         "var vnf_instance_found = false;",
573                                                         "for (var i = 0; i < jsonData[\"generic-vnf\"].length; i++) { ",
574                                                         "   if (jsonData[\"generic-vnf\"][i][\"vnf-name\"] === pm.globals.get(\"vnf_instance_name\")) {",
575                                                         "       vnf_instance_found = true;",
576                                                         "   }",
577                                                         "}",
578                                                         "tests[\"VNF Instance : \"+ pm.globals.get(\"vnf_instance_name\") +\" exists in AAI inventory\"] = vnf_instance_found === true;"
579                                                 ],
580                                                 "type": "text/javascript"
581                                         }
582                                 }
583                         ],
584                         "request": {
585                                 "method": "GET",
586                                 "header": [
587                                         {
588                                                 "key": "Authorization",
589                                                 "value": "Basic QUFJOkFBSQ=="
590                                         },
591                                         {
592                                                 "key": "X-FromAppId",
593                                                 "value": "AAI"
594                                         },
595                                         {
596                                                 "key": "Accept",
597                                                 "value": "application/json"
598                                         },
599                                         {
600                                                 "key": "X-TransactionId",
601                                                 "value": "get_aai_subscr"
602                                         },
603                                         {
604                                                 "key": "Content-Type",
605                                                 "value": "application/json"
606                                         }
607                                 ],
608                                 "body": {
609                                         "mode": "raw",
610                                         "raw": ""
611                                 },
612                                 "url": {
613                                         "raw": "{{url-aai}}/aai/v16/network/generic-vnfs",
614                                         "host": [
615                                                 "{{url-aai}}"
616                                         ],
617                                         "path": [
618                                                 "aai",
619                                                 "v16",
620                                                 "network",
621                                                 "generic-vnfs"
622                                         ]
623                                 }
624                         },
625                         "response": []
626                 },
627                 {
628                         "name": "preload for VFmodule",
629                         "event": [
630                                 {
631                                         "listen": "test",
632                                         "script": {
633                                                 "id": "62a8ef7f-7fde-423c-8b70-5f74bb6bc00b",
634                                                 "exec": [
635                                                         "pm.test(\"Status code is 200\", function () {",
636                                                         "    pm.response.to.have.status(200);",
637                                                         "});"
638                                                 ],
639                                                 "type": "text/javascript"
640                                         }
641                                 }
642                         ],
643                         "request": {
644                                 "method": "POST",
645                                 "header": [
646                                         {
647                                                 "key": "Accept",
648                                                 "value": "application/json"
649                                         },
650                                         {
651                                                 "key": "Content-Type",
652                                                 "value": "application/json"
653                                         },
654                                         {
655                                                 "key": "X-TransactionId",
656                                                 "value": "0a3f6713-ba96-4971-a6f8-c2da85a3176e"
657                                         },
658                                         {
659                                                 "key": "X-FromAppId",
660                                                 "value": "API client"
661                                         },
662                                         {
663                                                 "key": "Authorization",
664                                                 "value": "Basic YWRtaW46S3A4Yko0U1hzek0wV1hsaGFrM2VIbGNzZTJnQXc4NHZhb0dHbUp2VXkyVQ=="
665                                         }
666                                 ],
667                                 "body": {
668                                         "mode": "raw",
669                                         "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"
670                                 },
671                                 "url": {
672                                         "raw": "{{url-sdnc}}/restconf/operations/VNF-API:preload-vnf-topology-operation",
673                                         "host": [
674                                                 "{{url-sdnc}}"
675                                         ],
676                                         "path": [
677                                                 "restconf",
678                                                 "operations",
679                                                 "VNF-API:preload-vnf-topology-operation"
680                                         ]
681                                 }
682                         },
683                         "response": []
684                 },
685                 {
686                         "name": "Instantiate vf-module",
687                         "event": [
688                                 {
689                                         "listen": "test",
690                                         "script": {
691                                                 "id": "61781baf-f6d4-4229-95d0-32e85cde3e82",
692                                                 "exec": [
693                                                         "pm.test(\"Status code is 202\", function () {",
694                                                         "    pm.response.to.have.status(202);",
695                                                         "});",
696                                                         "",
697                                                         "var jsonData = pm.response.json();",
698                                                         "if (responseCode.code === 202){",
699                                                         "    pm.globals.set(\"auto_so_request_id\", \"\"+jsonData.requestReferences.requestId+\"\");",
700                                                         "    pm.globals.set(\"auto_vfmodule_instance_id\", \"\"+jsonData.requestReferences.instanceId+\"\");",
701                                                         "}"
702                                                 ],
703                                                 "type": "text/javascript"
704                                         }
705                                 }
706                         ],
707                         "request": {
708                                 "method": "POST",
709                                 "header": [
710                                         {
711                                                 "key": "Accept",
712                                                 "value": "application/json"
713                                         },
714                                         {
715                                                 "key": "Content-Type",
716                                                 "value": "application/json"
717                                         },
718                                         {
719                                                 "key": "X-FromAppId",
720                                                 "value": "AAI"
721                                         },
722                                         {
723                                                 "key": "X-TransactionId",
724                                                 "value": "get_aai_subscr"
725                                         },
726                                         {
727                                                 "key": "Authorization",
728                                                 "value": "Basic SW5mcmFQb3J0YWxDbGllbnQ6cGFzc3dvcmQxJA=="
729                                         }
730                                 ],
731                                 "body": {
732                                         "mode": "raw",
733                                         "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      \"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"
734                                 },
735                                 "url": {
736                                         "raw": "{{url-so}}/onap/so/infra/serviceInstances/v7/{{auto_service_instance_id}}/vnfs/{{auto_vnf_instance_id}}/vfModules",
737                                         "host": [
738                                                 "{{url-so}}"
739                                         ],
740                                         "path": [
741                                                 "onap",
742                                                 "so",
743                                                 "infra",
744                                                 "serviceInstances",
745                                                 "v7",
746                                                 "{{auto_service_instance_id}}",
747                                                 "vnfs",
748                                                 "{{auto_vnf_instance_id}}",
749                                                 "vfModules"
750                                         ]
751                                 }
752                         },
753                         "response": []
754                 },
755                 {
756                         "name": "SO orchestrationRequests after 120s",
757                         "event": [
758                                 {
759                                         "listen": "test",
760                                         "script": {
761                                                 "id": "ef3be415-7453-4d2d-91ce-de6e2df05dbe",
762                                                 "exec": [
763                                                         "pm.test(\"Status code is 200\", function () {",
764                                                         "    pm.response.to.have.status(200);",
765                                                         "});",
766                                                         "var jsonData = pm.response.json();",
767                                                         "",
768                                                         "pm.globals.set(\"auto_vfmodule_instance_id\", \"\"+jsonData.request.instanceReferences.vfModuleInstanceId+\"\");",
769                                                         "tests[\"requestState is : \"+jsonData.request.requestStatus.requestState] = jsonData.request.requestStatus.requestState === \"COMPLETE\";",
770                                                         "tests[\"statusMessage is : \"+jsonData.request.requestStatus.statusMessage] = jsonData.request.requestStatus.statusMessage === \"Vf Module has been created successfully.\";"
771                                                 ],
772                                                 "type": "text/javascript"
773                                         }
774                                 },
775                                 {
776                                         "listen": "prerequest",
777                                         "script": {
778                                                 "id": "8f7cbf38-cb21-45af-9648-1915c92bcb12",
779                                                 "exec": [
780                                                         "  var date = new Date();",
781                                                         "  var curDate = null;",
782                                                         "  do {",
783                                                         "    curDate = new Date();",
784                                                         "  }",
785                                                         "  while (curDate - date < 10000);"
786                                                 ],
787                                                 "type": "text/javascript"
788                                         }
789                                 }
790                         ],
791                         "request": {
792                                 "method": "GET",
793                                 "header": [
794                                         {
795                                                 "key": "Accept",
796                                                 "value": "application/json"
797                                         },
798                                         {
799                                                 "key": "Content-Type",
800                                                 "value": "application/json"
801                                         },
802                                         {
803                                                 "key": "X-FromAppId",
804                                                 "value": "AAI"
805                                         },
806                                         {
807                                                 "key": "X-TransactionId",
808                                                 "value": "get_aai_subscr"
809                                         },
810                                         {
811                                                 "key": "Authorization",
812                                                 "value": "Basic SW5mcmFQb3J0YWxDbGllbnQ6cGFzc3dvcmQxJA=="
813                                         }
814                                 ],
815                                 "body": {
816                                         "mode": "raw",
817                                         "raw": ""
818                                 },
819                                 "url": {
820                                         "raw": "{{url-so}}/onap/so/infra/orchestrationRequests/v7/{{auto_so_request_id}}",
821                                         "host": [
822                                                 "{{url-so}}"
823                                         ],
824                                         "path": [
825                                                 "onap",
826                                                 "so",
827                                                 "infra",
828                                                 "orchestrationRequests",
829                                                 "v7",
830                                                 "{{auto_so_request_id}}"
831                                         ]
832                                 }
833                         },
834                         "response": []
835                 },
836                 {
837                         "name": "check vfmodule instance in inventory via AAI request",
838                         "event": [
839                                 {
840                                         "listen": "test",
841                                         "script": {
842                                                 "id": "81203009-3d68-426d-9491-1276983693e5",
843                                                 "exec": [
844                                                         "pm.test(\"Status code is 200\", function () {",
845                                                         "    pm.response.to.have.status(200);",
846                                                         "});",
847                                                         "var jsonData = pm.response.json();",
848                                                         "var vfmodule_instance_found = false;",
849                                                         "for (var i = 0; i < jsonData[\"vf-module\"].length; i++) { ",
850                                                         "   if (jsonData[\"vf-module\"][i][\"vf-module-name\"] === pm.globals.get(\"vfmodule_instance_name\")) {",
851                                                         "       vfmodule_instance_found = true;",
852                                                         "   }",
853                                                         "}",
854                                                         "tests[\"vfmodule Instance : \"+ pm.globals.get(\"vfmodule_instance_name\") +\" exists in AAI inventory\"] = vfmodule_instance_found === true;"
855                                                 ],
856                                                 "type": "text/javascript"
857                                         }
858                                 }
859                         ],
860                         "request": {
861                                 "method": "GET",
862                                 "header": [
863                                         {
864                                                 "key": "Authorization",
865                                                 "value": "Basic QUFJOkFBSQ=="
866                                         },
867                                         {
868                                                 "key": "X-FromAppId",
869                                                 "value": "AAI"
870                                         },
871                                         {
872                                                 "key": "Accept",
873                                                 "value": "application/json"
874                                         },
875                                         {
876                                                 "key": "X-TransactionId",
877                                                 "value": "get_aai_subscr"
878                                         },
879                                         {
880                                                 "key": "Content-Type",
881                                                 "value": "application/json"
882                                         }
883                                 ],
884                                 "body": {
885                                         "mode": "raw",
886                                         "raw": ""
887                                 },
888                                 "url": {
889                                         "raw": "{{url-aai}}/aai/v16/network/generic-vnfs/generic-vnf/{{auto_vnf_instance_id}}/vf-modules",
890                                         "host": [
891                                                 "{{url-aai}}"
892                                         ],
893                                         "path": [
894                                                 "aai",
895                                                 "v16",
896                                                 "network",
897                                                 "generic-vnfs",
898                                                 "generic-vnf",
899                                                 "{{auto_vnf_instance_id}}",
900                                                 "vf-modules"
901                                         ]
902                                 }
903                         },
904                         "response": []
905                 },
906                 {
907                         "name": "preload for Virtual Link",
908                         "event": [
909                                 {
910                                         "listen": "test",
911                                         "script": {
912                                                 "id": "62a8ef7f-7fde-423c-8b70-5f74bb6bc00b",
913                                                 "exec": [
914                                                         "pm.test(\"Status code is 200\", function () {",
915                                                         "    pm.response.to.have.status(200);",
916                                                         "});"
917                                                 ],
918                                                 "type": "text/javascript"
919                                         }
920                                 }
921                         ],
922                         "request": {
923                                 "method": "POST",
924                                 "header": [
925                                         {
926                                                 "key": "Accept",
927                                                 "value": "application/json"
928                                         },
929                                         {
930                                                 "key": "Content-Type",
931                                                 "value": "application/json"
932                                         },
933                                         {
934                                                 "key": "X-TransactionId",
935                                                 "value": "0a3f6713-ba96-4971-a6f8-c2da85a3176e"
936                                         },
937                                         {
938                                                 "key": "X-FromAppId",
939                                                 "value": "API client"
940                                         },
941                                         {
942                                                 "key": "Authorization",
943                                                 "value": "Basic YWRtaW46S3A4Yko0U1hzek0wV1hsaGFrM2VIbGNzZTJnQXc4NHZhb0dHbUp2VXkyVQ=="
944                                         }
945                                 ],
946                                 "body": {
947                                         "mode": "raw",
948                                         "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"
949                                 },
950                                 "url": {
951                                         "raw": "{{url-sdnc}}/restconf/operations/VNF-API:preload-network-topology-operation",
952                                         "host": [
953                                                 "{{url-sdnc}}"
954                                         ],
955                                         "path": [
956                                                 "restconf",
957                                                 "operations",
958                                                 "VNF-API:preload-network-topology-operation"
959                                         ]
960                                 }
961                         },
962                         "response": []
963                 },
964                 {
965                         "name": "Instantiate Generic Neutron Virtual Link",
966                         "event": [
967                                 {
968                                         "listen": "test",
969                                         "script": {
970                                                 "id": "030a6341-9ba8-4dc4-bbe4-9818c34d5f1c",
971                                                 "exec": [
972                                                         "pm.test(\"Status code is 202\", function () {",
973                                                         "    pm.response.to.have.status(202);",
974                                                         "});",
975                                                         "",
976                                                         "var jsonData = pm.response.json();",
977                                                         "",
978                                                         "pm.globals.set(\"auto_so_request_id\", \"\"+jsonData.requestReferences.requestId+\"\");",
979                                                         "pm.globals.set(\"auto_virtual_link_instance_id\", \"\"+jsonData.requestReferences.instanceId+\"\");",
980                                                         ""
981                                                 ],
982                                                 "type": "text/javascript"
983                                         }
984                                 }
985                         ],
986                         "request": {
987                                 "method": "POST",
988                                 "header": [
989                                         {
990                                                 "key": "Accept",
991                                                 "value": "application/json"
992                                         },
993                                         {
994                                                 "key": "Content-Type",
995                                                 "value": "application/json"
996                                         },
997                                         {
998                                                 "key": "X-FromAppId",
999                                                 "value": "AAI"
1000                                         },
1001                                         {
1002                                                 "key": "X-TransactionId",
1003                                                 "value": "get_aai_subscr"
1004                                         },
1005                                         {
1006                                                 "key": "Authorization",
1007                                                 "value": "Basic SW5mcmFQb3J0YWxDbGllbnQ6cGFzc3dvcmQxJA=="
1008                                         }
1009                                 ],
1010                                 "body": {
1011                                         "mode": "raw",
1012                                         "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\t\"productFamilyId\": \"b9ac88f7-0e1b-462d-84ac-74c3c533217c\"\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"
1013                                 },
1014                                 "url": {
1015                                         "raw": "{{url-so}}/onap/so/infra/serviceInstances/v7/{{auto_service_instance_id}}/networks",
1016                                         "host": [
1017                                                 "{{url-so}}"
1018                                         ],
1019                                         "path": [
1020                                                 "onap",
1021                                                 "so",
1022                                                 "infra",
1023                                                 "serviceInstances",
1024                                                 "v7",
1025                                                 "{{auto_service_instance_id}}",
1026                                                 "networks"
1027                                         ]
1028                                 }
1029                         },
1030                         "response": []
1031                 },
1032                 {
1033                         "name": "SO orchestrationRequests after 10s",
1034                         "event": [
1035                                 {
1036                                         "listen": "test",
1037                                         "script": {
1038                                                 "id": "ef3be415-7453-4d2d-91ce-de6e2df05dbe",
1039                                                 "exec": [
1040                                                         "pm.test(\"Status code is 200\", function () {",
1041                                                         "    pm.response.to.have.status(200);",
1042                                                         "});",
1043                                                         "var jsonData = pm.response.json();",
1044                                                         "",
1045                                                         "pm.globals.set(\"auto_virtual_link_instance_id\", \"\"+jsonData.request.instanceReferences.networkInstanceId+\"\");",
1046                                                         "tests[\"requestState is : \"+jsonData.request.requestStatus.requestState] = jsonData.request.requestStatus.requestState === \"COMPLETE\";",
1047                                                         "tests[\"statusMessage is : \"+jsonData.request.requestStatus.statusMessage] = jsonData.request.requestStatus.statusMessage === \"Network has been created successfully.\";"
1048                                                 ],
1049                                                 "type": "text/javascript"
1050                                         }
1051                                 },
1052                                 {
1053                                         "listen": "prerequest",
1054                                         "script": {
1055                                                 "id": "8f7cbf38-cb21-45af-9648-1915c92bcb12",
1056                                                 "exec": [
1057                                                         "  var date = new Date();",
1058                                                         "  var curDate = null;",
1059                                                         "  do {",
1060                                                         "    curDate = new Date();",
1061                                                         "  }",
1062                                                         "  while (curDate - date < 10000);"
1063                                                 ],
1064                                                 "type": "text/javascript"
1065                                         }
1066                                 }
1067                         ],
1068                         "request": {
1069                                 "method": "GET",
1070                                 "header": [
1071                                         {
1072                                                 "key": "Accept",
1073                                                 "value": "application/json"
1074                                         },
1075                                         {
1076                                                 "key": "Content-Type",
1077                                                 "value": "application/json"
1078                                         },
1079                                         {
1080                                                 "key": "X-FromAppId",
1081                                                 "value": "AAI"
1082                                         },
1083                                         {
1084                                                 "key": "X-TransactionId",
1085                                                 "value": "get_aai_subscr"
1086                                         },
1087                                         {
1088                                                 "key": "Authorization",
1089                                                 "value": "Basic SW5mcmFQb3J0YWxDbGllbnQ6cGFzc3dvcmQxJA=="
1090                                         }
1091                                 ],
1092                                 "body": {
1093                                         "mode": "raw",
1094                                         "raw": ""
1095                                 },
1096                                 "url": {
1097                                         "raw": "{{url-so}}/onap/so/infra/orchestrationRequests/v7/{{auto_so_request_id}}",
1098                                         "host": [
1099                                                 "{{url-so}}"
1100                                         ],
1101                                         "path": [
1102                                                 "onap",
1103                                                 "so",
1104                                                 "infra",
1105                                                 "orchestrationRequests",
1106                                                 "v7",
1107                                                 "{{auto_so_request_id}}"
1108                                         ]
1109                                 }
1110                         },
1111                         "response": []
1112                 },
1113                 {
1114                         "name": "GET virtual link in AAI by id",
1115                         "request": {
1116                                 "method": "GET",
1117                                 "header": [
1118                                         {
1119                                                 "key": "Accept",
1120                                                 "value": "application/json"
1121                                         },
1122                                         {
1123                                                 "key": "Content-Type",
1124                                                 "value": "application/json"
1125                                         },
1126                                         {
1127                                                 "key": "X-FromAppId",
1128                                                 "value": "AAI"
1129                                         },
1130                                         {
1131                                                 "key": "X-TransactionId",
1132                                                 "value": "get_aai_subscr"
1133                                         },
1134                                         {
1135                                                 "key": "Authorization",
1136                                                 "value": "Basic QUFJOkFBSQ=="
1137                                         }
1138                                 ],
1139                                 "body": {
1140                                         "mode": "raw",
1141                                         "raw": ""
1142                                 },
1143                                 "url": {
1144                                         "raw": "{{url-aai}}/aai/v16/network/l3-networks/l3-network/{{auto_virtual_link_instance_id}}",
1145                                         "host": [
1146                                                 "{{url-aai}}"
1147                                         ],
1148                                         "path": [
1149                                                 "aai",
1150                                                 "v16",
1151                                                 "network",
1152                                                 "l3-networks",
1153                                                 "l3-network",
1154                                                 "{{auto_virtual_link_instance_id}}"
1155                                         ]
1156                                 }
1157                         },
1158                         "response": []
1159                 },
1160                 {
1161                         "name": "GET subnets of network AAI by id",
1162                         "request": {
1163                                 "method": "GET",
1164                                 "header": [
1165                                         {
1166                                                 "key": "Accept",
1167                                                 "value": "application/json"
1168                                         },
1169                                         {
1170                                                 "key": "Content-Type",
1171                                                 "value": "application/json"
1172                                         },
1173                                         {
1174                                                 "key": "X-FromAppId",
1175                                                 "value": "AAI"
1176                                         },
1177                                         {
1178                                                 "key": "X-TransactionId",
1179                                                 "value": "get_aai_subscr"
1180                                         },
1181                                         {
1182                                                 "key": "Authorization",
1183                                                 "value": "Basic QUFJOkFBSQ=="
1184                                         }
1185                                 ],
1186                                 "body": {
1187                                         "mode": "raw",
1188                                         "raw": ""
1189                                 },
1190                                 "url": {
1191                                         "raw": "{{url-aai}}/aai/v16/network/l3-networks/l3-network/{{auto_virtual_link_instance_id}}/subnets",
1192                                         "host": [
1193                                                 "{{url-aai}}"
1194                                         ],
1195                                         "path": [
1196                                                 "aai",
1197                                                 "v16",
1198                                                 "network",
1199                                                 "l3-networks",
1200                                                 "l3-network",
1201                                                 "{{auto_virtual_link_instance_id}}",
1202                                                 "subnets"
1203                                         ]
1204                                 }
1205                         },
1206                         "response": []
1207                 },
1208                 {
1209                         "name": "SO Instantiate service",
1210                         "event": [
1211                                 {
1212                                         "listen": "test",
1213                                         "script": {
1214                                                 "id": "e779f618-dd36-474f-802d-a36abdf69708",
1215                                                 "exec": [
1216                                                         "pm.test(\"Status code is 202\", function () {",
1217                                                         "    pm.response.to.have.status(202);",
1218                                                         "});",
1219                                                         "",
1220                                                         "var jsonData = pm.response.json();",
1221                                                         "",
1222                                                         "pm.globals.set(\"auto_so_request_id\", \"\"+jsonData.requestReferences.requestId+\"\");",
1223                                                         "pm.globals.set(\"auto_service_instance_id\", \"\"+jsonData.requestReferences.instanceId+\"\");",
1224                                                         ""
1225                                                 ],
1226                                                 "type": "text/javascript"
1227                                         }
1228                                 }
1229                         ],
1230                         "request": {
1231                                 "method": "POST",
1232                                 "header": [
1233                                         {
1234                                                 "key": "Accept",
1235                                                 "value": "application/json"
1236                                         },
1237                                         {
1238                                                 "key": "Content-Type",
1239                                                 "value": "application/json"
1240                                         },
1241                                         {
1242                                                 "key": "X-FromAppId",
1243                                                 "value": "AAI"
1244                                         },
1245                                         {
1246                                                 "key": "X-TransactionId",
1247                                                 "value": "get_aai_subscr"
1248                                         },
1249                                         {
1250                                                 "key": "Authorization",
1251                                                 "value": "Basic SW5mcmFQb3J0YWxDbGllbnQ6cGFzc3dvcmQxJA=="
1252                                         }
1253                                 ],
1254                                 "body": {
1255                                         "mode": "raw",
1256                                         "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\": \"3e3b55ca4c9948d1a9fa68715831c6bd\",\n            \"cloudOwner\": \"OPNFV\",\n            \"lcpCloudRegionId\": \"RegionOne\"\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\": \"6b5b6b70-4e9a-4f6f-8b7b-cbd7cf990c6e\",\n\t\t\t\"owningEntityName\": \"{{owning_entity}}\"\n\t\t}\n\t}\n}"
1257                                 },
1258                                 "url": {
1259                                         "raw": "{{url-so}}/onap/so/infra/serviceInstances/v7/serviceInstances",
1260                                         "host": [
1261                                                 "{{url-so}}"
1262                                         ],
1263                                         "path": [
1264                                                 "onap",
1265                                                 "so",
1266                                                 "infra",
1267                                                 "serviceInstances",
1268                                                 "v7",
1269                                                 "serviceInstances"
1270                                         ]
1271                                 }
1272                         },
1273                         "response": []
1274                 },
1275                 {
1276                         "name": "SO orchestrationRequests after 10s",
1277                         "event": [
1278                                 {
1279                                         "listen": "test",
1280                                         "script": {
1281                                                 "id": "ef3be415-7453-4d2d-91ce-de6e2df05dbe",
1282                                                 "exec": [
1283                                                         "pm.test(\"Status code is 200\", function () {",
1284                                                         "    pm.response.to.have.status(200);",
1285                                                         "});",
1286                                                         "var jsonData = pm.response.json();",
1287                                                         "",
1288                                                         "pm.globals.set(\"auto_virtual_link_instance_id\", \"\"+jsonData.request.instanceReferences.networkInstanceId+\"\");",
1289                                                         "tests[\"requestState is : \"+jsonData.request.requestStatus.requestState] = jsonData.request.requestStatus.requestState === \"COMPLETE\";",
1290                                                         "tests[\"statusMessage is : \"+jsonData.request.requestStatus.statusMessage] = jsonData.request.requestStatus.statusMessage === \"Network has been created successfully.\";"
1291                                                 ],
1292                                                 "type": "text/javascript"
1293                                         }
1294                                 },
1295                                 {
1296                                         "listen": "prerequest",
1297                                         "script": {
1298                                                 "id": "8f7cbf38-cb21-45af-9648-1915c92bcb12",
1299                                                 "exec": [
1300                                                         "  var date = new Date();",
1301                                                         "  var curDate = null;",
1302                                                         "  do {",
1303                                                         "    curDate = new Date();",
1304                                                         "  }",
1305                                                         "  while (curDate - date < 10000);"
1306                                                 ],
1307                                                 "type": "text/javascript"
1308                                         }
1309                                 }
1310                         ],
1311                         "request": {
1312                                 "method": "GET",
1313                                 "header": [
1314                                         {
1315                                                 "key": "Accept",
1316                                                 "value": "application/json"
1317                                         },
1318                                         {
1319                                                 "key": "Content-Type",
1320                                                 "value": "application/json"
1321                                         },
1322                                         {
1323                                                 "key": "X-FromAppId",
1324                                                 "value": "AAI"
1325                                         },
1326                                         {
1327                                                 "key": "X-TransactionId",
1328                                                 "value": "get_aai_subscr"
1329                                         },
1330                                         {
1331                                                 "key": "Authorization",
1332                                                 "value": "Basic SW5mcmFQb3J0YWxDbGllbnQ6cGFzc3dvcmQxJA=="
1333                                         }
1334                                 ],
1335                                 "body": {
1336                                         "mode": "raw",
1337                                         "raw": ""
1338                                 },
1339                                 "url": {
1340                                         "raw": "{{url-so}}/onap/so/infra/orchestrationRequests/v7/{{auto_so_request_id}}",
1341                                         "host": [
1342                                                 "{{url-so}}"
1343                                         ],
1344                                         "path": [
1345                                                 "onap",
1346                                                 "so",
1347                                                 "infra",
1348                                                 "orchestrationRequests",
1349                                                 "v7",
1350                                                 "{{auto_so_request_id}}"
1351                                         ]
1352                                 }
1353                         },
1354                         "response": []
1355                 }
1356         ]
1357 }