blob: 4f939302aa4473b5d2880f1776f2e74f59efff14 [file] [log] [blame]
Alex Shatov78ff88f2020-02-27 12:45:54 -05001{
2 "tests/main/test_policyhandler.py::WebServerTest::test_web_all_policies_latest": [
3 {
4 "request": {
5 "headers": {
6 "X-ONAP-RequestID": "*",
7 "X-ECOMP-RequestID": "*"
8 },
9 "json": null,
10 "method": "get",
11 "params": {
12 "cfy_tenant_name": "default_tenant"
13 },
14 "uri": "http://unit-test-deployment_handler:8188000/policy"
15 },
16 "res": {
17 "policies": {
18 "test_scope_prefix.pdp_decision_Lorem": {
19 "pending_update": false,
20 "policy_id": "test_scope_prefix.pdp_decision_Lorem",
21 "policy_versions": {
22 "0": true
23 }
24 },
25 "test_scope_prefix.pdp_decision_amet": {
26 "pending_update": false,
27 "policy_id": "test_scope_prefix.pdp_decision_amet",
28 "policy_versions": {
29 "5.5.5": true
30 }
31 },
32 "test_scope_prefix.pdp_decision_ametist": {
33 "pending_update": false,
34 "policy_id": "test_scope_prefix.pdp_decision_ametist",
35 "policy_versions": {
36 "6": true
37 }
38 },
39 "test_scope_prefix.pdp_decision_consectetur": {
40 "pending_update": false,
41 "policy_id": "test_scope_prefix.pdp_decision_consectetur",
42 "policy_versions": {
43 "5": true
44 }
45 },
46 "test_scope_prefix.pdp_decision_dolor": {
47 "pending_update": false,
48 "policy_id": "test_scope_prefix.pdp_decision_dolor",
49 "policy_versions": {
50 "2": true
51 }
52 },
53 "test_scope_prefix.pdp_decision_ipsum": {
54 "pending_update": false,
55 "policy_id": "test_scope_prefix.pdp_decision_ipsum",
56 "policy_versions": {
57 "1": true
58 }
59 },
60 "test_scope_prefix.pdp_decision_sit": {
61 "pending_update": false,
62 "policy_id": "test_scope_prefix.pdp_decision_sit",
63 "policy_versions": {
64 "3": true
65 }
66 }
67 },
68 "server_instance_uuid": "e17fc584-7b06-4777-81c5-5da4337d6d16"
69 },
70 "status_code": 200
71 },
72 {
73 "request": {
74 "headers": {
75 "Accept": "application/json",
76 "Authorization": "Basic auth",
77 "ClientAuth": "Basic user",
78 "Content-Type": "application/json",
79 "Environment": "TEST",
80 "X-ONAP-RequestID": "*",
81 "X-ECOMP-RequestID": "*"
82 },
83 "json": {
84 "ONAPComponent": "policy_handler",
85 "ONAPInstance": "*",
86 "ONAPName": "DCAE",
87 "action": "configure",
88 "resource": {
89 "policy-id": [
90 "test_scope_prefix.pdp_decision_Lorem",
91 "test_scope_prefix.pdp_decision_amet",
92 "test_scope_prefix.pdp_decision_ametist",
93 "test_scope_prefix.pdp_decision_consectetur",
94 "test_scope_prefix.pdp_decision_dolor",
95 "test_scope_prefix.pdp_decision_ipsum",
96 "test_scope_prefix.pdp_decision_sit"
97 ]
98 }
99 },
100 "method": "post",
101 "params": null,
102 "uri": "https://unit-test-pdp-server:8081000/decision/v1/"
103 },
104 "res": {
105 "policies": {
106 "test_scope_prefix.pdp_decision_Lorem": {
107 "metadata": {
108 "description": "description for test_scope_prefix.pdp_decision_Lorem",
109 "policy-id": "test_scope_prefix.pdp_decision_Lorem",
110 "policy-version": "1.1.1"
111 },
112 "properties": {
113 "policy_hello": "world!",
114 "policy_updated_from_ver": 0,
115 "policy_updated_to_ver": 1,
116 "updated_policy_id": "test_scope_prefix.pdp_decision_Lorem"
117 },
118 "type": "unit.test.type.policies",
119 "version": "1.0.0"
120 },
121 "test_scope_prefix.pdp_decision_amet": {
122 "metadata": {
123 "description": "description for test_scope_prefix.pdp_decision_amet",
124 "policy-id": "test_scope_prefix.pdp_decision_amet",
125 "policy-version": "5.5.5"
126 },
127 "properties": {
128 "policy_hello": "world!",
129 "policy_updated_from_ver": 4,
130 "policy_updated_to_ver": 5,
131 "updated_policy_id": "test_scope_prefix.pdp_decision_amet"
132 },
133 "type": "unit.test.type.policies",
134 "version": "1.0.0"
135 },
136 "test_scope_prefix.pdp_decision_ametist": {
137 "metadata": {
138 "description": "description for test_scope_prefix.pdp_decision_ametist",
139 "policy-id": "test_scope_prefix.pdp_decision_ametist",
140 "policy-version": "7.7.7"
141 },
142 "properties": {
143 "policy_hello": "world!",
144 "policy_updated_from_ver": 6,
145 "policy_updated_to_ver": 7,
146 "updated_policy_id": "test_scope_prefix.pdp_decision_ametist"
147 },
148 "type": "unit.test.type.policies",
149 "version": "1.0.0"
150 },
151 "test_scope_prefix.pdp_decision_consectetur": {
152 "metadata": {
153 "description": "description for test_scope_prefix.pdp_decision_consectetur",
154 "policy-id": "test_scope_prefix.pdp_decision_consectetur",
155 "policy-version": "6.6.6"
156 },
157 "properties": {
158 "policy_hello": "world!",
159 "policy_updated_from_ver": 5,
160 "policy_updated_to_ver": 6,
161 "updated_policy_id": "test_scope_prefix.pdp_decision_consectetur"
162 },
163 "type": "unit.test.type.policies",
164 "version": "1.0.0"
165 },
166 "test_scope_prefix.pdp_decision_dolor": {
167 "metadata": {
168 "description": "description for test_scope_prefix.pdp_decision_dolor",
169 "policy-id": "test_scope_prefix.pdp_decision_dolor",
170 "policy-version": "3.3.3"
171 },
172 "properties": {
173 "policy_hello": "world!",
174 "policy_updated_from_ver": 2,
175 "policy_updated_to_ver": 3,
176 "updated_policy_id": "test_scope_prefix.pdp_decision_dolor"
177 },
178 "type": "unit.test.type.policies",
179 "version": "1.0.0"
180 },
181 "test_scope_prefix.pdp_decision_ipsum": {
182 "metadata": {
183 "description": "description for test_scope_prefix.pdp_decision_ipsum",
184 "policy-id": "test_scope_prefix.pdp_decision_ipsum",
185 "policy-version": "2.2.2"
186 },
187 "properties": {
188 "policy_hello": "world!",
189 "policy_updated_from_ver": 1,
190 "policy_updated_to_ver": 2,
191 "updated_policy_id": "test_scope_prefix.pdp_decision_ipsum"
192 },
193 "type": "unit.test.type.policies",
194 "version": "1.0.0"
195 },
196 "test_scope_prefix.pdp_decision_sit": {
197 "metadata": {
198 "description": "description for test_scope_prefix.pdp_decision_sit",
199 "policy-id": "test_scope_prefix.pdp_decision_sit",
200 "policy-version": "4.4.4"
201 },
202 "properties": {
203 "policy_hello": "world!",
204 "policy_updated_from_ver": 3,
205 "policy_updated_to_ver": 4,
206 "updated_policy_id": "test_scope_prefix.pdp_decision_sit"
207 },
208 "type": "unit.test.type.policies",
209 "version": "1.0.0"
210 }
211 }
212 },
213 "status_code": 200
214 }
215 ],
216 "tests/main/test_policyhandler.py::WebServerTest::test_web_policies_latest": [
217 {
218 "request": {
219 "headers": {
220 "Accept": "application/json",
221 "Authorization": "Basic auth",
222 "ClientAuth": "Basic user",
223 "Content-Type": "application/json",
224 "Environment": "TEST",
225 "X-ONAP-RequestID": "*",
226 "X-ECOMP-RequestID": "*"
227 },
228 "json": {
229 "policyName": "test_scope_prefix.Config_amet.*"
230 },
231 "method": "post",
232 "params": null,
233 "uri": "https://unit-test-pdp-server:8081000/decision/v1/"
234 },
235 "res": "*",
236 "status_code": 200
237 }
238 ],
239 "tests/main/test_policyhandler.py::WebServerTest::test_web_policy_latest": [
240 {
241 "request": {
242 "headers": {
243 "Accept": "application/json",
244 "Authorization": "Basic auth",
245 "ClientAuth": "Basic user",
246 "Content-Type": "application/json",
247 "Environment": "TEST",
248 "X-ONAP-RequestID": "*",
249 "X-ECOMP-RequestID": "*"
250 },
251 "json": {
252 "ONAPComponent": "policy_handler",
253 "ONAPInstance": "*",
254 "ONAPName": "DCAE",
255 "action": "configure",
256 "resource": {
257 "policy-id": [
258 "test_scope_prefix.pdp_decision_sit"
259 ]
260 }
261 },
262 "method": "post",
263 "params": null,
264 "uri": "https://unit-test-pdp-server:8081000/decision/v1/"
265 },
266 "res": {
267 "policies": {
268 "test_scope_prefix.pdp_decision_sit": {
269 "metadata": {
270 "description": "description for test_scope_prefix.pdp_decision_sit",
271 "policy-id": "test_scope_prefix.pdp_decision_sit",
272 "policy-version": "4.4.4"
273 },
274 "properties": {
275 "policy_hello": "world!",
276 "policy_updated_from_ver": 3,
277 "policy_updated_to_ver": 4,
278 "updated_policy_id": "test_scope_prefix.pdp_decision_sit"
279 },
280 "type": "unit.test.type.policies",
281 "version": "1.0.0"
282 }
283 }
284 },
285 "status_code": 200
286 }
287 ],
288 "tests/main/test_policyhandler.py::WebServerTest::test_zzzzz_shutdown": [
289 {
290 "request": {
291 "headers": {
292 "Authorization": "Basic auth",
293 "Content-Type": "application/json",
294 "X-ONAP-RequestID": "*",
295 "X-ECOMP-RequestID": "*"
296 },
297 "json": null,
298 "method": "get",
299 "params": null,
300 "uri": "https://unit-test-dmaap-mr:280800000/events/unit-test-topicname/unit-test-consumegroup/unit-test-consumerid"
301 },
302 "res": ["garbage-to-be-ignored"],
303 "status_code": 200
304 },
305 {
306 "request": {
307 "headers": {
308 "X-ONAP-RequestID": "*",
309 "X-ECOMP-RequestID": "*"
310 },
311 "json": null,
312 "method": "get",
313 "params": {
314 "cfy_tenant_name": "default_tenant"
315 },
316 "uri": "http://unit-test-deployment_handler:8188000/policy"
317 },
318 "res": {
319 "policies": {
320 "test_scope_prefix.pdp_decision_Lorem": {
321 "pending_update": false,
322 "policy_id": "test_scope_prefix.pdp_decision_Lorem",
323 "policy_versions": {
324 "0": true
325 }
326 },
327 "test_scope_prefix.pdp_decision_amet": {
328 "pending_update": false,
329 "policy_id": "test_scope_prefix.pdp_decision_amet",
330 "policy_versions": {
331 "5.5.5": true
332 }
333 },
334 "test_scope_prefix.pdp_decision_ametist": {
335 "pending_update": false,
336 "policy_id": "test_scope_prefix.pdp_decision_ametist",
337 "policy_versions": {
338 "6": true
339 }
340 },
341 "test_scope_prefix.pdp_decision_consectetur": {
342 "pending_update": false,
343 "policy_id": "test_scope_prefix.pdp_decision_consectetur",
344 "policy_versions": {
345 "5": true
346 }
347 },
348 "test_scope_prefix.pdp_decision_dolor": {
349 "pending_update": false,
350 "policy_id": "test_scope_prefix.pdp_decision_dolor",
351 "policy_versions": {
352 "2": true
353 }
354 },
355 "test_scope_prefix.pdp_decision_ipsum": {
356 "pending_update": false,
357 "policy_id": "test_scope_prefix.pdp_decision_ipsum",
358 "policy_versions": {
359 "1": true
360 }
361 },
362 "test_scope_prefix.pdp_decision_sit": {
363 "pending_update": false,
364 "policy_id": "test_scope_prefix.pdp_decision_sit",
365 "policy_versions": {
366 "3": true
367 }
368 }
369 },
370 "server_instance_uuid": "e17fc584-7b06-4777-81c5-5da4337d6d16"
371 },
372 "status_code": 200
373 },
374 {
375 "request": {
376 "headers": {
377 "Accept": "application/json",
378 "Authorization": "Basic auth",
379 "ClientAuth": "Basic user",
380 "Content-Type": "application/json",
381 "Environment": "TEST",
382 "X-ECOMP-RequestID": "*",
383 "X-ONAP-RequestID": "*"
384 },
385 "json": {
386 "ONAPComponent": "policy_handler",
387 "ONAPInstance": "*",
388 "ONAPName": "DCAE",
389 "action": "configure",
390 "resource": {
391 "policy-id": [
392 "test_scope_prefix.pdp_decision_Lorem",
393 "test_scope_prefix.pdp_decision_amet",
394 "test_scope_prefix.pdp_decision_ametist",
395 "test_scope_prefix.pdp_decision_consectetur",
396 "test_scope_prefix.pdp_decision_dolor",
397 "test_scope_prefix.pdp_decision_ipsum",
398 "test_scope_prefix.pdp_decision_sit"
399 ]
400 }
401 },
402 "method": "post",
403 "params": null,
404 "uri": "https://unit-test-pdp-server:8081000/decision/v1/"
405 },
406 "res": {
407 "policies": {
408 "test_scope_prefix.pdp_decision_Lorem": {
409 "metadata": {
410 "description": "description for test_scope_prefix.pdp_decision_Lorem",
411 "policy-id": "test_scope_prefix.pdp_decision_Lorem",
412 "policy-version": "1.1.1"
413 },
414 "properties": {
415 "policy_hello": "world!",
416 "policy_updated_from_ver": 0,
417 "policy_updated_to_ver": 1,
418 "updated_policy_id": "test_scope_prefix.pdp_decision_Lorem"
419 },
420 "type": "unit.test.type.policies",
421 "version": "1.0.0"
422 },
423 "test_scope_prefix.pdp_decision_amet": {
424 "metadata": {
425 "description": "description for test_scope_prefix.pdp_decision_amet",
426 "policy-id": "test_scope_prefix.pdp_decision_amet",
427 "policy-version": "5.5.5"
428 },
429 "properties": {
430 "policy_hello": "world!",
431 "policy_updated_from_ver": 4,
432 "policy_updated_to_ver": 5,
433 "updated_policy_id": "test_scope_prefix.pdp_decision_amet"
434 },
435 "type": "unit.test.type.policies",
436 "version": "1.0.0"
437 },
438 "test_scope_prefix.pdp_decision_ametist": {
439 "metadata": {
440 "description": "description for test_scope_prefix.pdp_decision_ametist",
441 "policy-id": "test_scope_prefix.pdp_decision_ametist",
442 "policy-version": "7.7.7"
443 },
444 "properties": {
445 "policy_hello": "world!",
446 "policy_updated_from_ver": 6,
447 "policy_updated_to_ver": 7,
448 "updated_policy_id": "test_scope_prefix.pdp_decision_ametist"
449 },
450 "type": "unit.test.type.policies",
451 "version": "1.0.0"
452 },
453 "test_scope_prefix.pdp_decision_consectetur": {
454 "metadata": {
455 "description": "description for test_scope_prefix.pdp_decision_consectetur",
456 "policy-id": "test_scope_prefix.pdp_decision_consectetur",
457 "policy-version": "6.6.6"
458 },
459 "properties": {
460 "policy_hello": "world!",
461 "policy_updated_from_ver": 5,
462 "policy_updated_to_ver": 6,
463 "updated_policy_id": "test_scope_prefix.pdp_decision_consectetur"
464 },
465 "type": "unit.test.type.policies",
466 "version": "1.0.0"
467 },
468 "test_scope_prefix.pdp_decision_dolor": {
469 "metadata": {
470 "description": "description for test_scope_prefix.pdp_decision_dolor",
471 "policy-id": "test_scope_prefix.pdp_decision_dolor",
472 "policy-version": "3.3.3"
473 },
474 "properties": {
475 "policy_hello": "world!",
476 "policy_updated_from_ver": 2,
477 "policy_updated_to_ver": 3,
478 "updated_policy_id": "test_scope_prefix.pdp_decision_dolor"
479 },
480 "type": "unit.test.type.policies",
481 "version": "1.0.0"
482 },
483 "test_scope_prefix.pdp_decision_ipsum": {
484 "metadata": {
485 "description": "description for test_scope_prefix.pdp_decision_ipsum",
486 "policy-id": "test_scope_prefix.pdp_decision_ipsum",
487 "policy-version": "2.2.2"
488 },
489 "properties": {
490 "policy_hello": "world!",
491 "policy_updated_from_ver": 1,
492 "policy_updated_to_ver": 2,
493 "updated_policy_id": "test_scope_prefix.pdp_decision_ipsum"
494 },
495 "type": "unit.test.type.policies",
496 "version": "1.0.0"
497 },
498 "test_scope_prefix.pdp_decision_sit": {
499 "metadata": {
500 "description": "description for test_scope_prefix.pdp_decision_sit",
501 "policy-id": "test_scope_prefix.pdp_decision_sit",
502 "policy-version": "4.4.4"
503 },
504 "properties": {
505 "policy_hello": "world!",
506 "policy_updated_from_ver": 3,
507 "policy_updated_to_ver": 4,
508 "updated_policy_id": "test_scope_prefix.pdp_decision_sit"
509 },
510 "type": "unit.test.type.policies",
511 "version": "1.0.0"
512 }
513 }
514 },
515 "status_code": 200
516 },
517 {
518 "request": {
519 "headers": {
520 "X-ECOMP-RequestID": "*",
521 "X-ONAP-RequestID": "*"
522 },
523 "json": {
524 "catch_up": true,
525 "latest_policies": {
526 "test_scope_prefix.pdp_decision_Lorem": {
527 "policy_body": {
528 "config": {
529 "policy_hello": "world!",
530 "policy_updated_from_ver": 0,
531 "policy_updated_to_ver": 1,
532 "updated_policy_id": "test_scope_prefix.pdp_decision_Lorem"
533 },
534 "metadata": {
535 "description": "description for test_scope_prefix.pdp_decision_Lorem",
536 "policy-id": "test_scope_prefix.pdp_decision_Lorem",
537 "policy-version": "1.1.1"
538 },
539 "policyName": "test_scope_prefix.pdp_decision_Lorem.1-1-1.xml",
540 "policyVersion": "1.1.1",
541 "type": "unit.test.type.policies",
542 "version": "1.0.0"
543 },
544 "policy_id": "test_scope_prefix.pdp_decision_Lorem"
545 },
546 "test_scope_prefix.pdp_decision_ametist": {
547 "policy_body": {
548 "config": {
549 "policy_hello": "world!",
550 "policy_updated_from_ver": 6,
551 "policy_updated_to_ver": 7,
552 "updated_policy_id": "test_scope_prefix.pdp_decision_ametist"
553 },
554 "metadata": {
555 "description": "description for test_scope_prefix.pdp_decision_ametist",
556 "policy-id": "test_scope_prefix.pdp_decision_ametist",
557 "policy-version": "7.7.7"
558 },
559 "policyName": "test_scope_prefix.pdp_decision_ametist.7-7-7.xml",
560 "policyVersion": "7.7.7",
561 "type": "unit.test.type.policies",
562 "version": "1.0.0"
563 },
564 "policy_id": "test_scope_prefix.pdp_decision_ametist"
565 },
566 "test_scope_prefix.pdp_decision_consectetur": {
567 "policy_body": {
568 "config": {
569 "policy_hello": "world!",
570 "policy_updated_from_ver": 5,
571 "policy_updated_to_ver": 6,
572 "updated_policy_id": "test_scope_prefix.pdp_decision_consectetur"
573 },
574 "metadata": {
575 "description": "description for test_scope_prefix.pdp_decision_consectetur",
576 "policy-id": "test_scope_prefix.pdp_decision_consectetur",
577 "policy-version": "6.6.6"
578 },
579 "policyName": "test_scope_prefix.pdp_decision_consectetur.6-6-6.xml",
580 "policyVersion": "6.6.6",
581 "type": "unit.test.type.policies",
582 "version": "1.0.0"
583 },
584 "policy_id": "test_scope_prefix.pdp_decision_consectetur"
585 },
586 "test_scope_prefix.pdp_decision_dolor": {
587 "policy_body": {
588 "config": {
589 "policy_hello": "world!",
590 "policy_updated_from_ver": 2,
591 "policy_updated_to_ver": 3,
592 "updated_policy_id": "test_scope_prefix.pdp_decision_dolor"
593 },
594 "metadata": {
595 "description": "description for test_scope_prefix.pdp_decision_dolor",
596 "policy-id": "test_scope_prefix.pdp_decision_dolor",
597 "policy-version": "3.3.3"
598 },
599 "policyName": "test_scope_prefix.pdp_decision_dolor.3-3-3.xml",
600 "policyVersion": "3.3.3",
601 "type": "unit.test.type.policies",
602 "version": "1.0.0"
603 },
604 "policy_id": "test_scope_prefix.pdp_decision_dolor"
605 },
606 "test_scope_prefix.pdp_decision_ipsum": {
607 "policy_body": {
608 "config": {
609 "policy_hello": "world!",
610 "policy_updated_from_ver": 1,
611 "policy_updated_to_ver": 2,
612 "updated_policy_id": "test_scope_prefix.pdp_decision_ipsum"
613 },
614 "metadata": {
615 "description": "description for test_scope_prefix.pdp_decision_ipsum",
616 "policy-id": "test_scope_prefix.pdp_decision_ipsum",
617 "policy-version": "2.2.2"
618 },
619 "policyName": "test_scope_prefix.pdp_decision_ipsum.2-2-2.xml",
620 "policyVersion": "2.2.2",
621 "type": "unit.test.type.policies",
622 "version": "1.0.0"
623 },
624 "policy_id": "test_scope_prefix.pdp_decision_ipsum"
625 },
626 "test_scope_prefix.pdp_decision_sit": {
627 "policy_body": {
628 "config": {
629 "policy_hello": "world!",
630 "policy_updated_from_ver": 3,
631 "policy_updated_to_ver": 4,
632 "updated_policy_id": "test_scope_prefix.pdp_decision_sit"
633 },
634 "metadata": {
635 "description": "description for test_scope_prefix.pdp_decision_sit",
636 "policy-id": "test_scope_prefix.pdp_decision_sit",
637 "policy-version": "4.4.4"
638 },
639 "policyName": "test_scope_prefix.pdp_decision_sit.4-4-4.xml",
640 "policyVersion": "4.4.4",
641 "type": "unit.test.type.policies",
642 "version": "1.0.0"
643 },
644 "policy_id": "test_scope_prefix.pdp_decision_sit"
645 }
646 },
647 "policy_filter_matches": {},
648 "removed_policies": {}
649 },
650 "method": "put",
651 "params": {
652 "cfy_tenant_name": "default_tenant"
653 },
654 "uri": "http://unit-test-deployment_handler:8188000/policy"
655 },
656 "res": {
657 "server_instance_uuid": "e17fc584-7b06-4777-81c5-5da4337d6d16"
658 },
659 "status_code": 200
660 },
661 {
662 "request": {
663 "headers": {
664 "Authorization": "Basic auth",
665 "Content-Type": "application/json",
666 "X-ONAP-RequestID": "*",
667 "X-ECOMP-RequestID": "*"
668 },
669 "json": null,
670 "method": "get",
671 "params": {
672 "timeout": 15000
673 },
674 "uri": "https://unit-test-dmaap-mr:280800000/events/unit-test-topicname/unit-test-consumegroup/unit-test-consumerid"
675 },
676 "res": [],
677 "status_code": 200
678 }
679 ],
680 "tests/main/test_policyhandler.py::WebServerTest::test_zzz_policy_updates_and_catch_ups": [
681 {
682 "request": {
683 "headers": {
684 "Authorization": "Basic auth",
685 "Content-Type": "application/json",
686 "X-ONAP-RequestID": "*",
687 "X-ECOMP-RequestID": "*"
688 },
689 "json": null,
690 "method": "get",
691 "params": null,
692 "uri": "https://unit-test-dmaap-mr:280800000/events/unit-test-topicname/unit-test-consumegroup/unit-test-consumerid"
693 },
694 "res": ["garbage-to-be-ignored"],
695 "status_code": 200
696 },
697 {
698 "request": {
699 "headers": {
700 "X-ONAP-RequestID": "*",
701 "X-ECOMP-RequestID": "*"
702 },
703 "json": null,
704 "method": "get",
705 "params": {
706 "cfy_tenant_name": "default_tenant"
707 },
708 "uri": "http://unit-test-deployment_handler:8188000/policy"
709 },
710 "res": {
711 "policies": {
712 "test_scope_prefix.pdp_decision_Lorem": {
713 "pending_update": false,
714 "policy_id": "test_scope_prefix.pdp_decision_Lorem",
715 "policy_versions": {
716 "0": true
717 }
718 },
719 "test_scope_prefix.pdp_decision_amet": {
720 "pending_update": false,
721 "policy_id": "test_scope_prefix.pdp_decision_amet",
722 "policy_versions": {
723 "5.5.5": true
724 }
725 },
726 "test_scope_prefix.pdp_decision_ametist": {
727 "pending_update": false,
728 "policy_id": "test_scope_prefix.pdp_decision_ametist",
729 "policy_versions": {
730 "6": true
731 }
732 },
733 "test_scope_prefix.pdp_decision_consectetur": {
734 "pending_update": false,
735 "policy_id": "test_scope_prefix.pdp_decision_consectetur",
736 "policy_versions": {
737 "5": true
738 }
739 },
740 "test_scope_prefix.pdp_decision_dolor": {
741 "pending_update": false,
742 "policy_id": "test_scope_prefix.pdp_decision_dolor",
743 "policy_versions": {
744 "2": true
745 }
746 },
747 "test_scope_prefix.pdp_decision_ipsum": {
748 "pending_update": false,
749 "policy_id": "test_scope_prefix.pdp_decision_ipsum",
750 "policy_versions": {
751 "1": true
752 }
753 },
754 "test_scope_prefix.pdp_decision_sit": {
755 "pending_update": false,
756 "policy_id": "test_scope_prefix.pdp_decision_sit",
757 "policy_versions": {
758 "3": true
759 }
760 }
761 },
762 "server_instance_uuid": "e17fc584-7b06-4777-81c5-5da4337d6d16"
763 },
764 "status_code": 200
765 },
766 {
767 "request": {
768 "headers": {
769 "Accept": "application/json",
770 "Authorization": "Basic auth",
771 "ClientAuth": "Basic user",
772 "Content-Type": "application/json",
773 "Environment": "TEST",
774 "X-ECOMP-RequestID": "*",
775 "X-ONAP-RequestID": "*"
776 },
777 "json": {
778 "ONAPComponent": "policy_handler",
779 "ONAPInstance": "*",
780 "ONAPName": "DCAE",
781 "action": "configure",
782 "resource": {
783 "policy-id": [
784 "test_scope_prefix.pdp_decision_Lorem",
785 "test_scope_prefix.pdp_decision_amet",
786 "test_scope_prefix.pdp_decision_ametist",
787 "test_scope_prefix.pdp_decision_consectetur",
788 "test_scope_prefix.pdp_decision_dolor",
789 "test_scope_prefix.pdp_decision_ipsum",
790 "test_scope_prefix.pdp_decision_sit"
791 ]
792 }
793 },
794 "method": "post",
795 "params": null,
796 "uri": "https://unit-test-pdp-server:8081000/decision/v1/"
797 },
798 "res": {
799 "policies": {
800 "test_scope_prefix.pdp_decision_Lorem": {
801 "metadata": {
802 "description": "description for test_scope_prefix.pdp_decision_Lorem",
803 "policy-id": "test_scope_prefix.pdp_decision_Lorem",
804 "policy-version": "1.1.1"
805 },
806 "properties": {
807 "policy_hello": "world!",
808 "policy_updated_from_ver": 0,
809 "policy_updated_to_ver": 1,
810 "updated_policy_id": "test_scope_prefix.pdp_decision_Lorem"
811 },
812 "type": "unit.test.type.policies",
813 "version": "1.0.0"
814 },
815 "test_scope_prefix.pdp_decision_amet": {
816 "metadata": {
817 "description": "description for test_scope_prefix.pdp_decision_amet",
818 "policy-id": "test_scope_prefix.pdp_decision_amet",
819 "policy-version": "5.5.5"
820 },
821 "properties": {
822 "policy_hello": "world!",
823 "policy_updated_from_ver": 4,
824 "policy_updated_to_ver": 5,
825 "updated_policy_id": "test_scope_prefix.pdp_decision_amet"
826 },
827 "type": "unit.test.type.policies",
828 "version": "1.0.0"
829 },
830 "test_scope_prefix.pdp_decision_ametist": {
831 "metadata": {
832 "description": "description for test_scope_prefix.pdp_decision_ametist",
833 "policy-id": "test_scope_prefix.pdp_decision_ametist",
834 "policy-version": "7.7.7"
835 },
836 "properties": {
837 "policy_hello": "world!",
838 "policy_updated_from_ver": 6,
839 "policy_updated_to_ver": 7,
840 "updated_policy_id": "test_scope_prefix.pdp_decision_ametist"
841 },
842 "type": "unit.test.type.policies",
843 "version": "1.0.0"
844 },
845 "test_scope_prefix.pdp_decision_consectetur": {
846 "metadata": {
847 "description": "description for test_scope_prefix.pdp_decision_consectetur",
848 "policy-id": "test_scope_prefix.pdp_decision_consectetur",
849 "policy-version": "6.6.6"
850 },
851 "properties": {
852 "policy_hello": "world!",
853 "policy_updated_from_ver": 5,
854 "policy_updated_to_ver": 6,
855 "updated_policy_id": "test_scope_prefix.pdp_decision_consectetur"
856 },
857 "type": "unit.test.type.policies",
858 "version": "1.0.0"
859 },
860 "test_scope_prefix.pdp_decision_dolor": {
861 "metadata": {
862 "description": "description for test_scope_prefix.pdp_decision_dolor",
863 "policy-id": "test_scope_prefix.pdp_decision_dolor",
864 "policy-version": "3.3.3"
865 },
866 "properties": {
867 "policy_hello": "world!",
868 "policy_updated_from_ver": 2,
869 "policy_updated_to_ver": 3,
870 "updated_policy_id": "test_scope_prefix.pdp_decision_dolor"
871 },
872 "type": "unit.test.type.policies",
873 "version": "1.0.0"
874 },
875 "test_scope_prefix.pdp_decision_ipsum": {
876 "metadata": {
877 "description": "description for test_scope_prefix.pdp_decision_ipsum",
878 "policy-id": "test_scope_prefix.pdp_decision_ipsum",
879 "policy-version": "2.2.2"
880 },
881 "properties": {
882 "policy_hello": "world!",
883 "policy_updated_from_ver": 1,
884 "policy_updated_to_ver": 2,
885 "updated_policy_id": "test_scope_prefix.pdp_decision_ipsum"
886 },
887 "type": "unit.test.type.policies",
888 "version": "1.0.0"
889 },
890 "test_scope_prefix.pdp_decision_sit": {
891 "metadata": {
892 "description": "description for test_scope_prefix.pdp_decision_sit",
893 "policy-id": "test_scope_prefix.pdp_decision_sit",
894 "policy-version": "4.4.4"
895 },
896 "properties": {
897 "policy_hello": "world!",
898 "policy_updated_from_ver": 3,
899 "policy_updated_to_ver": 4,
900 "updated_policy_id": "test_scope_prefix.pdp_decision_sit"
901 },
902 "type": "unit.test.type.policies",
903 "version": "1.0.0"
904 }
905 }
906 },
907 "status_code": 200
908 },
909 {
910 "request": {
911 "headers": {
912 "X-ECOMP-RequestID": "*",
913 "X-ONAP-RequestID": "*"
914 },
915 "json": {
916 "catch_up": true,
917 "latest_policies": {
918 "test_scope_prefix.pdp_decision_Lorem": {
919 "policy_body": {
920 "config": {
921 "policy_hello": "world!",
922 "policy_updated_from_ver": 0,
923 "policy_updated_to_ver": 1,
924 "updated_policy_id": "test_scope_prefix.pdp_decision_Lorem"
925 },
926 "metadata": {
927 "description": "description for test_scope_prefix.pdp_decision_Lorem",
928 "policy-id": "test_scope_prefix.pdp_decision_Lorem",
929 "policy-version": "1.1.1"
930 },
931 "policyName": "test_scope_prefix.pdp_decision_Lorem.1-1-1.xml",
932 "policyVersion": "1.1.1",
933 "type": "unit.test.type.policies",
934 "version": "1.0.0"
935 },
936 "policy_id": "test_scope_prefix.pdp_decision_Lorem"
937 },
938 "test_scope_prefix.pdp_decision_ametist": {
939 "policy_body": {
940 "config": {
941 "policy_hello": "world!",
942 "policy_updated_from_ver": 6,
943 "policy_updated_to_ver": 7,
944 "updated_policy_id": "test_scope_prefix.pdp_decision_ametist"
945 },
946 "metadata": {
947 "description": "description for test_scope_prefix.pdp_decision_ametist",
948 "policy-id": "test_scope_prefix.pdp_decision_ametist",
949 "policy-version": "7.7.7"
950 },
951 "policyName": "test_scope_prefix.pdp_decision_ametist.7-7-7.xml",
952 "policyVersion": "7.7.7",
953 "type": "unit.test.type.policies",
954 "version": "1.0.0"
955 },
956 "policy_id": "test_scope_prefix.pdp_decision_ametist"
957 },
958 "test_scope_prefix.pdp_decision_consectetur": {
959 "policy_body": {
960 "config": {
961 "policy_hello": "world!",
962 "policy_updated_from_ver": 5,
963 "policy_updated_to_ver": 6,
964 "updated_policy_id": "test_scope_prefix.pdp_decision_consectetur"
965 },
966 "metadata": {
967 "description": "description for test_scope_prefix.pdp_decision_consectetur",
968 "policy-id": "test_scope_prefix.pdp_decision_consectetur",
969 "policy-version": "6.6.6"
970 },
971 "policyName": "test_scope_prefix.pdp_decision_consectetur.6-6-6.xml",
972 "policyVersion": "6.6.6",
973 "type": "unit.test.type.policies",
974 "version": "1.0.0"
975 },
976 "policy_id": "test_scope_prefix.pdp_decision_consectetur"
977 },
978 "test_scope_prefix.pdp_decision_dolor": {
979 "policy_body": {
980 "config": {
981 "policy_hello": "world!",
982 "policy_updated_from_ver": 2,
983 "policy_updated_to_ver": 3,
984 "updated_policy_id": "test_scope_prefix.pdp_decision_dolor"
985 },
986 "metadata": {
987 "description": "description for test_scope_prefix.pdp_decision_dolor",
988 "policy-id": "test_scope_prefix.pdp_decision_dolor",
989 "policy-version": "3.3.3"
990 },
991 "policyName": "test_scope_prefix.pdp_decision_dolor.3-3-3.xml",
992 "policyVersion": "3.3.3",
993 "type": "unit.test.type.policies",
994 "version": "1.0.0"
995 },
996 "policy_id": "test_scope_prefix.pdp_decision_dolor"
997 },
998 "test_scope_prefix.pdp_decision_ipsum": {
999 "policy_body": {
1000 "config": {
1001 "policy_hello": "world!",
1002 "policy_updated_from_ver": 1,
1003 "policy_updated_to_ver": 2,
1004 "updated_policy_id": "test_scope_prefix.pdp_decision_ipsum"
1005 },
1006 "metadata": {
1007 "description": "description for test_scope_prefix.pdp_decision_ipsum",
1008 "policy-id": "test_scope_prefix.pdp_decision_ipsum",
1009 "policy-version": "2.2.2"
1010 },
1011 "policyName": "test_scope_prefix.pdp_decision_ipsum.2-2-2.xml",
1012 "policyVersion": "2.2.2",
1013 "type": "unit.test.type.policies",
1014 "version": "1.0.0"
1015 },
1016 "policy_id": "test_scope_prefix.pdp_decision_ipsum"
1017 },
1018 "test_scope_prefix.pdp_decision_sit": {
1019 "policy_body": {
1020 "config": {
1021 "policy_hello": "world!",
1022 "policy_updated_from_ver": 3,
1023 "policy_updated_to_ver": 4,
1024 "updated_policy_id": "test_scope_prefix.pdp_decision_sit"
1025 },
1026 "metadata": {
1027 "description": "description for test_scope_prefix.pdp_decision_sit",
1028 "policy-id": "test_scope_prefix.pdp_decision_sit",
1029 "policy-version": "4.4.4"
1030 },
1031 "policyName": "test_scope_prefix.pdp_decision_sit.4-4-4.xml",
1032 "policyVersion": "4.4.4",
1033 "type": "unit.test.type.policies",
1034 "version": "1.0.0"
1035 },
1036 "policy_id": "test_scope_prefix.pdp_decision_sit"
1037 }
1038 },
1039 "policy_filter_matches": {},
1040 "removed_policies": {}
1041 },
1042 "method": "put",
1043 "params": {
1044 "cfy_tenant_name": "default_tenant"
1045 },
1046 "uri": "http://unit-test-deployment_handler:8188000/policy"
1047 },
1048 "res": {
1049 "server_instance_uuid": "e17fc584-7b06-4777-81c5-5da4337d6d16"
1050 },
1051 "status_code": 200
1052 },
1053 {
1054 "request": {
1055 "headers": {
1056 "Authorization": "Basic auth",
1057 "Content-Type": "application/json",
1058 "X-ONAP-RequestID": "*",
1059 "X-ECOMP-RequestID": "*"
1060 },
1061 "json": null,
1062 "method": "get",
1063 "params": {
1064 "timeout": 15000
1065 },
1066 "uri": "https://unit-test-dmaap-mr:280800000/events/unit-test-topicname/unit-test-consumegroup/unit-test-consumerid"
1067 },
1068 "res": [
1069 "{\"deployed-policies\":[{\"policy-type\":\"onap.policies.monitoring.cdap.tca.hi.lo.app\",\"policy-type-version\":\"1.0.0\",\"policy-id\":\"test_scope_prefix.pdp_decision_Lorem\",\"policy-version\":\"1.1.1-update1\",\"success-count\":3,\"failure-count\":0}],\"undeployed-policies\":[{\"policy-type\":\"onap.policies.monitoring.cdap.tca.hi.lo.app\",\"policy-type-version\":\"1.0.0\",\"policy-id\":\"test_scope_prefix.pdp_decision_Lorem\",\"policy-version\":\"1.1.1\",\"success-count\":3,\"failure-count\":0}]}"
1070 ],
1071 "status_code": 200
1072 },
1073 {
1074 "request": {
1075 "headers": {
1076 "X-ONAP-RequestID": "*",
1077 "X-ECOMP-RequestID": "*"
1078 },
1079 "json": null,
1080 "method": "get",
1081 "params": {
1082 "cfy_tenant_name": "default_tenant"
1083 },
1084 "uri": "http://unit-test-deployment_handler:8188000/policy"
1085 },
1086 "res": {
1087 "policies": {
1088 "test_scope_prefix.pdp_decision_Lorem": {
1089 "pending_update": false,
1090 "policy_id": "test_scope_prefix.pdp_decision_Lorem",
1091 "policy_versions": {
1092 "1.1.1": true
1093 }
1094 },
1095 "test_scope_prefix.pdp_decision_amet": {
1096 "pending_update": false,
1097 "policy_id": "test_scope_prefix.pdp_decision_amet",
1098 "policy_versions": {
1099 "5.5.5": true
1100 }
1101 },
1102 "test_scope_prefix.pdp_decision_ametist": {
1103 "pending_update": false,
1104 "policy_id": "test_scope_prefix.pdp_decision_ametist",
1105 "policy_versions": {
1106 "7.7.7": true
1107 }
1108 },
1109 "test_scope_prefix.pdp_decision_consectetur": {
1110 "pending_update": false,
1111 "policy_id": "test_scope_prefix.pdp_decision_consectetur",
1112 "policy_versions": {
1113 "6.6.6": true
1114 }
1115 },
1116 "test_scope_prefix.pdp_decision_dolor": {
1117 "pending_update": false,
1118 "policy_id": "test_scope_prefix.pdp_decision_dolor",
1119 "policy_versions": {
1120 "3.3.3": true
1121 }
1122 },
1123 "test_scope_prefix.pdp_decision_ipsum": {
1124 "pending_update": false,
1125 "policy_id": "test_scope_prefix.pdp_decision_ipsum",
1126 "policy_versions": {
1127 "2.2.2": true
1128 }
1129 },
1130 "test_scope_prefix.pdp_decision_sit": {
1131 "pending_update": false,
1132 "policy_id": "test_scope_prefix.pdp_decision_sit",
1133 "policy_versions": {
1134 "4.4.4": true
1135 }
1136 }
1137 },
1138 "server_instance_uuid": "e17fc584-7b06-4777-81c5-5da4337d6d16"
1139 },
1140 "status_code": 200
1141 },
1142 {
1143 "request": {
1144 "headers": {
1145 "Accept": "application/json",
1146 "Authorization": "Basic auth",
1147 "ClientAuth": "Basic user",
1148 "Content-Type": "application/json",
1149 "Environment": "TEST",
1150 "X-ECOMP-RequestID": "*",
1151 "X-ONAP-RequestID": "*"
1152 },
1153 "json": {
1154 "ONAPComponent": "policy_handler",
1155 "ONAPInstance": "*",
1156 "ONAPName": "DCAE",
1157 "action": "configure",
1158 "resource": {
1159 "policy-id": [
1160 "test_scope_prefix.pdp_decision_Lorem"
1161 ]
1162 }
1163 },
1164 "method": "post",
1165 "params": null,
1166 "uri": "https://unit-test-pdp-server:8081000/decision/v1/"
1167 },
1168 "res": {
1169 "policies": {
1170 "test_scope_prefix.pdp_decision_Lorem": {
1171 "metadata": {
1172 "description": "description for test_scope_prefix.pdp_decision_Lorem",
1173 "policy-id": "test_scope_prefix.pdp_decision_Lorem",
1174 "policy-version": "1.1.1"
1175 },
1176 "properties": {
1177 "policy_hello": "world!",
1178 "policy_updated_from_ver": 0,
1179 "policy_updated_to_ver": 1,
1180 "updated_policy_id": "test_scope_prefix.pdp_decision_Lorem"
1181 },
1182 "type": "unit.test.type.policies",
1183 "version": "1.0.0"
1184 }
1185 }
1186 },
1187 "status_code": 200
1188 },
1189 {
1190 "request": {
1191 "headers": {
1192 "Authorization": "Basic auth",
1193 "Content-Type": "application/json",
1194 "X-ONAP-RequestID": "*",
1195 "X-ECOMP-RequestID": "*"
1196 },
1197 "json": null,
1198 "method": "get",
1199 "params": {
1200 "timeout": 15000
1201 },
1202 "uri": "https://unit-test-dmaap-mr:280800000/events/unit-test-topicname/unit-test-consumegroup/unit-test-consumerid"
1203 },
1204 "res": [],
1205 "status_code": 200
1206 },
1207 {
1208 "request": {
1209 "headers": {
1210 "Accept": "application/json",
1211 "Authorization": "Basic auth",
1212 "ClientAuth": "Basic user",
1213 "Content-Type": "application/json",
1214 "Environment": "TEST",
1215 "X-ECOMP-RequestID": "*",
1216 "X-ONAP-RequestID": "*"
1217 },
1218 "json": {
1219 "ONAPComponent": "policy_handler",
1220 "ONAPInstance": "*",
1221 "ONAPName": "DCAE",
1222 "action": "configure",
1223 "resource": {
1224 "policy-id": [
1225 "test_scope_prefix.pdp_decision_Lorem"
1226 ]
1227 }
1228 },
1229 "method": "post",
1230 "params": null,
1231 "uri": "https://unit-test-pdp-server:8081000/decision/v1/"
1232 },
1233 "res": {
1234 "policies": {
1235 "test_scope_prefix.pdp_decision_Lorem": {
1236 "metadata": {
1237 "description": "description for test_scope_prefix.pdp_decision_Lorem",
1238 "policy-id": "test_scope_prefix.pdp_decision_Lorem",
1239 "policy-version": "1.1.1-update1"
1240 },
1241 "properties": {
1242 "policy_hello": "world! - updated 1",
1243 "policy_updated_from_ver": "1.1.1",
1244 "policy_updated_to_ver": "1.1.1-update1",
1245 "updated_policy_id": "test_scope_prefix.pdp_decision_Lorem"
1246 },
1247 "type": "unit.test.type.policies",
1248 "version": "1.0.0"
1249 }
1250 }
1251 },
1252 "status_code": 200
1253 },
1254 {
1255 "request": {
1256 "headers": {
1257 "X-ECOMP-RequestID": "*",
1258 "X-ONAP-RequestID": "*"
1259 },
1260 "json": {
1261 "catch_up": false,
1262 "latest_policies": {
1263 "test_scope_prefix.pdp_decision_Lorem": {
1264 "policy_body": {
1265 "config": {
1266 "policy_hello": "world! - updated 1",
1267 "policy_updated_from_ver": "1.1.1",
1268 "policy_updated_to_ver": "1.1.1-update1",
1269 "updated_policy_id": "test_scope_prefix.pdp_decision_Lorem"
1270 },
1271 "metadata": {
1272 "description": "description for test_scope_prefix.pdp_decision_Lorem",
1273 "policy-id": "test_scope_prefix.pdp_decision_Lorem",
1274 "policy-version": "1.1.1-update1"
1275 },
1276 "policyName": "test_scope_prefix.pdp_decision_Lorem.1-1-1-update1.xml",
1277 "policyVersion": "1.1.1-update1",
1278 "type": "unit.test.type.policies",
1279 "version": "1.0.0"
1280 },
1281 "policy_id": "test_scope_prefix.pdp_decision_Lorem"
1282 }
1283 },
1284 "policy_filter_matches": {},
1285 "removed_policies": {}
1286 },
1287 "method": "put",
1288 "params": {
1289 "cfy_tenant_name": "default_tenant"
1290 },
1291 "uri": "http://unit-test-deployment_handler:8188000/policy"
1292 },
1293 "res": {
1294 "server_instance_uuid": "e17fc584-7b06-4777-81c5-5da4337d6d16"
1295 },
1296 "status_code": 200
1297 },
1298 {
1299 "request": {
1300 "headers": {
1301 "Authorization": "Basic auth",
1302 "Content-Type": "application/json",
1303 "X-ONAP-RequestID": "*",
1304 "X-ECOMP-RequestID": "*"
1305 },
1306 "json": null,
1307 "method": "get",
1308 "params": {
1309 "timeout": 15000
1310 },
1311 "uri": "https://unit-test-dmaap-mr:280800000/events/unit-test-topicname/unit-test-consumegroup/unit-test-consumerid"
1312 },
1313 "res": [
1314 "{\"deployed-policies\":[{\"policy-type\":\"onap.policies.testing\",\"policy-type-version\":\"99.0.0\",\"policy-id\":\"not-dcae.expect-be-ignored-55\",\"policy-version\":\"522.522.522\",\"success-count\":3,\"failure-count\":0}],\"undeployed-policies\":[{\"policy-type\":\"onap.policies.testing\",\"policy-type-version\":\"9.0.0\",\"policy-id\":\"test_scope_prefix.pdp_decision_ipsum\",\"policy-version\":\"2.2.2\",\"success-count\":3,\"failure-count\":0},{\"policy-type\":\"onap.policies.testing\",\"policy-type-version\":\"9.0.0\",\"policy-id\":\"not-dcae.expect-be-ignored\",\"policy-version\":\"22.22.22\",\"success-count\":3,\"failure-count\":0}]}",
1315 "{\"deployed-policies\":[{\"policy-type\":\"onap.policies.testing\",\"policy-type-version\":\"99.9.9\",\"policy-id\":\"not-dcae.expect-be-ignored-55\",\"policy-version\":\"5522.5522.522\",\"success-count\":3,\"failure-count\":0}],\"undeployed-policies\":[{\"policy-type\":\"onap.policies.testing\",\"policy-type-version\":\"9.0.0\",\"policy-id\":\"not-dcae.expect-be-ignored\",\"policy-version\":\"22.22.22\",\"success-count\":3,\"failure-count\":0}]}"
1316 ],
1317 "status_code": 200
1318 },
1319 {
1320 "request": {
1321 "headers": {
1322 "X-ONAP-RequestID": "*",
1323 "X-ECOMP-RequestID": "*"
1324 },
1325 "json": null,
1326 "method": "get",
1327 "params": {
1328 "cfy_tenant_name": "default_tenant"
1329 },
1330 "uri": "http://unit-test-deployment_handler:8188000/policy"
1331 },
1332 "res": {
1333 "policies": {
1334 "test_scope_prefix.pdp_decision_Lorem": {
1335 "pending_update": false,
1336 "policy_id": "test_scope_prefix.pdp_decision_Lorem",
1337 "policy_versions": {
1338 "1.1.1-update1": true
1339 }
1340 },
1341 "test_scope_prefix.pdp_decision_amet": {
1342 "pending_update": false,
1343 "policy_id": "test_scope_prefix.pdp_decision_amet",
1344 "policy_versions": {
1345 "5.5.5": true
1346 }
1347 },
1348 "test_scope_prefix.pdp_decision_ametist": {
1349 "pending_update": false,
1350 "policy_id": "test_scope_prefix.pdp_decision_ametist",
1351 "policy_versions": {
1352 "7.7.7": true
1353 }
1354 },
1355 "test_scope_prefix.pdp_decision_consectetur": {
1356 "pending_update": false,
1357 "policy_id": "test_scope_prefix.pdp_decision_consectetur",
1358 "policy_versions": {
1359 "6.6.6": true
1360 }
1361 },
1362 "test_scope_prefix.pdp_decision_dolor": {
1363 "pending_update": false,
1364 "policy_id": "test_scope_prefix.pdp_decision_dolor",
1365 "policy_versions": {
1366 "3.3.3": true
1367 }
1368 },
1369 "test_scope_prefix.pdp_decision_ipsum": {
1370 "pending_update": false,
1371 "policy_id": "test_scope_prefix.pdp_decision_ipsum",
1372 "policy_versions": {
1373 "2.2.2": true
1374 }
1375 },
1376 "test_scope_prefix.pdp_decision_sit": {
1377 "pending_update": false,
1378 "policy_id": "test_scope_prefix.pdp_decision_sit",
1379 "policy_versions": {
1380 "4.4.4": true
1381 }
1382 }
1383 },
1384 "server_instance_uuid": "e17fc584-7b06-4777-81c5-5da4337d6d16"
1385 },
1386 "status_code": 200
1387 },
1388 {
1389 "request": {
1390 "headers": {
1391 "Accept": "application/json",
1392 "Authorization": "Basic auth",
1393 "ClientAuth": "Basic user",
1394 "Content-Type": "application/json",
1395 "Environment": "TEST",
1396 "X-ECOMP-RequestID": "*",
1397 "X-ONAP-RequestID": "*"
1398 },
1399 "json": {
1400 "ONAPComponent": "policy_handler",
1401 "ONAPInstance": "*",
1402 "ONAPName": "DCAE",
1403 "action": "configure",
1404 "resource": {
1405 "policy-id": [
1406 "test_scope_prefix.pdp_decision_ipsum"
1407 ]
1408 }
1409 },
1410 "method": "post",
1411 "params": null,
1412 "uri": "https://unit-test-pdp-server:8081000/decision/v1/"
1413 },
1414 "res": {
1415 "policies": {}
1416 },
1417 "status_code": 200
1418 },
1419 {
1420 "request": {
1421 "headers": {
1422 "X-ECOMP-RequestID": "*",
1423 "X-ONAP-RequestID": "*"
1424 },
1425 "json": {
1426 "catch_up": false,
1427 "latest_policies": {},
1428 "policy_filter_matches": {},
1429 "removed_policies": {
1430 "test_scope_prefix.pdp_decision_ipsum": true
1431 }
1432 },
1433 "method": "put",
1434 "params": {
1435 "cfy_tenant_name": "default_tenant"
1436 },
1437 "uri": "http://unit-test-deployment_handler:8188000/policy"
1438 },
1439 "res": {
1440 "server_instance_uuid": "e17fc584-7b06-4777-81c5-5da4337d6d16"
1441 },
1442 "status_code": 200
1443 },
1444 {
1445 "request": {
1446 "headers": {
1447 "Authorization": "Basic auth",
1448 "Content-Type": "application/json",
1449 "X-ONAP-RequestID": "*",
1450 "X-ECOMP-RequestID": "*"
1451 },
1452 "json": null,
1453 "method": "get",
1454 "params": {
1455 "timeout": 15000
1456 },
1457 "uri": "https://unit-test-dmaap-mr:280800000/events/unit-test-topicname/unit-test-consumegroup/unit-test-consumerid"
1458 },
1459 "res": [
1460 "{\"deployed-policies\":[{\"policy-type\":\"onap.policies.monitoring.cdap.tca.hi.lo.app\",\"policy-type-version\":\"1.0.0\",\"policy-id\":\"test_scope_prefix.pdp_decision_Lorem\",\"policy-version\":\"1.1.1-update1\",\"success-count\":3,\"failure-count\":0}],\"undeployed-policies\":[{\"policy-type\":\"onap.policies.monitoring.cdap.tca.hi.lo.app\",\"policy-type-version\":\"1.0.0\",\"policy-id\":\"test_scope_prefix.pdp_decision_Lorem\",\"policy-version\":\"1.1.1\",\"success-count\":3,\"failure-count\":0}]}",
1461 "{\"deployed-policies\":[{\"policy-type\":\"onap.policies.monitoring.cdap.tca.hi.lo.app\",\"policy-type-version\":\"1.0.0\",\"policy-id\":\"test_scope_prefix.pdp_decision_Lorem\",\"policy-version\":\"1.1.1-update2\",\"success-count\":3,\"failure-count\":0}],\"undeployed-policies\":[{\"policy-type\":\"onap.policies.monitoring.cdap.tca.hi.lo.app\",\"policy-type-version\":\"1.0.0\",\"policy-id\":\"test_scope_prefix.pdp_decision_Lorem\",\"policy-version\":\"1.1.1-update1\",\"success-count\":3,\"failure-count\":0}]}",
1462 "{\"deployed-policies\":[{\"policy-type\":\"onap.policies.monitoring.cdap.tca.hi.lo.app\",\"policy-type-version\":\"1.0.0\",\"policy-id\":\"test_scope_prefix.pdp_decision_Lorem\",\"policy-version\":\"1.1.1-update3\",\"success-count\":3,\"failure-count\":0}],\"undeployed-policies\":[{\"policy-type\":\"onap.policies.monitoring.cdap.tca.hi.lo.app\",\"policy-type-version\":\"1.0.0\",\"policy-id\":\"test_scope_prefix.pdp_decision_Lorem\",\"policy-version\":\"1.1.1-update2\",\"success-count\":3,\"failure-count\":0}]}"
1463 ],
1464 "status_code": 200
1465 },
1466 {
1467 "request": {
1468 "headers": {
1469 "X-ONAP-RequestID": "*",
1470 "X-ECOMP-RequestID": "*"
1471 },
1472 "json": null,
1473 "method": "get",
1474 "params": {
1475 "cfy_tenant_name": "default_tenant"
1476 },
1477 "uri": "http://unit-test-deployment_handler:8188000/policy"
1478 },
1479 "res": {
1480 "policies": {
1481 "test_scope_prefix.pdp_decision_Lorem": {
1482 "pending_update": false,
1483 "policy_id": "test_scope_prefix.pdp_decision_Lorem",
1484 "policy_versions": {
1485 "1.1.1": true
1486 }
1487 },
1488 "test_scope_prefix.pdp_decision_amet": {
1489 "pending_update": false,
1490 "policy_id": "test_scope_prefix.pdp_decision_amet",
1491 "policy_versions": {
1492 "5.5.5": true
1493 }
1494 },
1495 "test_scope_prefix.pdp_decision_ametist": {
1496 "pending_update": false,
1497 "policy_id": "test_scope_prefix.pdp_decision_ametist",
1498 "policy_versions": {
1499 "7.7.7": true
1500 }
1501 },
1502 "test_scope_prefix.pdp_decision_consectetur": {
1503 "pending_update": false,
1504 "policy_id": "test_scope_prefix.pdp_decision_consectetur",
1505 "policy_versions": {
1506 "6.6.6": true
1507 }
1508 },
1509 "test_scope_prefix.pdp_decision_dolor": {
1510 "pending_update": false,
1511 "policy_id": "test_scope_prefix.pdp_decision_dolor",
1512 "policy_versions": {
1513 "3.3.3": true
1514 }
1515 },
1516 "test_scope_prefix.pdp_decision_ipsum": {
1517 "pending_update": false,
1518 "policy_id": "test_scope_prefix.pdp_decision_ipsum",
1519 "policy_versions": {
1520 "2.2.2": true
1521 }
1522 },
1523 "test_scope_prefix.pdp_decision_sit": {
1524 "pending_update": false,
1525 "policy_id": "test_scope_prefix.pdp_decision_sit",
1526 "policy_versions": {
1527 "4.4.4": true
1528 }
1529 }
1530 },
1531 "server_instance_uuid": "e17fc584-7b06-4777-81c5-5da4337d6d16"
1532 },
1533 "status_code": 200
1534 },
1535 {
1536 "request": {
1537 "headers": {
1538 "Accept": "application/json",
1539 "Authorization": "Basic auth",
1540 "ClientAuth": "Basic user",
1541 "Content-Type": "application/json",
1542 "Environment": "TEST",
1543 "X-ECOMP-RequestID": "*",
1544 "X-ONAP-RequestID": "*"
1545 },
1546 "json": {
1547 "ONAPComponent": "policy_handler",
1548 "ONAPInstance": "*",
1549 "ONAPName": "DCAE",
1550 "action": "configure",
1551 "resource": {
1552 "policy-id": [
1553 "test_scope_prefix.pdp_decision_Lorem"
1554 ]
1555 }
1556 },
1557 "method": "post",
1558 "params": null,
1559 "uri": "https://unit-test-pdp-server:8081000/decision/v1/"
1560 },
1561 "res": {
1562 "policies": {
1563 "test_scope_prefix.pdp_decision_Lorem": {
1564 "metadata": {
1565 "description": "description for test_scope_prefix.pdp_decision_Lorem",
1566 "policy-id": "test_scope_prefix.pdp_decision_Lorem",
1567 "policy-version": "1.1.1-update3"
1568 },
1569 "properties": {
1570 "policy_hello": "world! - updated 3",
1571 "policy_updated_from_ver": "1.1.1-update2",
1572 "policy_updated_to_ver": "1.1.1-update3",
1573 "updated_policy_id": "test_scope_prefix.pdp_decision_Lorem"
1574 },
1575 "type": "unit.test.type.policies",
1576 "version": "1.0.0"
1577 }
1578 }
1579 },
1580 "status_code": 200
1581 },
1582 {
1583 "request": {
1584 "headers": {
1585 "X-ECOMP-RequestID": "*",
1586 "X-ONAP-RequestID": "*"
1587 },
1588 "json": {
1589 "catch_up": false,
1590 "latest_policies": {
1591 "test_scope_prefix.pdp_decision_Lorem": {
1592 "policy_body": {
1593 "config": {
1594 "policy_hello": "world! - updated 3",
1595 "policy_updated_from_ver": "1.1.1-update2",
1596 "policy_updated_to_ver": "1.1.1-update3",
1597 "updated_policy_id": "test_scope_prefix.pdp_decision_Lorem"
1598 },
1599 "metadata": {
1600 "description": "description for test_scope_prefix.pdp_decision_Lorem",
1601 "policy-id": "test_scope_prefix.pdp_decision_Lorem",
1602 "policy-version": "1.1.1-update3"
1603 },
1604 "policyName": "test_scope_prefix.pdp_decision_Lorem.1-1-1-update3.xml",
1605 "policyVersion": "1.1.1-update3",
1606 "type": "unit.test.type.policies",
1607 "version": "1.0.0"
1608 },
1609 "policy_id": "test_scope_prefix.pdp_decision_Lorem"
1610 }
1611 },
1612 "policy_filter_matches": {},
1613 "removed_policies": {}
1614 },
1615 "method": "put",
1616 "params": {
1617 "cfy_tenant_name": "default_tenant"
1618 },
1619 "uri": "http://unit-test-deployment_handler:8188000/policy"
1620 },
1621 "res": {
1622 "server_instance_uuid": "e17fc584-7b06-4777-81c5-5da4337d6d16"
1623 },
1624 "status_code": 200
1625 },
1626 {
1627 "request": {
1628 "headers": {
1629 "Authorization": "Basic auth",
1630 "Content-Type": "application/json",
1631 "X-ONAP-RequestID": "*",
1632 "X-ECOMP-RequestID": "*"
1633 },
1634 "json": null,
1635 "method": "get",
1636 "params": {
1637 "timeout": 15000
1638 },
1639 "uri": "https://unit-test-dmaap-mr:280800000/events/unit-test-topicname/unit-test-consumegroup/unit-test-consumerid"
1640 },
1641 "res": [],
1642 "status_code": 200
1643 },
1644 {
1645 "request": {
1646 "headers": {
1647 "Authorization": "Basic auth",
1648 "Content-Type": "application/json",
1649 "X-ONAP-RequestID": "*",
1650 "X-ECOMP-RequestID": "*"
1651 },
1652 "json": null,
1653 "method": "get",
1654 "params": {
1655 "timeout": 15000
1656 },
1657 "uri": "https://unit-test-dmaap-mr:280800000/events/unit-test-topicname/unit-test-consumegroup/unit-test-consumerid"
1658 },
1659 "res": [],
1660 "status_code": 200
1661 },
1662 {
1663 "request": {
1664 "headers": {
1665 "Authorization": "Basic auth",
1666 "Content-Type": "application/json",
1667 "X-ONAP-RequestID": "*",
1668 "X-ECOMP-RequestID": "*"
1669 },
1670 "json": null,
1671 "method": "get",
1672 "params": {
1673 "timeout": 15000
1674 },
1675 "uri": "https://unit-test-dmaap-mr:280800000/events/unit-test-topicname/unit-test-consumegroup/unit-test-consumerid"
1676 },
1677 "res": [],
1678 "status_code": 200
1679 }
1680 ],
1681 "tests/main/test_pz_catch_up.py::test_catch_up": [
1682 {
1683 "request": {
1684 "headers": {
1685 "Authorization": "Basic YWxleC1ETUFBUF9NUl9VU0VSOmFsZXgtRE1BQVBfTVJfUFdE",
1686 "Content-Type": "application/json",
1687 "X-ONAP-RequestID": "*",
1688 "X-ECOMP-RequestID": "*"
1689 },
1690 "json": null,
1691 "method": "get",
1692 "params": null,
1693 "uri": "https://unit-test-dmaap-mr:280800000/events/unit-test-topicname/unit-test-consumegroup/unit-test-consumerid"
1694 },
1695 "res": ["garbage-to-be-ignored"],
1696 "status_code": 200
1697 },
1698 {
1699 "request": {
1700 "headers": {
1701 "X-ONAP-RequestID": "*",
1702 "X-ECOMP-RequestID": "*"
1703 },
1704 "json": null,
1705 "method": "get",
1706 "params": {
1707 "cfy_tenant_name": "default_tenant"
1708 },
1709 "uri": "http://unit-test-deployment_handler:8188000/policy"
1710 },
1711 "res": {
1712 "policies": {
1713 "test_scope_prefix.pdp_decision_Lorem": {
1714 "pending_update": false,
1715 "policy_id": "test_scope_prefix.pdp_decision_Lorem",
1716 "policy_versions": {
1717 "0": true
1718 }
1719 },
1720 "test_scope_prefix.pdp_decision_amet": {
1721 "pending_update": false,
1722 "policy_id": "test_scope_prefix.pdp_decision_amet",
1723 "policy_versions": {
1724 "5.5.5": true
1725 }
1726 },
1727 "test_scope_prefix.pdp_decision_ametist": {
1728 "pending_update": false,
1729 "policy_id": "test_scope_prefix.pdp_decision_ametist",
1730 "policy_versions": {
1731 "6": true
1732 }
1733 },
1734 "test_scope_prefix.pdp_decision_consectetur": {
1735 "pending_update": false,
1736 "policy_id": "test_scope_prefix.pdp_decision_consectetur",
1737 "policy_versions": {
1738 "5": true
1739 }
1740 },
1741 "test_scope_prefix.pdp_decision_dolor": {
1742 "pending_update": false,
1743 "policy_id": "test_scope_prefix.pdp_decision_dolor",
1744 "policy_versions": {
1745 "2": true
1746 }
1747 },
1748 "test_scope_prefix.pdp_decision_ipsum": {
1749 "pending_update": false,
1750 "policy_id": "test_scope_prefix.pdp_decision_ipsum",
1751 "policy_versions": {
1752 "1": true
1753 }
1754 },
1755 "test_scope_prefix.pdp_decision_sit": {
1756 "pending_update": false,
1757 "policy_id": "test_scope_prefix.pdp_decision_sit",
1758 "policy_versions": {
1759 "3": true
1760 }
1761 }
1762 },
1763 "server_instance_uuid": "e17fc584-7b06-4777-81c5-5da4337d6d16"
1764 },
1765 "status_code": 200
1766 },
1767 {
1768 "request": {
1769 "headers": {
1770 "Accept": "application/json",
1771 "Authorization": "Basic YWxleC1QRFBfVVNFUjphbGV4LVBEUF9QV0Q=",
1772 "ClientAuth": "Basic user",
1773 "Content-Type": "application/json",
1774 "Environment": "TEST",
1775 "X-ECOMP-RequestID": "*",
1776 "X-ONAP-RequestID": "*"
1777 },
1778 "json": {
1779 "ONAPComponent": "policy_handler",
1780 "ONAPInstance": "*",
1781 "ONAPName": "DCAE",
1782 "action": "configure",
1783 "resource": {
1784 "policy-id": [
1785 "test_scope_prefix.pdp_decision_Lorem",
1786 "test_scope_prefix.pdp_decision_amet",
1787 "test_scope_prefix.pdp_decision_ametist",
1788 "test_scope_prefix.pdp_decision_consectetur",
1789 "test_scope_prefix.pdp_decision_dolor",
1790 "test_scope_prefix.pdp_decision_ipsum",
1791 "test_scope_prefix.pdp_decision_sit"
1792 ]
1793 }
1794 },
1795 "method": "post",
1796 "params": null,
1797 "uri": "https://unit-test-pdp-server:8081000/decision/v1/"
1798 },
1799 "res": {
1800 "policies": {
1801 "test_scope_prefix.pdp_decision_Lorem": {
1802 "metadata": {
1803 "description": "description for test_scope_prefix.pdp_decision_Lorem",
1804 "policy-id": "test_scope_prefix.pdp_decision_Lorem",
1805 "policy-version": "1.1.1"
1806 },
1807 "properties": {
1808 "policy_hello": "world!",
1809 "policy_updated_from_ver": 0,
1810 "policy_updated_to_ver": 1,
1811 "updated_policy_id": "test_scope_prefix.pdp_decision_Lorem"
1812 },
1813 "type": "unit.test.type.policies",
1814 "version": "1.0.0"
1815 },
1816 "test_scope_prefix.pdp_decision_amet": {
1817 "metadata": {
1818 "description": "description for test_scope_prefix.pdp_decision_amet",
1819 "policy-id": "test_scope_prefix.pdp_decision_amet",
1820 "policy-version": "5.5.5"
1821 },
1822 "properties": {
1823 "policy_hello": "world!",
1824 "policy_updated_from_ver": 4,
1825 "policy_updated_to_ver": 5,
1826 "updated_policy_id": "test_scope_prefix.pdp_decision_amet"
1827 },
1828 "type": "unit.test.type.policies",
1829 "version": "1.0.0"
1830 },
1831 "test_scope_prefix.pdp_decision_ametist": {
1832 "metadata": {
1833 "description": "description for test_scope_prefix.pdp_decision_ametist",
1834 "policy-id": "test_scope_prefix.pdp_decision_ametist",
1835 "policy-version": "7.7.7"
1836 },
1837 "properties": {
1838 "policy_hello": "world!",
1839 "policy_updated_from_ver": 6,
1840 "policy_updated_to_ver": 7,
1841 "updated_policy_id": "test_scope_prefix.pdp_decision_ametist"
1842 },
1843 "type": "unit.test.type.policies",
1844 "version": "1.0.0"
1845 },
1846 "test_scope_prefix.pdp_decision_consectetur": {
1847 "metadata": {
1848 "description": "description for test_scope_prefix.pdp_decision_consectetur",
1849 "policy-id": "test_scope_prefix.pdp_decision_consectetur",
1850 "policy-version": "6.6.6"
1851 },
1852 "properties": {
1853 "policy_hello": "world!",
1854 "policy_updated_from_ver": 5,
1855 "policy_updated_to_ver": 6,
1856 "updated_policy_id": "test_scope_prefix.pdp_decision_consectetur"
1857 },
1858 "type": "unit.test.type.policies",
1859 "version": "1.0.0"
1860 },
1861 "test_scope_prefix.pdp_decision_dolor": {
1862 "metadata": {
1863 "description": "description for test_scope_prefix.pdp_decision_dolor",
1864 "policy-id": "test_scope_prefix.pdp_decision_dolor",
1865 "policy-version": "3.3.3"
1866 },
1867 "properties": {
1868 "policy_hello": "world!",
1869 "policy_updated_from_ver": 2,
1870 "policy_updated_to_ver": 3,
1871 "updated_policy_id": "test_scope_prefix.pdp_decision_dolor"
1872 },
1873 "type": "unit.test.type.policies",
1874 "version": "1.0.0"
1875 },
1876 "test_scope_prefix.pdp_decision_ipsum": {
1877 "metadata": {
1878 "description": "description for test_scope_prefix.pdp_decision_ipsum",
1879 "policy-id": "test_scope_prefix.pdp_decision_ipsum",
1880 "policy-version": "2.2.2"
1881 },
1882 "properties": {
1883 "policy_hello": "world!",
1884 "policy_updated_from_ver": 1,
1885 "policy_updated_to_ver": 2,
1886 "updated_policy_id": "test_scope_prefix.pdp_decision_ipsum"
1887 },
1888 "type": "unit.test.type.policies",
1889 "version": "1.0.0"
1890 },
1891 "test_scope_prefix.pdp_decision_sit": {
1892 "metadata": {
1893 "description": "description for test_scope_prefix.pdp_decision_sit",
1894 "policy-id": "test_scope_prefix.pdp_decision_sit",
1895 "policy-version": "4.4.4"
1896 },
1897 "properties": {
1898 "policy_hello": "world!",
1899 "policy_updated_from_ver": 3,
1900 "policy_updated_to_ver": 4,
1901 "updated_policy_id": "test_scope_prefix.pdp_decision_sit"
1902 },
1903 "type": "unit.test.type.policies",
1904 "version": "1.0.0"
1905 }
1906 }
1907 },
1908 "status_code": 200
1909 },
1910 {
1911 "request": {
1912 "headers": {
1913 "X-ECOMP-RequestID": "*",
1914 "X-ONAP-RequestID": "*"
1915 },
1916 "json": {
1917 "catch_up": true,
1918 "latest_policies": {
1919 "test_scope_prefix.pdp_decision_Lorem": {
1920 "policy_body": {
1921 "config": {
1922 "policy_hello": "world!",
1923 "policy_updated_from_ver": 0,
1924 "policy_updated_to_ver": 1,
1925 "updated_policy_id": "test_scope_prefix.pdp_decision_Lorem"
1926 },
1927 "metadata": {
1928 "description": "description for test_scope_prefix.pdp_decision_Lorem",
1929 "policy-id": "test_scope_prefix.pdp_decision_Lorem",
1930 "policy-version": "1.1.1"
1931 },
1932 "policyName": "test_scope_prefix.pdp_decision_Lorem.1-1-1.xml",
1933 "policyVersion": "1.1.1",
1934 "type": "unit.test.type.policies",
1935 "version": "1.0.0"
1936 },
1937 "policy_id": "test_scope_prefix.pdp_decision_Lorem"
1938 },
1939 "test_scope_prefix.pdp_decision_ametist": {
1940 "policy_body": {
1941 "config": {
1942 "policy_hello": "world!",
1943 "policy_updated_from_ver": 6,
1944 "policy_updated_to_ver": 7,
1945 "updated_policy_id": "test_scope_prefix.pdp_decision_ametist"
1946 },
1947 "metadata": {
1948 "description": "description for test_scope_prefix.pdp_decision_ametist",
1949 "policy-id": "test_scope_prefix.pdp_decision_ametist",
1950 "policy-version": "7.7.7"
1951 },
1952 "policyName": "test_scope_prefix.pdp_decision_ametist.7-7-7.xml",
1953 "policyVersion": "7.7.7",
1954 "type": "unit.test.type.policies",
1955 "version": "1.0.0"
1956 },
1957 "policy_id": "test_scope_prefix.pdp_decision_ametist"
1958 },
1959 "test_scope_prefix.pdp_decision_consectetur": {
1960 "policy_body": {
1961 "config": {
1962 "policy_hello": "world!",
1963 "policy_updated_from_ver": 5,
1964 "policy_updated_to_ver": 6,
1965 "updated_policy_id": "test_scope_prefix.pdp_decision_consectetur"
1966 },
1967 "metadata": {
1968 "description": "description for test_scope_prefix.pdp_decision_consectetur",
1969 "policy-id": "test_scope_prefix.pdp_decision_consectetur",
1970 "policy-version": "6.6.6"
1971 },
1972 "policyName": "test_scope_prefix.pdp_decision_consectetur.6-6-6.xml",
1973 "policyVersion": "6.6.6",
1974 "type": "unit.test.type.policies",
1975 "version": "1.0.0"
1976 },
1977 "policy_id": "test_scope_prefix.pdp_decision_consectetur"
1978 },
1979 "test_scope_prefix.pdp_decision_dolor": {
1980 "policy_body": {
1981 "config": {
1982 "policy_hello": "world!",
1983 "policy_updated_from_ver": 2,
1984 "policy_updated_to_ver": 3,
1985 "updated_policy_id": "test_scope_prefix.pdp_decision_dolor"
1986 },
1987 "metadata": {
1988 "description": "description for test_scope_prefix.pdp_decision_dolor",
1989 "policy-id": "test_scope_prefix.pdp_decision_dolor",
1990 "policy-version": "3.3.3"
1991 },
1992 "policyName": "test_scope_prefix.pdp_decision_dolor.3-3-3.xml",
1993 "policyVersion": "3.3.3",
1994 "type": "unit.test.type.policies",
1995 "version": "1.0.0"
1996 },
1997 "policy_id": "test_scope_prefix.pdp_decision_dolor"
1998 },
1999 "test_scope_prefix.pdp_decision_ipsum": {
2000 "policy_body": {
2001 "config": {
2002 "policy_hello": "world!",
2003 "policy_updated_from_ver": 1,
2004 "policy_updated_to_ver": 2,
2005 "updated_policy_id": "test_scope_prefix.pdp_decision_ipsum"
2006 },
2007 "metadata": {
2008 "description": "description for test_scope_prefix.pdp_decision_ipsum",
2009 "policy-id": "test_scope_prefix.pdp_decision_ipsum",
2010 "policy-version": "2.2.2"
2011 },
2012 "policyName": "test_scope_prefix.pdp_decision_ipsum.2-2-2.xml",
2013 "policyVersion": "2.2.2",
2014 "type": "unit.test.type.policies",
2015 "version": "1.0.0"
2016 },
2017 "policy_id": "test_scope_prefix.pdp_decision_ipsum"
2018 },
2019 "test_scope_prefix.pdp_decision_sit": {
2020 "policy_body": {
2021 "config": {
2022 "policy_hello": "world!",
2023 "policy_updated_from_ver": 3,
2024 "policy_updated_to_ver": 4,
2025 "updated_policy_id": "test_scope_prefix.pdp_decision_sit"
2026 },
2027 "metadata": {
2028 "description": "description for test_scope_prefix.pdp_decision_sit",
2029 "policy-id": "test_scope_prefix.pdp_decision_sit",
2030 "policy-version": "4.4.4"
2031 },
2032 "policyName": "test_scope_prefix.pdp_decision_sit.4-4-4.xml",
2033 "policyVersion": "4.4.4",
2034 "type": "unit.test.type.policies",
2035 "version": "1.0.0"
2036 },
2037 "policy_id": "test_scope_prefix.pdp_decision_sit"
2038 }
2039 },
2040 "policy_filter_matches": {},
2041 "removed_policies": {}
2042 },
2043 "method": "put",
2044 "params": {
2045 "cfy_tenant_name": "default_tenant"
2046 },
2047 "uri": "http://unit-test-deployment_handler:8188000/policy"
2048 },
2049 "res": {
2050 "server_instance_uuid": "e17fc584-7b06-4777-81c5-5da4337d6d16"
2051 },
2052 "status_code": 200
2053 },
2054 {
2055 "request": {
2056 "headers": {
2057 "Authorization": "Basic YWxleC1ETUFBUF9NUl9VU0VSOmFsZXgtRE1BQVBfTVJfUFdE",
2058 "Content-Type": "application/json",
2059 "X-ONAP-RequestID": "*",
2060 "X-ECOMP-RequestID": "*"
2061 },
2062 "json": null,
2063 "method": "get",
2064 "params": {
2065 "timeout": 15000
2066 },
2067 "uri": "https://unit-test-dmaap-mr:280800000/events/unit-test-topicname/unit-test-consumegroup/unit-test-consumerid"
2068 },
2069 "res": [],
2070 "status_code": 200
2071 },
2072 {
2073 "request": {
2074 "headers": {
2075 "X-ONAP-RequestID": "*",
2076 "X-ECOMP-RequestID": "*"
2077 },
2078 "json": null,
2079 "method": "get",
2080 "params": {
2081 "cfy_tenant_name": "default_tenant"
2082 },
2083 "uri": "http://unit-test-deployment_handler:8188000/policy"
2084 },
2085 "res": {
2086 "policies": {
2087 "test_scope_prefix.pdp_decision_Lorem": {
2088 "pending_update": false,
2089 "policy_id": "test_scope_prefix.pdp_decision_Lorem",
2090 "policy_versions": {
2091 "0": true
2092 }
2093 },
2094 "test_scope_prefix.pdp_decision_amet": {
2095 "pending_update": false,
2096 "policy_id": "test_scope_prefix.pdp_decision_amet",
2097 "policy_versions": {
2098 "5.5.5": true
2099 }
2100 },
2101 "test_scope_prefix.pdp_decision_ametist": {
2102 "pending_update": false,
2103 "policy_id": "test_scope_prefix.pdp_decision_ametist",
2104 "policy_versions": {
2105 "6": true
2106 }
2107 },
2108 "test_scope_prefix.pdp_decision_consectetur": {
2109 "pending_update": false,
2110 "policy_id": "test_scope_prefix.pdp_decision_consectetur",
2111 "policy_versions": {
2112 "5": true
2113 }
2114 },
2115 "test_scope_prefix.pdp_decision_dolor": {
2116 "pending_update": false,
2117 "policy_id": "test_scope_prefix.pdp_decision_dolor",
2118 "policy_versions": {
2119 "2": true
2120 }
2121 },
2122 "test_scope_prefix.pdp_decision_ipsum": {
2123 "pending_update": false,
2124 "policy_id": "test_scope_prefix.pdp_decision_ipsum",
2125 "policy_versions": {
2126 "1": true
2127 }
2128 },
2129 "test_scope_prefix.pdp_decision_sit": {
2130 "pending_update": false,
2131 "policy_id": "test_scope_prefix.pdp_decision_sit",
2132 "policy_versions": {
2133 "3": true
2134 }
2135 }
2136 },
2137 "server_instance_uuid": "e17fc584-7b06-4777-81c5-5da4337d6d16"
2138 },
2139 "status_code": 200
2140 },
2141 {
2142 "request": {
2143 "headers": {
2144 "Accept": "application/json",
2145 "Authorization": "Basic YWxleC1QRFBfVVNFUjphbGV4LVBEUF9QV0Q=",
2146 "ClientAuth": "Basic user",
2147 "Content-Type": "application/json",
2148 "Environment": "TEST",
2149 "X-ECOMP-RequestID": "*",
2150 "X-ONAP-RequestID": "*"
2151 },
2152 "json": {
2153 "ONAPComponent": "policy_handler",
2154 "ONAPInstance": "*",
2155 "ONAPName": "DCAE",
2156 "action": "configure",
2157 "resource": {
2158 "policy-id": [
2159 "test_scope_prefix.pdp_decision_Lorem",
2160 "test_scope_prefix.pdp_decision_amet",
2161 "test_scope_prefix.pdp_decision_ametist",
2162 "test_scope_prefix.pdp_decision_consectetur",
2163 "test_scope_prefix.pdp_decision_dolor",
2164 "test_scope_prefix.pdp_decision_ipsum",
2165 "test_scope_prefix.pdp_decision_sit"
2166 ]
2167 }
2168 },
2169 "method": "post",
2170 "params": null,
2171 "uri": "https://unit-test-pdp-server:8081000/decision/v1/"
2172 },
2173 "res": {
2174 "policies": {
2175 "test_scope_prefix.pdp_decision_Lorem": {
2176 "metadata": {
2177 "description": "description for test_scope_prefix.pdp_decision_Lorem",
2178 "policy-id": "test_scope_prefix.pdp_decision_Lorem",
2179 "policy-version": "1.1.1"
2180 },
2181 "properties": {
2182 "policy_hello": "world!",
2183 "policy_updated_from_ver": 0,
2184 "policy_updated_to_ver": 1,
2185 "updated_policy_id": "test_scope_prefix.pdp_decision_Lorem"
2186 },
2187 "type": "unit.test.type.policies",
2188 "version": "1.0.0"
2189 },
2190 "test_scope_prefix.pdp_decision_amet": {
2191 "metadata": {
2192 "description": "description for test_scope_prefix.pdp_decision_amet",
2193 "policy-id": "test_scope_prefix.pdp_decision_amet",
2194 "policy-version": "5.5.5"
2195 },
2196 "properties": {
2197 "policy_hello": "world!",
2198 "policy_updated_from_ver": 4,
2199 "policy_updated_to_ver": 5,
2200 "updated_policy_id": "test_scope_prefix.pdp_decision_amet"
2201 },
2202 "type": "unit.test.type.policies",
2203 "version": "1.0.0"
2204 },
2205 "test_scope_prefix.pdp_decision_ametist": {
2206 "metadata": {
2207 "description": "description for test_scope_prefix.pdp_decision_ametist",
2208 "policy-id": "test_scope_prefix.pdp_decision_ametist",
2209 "policy-version": "7.7.7"
2210 },
2211 "properties": {
2212 "policy_hello": "world!",
2213 "policy_updated_from_ver": 6,
2214 "policy_updated_to_ver": 7,
2215 "updated_policy_id": "test_scope_prefix.pdp_decision_ametist"
2216 },
2217 "type": "unit.test.type.policies",
2218 "version": "1.0.0"
2219 },
2220 "test_scope_prefix.pdp_decision_consectetur": {
2221 "metadata": {
2222 "description": "description for test_scope_prefix.pdp_decision_consectetur",
2223 "policy-id": "test_scope_prefix.pdp_decision_consectetur",
2224 "policy-version": "6.6.6"
2225 },
2226 "properties": {
2227 "policy_hello": "world!",
2228 "policy_updated_from_ver": 5,
2229 "policy_updated_to_ver": 6,
2230 "updated_policy_id": "test_scope_prefix.pdp_decision_consectetur"
2231 },
2232 "type": "unit.test.type.policies",
2233 "version": "1.0.0"
2234 },
2235 "test_scope_prefix.pdp_decision_dolor": {
2236 "metadata": {
2237 "description": "description for test_scope_prefix.pdp_decision_dolor",
2238 "policy-id": "test_scope_prefix.pdp_decision_dolor",
2239 "policy-version": "3.3.3"
2240 },
2241 "properties": {
2242 "policy_hello": "world!",
2243 "policy_updated_from_ver": 2,
2244 "policy_updated_to_ver": 3,
2245 "updated_policy_id": "test_scope_prefix.pdp_decision_dolor"
2246 },
2247 "type": "unit.test.type.policies",
2248 "version": "1.0.0"
2249 },
2250 "test_scope_prefix.pdp_decision_ipsum": {
2251 "metadata": {
2252 "description": "description for test_scope_prefix.pdp_decision_ipsum",
2253 "policy-id": "test_scope_prefix.pdp_decision_ipsum",
2254 "policy-version": "2.2.2"
2255 },
2256 "properties": {
2257 "policy_hello": "world!",
2258 "policy_updated_from_ver": 1,
2259 "policy_updated_to_ver": 2,
2260 "updated_policy_id": "test_scope_prefix.pdp_decision_ipsum"
2261 },
2262 "type": "unit.test.type.policies",
2263 "version": "1.0.0"
2264 },
2265 "test_scope_prefix.pdp_decision_sit": {
2266 "metadata": {
2267 "description": "description for test_scope_prefix.pdp_decision_sit",
2268 "policy-id": "test_scope_prefix.pdp_decision_sit",
2269 "policy-version": "4.4.4"
2270 },
2271 "properties": {
2272 "policy_hello": "world!",
2273 "policy_updated_from_ver": 3,
2274 "policy_updated_to_ver": 4,
2275 "updated_policy_id": "test_scope_prefix.pdp_decision_sit"
2276 },
2277 "type": "unit.test.type.policies",
2278 "version": "1.0.0"
2279 }
2280 }
2281 },
2282 "status_code": 200
2283 },
2284 {
2285 "request": {
2286 "headers": {
2287 "X-ECOMP-RequestID": "*",
2288 "X-ONAP-RequestID": "*"
2289 },
2290 "json": {
2291 "catch_up": true,
2292 "latest_policies": {
2293 "test_scope_prefix.pdp_decision_Lorem": {
2294 "policy_body": {
2295 "config": {
2296 "policy_hello": "world!",
2297 "policy_updated_from_ver": 0,
2298 "policy_updated_to_ver": 1,
2299 "updated_policy_id": "test_scope_prefix.pdp_decision_Lorem"
2300 },
2301 "metadata": {
2302 "description": "description for test_scope_prefix.pdp_decision_Lorem",
2303 "policy-id": "test_scope_prefix.pdp_decision_Lorem",
2304 "policy-version": "1.1.1"
2305 },
2306 "policyName": "test_scope_prefix.pdp_decision_Lorem.1-1-1.xml",
2307 "policyVersion": "1.1.1",
2308 "type": "unit.test.type.policies",
2309 "version": "1.0.0"
2310 },
2311 "policy_id": "test_scope_prefix.pdp_decision_Lorem"
2312 },
2313 "test_scope_prefix.pdp_decision_ametist": {
2314 "policy_body": {
2315 "config": {
2316 "policy_hello": "world!",
2317 "policy_updated_from_ver": 6,
2318 "policy_updated_to_ver": 7,
2319 "updated_policy_id": "test_scope_prefix.pdp_decision_ametist"
2320 },
2321 "metadata": {
2322 "description": "description for test_scope_prefix.pdp_decision_ametist",
2323 "policy-id": "test_scope_prefix.pdp_decision_ametist",
2324 "policy-version": "7.7.7"
2325 },
2326 "policyName": "test_scope_prefix.pdp_decision_ametist.7-7-7.xml",
2327 "policyVersion": "7.7.7",
2328 "type": "unit.test.type.policies",
2329 "version": "1.0.0"
2330 },
2331 "policy_id": "test_scope_prefix.pdp_decision_ametist"
2332 },
2333 "test_scope_prefix.pdp_decision_consectetur": {
2334 "policy_body": {
2335 "config": {
2336 "policy_hello": "world!",
2337 "policy_updated_from_ver": 5,
2338 "policy_updated_to_ver": 6,
2339 "updated_policy_id": "test_scope_prefix.pdp_decision_consectetur"
2340 },
2341 "metadata": {
2342 "description": "description for test_scope_prefix.pdp_decision_consectetur",
2343 "policy-id": "test_scope_prefix.pdp_decision_consectetur",
2344 "policy-version": "6.6.6"
2345 },
2346 "policyName": "test_scope_prefix.pdp_decision_consectetur.6-6-6.xml",
2347 "policyVersion": "6.6.6",
2348 "type": "unit.test.type.policies",
2349 "version": "1.0.0"
2350 },
2351 "policy_id": "test_scope_prefix.pdp_decision_consectetur"
2352 },
2353 "test_scope_prefix.pdp_decision_dolor": {
2354 "policy_body": {
2355 "config": {
2356 "policy_hello": "world!",
2357 "policy_updated_from_ver": 2,
2358 "policy_updated_to_ver": 3,
2359 "updated_policy_id": "test_scope_prefix.pdp_decision_dolor"
2360 },
2361 "metadata": {
2362 "description": "description for test_scope_prefix.pdp_decision_dolor",
2363 "policy-id": "test_scope_prefix.pdp_decision_dolor",
2364 "policy-version": "3.3.3"
2365 },
2366 "policyName": "test_scope_prefix.pdp_decision_dolor.3-3-3.xml",
2367 "policyVersion": "3.3.3",
2368 "type": "unit.test.type.policies",
2369 "version": "1.0.0"
2370 },
2371 "policy_id": "test_scope_prefix.pdp_decision_dolor"
2372 },
2373 "test_scope_prefix.pdp_decision_ipsum": {
2374 "policy_body": {
2375 "config": {
2376 "policy_hello": "world!",
2377 "policy_updated_from_ver": 1,
2378 "policy_updated_to_ver": 2,
2379 "updated_policy_id": "test_scope_prefix.pdp_decision_ipsum"
2380 },
2381 "metadata": {
2382 "description": "description for test_scope_prefix.pdp_decision_ipsum",
2383 "policy-id": "test_scope_prefix.pdp_decision_ipsum",
2384 "policy-version": "2.2.2"
2385 },
2386 "policyName": "test_scope_prefix.pdp_decision_ipsum.2-2-2.xml",
2387 "policyVersion": "2.2.2",
2388 "type": "unit.test.type.policies",
2389 "version": "1.0.0"
2390 },
2391 "policy_id": "test_scope_prefix.pdp_decision_ipsum"
2392 },
2393 "test_scope_prefix.pdp_decision_sit": {
2394 "policy_body": {
2395 "config": {
2396 "policy_hello": "world!",
2397 "policy_updated_from_ver": 3,
2398 "policy_updated_to_ver": 4,
2399 "updated_policy_id": "test_scope_prefix.pdp_decision_sit"
2400 },
2401 "metadata": {
2402 "description": "description for test_scope_prefix.pdp_decision_sit",
2403 "policy-id": "test_scope_prefix.pdp_decision_sit",
2404 "policy-version": "4.4.4"
2405 },
2406 "policyName": "test_scope_prefix.pdp_decision_sit.4-4-4.xml",
2407 "policyVersion": "4.4.4",
2408 "type": "unit.test.type.policies",
2409 "version": "1.0.0"
2410 },
2411 "policy_id": "test_scope_prefix.pdp_decision_sit"
2412 }
2413 },
2414 "policy_filter_matches": {},
2415 "removed_policies": {}
2416 },
2417 "method": "put",
2418 "params": {
2419 "cfy_tenant_name": "default_tenant"
2420 },
2421 "uri": "http://unit-test-deployment_handler:8188000/policy"
2422 },
2423 "res": {
2424 "server_instance_uuid": "e17fc584-7b06-4777-81c5-5da4337d6d16"
2425 },
2426 "status_code": 200
2427 },
2428 {
2429 "request": {
2430 "headers": {
2431 "Authorization": "Basic YWxleC1ETUFBUF9NUl9VU0VSOmFsZXgtRE1BQVBfTVJfUFdE",
2432 "Content-Type": "application/json",
2433 "X-ONAP-RequestID": "*",
2434 "X-ECOMP-RequestID": "*"
2435 },
2436 "json": null,
2437 "method": "get",
2438 "params": {
2439 "timeout": 15000
2440 },
2441 "uri": "https://unit-test-dmaap-mr:280800000/events/unit-test-topicname/unit-test-consumegroup/unit-test-consumerid"
2442 },
2443 "res": ["garbage-to-be-ignored", "garbage-to-be-ignored"],
2444 "status_code": 200
2445 },
2446 {
2447 "request": {
2448 "headers": {
2449 "Authorization": "Basic YWxleC1ETUFBUF9NUl9VU0VSOmFsZXgtRE1BQVBfTVJfUFdE",
2450 "Content-Type": "application/json",
2451 "X-ONAP-RequestID": "*",
2452 "X-ECOMP-RequestID": "*"
2453 },
2454 "json": null,
2455 "method": "get",
2456 "params": {
2457 "timeout": 15000
2458 },
2459 "uri": "https://unit-test-dmaap-mr:280800000/events/unit-test-topicname/unit-test-consumegroup/unit-test-consumerid"
2460 },
2461 "res": [],
2462 "status_code": 200
2463 },
2464 {
2465 "request": {
2466 "headers": {
2467 "X-ONAP-RequestID": "*",
2468 "X-ECOMP-RequestID": "*"
2469 },
2470 "json": null,
2471 "method": "get",
2472 "params": {
2473 "cfy_tenant_name": "default_tenant"
2474 },
2475 "uri": "http://unit-test-deployment_handler:8188000/policy"
2476 },
2477 "res": {
2478 "policies": {
2479 "test_scope_prefix.pdp_decision_Lorem": {
2480 "pending_update": false,
2481 "policy_id": "test_scope_prefix.pdp_decision_Lorem",
2482 "policy_versions": {
2483 "0": true
2484 }
2485 },
2486 "test_scope_prefix.pdp_decision_amet": {
2487 "pending_update": false,
2488 "policy_id": "test_scope_prefix.pdp_decision_amet",
2489 "policy_versions": {
2490 "5.5.5": true
2491 }
2492 },
2493 "test_scope_prefix.pdp_decision_ametist": {
2494 "pending_update": false,
2495 "policy_id": "test_scope_prefix.pdp_decision_ametist",
2496 "policy_versions": {
2497 "6": true
2498 }
2499 },
2500 "test_scope_prefix.pdp_decision_consectetur": {
2501 "pending_update": false,
2502 "policy_id": "test_scope_prefix.pdp_decision_consectetur",
2503 "policy_versions": {
2504 "5": true
2505 }
2506 },
2507 "test_scope_prefix.pdp_decision_dolor": {
2508 "pending_update": false,
2509 "policy_id": "test_scope_prefix.pdp_decision_dolor",
2510 "policy_versions": {
2511 "2": true
2512 }
2513 },
2514 "test_scope_prefix.pdp_decision_ipsum": {
2515 "pending_update": false,
2516 "policy_id": "test_scope_prefix.pdp_decision_ipsum",
2517 "policy_versions": {
2518 "1": true
2519 }
2520 },
2521 "test_scope_prefix.pdp_decision_sit": {
2522 "pending_update": false,
2523 "policy_id": "test_scope_prefix.pdp_decision_sit",
2524 "policy_versions": {
2525 "3": true
2526 }
2527 }
2528 },
2529 "server_instance_uuid": "e17fc584-7b06-4777-81c5-5da4337d6d16"
2530 },
2531 "status_code": 200
2532 },
2533 {
2534 "request": {
2535 "headers": {
2536 "Accept": "application/json",
2537 "Authorization": "Basic YWxleC1QRFBfVVNFUjphbGV4LVBEUF9QV0Q=",
2538 "ClientAuth": "Basic user",
2539 "Content-Type": "application/json",
2540 "Environment": "TEST",
2541 "X-ECOMP-RequestID": "*",
2542 "X-ONAP-RequestID": "*"
2543 },
2544 "json": {
2545 "ONAPComponent": "policy_handler",
2546 "ONAPInstance": "*",
2547 "ONAPName": "DCAE",
2548 "action": "configure",
2549 "resource": {
2550 "policy-id": [
2551 "test_scope_prefix.pdp_decision_Lorem",
2552 "test_scope_prefix.pdp_decision_amet",
2553 "test_scope_prefix.pdp_decision_ametist",
2554 "test_scope_prefix.pdp_decision_consectetur",
2555 "test_scope_prefix.pdp_decision_dolor",
2556 "test_scope_prefix.pdp_decision_ipsum",
2557 "test_scope_prefix.pdp_decision_sit"
2558 ]
2559 }
2560 },
2561 "method": "post",
2562 "params": null,
2563 "uri": "https://unit-test-pdp-server:8081000/decision/v1/"
2564 },
2565 "res": {
2566 "policies": {
2567 "test_scope_prefix.pdp_decision_Lorem": {
2568 "metadata": {
2569 "description": "description for test_scope_prefix.pdp_decision_Lorem",
2570 "policy-id": "test_scope_prefix.pdp_decision_Lorem",
2571 "policy-version": "1.1.1"
2572 },
2573 "properties": {
2574 "policy_hello": "world!",
2575 "policy_updated_from_ver": 0,
2576 "policy_updated_to_ver": 1,
2577 "updated_policy_id": "test_scope_prefix.pdp_decision_Lorem"
2578 },
2579 "type": "unit.test.type.policies",
2580 "version": "1.0.0"
2581 },
2582 "test_scope_prefix.pdp_decision_amet": {
2583 "metadata": {
2584 "description": "description for test_scope_prefix.pdp_decision_amet",
2585 "policy-id": "test_scope_prefix.pdp_decision_amet",
2586 "policy-version": "5.5.5"
2587 },
2588 "properties": {
2589 "policy_hello": "world!",
2590 "policy_updated_from_ver": 4,
2591 "policy_updated_to_ver": 5,
2592 "updated_policy_id": "test_scope_prefix.pdp_decision_amet"
2593 },
2594 "type": "unit.test.type.policies",
2595 "version": "1.0.0"
2596 },
2597 "test_scope_prefix.pdp_decision_ametist": {
2598 "metadata": {
2599 "description": "description for test_scope_prefix.pdp_decision_ametist",
2600 "policy-id": "test_scope_prefix.pdp_decision_ametist",
2601 "policy-version": "7.7.7"
2602 },
2603 "properties": {
2604 "policy_hello": "world!",
2605 "policy_updated_from_ver": 6,
2606 "policy_updated_to_ver": 7,
2607 "updated_policy_id": "test_scope_prefix.pdp_decision_ametist"
2608 },
2609 "type": "unit.test.type.policies",
2610 "version": "1.0.0"
2611 },
2612 "test_scope_prefix.pdp_decision_consectetur": {
2613 "metadata": {
2614 "description": "description for test_scope_prefix.pdp_decision_consectetur",
2615 "policy-id": "test_scope_prefix.pdp_decision_consectetur",
2616 "policy-version": "6.6.6"
2617 },
2618 "properties": {
2619 "policy_hello": "world!",
2620 "policy_updated_from_ver": 5,
2621 "policy_updated_to_ver": 6,
2622 "updated_policy_id": "test_scope_prefix.pdp_decision_consectetur"
2623 },
2624 "type": "unit.test.type.policies",
2625 "version": "1.0.0"
2626 },
2627 "test_scope_prefix.pdp_decision_dolor": {
2628 "metadata": {
2629 "description": "description for test_scope_prefix.pdp_decision_dolor",
2630 "policy-id": "test_scope_prefix.pdp_decision_dolor",
2631 "policy-version": "3.3.3"
2632 },
2633 "properties": {
2634 "policy_hello": "world!",
2635 "policy_updated_from_ver": 2,
2636 "policy_updated_to_ver": 3,
2637 "updated_policy_id": "test_scope_prefix.pdp_decision_dolor"
2638 },
2639 "type": "unit.test.type.policies",
2640 "version": "1.0.0"
2641 },
2642 "test_scope_prefix.pdp_decision_ipsum": {
2643 "metadata": {
2644 "description": "description for test_scope_prefix.pdp_decision_ipsum",
2645 "policy-id": "test_scope_prefix.pdp_decision_ipsum",
2646 "policy-version": "2.2.2"
2647 },
2648 "properties": {
2649 "policy_hello": "world!",
2650 "policy_updated_from_ver": 1,
2651 "policy_updated_to_ver": 2,
2652 "updated_policy_id": "test_scope_prefix.pdp_decision_ipsum"
2653 },
2654 "type": "unit.test.type.policies",
2655 "version": "1.0.0"
2656 },
2657 "test_scope_prefix.pdp_decision_sit": {
2658 "metadata": {
2659 "description": "description for test_scope_prefix.pdp_decision_sit",
2660 "policy-id": "test_scope_prefix.pdp_decision_sit",
2661 "policy-version": "4.4.4"
2662 },
2663 "properties": {
2664 "policy_hello": "world!",
2665 "policy_updated_from_ver": 3,
2666 "policy_updated_to_ver": 4,
2667 "updated_policy_id": "test_scope_prefix.pdp_decision_sit"
2668 },
2669 "type": "unit.test.type.policies",
2670 "version": "1.0.0"
2671 }
2672 }
2673 },
2674 "status_code": 200
2675 },
2676 {
2677 "request": {
2678 "headers": {
2679 "X-ECOMP-RequestID": "*",
2680 "X-ONAP-RequestID": "*"
2681 },
2682 "json": {
2683 "catch_up": true,
2684 "latest_policies": {
2685 "test_scope_prefix.pdp_decision_Lorem": {
2686 "policy_body": {
2687 "config": {
2688 "policy_hello": "world!",
2689 "policy_updated_from_ver": 0,
2690 "policy_updated_to_ver": 1,
2691 "updated_policy_id": "test_scope_prefix.pdp_decision_Lorem"
2692 },
2693 "metadata": {
2694 "description": "description for test_scope_prefix.pdp_decision_Lorem",
2695 "policy-id": "test_scope_prefix.pdp_decision_Lorem",
2696 "policy-version": "1.1.1"
2697 },
2698 "policyName": "test_scope_prefix.pdp_decision_Lorem.1-1-1.xml",
2699 "policyVersion": "1.1.1",
2700 "type": "unit.test.type.policies",
2701 "version": "1.0.0"
2702 },
2703 "policy_id": "test_scope_prefix.pdp_decision_Lorem"
2704 },
2705 "test_scope_prefix.pdp_decision_ametist": {
2706 "policy_body": {
2707 "config": {
2708 "policy_hello": "world!",
2709 "policy_updated_from_ver": 6,
2710 "policy_updated_to_ver": 7,
2711 "updated_policy_id": "test_scope_prefix.pdp_decision_ametist"
2712 },
2713 "metadata": {
2714 "description": "description for test_scope_prefix.pdp_decision_ametist",
2715 "policy-id": "test_scope_prefix.pdp_decision_ametist",
2716 "policy-version": "7.7.7"
2717 },
2718 "policyName": "test_scope_prefix.pdp_decision_ametist.7-7-7.xml",
2719 "policyVersion": "7.7.7",
2720 "type": "unit.test.type.policies",
2721 "version": "1.0.0"
2722 },
2723 "policy_id": "test_scope_prefix.pdp_decision_ametist"
2724 },
2725 "test_scope_prefix.pdp_decision_consectetur": {
2726 "policy_body": {
2727 "config": {
2728 "policy_hello": "world!",
2729 "policy_updated_from_ver": 5,
2730 "policy_updated_to_ver": 6,
2731 "updated_policy_id": "test_scope_prefix.pdp_decision_consectetur"
2732 },
2733 "metadata": {
2734 "description": "description for test_scope_prefix.pdp_decision_consectetur",
2735 "policy-id": "test_scope_prefix.pdp_decision_consectetur",
2736 "policy-version": "6.6.6"
2737 },
2738 "policyName": "test_scope_prefix.pdp_decision_consectetur.6-6-6.xml",
2739 "policyVersion": "6.6.6",
2740 "type": "unit.test.type.policies",
2741 "version": "1.0.0"
2742 },
2743 "policy_id": "test_scope_prefix.pdp_decision_consectetur"
2744 },
2745 "test_scope_prefix.pdp_decision_dolor": {
2746 "policy_body": {
2747 "config": {
2748 "policy_hello": "world!",
2749 "policy_updated_from_ver": 2,
2750 "policy_updated_to_ver": 3,
2751 "updated_policy_id": "test_scope_prefix.pdp_decision_dolor"
2752 },
2753 "metadata": {
2754 "description": "description for test_scope_prefix.pdp_decision_dolor",
2755 "policy-id": "test_scope_prefix.pdp_decision_dolor",
2756 "policy-version": "3.3.3"
2757 },
2758 "policyName": "test_scope_prefix.pdp_decision_dolor.3-3-3.xml",
2759 "policyVersion": "3.3.3",
2760 "type": "unit.test.type.policies",
2761 "version": "1.0.0"
2762 },
2763 "policy_id": "test_scope_prefix.pdp_decision_dolor"
2764 },
2765 "test_scope_prefix.pdp_decision_ipsum": {
2766 "policy_body": {
2767 "config": {
2768 "policy_hello": "world!",
2769 "policy_updated_from_ver": 1,
2770 "policy_updated_to_ver": 2,
2771 "updated_policy_id": "test_scope_prefix.pdp_decision_ipsum"
2772 },
2773 "metadata": {
2774 "description": "description for test_scope_prefix.pdp_decision_ipsum",
2775 "policy-id": "test_scope_prefix.pdp_decision_ipsum",
2776 "policy-version": "2.2.2"
2777 },
2778 "policyName": "test_scope_prefix.pdp_decision_ipsum.2-2-2.xml",
2779 "policyVersion": "2.2.2",
2780 "type": "unit.test.type.policies",
2781 "version": "1.0.0"
2782 },
2783 "policy_id": "test_scope_prefix.pdp_decision_ipsum"
2784 },
2785 "test_scope_prefix.pdp_decision_sit": {
2786 "policy_body": {
2787 "config": {
2788 "policy_hello": "world!",
2789 "policy_updated_from_ver": 3,
2790 "policy_updated_to_ver": 4,
2791 "updated_policy_id": "test_scope_prefix.pdp_decision_sit"
2792 },
2793 "metadata": {
2794 "description": "description for test_scope_prefix.pdp_decision_sit",
2795 "policy-id": "test_scope_prefix.pdp_decision_sit",
2796 "policy-version": "4.4.4"
2797 },
2798 "policyName": "test_scope_prefix.pdp_decision_sit.4-4-4.xml",
2799 "policyVersion": "4.4.4",
2800 "type": "unit.test.type.policies",
2801 "version": "1.0.0"
2802 },
2803 "policy_id": "test_scope_prefix.pdp_decision_sit"
2804 }
2805 },
2806 "policy_filter_matches": {},
2807 "removed_policies": {}
2808 },
2809 "method": "put",
2810 "params": {
2811 "cfy_tenant_name": "default_tenant"
2812 },
2813 "uri": "http://unit-test-deployment_handler:8188000/policy"
2814 },
2815 "res": {
2816 "server_instance_uuid": "e17fc584-7b06-4777-81c5-5da4337d6d16"
2817 },
2818 "status_code": 200
2819 },
2820 {
2821 "request": {
2822 "headers": {
2823 "Authorization": "Basic YWxleC1ETUFBUF9NUl9VU0VSOmFsZXgtRE1BQVBfTVJfUFdE",
2824 "Content-Type": "application/json",
2825 "X-ONAP-RequestID": "*",
2826 "X-ECOMP-RequestID": "*"
2827 },
2828 "json": null,
2829 "method": "get",
2830 "params": {
2831 "timeout": 15000
2832 },
2833 "uri": "https://unit-test-dmaap-mr:280800000/events/unit-test-topicname/unit-test-consumegroup/unit-test-consumerid"
2834 },
2835 "res": [],
2836 "status_code": 200
2837 }
2838 ]
2839}