Add postman collections for smoke/pairwise testing
[policy/parent.git] / docs / development / devtools / postman / drools-pdp-vnf-pnf-testing.postman_collection.json
1 {
2     "info": {
3         "_postman_id": "82b9e85d-e9cd-4161-9b11-837465918e7c",
4         "name": "Drools-PDP VNF & PNF Testing",
5         "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
6     },
7     "item": [
8         {
9             "name": "Create VNF Policy",
10             "request": {
11                 "method": "POST",
12                 "header": [
13                     {
14                         "key": "Accept",
15                         "type": "text",
16                         "value": "application/json"
17                     },
18                     {
19                         "key": "Content-Type",
20                         "type": "text",
21                         "value": "application/json"
22                     }
23                 ],
24                 "body": {
25                     "mode": "raw",
26                     "raw": "{\n    \"tosca_definitions_version\": \"tosca_simple_yaml_1_1_0\",\n    \"topology_template\": {\n        \"policies\": [\n            {\n                \"onap.policies.drools.vnf.Example\": {\n                    \"type\": \"onap.policies.controlloop.operational.common.Drools\",\n                    \"type_version\": \"1.0.0\",\n                    \"version\": \"1.0.0\",\n                    \"name\": \"onap.policies.drools.vnf.Example\",\n                    \"properties\": {\n                        \"id\": \"ControlLoop-vnf-d0a1dfc6-94f5-4fd4-a5b5-4630b438831b\",\n                        \"timeout\": 1200,\n                        \"abatement\": false,\n                        \"trigger\": \"vnf-modifyConfig\",\n                        \"operations\": [\n                            {\n                                \"id\": \"vnf-modifyConfig\",\n                                \"description\": \"Test policy for vnf modify config\",\n                                \"operation\": {\n                                    \"actor\": \"CDS\",\n                                    \"operation\": \"modify-config\",\n                                    \"target\": {\n                                        \"targetType\": \"VNF\",\n                                        \"entityIds\": {\n                                            \"resourceID\": \"vTEST_XYZ\"\n                                        }\n                                    },\n                                    \"payload\": {\n                                        \"artifact_name\": \"vnf-test-cba\",\n                                        \"artifact_version\": \"1.0.0\",\n                                        \"data\": \"{\\\"test\\\": \\\"test\\\"}\"\n                                    }\n                                },\n                                \"timeout\": 300,\n                                \"retries\": 0,\n                                \"success\": \"vnf-restart\",\n                                \"failure\": \"final_failure\",\n                                \"failure_timeout\": \"final_failure_timeout\",\n                                \"failure_retries\": \"final_failure_retries\",\n                                \"failure_exception\": \"final_failure_exception\",\n                                \"failure_guard\": \"final_failure_guard\"\n                            },\n                            {\n                                \"id\": \"vnf-restart\",\n                                \"description\": \"Test policy for vnf restart\",\n                                \"operation\": {\n                                    \"actor\": \"CDS\",\n                                    \"operation\": \"restart\",\n                                    \"target\": {\n                                        \"targetType\": \"VNF\",\n                                        \"entityIds\": {\n                                            \"resourceID\": \"vTEST_XYZ\"\n                                        }\n                                    },\n                                    \"payload\": {\n                                        \"artifact_name\": \"vnf-test-cba\",\n                                        \"artifact_version\": \"1.0.0\",\n                                        \"data\": \"{\\\"test\\\": \\\"test\\\"}\"\n                                    }\n                                },\n                                \"timeout\": 300,\n                                \"retries\": 0,\n                                \"success\": \"final_success\",\n                                \"failure\": \"final_failure\",\n                                \"failure_timeout\": \"final_failure_timeout\",\n                                \"failure_retries\": \"final_failure_retries\",\n                                \"failure_exception\": \"final_failure_exception\",\n                                \"failure_guard\": \"final_failure_guard\"\n                            }\n                        ],\n                        \"controllerName\": \"usecases\"\n                    }\n                }\n            }\n        ]\n    }\n}"
27                 },
28                 "url": {
29                     "raw": "{{POLICY-API-URL}}/policy/api/v1/policies",
30                     "host": [
31                         "{{POLICY-API-URL}}"
32                     ],
33                     "path": [
34                         "policy",
35                         "api",
36                         "v1",
37                         "policies"
38                     ]
39                 }
40             },
41             "response": []
42         },
43         {
44             "name": "Verify VNF Policy",
45             "request": {
46                 "method": "GET",
47                 "header": [
48                     {
49                         "key": "Accept",
50                         "type": "text",
51                         "value": "application/json"
52                     },
53                     {
54                         "key": "Content-Type",
55                         "type": "text",
56                         "value": "application/json"
57                     }
58                 ],
59                 "url": {
60                     "raw": "{{POLICY-API-URL}}/policy/api/v1/policies/onap.policies.drools.vnf.Example/versions/1.0.0",
61                     "host": [
62                         "{{POLICY-API-URL}}"
63                     ],
64                     "path": [
65                         "policy",
66                         "api",
67                         "v1",
68                         "policies",
69                         "onap.policies.drools.vnf.Example",
70                         "versions",
71                         "1.0.0"
72                     ]
73                 }
74             },
75             "response": []
76         },
77         {
78             "name": "Create PNF Policy",
79             "request": {
80                 "method": "POST",
81                 "header": [
82                     {
83                         "key": "Accept",
84                         "type": "text",
85                         "value": "application/json"
86                     },
87                     {
88                         "key": "Content-Type",
89                         "type": "text",
90                         "value": "application/json"
91                     }
92                 ],
93                 "body": {
94                     "mode": "raw",
95                     "raw": "{\n    \"tosca_definitions_version\": \"tosca_simple_yaml_1_1_0\",\n    \"topology_template\": {\n        \"policies\": [\n            {\n                \"onap.policies.drools.pnf.Example\": {\n                    \"type\": \"onap.policies.controlloop.operational.common.Drools\",\n                    \"type_version\": \"1.0.0\",\n                    \"version\": \"1.0.0\",\n                    \"name\": \"onap.policies.drools.pnf.Example\",\n                    \"properties\": {\n                        \"id\": \"ControlLoop-pnf-d0a1dfc6-94f5-4fd4-a5b5-4630b438851b\",\n                        \"timeout\": 1200,\n                        \"abatement\": false,\n                        \"trigger\": \"pnf-updateConfig\",\n                        \"operations\": [\n                            {\n                                \"id\": \"pnf-updateConfig\",\n                                \"description\": \"Test the pnf update config\",\n                                \"operation\": {\n                                    \"actor\": \"CDS\",\n                                    \"operation\": \"update-config\",\n                                    \"target\": {\n                                        \"targetType\": \"PNF\"\n                                    },\n                                    \"payload\": {\n                                        \"artifact_name\": \"pnf-test-cba\",\n                                        \"artifact_version\": \"1.0.0\",\n                                        \"data\": \"test\"\n                                    }\n                                },\n                                \"timeout\": 300,\n                                \"retries\": 0,\n                                \"success\": \"final_success\",\n                                \"failure\": \"final_failure\",\n                                \"failure_timeout\": \"final_failure_timeout\",\n                                \"failure_retries\": \"final_failure_retries\",\n                                \"failure_exception\": \"final_failure_exception\",\n                                \"failure_guard\": \"final_failure_guard\"\n                            }\n                        ],\n                        \"controllerName\": \"usecases\"\n                    }\n                }\n            }\n        ]\n    }\n}"
96                 },
97                 "url": {
98                     "raw": "{{POLICY-API-URL}}/policy/api/v1/policies",
99                     "host": [
100                         "{{POLICY-API-URL}}"
101                     ],
102                     "path": [
103                         "policy",
104                         "api",
105                         "v1",
106                         "policies"
107                     ]
108                 }
109             },
110             "response": []
111         },
112         {
113             "name": "Verify PNF Policy",
114             "request": {
115                 "method": "GET",
116                 "header": [
117                     {
118                         "key": "Accept",
119                         "type": "text",
120                         "value": "application/json"
121                     },
122                     {
123                         "key": "Content-Type",
124                         "type": "text",
125                         "value": "application/json"
126                     }
127                 ],
128                 "url": {
129                     "raw": "{{POLICY-API-URL}}/policy/api/v1/policies/onap.policies.drools.pnf.Example/versions/1.0.0",
130                     "host": [
131                         "{{POLICY-API-URL}}"
132                     ],
133                     "path": [
134                         "policy",
135                         "api",
136                         "v1",
137                         "policies",
138                         "onap.policies.drools.pnf.Example",
139                         "versions",
140                         "1.0.0"
141                     ]
142                 }
143             },
144             "response": []
145         },
146         {
147             "name": "PDP Group Query",
148             "protocolProfileBehavior": {
149                 "disableBodyPruning": true
150             },
151             "request": {
152                 "method": "GET",
153                 "header": [
154                     {
155                         "key": "Content-Type",
156                         "type": "text",
157                         "value": "application/json"
158                     },
159                     {
160                         "key": "Accept",
161                         "type": "text",
162                         "value": "application/json"
163                     }
164                 ],
165                 "body": {
166                     "mode": "raw",
167                     "raw": "{\r\n    \"groups\": [\r\n        {\r\n            \"name\": \"defaultGroup\",\r\n            \"deploymentSubgroups\": [\r\n                {\r\n                    \"pdpType\": \"apex\",\r\n                    \"action\": \"POST\",\r\n                    \"policies\": [{\r\n                            \"name\": \"onap.policies.controlloop.operational.apex.Sampledomain\",\r\n                            \"version\": \"1.0.0\"\r\n                        }]\r\n                }\r\n            ]\r\n        }\r\n    ]\r\n}"
168                 },
169                 "url": {
170                     "raw": "{{POLICY-PAP-URL}}/policy/pap/v1/pdps",
171                     "host": [
172                         "{{POLICY-PAP-URL}}"
173                     ],
174                     "path": [
175                         "policy",
176                         "pap",
177                         "v1",
178                         "pdps"
179                     ]
180                 }
181             },
182             "response": []
183         },
184         {
185             "name": "Deploy Policy",
186             "request": {
187                 "method": "POST",
188                 "header": [
189                     {
190                         "key": "Content-Type",
191                         "type": "text",
192                         "value": "application/json"
193                     },
194                     {
195                         "key": "Accept",
196                         "type": "text",
197                         "value": "application/json"
198                     }
199                 ],
200                 "body": {
201                     "mode": "raw",
202                     "raw": "{\r\n    \"groups\": [\r\n        {\r\n            \"name\": \"defaultGroup\",\r\n            \"deploymentSubgroups\": [\r\n                {\r\n                    \"pdpType\": \"drools\",\r\n                    \"action\": \"POST\",\r\n                    \"policies\": [\r\n                        {\r\n                            \"name\": \"onap.policies.drools.vnf.Example\",\r\n                            \"version\": \"1.0.0\"\r\n                        },\r\n                        {\r\n                            \"name\": \"onap.policies.drools.pnf.Example\",\r\n                            \"version\": \"1.0.0\"\r\n                        }\r\n                    ]\r\n                }\r\n            ]\r\n        }\r\n    ]\r\n}"
203                 },
204                 "url": {
205                     "raw": "{{POLICY-PAP-URL}}/policy/pap/v1/pdps/deployments/batch",
206                     "host": [
207                         "{{POLICY-PAP-URL}}"
208                     ],
209                     "path": [
210                         "policy",
211                         "pap",
212                         "v1",
213                         "pdps",
214                         "deployments",
215                         "batch"
216                     ]
217                 }
218             },
219             "response": []
220         },
221         {
222             "name": "PDP Group Query",
223             "protocolProfileBehavior": {
224                 "disableBodyPruning": true
225             },
226             "request": {
227                 "method": "GET",
228                 "header": [
229                     {
230                         "key": "Content-Type",
231                         "type": "text",
232                         "value": "application/json"
233                     },
234                     {
235                         "key": "Accept",
236                         "type": "text",
237                         "value": "application/json"
238                     }
239                 ],
240                 "body": {
241                     "mode": "raw",
242                     "raw": "{\r\n    \"groups\": [\r\n        {\r\n            \"name\": \"defaultGroup\",\r\n            \"deploymentSubgroups\": [\r\n                {\r\n                    \"pdpType\": \"apex\",\r\n                    \"action\": \"POST\",\r\n                    \"policies\": [{\r\n                            \"name\": \"onap.policies.controlloop.operational.apex.Sampledomain\",\r\n                            \"version\": \"1.0.0\"\r\n                        }]\r\n                }\r\n            ]\r\n        }\r\n    ]\r\n}"
243                 },
244                 "url": {
245                     "raw": "{{POLICY-PAP-URL}}/policy/pap/v1/pdps",
246                     "host": [
247                         "{{POLICY-PAP-URL}}"
248                     ],
249                     "path": [
250                         "policy",
251                         "pap",
252                         "v1",
253                         "pdps"
254                     ]
255                 }
256             },
257             "response": []
258         },
259         {
260             "name": "VNF Policy Status",
261             "request": {
262                 "method": "GET",
263                 "header": [],
264                 "url": {
265                     "raw": "{{POLICY-PAP-URL}}/policy/pap/v1/policies/status/defaultGroup/onap.policies.drools.vnf.Example/1.0.0",
266                     "host": [
267                         "{{POLICY-PAP-URL}}"
268                     ],
269                     "path": [
270                         "policy",
271                         "pap",
272                         "v1",
273                         "policies",
274                         "status",
275                         "defaultGroup",
276                         "onap.policies.drools.vnf.Example",
277                         "1.0.0"
278                     ]
279                 }
280             },
281             "response": []
282         },
283         {
284             "name": "PNF Policy Status",
285             "request": {
286                 "method": "GET",
287                 "header": [],
288                 "url": {
289                     "raw": "{{POLICY-PAP-URL}}/policy/pap/v1/policies/status/defaultGroup/onap.policies.drools.pnf.Example/1.0.0",
290                     "host": [
291                         "{{POLICY-PAP-URL}}"
292                     ],
293                     "path": [
294                         "policy",
295                         "pap",
296                         "v1",
297                         "policies",
298                         "status",
299                         "defaultGroup",
300                         "onap.policies.drools.pnf.Example",
301                         "1.0.0"
302                     ]
303                 }
304             },
305             "response": []
306         },
307         {
308             "name": "VNF Policy Audit",
309             "request": {
310                 "method": "GET",
311                 "header": [],
312                 "url": {
313                     "raw": "{{POLICY-PAP-URL}}/policy/pap/v1/policies/audit/onap.policies.drools.vnf.Example/1.0.0?recordCount=5",
314                     "host": [
315                         "{{POLICY-PAP-URL}}"
316                     ],
317                     "path": [
318                         "policy",
319                         "pap",
320                         "v1",
321                         "policies",
322                         "audit",
323                         "onap.policies.drools.vnf.Example",
324                         "1.0.0"
325                     ],
326                     "query": [
327                         {
328                             "key": "recordCount",
329                             "value": "5"
330                         }
331                     ]
332                 }
333             },
334             "response": []
335         },
336         {
337             "name": "PNF Policy Audit",
338             "request": {
339                 "method": "GET",
340                 "header": [],
341                 "url": {
342                     "raw": "{{POLICY-PAP-URL}}/policy/pap/v1/policies/audit/onap.policies.drools.pnf.Example/1.0.0?recordCount=5",
343                     "host": [
344                         "{{POLICY-PAP-URL}}"
345                     ],
346                     "path": [
347                         "policy",
348                         "pap",
349                         "v1",
350                         "policies",
351                         "audit",
352                         "onap.policies.drools.pnf.Example",
353                         "1.0.0"
354                     ],
355                     "query": [
356                         {
357                             "key": "recordCount",
358                             "value": "5"
359                         }
360                     ]
361                 }
362             },
363             "response": []
364         },
365         {
366             "name": "Fetch PDP Statistics",
367             "protocolProfileBehavior": {
368                 "disableBodyPruning": true
369             },
370             "request": {
371                 "method": "GET",
372                 "header": [
373                     {
374                         "key": "Content-Type",
375                         "type": "text",
376                         "value": "application/json"
377                     },
378                     {
379                         "key": "Accept",
380                         "type": "text",
381                         "value": "application/json"
382                     }
383                 ],
384                 "body": {
385                     "mode": "raw",
386                     "raw": ""
387                 },
388                 "url": {
389                     "raw": "{{POLICY-PAP-URL}}/policy/pap/v1/pdps/statistics/defaultGroup/drools?recordCount=5",
390                     "host": [
391                         "{{POLICY-PAP-URL}}"
392                     ],
393                     "path": [
394                         "policy",
395                         "pap",
396                         "v1",
397                         "pdps",
398                         "statistics",
399                         "defaultGroup",
400                         "drools"
401                     ],
402                     "query": [
403                         {
404                             "key": "recordCount",
405                             "value": "5"
406                         }
407                     ]
408                 },
409                 "description": "This is an API to fetch current statistics information for the specified PDP instance (example - \"fireantsdev-policy-apex-pdp-0\") of the specified PdpGroup (example - \"defaultGroup\") & PdpSubgroup (example - \"apex\"). You can filter by the number of entries using recordCount attribute"
410             },
411             "response": []
412         },
413         {
414             "name": "Send event to dmaap - VNF Success",
415             "request": {
416                 "auth": {
417                     "type": "noauth"
418                 },
419                 "method": "POST",
420                 "header": [
421                     {
422                         "key": "Content-Type",
423                         "name": "Content-Type",
424                         "type": "text",
425                         "value": "application/json"
426                     }
427                 ],
428                 "body": {
429                     "mode": "raw",
430                     "raw": "{\n    \"closedLoopControlName\": \"ControlLoop-vnf-d0a1dfc6-94f5-4fd4-a5b5-4630b438831b\",\n    \"closedLoopAlarmStart\": 1463679805324,\n    \"closedLoopEventClient\": \"testClient\",\n    \"closedLoopEventStatus\": \"ONSET\",\n    \"requestID\": \"c7c6a4aa-bb61-4a15-b831-ba1472dd4a65\",\n    \"target_type\": \"VNF\",\n    \"target\": \"generic-vnf.vnf-id\",\n    \"AAI\": {\n        \"generic-vnf.vnf-id\": \"57b008b9-b367-4359-93fd-74d3ce0ee1a0\",\n        \"vserver.vserver-name\": \"viptela_scripts\"\n    },\n    \"from\": \"TEST\",\n    \"version\": \"1.0.2\",\n    \"additionalEventParams\": {\n        \"vfStatus\": \"Active\"\n    }\n}",
431                     "options": {
432                         "raw": {
433                             "language": "json"
434                         }
435                     }
436                 },
437                 "url": {
438                     "raw": "{{DMAAP-URL}}/events/unauthenticated.DCAE_CL_OUTPUT",
439                     "host": [
440                         "{{DMAAP-URL}}"
441                     ],
442                     "path": [
443                         "events",
444                         "unauthenticated.DCAE_CL_OUTPUT"
445                     ]
446                 }
447             },
448             "response": []
449         },
450         {
451             "name": "Read notifications from DMaaP",
452             "request": {
453                 "auth": {
454                     "type": "noauth"
455                 },
456                 "method": "GET",
457                 "header": [
458                     {
459                         "key": "Content-Type",
460                         "name": "Content-Type",
461                         "type": "text",
462                         "value": "application/json",
463                         "disabled": true
464                     }
465                 ],
466                 "url": {
467                     "raw": "{{DMAAP-URL}}/events/POLICY-CL-MGT/g1/c1?timeout=30000",
468                     "host": [
469                         "{{DMAAP-URL}}"
470                     ],
471                     "path": [
472                         "events",
473                         "POLICY-CL-MGT",
474                         "g1",
475                         "c1"
476                     ],
477                     "query": [
478                         {
479                             "key": "timeout",
480                             "value": "30000"
481                         }
482                     ]
483                 }
484             },
485             "response": []
486         },
487         {
488             "name": "Fetch PDP Statistics",
489             "protocolProfileBehavior": {
490                 "disableBodyPruning": true
491             },
492             "request": {
493                 "method": "GET",
494                 "header": [
495                     {
496                         "key": "Content-Type",
497                         "type": "text",
498                         "value": "application/json"
499                     },
500                     {
501                         "key": "Accept",
502                         "type": "text",
503                         "value": "application/json"
504                     }
505                 ],
506                 "body": {
507                     "mode": "raw",
508                     "raw": ""
509                 },
510                 "url": {
511                     "raw": "{{POLICY-PAP-URL}}/policy/pap/v1/pdps/statistics/defaultGroup/drools?recordCount=5",
512                     "host": [
513                         "{{POLICY-PAP-URL}}"
514                     ],
515                     "path": [
516                         "policy",
517                         "pap",
518                         "v1",
519                         "pdps",
520                         "statistics",
521                         "defaultGroup",
522                         "drools"
523                     ],
524                     "query": [
525                         {
526                             "key": "recordCount",
527                             "value": "5"
528                         }
529                     ]
530                 },
531                 "description": "This is an API to fetch current statistics information for the specified PDP instance (example - \"fireantsdev-policy-apex-pdp-0\") of the specified PdpGroup (example - \"defaultGroup\") & PdpSubgroup (example - \"apex\"). You can filter by the number of entries using recordCount attribute"
532             },
533             "response": []
534         },
535         {
536             "name": "Send event to dmaap - VNF Failure",
537             "request": {
538                 "auth": {
539                     "type": "noauth"
540                 },
541                 "method": "POST",
542                 "header": [
543                     {
544                         "key": "Content-Type",
545                         "name": "Content-Type",
546                         "type": "text",
547                         "value": "application/json"
548                     }
549                 ],
550                 "body": {
551                     "mode": "raw",
552                     "raw": "{\n    \"closedLoopControlName\": \"ControlLoop-vnf-d0a1dfc6-94f5-4fd4-a5b5-4630b438831b\",\n    \"closedLoopAlarmStart\": 1463679805324,\n    \"closedLoopEventClient\": \"testClient\",\n    \"closedLoopEventStatus\": \"ONSET\",\n    \"requestID\": \"c7c6a4aa-bb61-4a15-b831-ba1472dd4a75\",\n    \"target_type\": \"VNF\",\n    \"target\": \"generic-vnf.vnf-id\",\n    \"AAI\": {\n        \"generic-vnf.vnf-id\": \"57b008b9-b367-4359-93fd-74d3ce0ee1a0\",\n        \"vserver.vserver-name\": \"viptela_scripts\"\n    },\n    \"from\": \"TEST\",\n    \"version\": \"1.0.2\",\n    \"additionalEventParams\": {\n        \"vfStatus\": \"InActive\"\n    }\n}",
553                     "options": {
554                         "raw": {
555                             "language": "json"
556                         }
557                     }
558                 },
559                 "url": {
560                     "raw": "{{DMAAP-URL}}/events/unauthenticated.DCAE_CL_OUTPUT",
561                     "host": [
562                         "{{DMAAP-URL}}"
563                     ],
564                     "path": [
565                         "events",
566                         "unauthenticated.DCAE_CL_OUTPUT"
567                     ]
568                 }
569             },
570             "response": []
571         },
572         {
573             "name": "Read notifications from DMaaP",
574             "request": {
575                 "auth": {
576                     "type": "noauth"
577                 },
578                 "method": "GET",
579                 "header": [
580                     {
581                         "key": "Content-Type",
582                         "name": "Content-Type",
583                         "type": "text",
584                         "value": "application/json",
585                         "disabled": true
586                     }
587                 ],
588                 "url": {
589                     "raw": "{{DMAAP-URL}}/events/POLICY-CL-MGT/g1/c1?timeout=30000",
590                     "host": [
591                         "{{DMAAP-URL}}"
592                     ],
593                     "path": [
594                         "events",
595                         "POLICY-CL-MGT",
596                         "g1",
597                         "c1"
598                     ],
599                     "query": [
600                         {
601                             "key": "timeout",
602                             "value": "30000"
603                         }
604                     ]
605                 }
606             },
607             "response": []
608         },
609         {
610             "name": "Fetch PDP Statistics",
611             "protocolProfileBehavior": {
612                 "disableBodyPruning": true
613             },
614             "request": {
615                 "method": "GET",
616                 "header": [
617                     {
618                         "key": "Content-Type",
619                         "type": "text",
620                         "value": "application/json"
621                     },
622                     {
623                         "key": "Accept",
624                         "type": "text",
625                         "value": "application/json"
626                     }
627                 ],
628                 "body": {
629                     "mode": "raw",
630                     "raw": ""
631                 },
632                 "url": {
633                     "raw": "{{POLICY-PAP-URL}}/policy/pap/v1/pdps/statistics/defaultGroup/drools?recordCount=5",
634                     "host": [
635                         "{{POLICY-PAP-URL}}"
636                     ],
637                     "path": [
638                         "policy",
639                         "pap",
640                         "v1",
641                         "pdps",
642                         "statistics",
643                         "defaultGroup",
644                         "drools"
645                     ],
646                     "query": [
647                         {
648                             "key": "recordCount",
649                             "value": "5"
650                         }
651                     ]
652                 },
653                 "description": "This is an API to fetch current statistics information for the specified PDP instance (example - \"fireantsdev-policy-apex-pdp-0\") of the specified PdpGroup (example - \"defaultGroup\") & PdpSubgroup (example - \"apex\"). You can filter by the number of entries using recordCount attribute"
654             },
655             "response": []
656         },
657         {
658             "name": "Send event to dmaap - PNF Success",
659             "request": {
660                 "auth": {
661                     "type": "noauth"
662                 },
663                 "method": "POST",
664                 "header": [
665                     {
666                         "key": "Content-Type",
667                         "name": "Content-Type",
668                         "type": "text",
669                         "value": "application/json"
670                     }
671                 ],
672                 "body": {
673                     "mode": "raw",
674                     "raw": "{\n    \"closedLoopControlName\": \"ControlLoop-pnf-d0a1dfc6-94f5-4fd4-a5b5-4630b438851b\",\n    \"closedLoopAlarmStart\": 1463679805324,\n    \"closedLoopEventClient\": \"testClient\",\n    \"closedLoopEventStatus\": \"ONSET\",\n    \"requestID\": \"c7c6a4aa-bb61-4a15-b831-ba1472dd4a85\",\n    \"target_type\": \"PNF\",\n    \"target\": \"pnf.pnf-name\",\n    \"AAI\": {\n        \"pnf.pnf-name\": \"simple-cl-pnf\"\n    },\n    \"from\": \"TEST\",\n    \"version\": \"1.0.2\",\n    \"additionalEventParams\": {\n        \"hostname\": \"host\",\n        \"IP\": \"10.43.230.146\",\n        \"pnfName\": \"simple-cl-pnf\"\n    }\n}",
675                     "options": {
676                         "raw": {
677                             "language": "json"
678                         }
679                     }
680                 },
681                 "url": {
682                     "raw": "{{DMAAP-URL}}/events/unauthenticated.DCAE_CL_OUTPUT",
683                     "host": [
684                         "{{DMAAP-URL}}"
685                     ],
686                     "path": [
687                         "events",
688                         "unauthenticated.DCAE_CL_OUTPUT"
689                     ]
690                 }
691             },
692             "response": []
693         },
694         {
695             "name": "Read notifications from DMaaP",
696             "request": {
697                 "auth": {
698                     "type": "noauth"
699                 },
700                 "method": "GET",
701                 "header": [
702                     {
703                         "key": "Content-Type",
704                         "name": "Content-Type",
705                         "type": "text",
706                         "value": "application/json",
707                         "disabled": true
708                     }
709                 ],
710                 "url": {
711                     "raw": "{{DMAAP-URL}}/events/POLICY-CL-MGT/g1/c1?timeout=30000",
712                     "host": [
713                         "{{DMAAP-URL}}"
714                     ],
715                     "path": [
716                         "events",
717                         "POLICY-CL-MGT",
718                         "g1",
719                         "c1"
720                     ],
721                     "query": [
722                         {
723                             "key": "timeout",
724                             "value": "30000"
725                         }
726                     ]
727                 }
728             },
729             "response": []
730         },
731         {
732             "name": "Fetch PDP Statistics",
733             "protocolProfileBehavior": {
734                 "disableBodyPruning": true
735             },
736             "request": {
737                 "method": "GET",
738                 "header": [
739                     {
740                         "key": "Content-Type",
741                         "type": "text",
742                         "value": "application/json"
743                     },
744                     {
745                         "key": "Accept",
746                         "type": "text",
747                         "value": "application/json"
748                     }
749                 ],
750                 "body": {
751                     "mode": "raw",
752                     "raw": ""
753                 },
754                 "url": {
755                     "raw": "{{POLICY-PAP-URL}}/policy/pap/v1/pdps/statistics/defaultGroup/drools?recordCount=5",
756                     "host": [
757                         "{{POLICY-PAP-URL}}"
758                     ],
759                     "path": [
760                         "policy",
761                         "pap",
762                         "v1",
763                         "pdps",
764                         "statistics",
765                         "defaultGroup",
766                         "drools"
767                     ],
768                     "query": [
769                         {
770                             "key": "recordCount",
771                             "value": "5"
772                         }
773                     ]
774                 },
775                 "description": "This is an API to fetch current statistics information for the specified PDP instance (example - \"fireantsdev-policy-apex-pdp-0\") of the specified PdpGroup (example - \"defaultGroup\") & PdpSubgroup (example - \"apex\"). You can filter by the number of entries using recordCount attribute"
776             },
777             "response": []
778         },
779         {
780             "name": "Send event to dmaap - PNF Failure",
781             "request": {
782                 "auth": {
783                     "type": "noauth"
784                 },
785                 "method": "POST",
786                 "header": [
787                     {
788                         "key": "Content-Type",
789                         "name": "Content-Type",
790                         "type": "text",
791                         "value": "application/json"
792                     }
793                 ],
794                 "body": {
795                     "mode": "raw",
796                     "raw": "{\n    \"closedLoopControlName\": \"ControlLoop-pnf-d0a1dfc6-94f5-4fd4-a5b5-4630b438851b\",\n    \"closedLoopAlarmStart\": 1463679805324,\n    \"closedLoopEventClient\": \"testClient\",\n    \"closedLoopEventStatus\": \"ONSET\",\n    \"requestID\": \"c7c6a4aa-bb61-4a15-b831-ba1472dd4a95\",\n    \"target_type\": \"PNF\",\n    \"target\": \"pnf.pnf-name\",\n    \"AAI\": {\n        \"pnf.pnf-name\": \"simple-cl-pnf-failure\"\n    },\n    \"from\": \"TEST\",\n    \"version\": \"1.0.2\",\n    \"additionalEventParams\": {\n        \"hostname\": \"host\",\n        \"IP\": \"10.43.230.146\",\n        \"pnfName\": \"simple-cl-pnf-failure\"\n    }\n}",
797                     "options": {
798                         "raw": {
799                             "language": "json"
800                         }
801                     }
802                 },
803                 "url": {
804                     "raw": "{{DMAAP-URL}}/events/unauthenticated.DCAE_CL_OUTPUT",
805                     "host": [
806                         "{{DMAAP-URL}}"
807                     ],
808                     "path": [
809                         "events",
810                         "unauthenticated.DCAE_CL_OUTPUT"
811                     ]
812                 }
813             },
814             "response": []
815         },
816         {
817             "name": "Read notifications from DMaaP",
818             "request": {
819                 "auth": {
820                     "type": "noauth"
821                 },
822                 "method": "GET",
823                 "header": [
824                     {
825                         "key": "Content-Type",
826                         "name": "Content-Type",
827                         "type": "text",
828                         "value": "application/json",
829                         "disabled": true
830                     }
831                 ],
832                 "url": {
833                     "raw": "{{DMAAP-URL}}/events/POLICY-CL-MGT/g1/c1?timeout=30000",
834                     "host": [
835                         "{{DMAAP-URL}}"
836                     ],
837                     "path": [
838                         "events",
839                         "POLICY-CL-MGT",
840                         "g1",
841                         "c1"
842                     ],
843                     "query": [
844                         {
845                             "key": "timeout",
846                             "value": "30000"
847                         }
848                     ]
849                 }
850             },
851             "response": []
852         },
853         {
854             "name": "Fetch PDP Statistics",
855             "protocolProfileBehavior": {
856                 "disableBodyPruning": true
857             },
858             "request": {
859                 "method": "GET",
860                 "header": [
861                     {
862                         "key": "Content-Type",
863                         "type": "text",
864                         "value": "application/json"
865                     },
866                     {
867                         "key": "Accept",
868                         "type": "text",
869                         "value": "application/json"
870                     }
871                 ],
872                 "body": {
873                     "mode": "raw",
874                     "raw": ""
875                 },
876                 "url": {
877                     "raw": "{{POLICY-PAP-URL}}/policy/pap/v1/pdps/statistics/defaultGroup/drools?recordCount=5",
878                     "host": [
879                         "{{POLICY-PAP-URL}}"
880                     ],
881                     "path": [
882                         "policy",
883                         "pap",
884                         "v1",
885                         "pdps",
886                         "statistics",
887                         "defaultGroup",
888                         "drools"
889                     ],
890                     "query": [
891                         {
892                             "key": "recordCount",
893                             "value": "5"
894                         }
895                     ]
896                 },
897                 "description": "This is an API to fetch current statistics information for the specified PDP instance (example - \"fireantsdev-policy-apex-pdp-0\") of the specified PdpGroup (example - \"defaultGroup\") & PdpSubgroup (example - \"apex\"). You can filter by the number of entries using recordCount attribute"
898             },
899             "response": []
900         },
901         {
902             "name": "Undeploy Policy",
903             "request": {
904                 "auth": {
905                     "type": "basic",
906                     "basic": [
907                         {
908                             "key": "username",
909                             "value": "healthcheck",
910                             "type": "string"
911                         },
912                         {
913                             "key": "password",
914                             "value": "{{HEALTHCHECK-PASSWORD}}",
915                             "type": "string"
916                         }
917                     ]
918                 },
919                 "method": "POST",
920                 "header": [
921                     {
922                         "key": "Content-Type",
923                         "type": "text",
924                         "value": "application/json"
925                     },
926                     {
927                         "key": "Accept",
928                         "type": "text",
929                         "value": "application/json"
930                     }
931                 ],
932                 "body": {
933                     "mode": "raw",
934                     "raw": "{\n    \"groups\": [\n        {\n            \"name\": \"defaultGroup\",\n            \"deploymentSubgroups\": [\n                {\n                    \"pdpType\": \"drools\",\n                    \"action\": \"DELETE\",\n                    \"policies\": [\n                        {\n                            \"name\": \"onap.policies.drools.vnf.Example\",\n                            \"version\": \"1.0.0\"\n                        },\n                        {\n                            \"name\": \"onap.policies.drools.pnf.Example\",\n                            \"version\": \"1.0.0\"\n                        }\n                    ]\n                }\n            ]\n        }\n    ]\n}",
935                     "options": {
936                         "raw": {
937                             "language": "json"
938                         }
939                     }
940                 },
941                 "url": {
942                     "raw": "{{POLICY-PAP-URL}}/policy/pap/v1/pdps/deployments/batch",
943                     "host": [
944                         "{{POLICY-PAP-URL}}"
945                     ],
946                     "path": [
947                         "policy",
948                         "pap",
949                         "v1",
950                         "pdps",
951                         "deployments",
952                         "batch"
953                     ]
954                 }
955             },
956             "response": []
957         },
958         {
959             "name": "PDP Group Query",
960             "protocolProfileBehavior": {
961                 "disableBodyPruning": true
962             },
963             "request": {
964                 "method": "GET",
965                 "header": [
966                     {
967                         "key": "Content-Type",
968                         "type": "text",
969                         "value": "application/json"
970                     },
971                     {
972                         "key": "Accept",
973                         "type": "text",
974                         "value": "application/json"
975                     }
976                 ],
977                 "body": {
978                     "mode": "raw",
979                     "raw": "{\r\n    \"groups\": [\r\n        {\r\n            \"name\": \"defaultGroup\",\r\n            \"deploymentSubgroups\": [\r\n                {\r\n                    \"pdpType\": \"apex\",\r\n                    \"action\": \"POST\",\r\n                    \"policies\": [{\r\n                            \"name\": \"onap.policies.controlloop.operational.apex.Sampledomain\",\r\n                            \"version\": \"1.0.0\"\r\n                        }]\r\n                }\r\n            ]\r\n        }\r\n    ]\r\n}"
980                 },
981                 "url": {
982                     "raw": "{{POLICY-PAP-URL}}/policy/pap/v1/pdps",
983                     "host": [
984                         "{{POLICY-PAP-URL}}"
985                     ],
986                     "path": [
987                         "policy",
988                         "pap",
989                         "v1",
990                         "pdps"
991                     ]
992                 }
993             },
994             "response": []
995         },
996         {
997             "name": "VNF Policy Status",
998             "request": {
999                 "method": "GET",
1000                 "header": [],
1001                 "url": {
1002                     "raw": "{{POLICY-PAP-URL}}/policy/pap/v1/policies/status/defaultGroup/onap.policies.drools.vnf.Example/1.0.0",
1003                     "host": [
1004                         "{{POLICY-PAP-URL}}"
1005                     ],
1006                     "path": [
1007                         "policy",
1008                         "pap",
1009                         "v1",
1010                         "policies",
1011                         "status",
1012                         "defaultGroup",
1013                         "onap.policies.drools.vnf.Example",
1014                         "1.0.0"
1015                     ]
1016                 }
1017             },
1018             "response": []
1019         },
1020         {
1021             "name": "PNF Policy Status",
1022             "request": {
1023                 "method": "GET",
1024                 "header": [],
1025                 "url": {
1026                     "raw": "{{POLICY-PAP-URL}}/policy/pap/v1/policies/status/defaultGroup/onap.policies.drools.pnf.Example/1.0.0",
1027                     "host": [
1028                         "{{POLICY-PAP-URL}}"
1029                     ],
1030                     "path": [
1031                         "policy",
1032                         "pap",
1033                         "v1",
1034                         "policies",
1035                         "status",
1036                         "defaultGroup",
1037                         "onap.policies.drools.pnf.Example",
1038                         "1.0.0"
1039                     ]
1040                 }
1041             },
1042             "response": []
1043         },
1044         {
1045             "name": "VNF Policy Audit",
1046             "request": {
1047                 "method": "GET",
1048                 "header": [],
1049                 "url": {
1050                     "raw": "{{POLICY-PAP-URL}}/policy/pap/v1/policies/audit/onap.policies.drools.vnf.Example/1.0.0?recordCount=5",
1051                     "host": [
1052                         "{{POLICY-PAP-URL}}"
1053                     ],
1054                     "path": [
1055                         "policy",
1056                         "pap",
1057                         "v1",
1058                         "policies",
1059                         "audit",
1060                         "onap.policies.drools.vnf.Example",
1061                         "1.0.0"
1062                     ],
1063                     "query": [
1064                         {
1065                             "key": "recordCount",
1066                             "value": "5"
1067                         }
1068                     ]
1069                 }
1070             },
1071             "response": []
1072         },
1073         {
1074             "name": "PNF Policy Audit",
1075             "request": {
1076                 "method": "GET",
1077                 "header": [],
1078                 "url": {
1079                     "raw": "{{POLICY-PAP-URL}}/policy/pap/v1/policies/audit/onap.policies.drools.pnf.Example/1.0.0?recordCount=5",
1080                     "host": [
1081                         "{{POLICY-PAP-URL}}"
1082                     ],
1083                     "path": [
1084                         "policy",
1085                         "pap",
1086                         "v1",
1087                         "policies",
1088                         "audit",
1089                         "onap.policies.drools.pnf.Example",
1090                         "1.0.0"
1091                     ],
1092                     "query": [
1093                         {
1094                             "key": "recordCount",
1095                             "value": "5"
1096                         }
1097                     ]
1098                 }
1099             },
1100             "response": []
1101         },
1102         {
1103             "name": "Fetch PDP Statistics",
1104             "protocolProfileBehavior": {
1105                 "disableBodyPruning": true
1106             },
1107             "request": {
1108                 "method": "GET",
1109                 "header": [
1110                     {
1111                         "key": "Content-Type",
1112                         "type": "text",
1113                         "value": "application/json"
1114                     },
1115                     {
1116                         "key": "Accept",
1117                         "type": "text",
1118                         "value": "application/json"
1119                     }
1120                 ],
1121                 "body": {
1122                     "mode": "raw",
1123                     "raw": ""
1124                 },
1125                 "url": {
1126                     "raw": "{{POLICY-PAP-URL}}/policy/pap/v1/pdps/statistics/defaultGroup/drools?recordCount=5",
1127                     "host": [
1128                         "{{POLICY-PAP-URL}}"
1129                     ],
1130                     "path": [
1131                         "policy",
1132                         "pap",
1133                         "v1",
1134                         "pdps",
1135                         "statistics",
1136                         "defaultGroup",
1137                         "drools"
1138                     ],
1139                     "query": [
1140                         {
1141                             "key": "recordCount",
1142                             "value": "5"
1143                         }
1144                     ]
1145                 },
1146                 "description": "This is an API to fetch current statistics information for the specified PDP instance (example - \"fireantsdev-policy-apex-pdp-0\") of the specified PdpGroup (example - \"defaultGroup\") & PdpSubgroup (example - \"apex\"). You can filter by the number of entries using recordCount attribute"
1147             },
1148             "response": []
1149         },
1150         {
1151             "name": "Delete VNF Policy",
1152             "request": {
1153                 "method": "DELETE",
1154                 "header": [
1155                     {
1156                         "key": "Content-Type",
1157                         "type": "text",
1158                         "value": "application/json"
1159                     },
1160                     {
1161                         "key": "Accept",
1162                         "type": "text",
1163                         "value": "application/json"
1164                     }
1165                 ],
1166                 "url": {
1167                     "raw": "{{POLICY-API-URL}}/policy/api/v1/policies/onap.policies.drools.vnf.Example/versions/1.0.0",
1168                     "host": [
1169                         "{{POLICY-API-URL}}"
1170                     ],
1171                     "path": [
1172                         "policy",
1173                         "api",
1174                         "v1",
1175                         "policies",
1176                         "onap.policies.drools.vnf.Example",
1177                         "versions",
1178                         "1.0.0"
1179                     ]
1180                 }
1181             },
1182             "response": []
1183         },
1184         {
1185             "name": "Delete PNF Policy",
1186             "request": {
1187                 "method": "DELETE",
1188                 "header": [
1189                     {
1190                         "key": "Content-Type",
1191                         "type": "text",
1192                         "value": "application/json"
1193                     },
1194                     {
1195                         "key": "Accept",
1196                         "type": "text",
1197                         "value": "application/json"
1198                     }
1199                 ],
1200                 "url": {
1201                     "raw": "{{POLICY-API-URL}}/policy/api/v1/policies/onap.policies.drools.pnf.Example/versions/1.0.0",
1202                     "host": [
1203                         "{{POLICY-API-URL}}"
1204                     ],
1205                     "path": [
1206                         "policy",
1207                         "api",
1208                         "v1",
1209                         "policies",
1210                         "onap.policies.drools.pnf.Example",
1211                         "versions",
1212                         "1.0.0"
1213                     ]
1214                 }
1215             },
1216             "response": []
1217         }
1218     ],
1219     "auth": {
1220         "type": "basic",
1221         "basic": [
1222             {
1223                 "key": "password",
1224                 "value": "{{HEALTHCHECK-PASSWORD}}",
1225                 "type": "string"
1226             },
1227             {
1228                 "key": "username",
1229                 "value": "healthcheck",
1230                 "type": "string"
1231             }
1232         ]
1233     },
1234     "event": [
1235         {
1236             "listen": "prerequest",
1237             "script": {
1238                 "type": "text/javascript",
1239                 "exec": [
1240                     ""
1241                 ]
1242             }
1243         },
1244         {
1245             "listen": "test",
1246             "script": {
1247                 "type": "text/javascript",
1248                 "exec": [
1249                     ""
1250                 ]
1251             }
1252         }
1253     ]
1254 }