Add postman collections for smoke/pairwise testing
[policy/parent.git] / docs / development / devtools / postman / publish-cba-CDS.postman_collection.json
1 {
2     "info": {
3         "_postman_id": "c8fa181e-0210-4f6c-a754-da377939c299",
4         "name": "Publish CBA in CDS",
5         "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
6     },
7     "item": [
8         {
9             "name": "Bootstrap",
10             "request": {
11                 "auth": {
12                     "type": "basic",
13                     "basic": [
14                         {
15                             "key": "password",
16                             "value": "ccsdkapps",
17                             "type": "string"
18                         },
19                         {
20                             "key": "username",
21                             "value": "ccsdkapps",
22                             "type": "string"
23                         }
24                     ]
25                 },
26                 "method": "POST",
27                 "header": [
28                     {
29                         "key": "Accept",
30                         "type": "text",
31                         "value": "application/json"
32                     },
33                     {
34                         "key": "Content-Type",
35                         "type": "text",
36                         "value": "application/json"
37                     }
38                 ],
39                 "body": {
40                     "mode": "raw",
41                     "raw": "{\r\n    \"loadModelType\" : true,\r\n    \"loadResourceDictionary\" : true,\r\n    \"loadCBA\" : false\r\n}",
42                     "options": {
43                         "raw": {
44                             "language": "json"
45                         }
46                     }
47                 },
48                 "url": {
49                     "raw": "{{CDS-URL}}/api/v1/blueprint-model/bootstrap",
50                     "host": [
51                         "{{CDS-URL}}"
52                     ],
53                     "path": [
54                         "api",
55                         "v1",
56                         "blueprint-model",
57                         "bootstrap"
58                     ]
59                 }
60             },
61             "response": []
62         },
63         {
64             "name": "Enrich and Publish CBA",
65             "request": {
66                 "auth": {
67                     "type": "basic",
68                     "basic": [
69                         {
70                             "key": "password",
71                             "value": "ccsdkapps",
72                             "type": "string"
73                         },
74                         {
75                             "key": "username",
76                             "value": "ccsdkapps",
77                             "type": "string"
78                         }
79                     ]
80                 },
81                 "method": "POST",
82                 "header": [
83                     {
84                         "key": "Accept",
85                         "type": "text",
86                         "value": "application/json"
87                     },
88                     {
89                         "key": "Content-Type",
90                         "type": "text",
91                         "value": "application/json"
92                     }
93                 ],
94                 "body": {
95                     "mode": "formdata",
96                     "formdata": [
97                         {
98                             "key": "file",
99                             "type": "file",
100                             "src": "/Users/rpujar/repos/bell/controlloop-examples/simple-cl-use-case-cba/Archive.zip"
101                         }
102                     ]
103                 },
104                 "url": {
105                     "raw": "{{CDS-URL}}/api/v1/blueprint-model/enrichandpublish",
106                     "host": [
107                         "{{CDS-URL}}"
108                     ],
109                     "path": [
110                         "api",
111                         "v1",
112                         "blueprint-model",
113                         "enrichandpublish"
114                     ]
115                 }
116             },
117             "response": []
118         },
119         {
120             "name": "Get all CBAs",
121             "protocolProfileBehavior": {
122                 "disableBodyPruning": true
123             },
124             "request": {
125                 "auth": {
126                     "type": "basic",
127                     "basic": [
128                         {
129                             "key": "password",
130                             "value": "ccsdkapps",
131                             "type": "string"
132                         },
133                         {
134                             "key": "username",
135                             "value": "ccsdkapps",
136                             "type": "string"
137                         }
138                     ]
139                 },
140                 "method": "GET",
141                 "header": [
142                     {
143                         "key": "Accept",
144                         "type": "text",
145                         "value": "application/json"
146                     },
147                     {
148                         "key": "Content-Type",
149                         "type": "text",
150                         "value": "application/json"
151                     }
152                 ],
153                 "body": {
154                     "mode": "raw",
155                     "raw": "{\r\n    \"loadModelType\" : true,\r\n    \"loadResourceDictionary\" : true,\r\n    \"loadCBA\" : false\r\n}",
156                     "options": {
157                         "raw": {
158                             "language": "json"
159                         }
160                     }
161                 },
162                 "url": {
163                     "raw": "{{CDS-URL}}/api/v1/blueprint-model/paged",
164                     "host": [
165                         "{{CDS-URL}}"
166                     ],
167                     "path": [
168                         "api",
169                         "v1",
170                         "blueprint-model",
171                         "paged"
172                     ]
173                 }
174             },
175             "response": []
176         },
177         {
178             "name": "Download CBA",
179             "protocolProfileBehavior": {
180                 "disableBodyPruning": true
181             },
182             "request": {
183                 "auth": {
184                     "type": "basic",
185                     "basic": [
186                         {
187                             "key": "password",
188                             "value": "ccsdkapps",
189                             "type": "string"
190                         },
191                         {
192                             "key": "username",
193                             "value": "ccsdkapps",
194                             "type": "string"
195                         }
196                     ]
197                 },
198                 "method": "GET",
199                 "header": [
200                     {
201                         "key": "Accept",
202                         "type": "text",
203                         "value": "application/json"
204                     },
205                     {
206                         "key": "Content-Type",
207                         "type": "text",
208                         "value": "application/json"
209                     }
210                 ],
211                 "body": {
212                     "mode": "raw",
213                     "raw": "{\r\n    \"loadModelType\" : true,\r\n    \"loadResourceDictionary\" : true,\r\n    \"loadCBA\" : false\r\n}",
214                     "options": {
215                         "raw": {
216                             "language": "json"
217                         }
218                     }
219                 },
220                 "url": {
221                     "raw": "{{CDS-URL}}/api/v1/blueprint-model/download/by-name/controlloop-hostname-update-cba/version/1.0.0",
222                     "host": [
223                         "{{CDS-URL}}"
224                     ],
225                     "path": [
226                         "api",
227                         "v1",
228                         "blueprint-model",
229                         "download",
230                         "by-name",
231                         "controlloop-hostname-update-cba",
232                         "version",
233                         "1.0.0"
234                     ]
235                 }
236             },
237             "response": []
238         },
239         {
240             "name": "Delete a specific CBA",
241             "request": {
242                 "auth": {
243                     "type": "basic",
244                     "basic": [
245                         {
246                             "key": "password",
247                             "value": "ccsdkapps",
248                             "type": "string"
249                         },
250                         {
251                             "key": "username",
252                             "value": "ccsdkapps",
253                             "type": "string"
254                         }
255                     ]
256                 },
257                 "method": "DELETE",
258                 "header": [
259                     {
260                         "key": "Accept",
261                         "type": "text",
262                         "value": "application/json"
263                     },
264                     {
265                         "key": "Content-Type",
266                         "type": "text",
267                         "value": "application/json"
268                     }
269                 ],
270                 "body": {
271                     "mode": "raw",
272                     "raw": "{\r\n    \"loadModelType\" : true,\r\n    \"loadResourceDictionary\" : true,\r\n    \"loadCBA\" : false\r\n}",
273                     "options": {
274                         "raw": {
275                             "language": "json"
276                         }
277                     }
278                 },
279                 "url": {
280                     "raw": "{{CDS-URL}}/api/v1/blueprint-model/name/pnf-test-cba/version/1.0.0",
281                     "host": [
282                         "{{CDS-URL}}"
283                     ],
284                     "path": [
285                         "api",
286                         "v1",
287                         "blueprint-model",
288                         "name",
289                         "pnf-test-cba",
290                         "version",
291                         "1.0.0"
292                     ]
293                 }
294             },
295             "response": []
296         },
297         {
298             "name": "Execute pnf-test-cba success",
299             "request": {
300                 "auth": {
301                     "type": "basic",
302                     "basic": [
303                         {
304                             "key": "password",
305                             "value": "ccsdkapps",
306                             "type": "string"
307                         },
308                         {
309                             "key": "username",
310                             "value": "ccsdkapps",
311                             "type": "string"
312                         }
313                     ]
314                 },
315                 "method": "POST",
316                 "header": [
317                     {
318                         "key": "Accept",
319                         "type": "text",
320                         "value": "application/json"
321                     },
322                     {
323                         "key": "Content-Type",
324                         "type": "text",
325                         "value": "application/json"
326                     }
327                 ],
328                 "body": {
329                     "mode": "raw",
330                     "raw": "{\r\n    \"actionIdentifiers\": {\r\n        \"mode\": \"sync\",\r\n        \"blueprintName\": \"pnf-test-cba\",\r\n        \"blueprintVersion\": \"1.0.0\",\r\n        \"actionName\": \"update-config\"\r\n    },\r\n    \"payload\": {\r\n        \"update-config-request\": {\r\n            \"update-config-properties\": {\r\n                \"hostname\": \"host\",\r\n                \"IP\": \"10.43.230.146\",\r\n                \"pnfName\": \"simple-cl-pnf\"\r\n            }\r\n        }\r\n    },\r\n    \"commonHeader\": {\r\n        \"subRequestId\": \"8c7935a4-79d8-4ec0-b661-dcca3cd68006\",\r\n        \"requestId\": \"f392e439-c176-411b-b972-8acadac0f8df\",\r\n        \"originatorId\": \"POLICY\"\r\n    }\r\n}"
331                 },
332                 "url": {
333                     "raw": "{{CDS-URL}}/api/v1/execution-service/process",
334                     "host": [
335                         "{{CDS-URL}}"
336                     ],
337                     "path": [
338                         "api",
339                         "v1",
340                         "execution-service",
341                         "process"
342                     ]
343                 }
344             },
345             "response": []
346         },
347         {
348             "name": "Execute pnf-test-cba failure",
349             "request": {
350                 "auth": {
351                     "type": "basic",
352                     "basic": [
353                         {
354                             "key": "password",
355                             "value": "ccsdkapps",
356                             "type": "string"
357                         },
358                         {
359                             "key": "username",
360                             "value": "ccsdkapps",
361                             "type": "string"
362                         }
363                     ]
364                 },
365                 "method": "POST",
366                 "header": [
367                     {
368                         "key": "Accept",
369                         "type": "text",
370                         "value": "application/json"
371                     },
372                     {
373                         "key": "Content-Type",
374                         "type": "text",
375                         "value": "application/json"
376                     }
377                 ],
378                 "body": {
379                     "mode": "raw",
380                     "raw": "{\r\n  \"actionIdentifiers\": {\r\n    \"mode\": \"sync\",\r\n    \"blueprintName\": \"pnf-test-cba\",\r\n    \"blueprintVersion\": \"1.0.0\",\r\n    \"actionName\": \"update-config\"\r\n  },\r\n  \"payload\": {\r\n        \"update-config-request\": {\r\n            \"update-config-properties\": {\r\n                \"hostname\": \"host\",\r\n                \"IP\": \"10.43.230.146\",\r\n                \"pnfName\": \"simple-cl-pnf-failure\"\r\n            }\r\n        }\r\n    },\r\n  \"commonHeader\": {\r\n    \"subRequestId\": \"8c7935a4-79d8-4ec0-b661-dcca3cd68006\",\r\n    \"requestId\": \"f392e439-c176-411b-b972-8acadac0f8df\",\r\n    \"originatorId\": \"POLICY\"\r\n  }\r\n}"
381                 },
382                 "url": {
383                     "raw": "{{CDS-URL}}/api/v1/execution-service/process",
384                     "host": [
385                         "{{CDS-URL}}"
386                     ],
387                     "path": [
388                         "api",
389                         "v1",
390                         "execution-service",
391                         "process"
392                     ]
393                 }
394             },
395             "response": []
396         },
397         {
398             "name": "Execute vnf-test-cba success",
399             "request": {
400                 "auth": {
401                     "type": "basic",
402                     "basic": [
403                         {
404                             "key": "password",
405                             "value": "ccsdkapps",
406                             "type": "string"
407                         },
408                         {
409                             "key": "username",
410                             "value": "ccsdkapps",
411                             "type": "string"
412                         }
413                     ]
414                 },
415                 "method": "POST",
416                 "header": [
417                     {
418                         "key": "Accept",
419                         "type": "text",
420                         "value": "application/json"
421                     },
422                     {
423                         "key": "Content-Type",
424                         "type": "text",
425                         "value": "application/json"
426                     }
427                 ],
428                 "body": {
429                     "mode": "raw",
430                     "raw": "{\r\n    \"actionIdentifiers\": {\r\n        \"mode\": \"sync\",\r\n        \"blueprintName\": \"vnf-test-cba\",\r\n        \"blueprintVersion\": \"1.0.0\",\r\n        \"actionName\": \"modify-config\"\r\n    },\r\n    \"payload\": {\r\n        \"modify-config-request\": {\r\n            \"modify-config-properties\": {\r\n                \"vfStatus\": \"Active\",\r\n                \"service-instance.service-instance-id\": \"55322ada-145a-492e-b196-0d171539a4b2\",\r\n                \"generic-vnf.vnf-id\": \"57b008b9-b367-4359-93fd-74d3ce0ee1a0\",\r\n                \"data\": {\r\n                    \"active-streams\": \"7\"\r\n                }\r\n            }\r\n        }\r\n    },\r\n    \"commonHeader\": {\r\n        \"subRequestId\": \"8c7935a4-79d8-4ec0-b661-dcca3cd68006\",\r\n        \"requestId\": \"f392e439-c176-411b-b972-8acadac0f8df\",\r\n        \"originatorId\": \"POLICY\"\r\n    }\r\n}"
431                 },
432                 "url": {
433                     "raw": "{{CDS-URL}}/api/v1/execution-service/process",
434                     "host": [
435                         "{{CDS-URL}}"
436                     ],
437                     "path": [
438                         "api",
439                         "v1",
440                         "execution-service",
441                         "process"
442                     ]
443                 }
444             },
445             "response": []
446         },
447         {
448             "name": "Execute vnf-test-cba failure",
449             "request": {
450                 "auth": {
451                     "type": "basic",
452                     "basic": [
453                         {
454                             "key": "password",
455                             "value": "ccsdkapps",
456                             "type": "string"
457                         },
458                         {
459                             "key": "username",
460                             "value": "ccsdkapps",
461                             "type": "string"
462                         }
463                     ]
464                 },
465                 "method": "POST",
466                 "header": [
467                     {
468                         "key": "Accept",
469                         "type": "text",
470                         "value": "application/json"
471                     },
472                     {
473                         "key": "Content-Type",
474                         "type": "text",
475                         "value": "application/json"
476                     }
477                 ],
478                 "body": {
479                     "mode": "raw",
480                     "raw": "{\r\n    \"actionIdentifiers\": {\r\n        \"mode\": \"sync\",\r\n        \"blueprintName\": \"vnf-test-cba\",\r\n        \"blueprintVersion\": \"1.0.0\",\r\n        \"actionName\": \"modify-config\"\r\n    },\r\n    \"payload\": {\r\n        \"modify-config-request\": {\r\n            \"modify-config-properties\": {\r\n                \"vfStatus\": \"InActive\",\r\n                \"service-instance.service-instance-id\": \"55322ada-145a-492e-b196-0d171539a4b2\",\r\n                \"generic-vnf.vnf-id\": \"57b008b9-b367-4359-93fd-74d3ce0ee1a0\",\r\n                \"data\": {\r\n                    \"active-streams\": \"7\"\r\n                }\r\n            }\r\n        }\r\n    },\r\n    \"commonHeader\": {\r\n        \"subRequestId\": \"8c7935a4-79d8-4ec0-b661-dcca3cd68006\",\r\n        \"requestId\": \"f392e439-c176-411b-b972-8acadac0f8df\",\r\n        \"originatorId\": \"POLICY\"\r\n    }\r\n}"
481                 },
482                 "url": {
483                     "raw": "{{CDS-URL}}/api/v1/execution-service/process",
484                     "host": [
485                         "{{CDS-URL}}"
486                     ],
487                     "path": [
488                         "api",
489                         "v1",
490                         "execution-service",
491                         "process"
492                     ]
493                 }
494             },
495             "response": []
496         },
497         {
498             "name": "Execute vnf-test-cba success",
499             "request": {
500                 "auth": {
501                     "type": "basic",
502                     "basic": [
503                         {
504                             "key": "password",
505                             "value": "ccsdkapps",
506                             "type": "string"
507                         },
508                         {
509                             "key": "username",
510                             "value": "ccsdkapps",
511                             "type": "string"
512                         }
513                     ]
514                 },
515                 "method": "POST",
516                 "header": [
517                     {
518                         "key": "Accept",
519                         "type": "text",
520                         "value": "application/json"
521                     },
522                     {
523                         "key": "Content-Type",
524                         "type": "text",
525                         "value": "application/json"
526                     }
527                 ],
528                 "body": {
529                     "mode": "raw",
530                     "raw": "{\r\n    \"actionIdentifiers\": {\r\n        \"mode\": \"sync\",\r\n        \"blueprintName\": \"vnf-test-cba\",\r\n        \"blueprintVersion\": \"1.0.0\",\r\n        \"actionName\": \"restart\"\r\n    },\r\n    \"payload\": {\r\n        \"restart-request\": {\r\n            \"restart-properties\": {\r\n                \"vfStatus\": \"Active\",\r\n                \"service-instance.service-instance-id\": \"55322ada-145a-492e-b196-0d171539a4b2\",\r\n                \"generic-vnf.vnf-id\": \"57b008b9-b367-4359-93fd-74d3ce0ee1a0\",\r\n                \"data\": {\r\n                    \"active-streams\": \"7\"\r\n                }\r\n            }\r\n        }\r\n    },\r\n    \"commonHeader\": {\r\n        \"subRequestId\": \"8c7935a4-79d8-4ec0-b661-dcca3cd68006\",\r\n        \"requestId\": \"f392e439-c176-411b-b972-8acadac0f8df\",\r\n        \"originatorId\": \"POLICY\"\r\n    }\r\n}"
531                 },
532                 "url": {
533                     "raw": "{{CDS-URL}}/api/v1/execution-service/process",
534                     "host": [
535                         "{{CDS-URL}}"
536                     ],
537                     "path": [
538                         "api",
539                         "v1",
540                         "execution-service",
541                         "process"
542                     ]
543                 }
544             },
545             "response": []
546         },
547         {
548             "name": "Execute vnf-test-cba failure",
549             "request": {
550                 "auth": {
551                     "type": "basic",
552                     "basic": [
553                         {
554                             "key": "password",
555                             "value": "ccsdkapps",
556                             "type": "string"
557                         },
558                         {
559                             "key": "username",
560                             "value": "ccsdkapps",
561                             "type": "string"
562                         }
563                     ]
564                 },
565                 "method": "POST",
566                 "header": [
567                     {
568                         "key": "Accept",
569                         "type": "text",
570                         "value": "application/json"
571                     },
572                     {
573                         "key": "Content-Type",
574                         "type": "text",
575                         "value": "application/json"
576                     }
577                 ],
578                 "body": {
579                     "mode": "raw",
580                     "raw": "{\r\n    \"actionIdentifiers\": {\r\n        \"mode\": \"sync\",\r\n        \"blueprintName\": \"vnf-test-cba\",\r\n        \"blueprintVersion\": \"1.0.0\",\r\n        \"actionName\": \"restart\"\r\n    },\r\n    \"payload\": {\r\n        \"restart-request\": {\r\n            \"restart-properties\": {\r\n                \"vfStatus\": \"InActive\",\r\n                \"service-instance.service-instance-id\": \"55322ada-145a-492e-b196-0d171539a4b2\",\r\n                \"generic-vnf.vnf-id\": \"57b008b9-b367-4359-93fd-74d3ce0ee1a0\",\r\n                \"data\": {\r\n                    \"active-streams\": \"7\"\r\n                }\r\n            }\r\n        }\r\n    },\r\n    \"commonHeader\": {\r\n        \"subRequestId\": \"8c7935a4-79d8-4ec0-b661-dcca3cd68006\",\r\n        \"requestId\": \"f392e439-c176-411b-b972-8acadac0f8df\",\r\n        \"originatorId\": \"POLICY\"\r\n    }\r\n}"
581                 },
582                 "url": {
583                     "raw": "{{CDS-URL}}/api/v1/execution-service/process",
584                     "host": [
585                         "{{CDS-URL}}"
586                     ],
587                     "path": [
588                         "api",
589                         "v1",
590                         "execution-service",
591                         "process"
592                     ]
593                 }
594             },
595             "response": []
596         }
597     ]
598 }