1 <?xml version="1.0" encoding="UTF-8"?>
2 <jmeterTestPlan version="1.2" properties="5.0" jmeter="5.4.1">
4 <TestPlan guiclass="TestPlanGui" testclass="TestPlan" testname="APEX PDP STABILITY TEST PLAN" enabled="true">
5 <stringProp name="TestPlan.comments"></stringProp>
6 <boolProp name="TestPlan.functional_mode">false</boolProp>
7 <boolProp name="TestPlan.tearDown_on_shutdown">true</boolProp>
8 <boolProp name="TestPlan.serialize_threadgroups">true</boolProp>
9 <elementProp name="TestPlan.user_defined_variables" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
10 <collectionProp name="Arguments.arguments"/>
12 <stringProp name="TestPlan.user_define_classpath"></stringProp>
15 <HeaderManager guiclass="HeaderPanel" testclass="HeaderManager" testname="HTTP Header Manager" enabled="true">
16 <collectionProp name="HeaderManager.headers">
17 <elementProp name="" elementType="Header">
18 <stringProp name="Header.name">Content-Type</stringProp>
19 <stringProp name="Header.value">application/json</stringProp>
21 <elementProp name="" elementType="Header">
22 <stringProp name="Header.name">Accept</stringProp>
23 <stringProp name="Header.value">application/json</stringProp>
28 <ConfigTestElement guiclass="HttpDefaultsGui" testclass="ConfigTestElement" testname="HTTP Request Defaults" enabled="false">
29 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
30 <collectionProp name="Arguments.arguments"/>
32 <stringProp name="HTTPSampler.domain"></stringProp>
33 <stringProp name="HTTPSampler.port">23324</stringProp>
34 <stringProp name="HTTPSampler.protocol">http</stringProp>
35 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
36 <stringProp name="HTTPSampler.path"></stringProp>
37 <stringProp name="HTTPSampler.concurrentPool">6</stringProp>
38 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
39 <stringProp name="HTTPSampler.response_timeout"></stringProp>
42 <Arguments guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
43 <collectionProp name="Arguments.arguments">
44 <elementProp name="threads" elementType="Argument">
45 <stringProp name="Argument.name">threads</stringProp>
46 <stringProp name="Argument.value">${__P(threads,20)}</stringProp>
47 <stringProp name="Argument.metadata">=</stringProp>
49 <elementProp name="threadsTimeOutInMs" elementType="Argument">
50 <stringProp name="Argument.name">threadsTimeOutInMs</stringProp>
51 <stringProp name="Argument.value">${__P(threadsTimeOutInMs,5000)}</stringProp>
52 <stringProp name="Argument.metadata">=</stringProp>
54 <elementProp name="wait" elementType="Argument">
55 <stringProp name="Argument.name">wait</stringProp>
56 <stringProp name="Argument.value">${__P(wait,10000)}</stringProp>
57 <stringProp name="Argument.desc">Wait time between requests to apex-pdp</stringProp>
58 <stringProp name="Argument.metadata">=</stringProp>
60 <elementProp name="PAP_PORT" elementType="Argument">
61 <stringProp name="Argument.name">PAP_PORT</stringProp>
62 <stringProp name="Argument.value">${__P(PAP_PORT,30211)}</stringProp>
63 <stringProp name="Argument.metadata">=</stringProp>
65 <elementProp name="API_PORT" elementType="Argument">
66 <stringProp name="Argument.name">API_PORT</stringProp>
67 <stringProp name="Argument.value">${__P(API_PORT,30785)}</stringProp>
68 <stringProp name="Argument.metadata">=</stringProp>
70 <elementProp name="APEX_PORT" elementType="Argument">
71 <stringProp name="Argument.name">APEX_PORT</stringProp>
72 <stringProp name="Argument.value">${__P(APEX_PORT,30687)}</stringProp>
73 <stringProp name="Argument.metadata">=</stringProp>
75 <elementProp name="DMAAP_PORT" elementType="Argument">
76 <stringProp name="Argument.name">DMAAP_PORT</stringProp>
77 <stringProp name="Argument.value">${__P(DMAAP_PORT,31345)}</stringProp>
78 <stringProp name="Argument.metadata">=</stringProp>
80 <elementProp name="HOSTNAME" elementType="Argument">
81 <stringProp name="Argument.name">HOSTNAME</stringProp>
82 <stringProp name="Argument.value">${__P(HOSTNAME,10.2.0.120)}</stringProp>
83 <stringProp name="Argument.metadata">=</stringProp>
85 <elementProp name="LOG_PATH" elementType="Argument">
86 <stringProp name="Argument.name">LOG_PATH</stringProp>
87 <stringProp name="Argument.value">${__P(LOG_PATH,/home/arkadiusza/apex_stability)}</stringProp>
88 <stringProp name="Argument.metadata">=</stringProp>
93 <AuthManager guiclass="AuthPanel" testclass="AuthManager" testname="HTTP Authorization Manager" enabled="true">
94 <collectionProp name="AuthManager.auth_list">
95 <elementProp name="" elementType="Authorization">
96 <stringProp name="Authorization.url">https://${HOSTNAME}:${API_PORT}</stringProp>
97 <stringProp name="Authorization.username">healthcheck</stringProp>
98 <stringProp name="Authorization.password">zb!XztG34</stringProp>
99 <stringProp name="Authorization.domain"></stringProp>
100 <stringProp name="Authorization.realm"></stringProp>
102 <elementProp name="" elementType="Authorization">
103 <stringProp name="Authorization.url">https://${HOSTNAME}:${PAP_PORT}</stringProp>
104 <stringProp name="Authorization.username">healthcheck</stringProp>
105 <stringProp name="Authorization.password">zb!XztG34</stringProp>
106 <stringProp name="Authorization.domain"></stringProp>
107 <stringProp name="Authorization.realm"></stringProp>
109 <elementProp name="" elementType="Authorization">
110 <stringProp name="Authorization.url">https://${HOSTNAME}:${APEX_PORT}</stringProp>
111 <stringProp name="Authorization.username">healthcheck</stringProp>
112 <stringProp name="Authorization.password">zb!XztG34</stringProp>
113 <stringProp name="Authorization.domain"></stringProp>
114 <stringProp name="Authorization.realm"></stringProp>
117 <boolProp name="AuthManager.controlledByThreadGroup">false</boolProp>
120 <SetupThreadGroup guiclass="SetupThreadGroupGui" testclass="SetupThreadGroup" testname="setUp Thread Group" enabled="true">
121 <stringProp name="ThreadGroup.on_sample_error">continue</stringProp>
122 <elementProp name="ThreadGroup.main_controller" elementType="LoopController" guiclass="LoopControlPanel" testclass="LoopController" testname="Loop Controller" enabled="true">
123 <boolProp name="LoopController.continue_forever">false</boolProp>
124 <stringProp name="LoopController.loops">1</stringProp>
126 <stringProp name="ThreadGroup.num_threads">1</stringProp>
127 <stringProp name="ThreadGroup.ramp_time">1</stringProp>
128 <boolProp name="ThreadGroup.scheduler">false</boolProp>
129 <stringProp name="ThreadGroup.duration"></stringProp>
130 <stringProp name="ThreadGroup.delay"></stringProp>
131 <boolProp name="ThreadGroup.same_user_on_next_iteration">true</boolProp>
134 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create Policy" enabled="true">
135 <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
136 <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
137 <collectionProp name="Arguments.arguments">
138 <elementProp name="" elementType="HTTPArgument">
139 <boolProp name="HTTPArgument.always_encode">false</boolProp>
140 <stringProp name="Argument.value">{
141 "tosca_definitions_version": "tosca_simple_yaml_1_1_0",
142 "topology_template": {
143 "policies": [
145 "operational.apex.stabilityTestDefaultDomain": {
146 "type": "onap.policies.native.Apex",
147 "type_version": "1.0.0",
148 "properties": {
149 "engineServiceParameters": {
150 "name": "MyApexEngine",
151 "version": "0.0.1",
152 "id": 45,
153 "instanceCount": 4,
154 "deploymentPort": 12561,
155 "engineParameters": {
156 "executorParameters": {
157 "JAVASCRIPT": {
158 "parameterClassName": "org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters"
161 "contextParameters": {
162 "parameterClassName": "org.onap.policy.apex.context.parameters.ContextParameters",
163 "schemaParameters": {
164 "Avro": {
165 "parameterClassName": "org.onap.policy.apex.plugins.context.schema.avro.AvroSchemaHelperParameters"
170 "policy_type_impl": {
171 "apexPolicyModel": {
172 "key": {
173 "name": "APEXgRPCPolicy",
174 "version": "0.0.1"
176 "keyInformation": {
177 "key": {
178 "name": "APEXgRPCPolicy_KeyInfo",
179 "version": "0.0.1"
181 "keyInfoMap": {
182 "entry": [
184 "key": {
185 "name": "APEXgRPCPolicy",
186 "version": "0.0.1"
188 "value": {
189 "key": {
190 "name": "APEXgRPCPolicy",
191 "version": "0.0.1"
193 "UUID": "b8424cdb-29fb-3566-b77a-f4f847d81cc9",
194 "description": "Generated description for concept referred to by key \"APEXgRPCPolicy:0.0.1\""
198 "key": {
199 "name": "APEXgRPCPolicy_Albums",
200 "version": "0.0.1"
202 "value": {
203 "key": {
204 "name": "APEXgRPCPolicy_Albums",
205 "version": "0.0.1"
207 "UUID": "9922906c-ccaa-34f7-95e2-bcc36e77821b",
208 "description": "Generated description for concept referred to by key \"APEXgRPCPolicy_Albums:0.0.1\""
212 "key": {
213 "name": "APEXgRPCPolicy_Events",
214 "version": "0.0.1"
216 "value": {
217 "key": {
218 "name": "APEXgRPCPolicy_Events",
219 "version": "0.0.1"
221 "UUID": "5bf28afd-787c-3138-a3e1-b33ad94a038a",
222 "description": "Generated description for concept referred to by key \"APEXgRPCPolicy_Events:0.0.1\""
226 "key": {
227 "name": "APEXgRPCPolicy_KeyInfo",
228 "version": "0.0.1"
230 "value": {
231 "key": {
232 "name": "APEXgRPCPolicy_KeyInfo",
233 "version": "0.0.1"
235 "UUID": "68abaa6f-8d03-3a53-9590-007115817d5c",
236 "description": "Generated description for concept referred to by key \"APEXgRPCPolicy_KeyInfo:0.0.1\""
240 "key": {
241 "name": "APEXgRPCPolicy_Policies",
242 "version": "0.0.1"
244 "value": {
245 "key": {
246 "name": "APEXgRPCPolicy_Policies",
247 "version": "0.0.1"
249 "UUID": "819d06c3-33c2-3031-aa78-96281aa4270a",
250 "description": "Generated description for concept referred to by key \"APEXgRPCPolicy_Policies:0.0.1\""
254 "key": {
255 "name": "APEXgRPCPolicy_Schemas",
256 "version": "0.0.1"
258 "value": {
259 "key": {
260 "name": "APEXgRPCPolicy_Schemas",
261 "version": "0.0.1"
263 "UUID": "8e67d466-f990-3a39-9fd7-4490cac342dc",
264 "description": "Generated description for concept referred to by key \"APEXgRPCPolicy_Schemas:0.0.1\""
268 "key": {
269 "name": "APEXgRPCPolicy_Tasks",
270 "version": "0.0.1"
272 "value": {
273 "key": {
274 "name": "APEXgRPCPolicy_Tasks",
275 "version": "0.0.1"
277 "UUID": "4668db3d-6fe2-3885-8e47-f30cd0102f0a",
278 "description": "Generated description for concept referred to by key \"APEXgRPCPolicy_Tasks:0.0.1\""
282 "key": {
283 "name": "CDSActionIdentifiersType",
284 "version": "0.0.1"
286 "value": {
287 "key": {
288 "name": "CDSActionIdentifiersType",
289 "version": "0.0.1"
291 "UUID": "6e5fa19b-14df-37e3-a4ae-8c537e861a82",
292 "description": "Generated description for concept referred to by key \"CDSActionIdentifiersType:0.0.1\""
296 "key": {
297 "name": "CDSCreateSubscriptionPayloadType",
298 "version": "0.0.1"
300 "value": {
301 "key": {
302 "name": "CDSCreateSubscriptionPayloadType",
303 "version": "0.0.1"
305 "UUID": "8350ac5e-c157-38b9-9614-a0f93a830e60",
306 "description": "Generated description for concept referred to by key \"CDSCreateSubscriptionPayloadType:0.0.1\""
310 "key": {
311 "name": "CDSDeleteSubscriptionPayloadType",
312 "version": "0.0.1"
314 "value": {
315 "key": {
316 "name": "CDSDeleteSubscriptionPayloadType",
317 "version": "0.0.1"
319 "UUID": "12658406-9147-3c9d-a38c-5ad5e30b092b",
320 "description": "Generated description for concept referred to by key \"CDSDeleteSubscriptionPayloadType:0.0.1\""
324 "key": {
325 "name": "CDSRequestCommonHeaderType",
326 "version": "0.0.1"
328 "value": {
329 "key": {
330 "name": "CDSRequestCommonHeaderType",
331 "version": "0.0.1"
333 "UUID": "35590ac0-062c-39f1-8786-b4ff716e30b1",
334 "description": "Generated description for concept referred to by key \"CDSRequestCommonHeaderType:0.0.1\""
338 "key": {
339 "name": "CDSResponseCommonHeaderType",
340 "version": "0.0.1"
342 "value": {
343 "key": {
344 "name": "CDSResponseCommonHeaderType",
345 "version": "0.0.1"
347 "UUID": "dd7e1805-885a-350b-aaf9-ed541321ae3c",
348 "description": "Generated description for concept referred to by key \"CDSResponseCommonHeaderType:0.0.1\""
352 "key": {
353 "name": "CDSResponseEvent",
354 "version": "0.0.1"
356 "value": {
357 "key": {
358 "name": "CDSResponseEvent",
359 "version": "0.0.1"
361 "UUID": "15161037-9ac8-3223-820f-4e743562a345",
362 "description": "Generated description for concept referred to by key \"CDSResponseEvent:0.0.1\""
366 "key": {
367 "name": "CDSResponsePayloadType",
368 "version": "0.0.1"
370 "value": {
371 "key": {
372 "name": "CDSResponsePayloadType",
373 "version": "0.0.1"
375 "UUID": "97dc5f58-25bb-3c20-8d53-fdb70d7ca256",
376 "description": "Generated description for concept referred to by key \"CDSResponsePayloadType:0.0.1\""
380 "key": {
381 "name": "CDSResponsePolicy",
382 "version": "0.0.1"
384 "value": {
385 "key": {
386 "name": "CDSResponsePolicy",
387 "version": "0.0.1"
389 "UUID": "c28b05a8-7436-3ac0-82ca-6d5fc18c9584",
390 "description": "Generated description for concept referred to by key \"CDSResponsePolicy:0.0.1\""
394 "key": {
395 "name": "CDSResponseStatusEvent",
396 "version": "0.0.1"
398 "value": {
399 "key": {
400 "name": "CDSResponseStatusEvent",
401 "version": "0.0.1"
403 "UUID": "7986e21b-32f7-302e-9554-31f21b673493",
404 "description": "Generated description for concept referred to by key \"CDSResponseStatusEvent:0.0.1\""
408 "key": {
409 "name": "CDSResponseStatusType",
410 "version": "0.0.1"
412 "value": {
413 "key": {
414 "name": "CDSResponseStatusType",
415 "version": "0.0.1"
417 "UUID": "92b8a2cf-344e-3ce1-8cc0-2b7d3cb695fa",
418 "description": "Generated description for concept referred to by key \"CDSResponseStatusType:0.0.1\""
422 "key": {
423 "name": "CDSResponseTask",
424 "version": "0.0.1"
426 "value": {
427 "key": {
428 "name": "CDSResponseTask",
429 "version": "0.0.1"
431 "UUID": "d22c78a5-272c-391d-8083-28588280caf9",
432 "description": "Generated description for concept referred to by key \"CDSResponseTask:0.0.1\""
436 "key": {
437 "name": "CreateSubscriptionPayloadEvent",
438 "version": "0.0.1"
440 "value": {
441 "key": {
442 "name": "CreateSubscriptionPayloadEvent",
443 "version": "0.0.1"
445 "UUID": "92162397-1a8e-3a3f-a469-d2af7700af4a",
446 "description": "Generated description for concept referred to by key \"CreateSubscriptionPayloadEvent:0.0.1\""
450 "key": {
451 "name": "CreateSubscriptionPayloadTask",
452 "version": "0.0.1"
454 "value": {
455 "key": {
456 "name": "CreateSubscriptionPayloadTask",
457 "version": "0.0.1"
459 "UUID": "bc0c69f0-52ed-38ea-b468-ae4a6fd1730d",
460 "description": "Generated description for concept referred to by key \"CreateSubscriptionPayloadTask:0.0.1\""
464 "key": {
465 "name": "CreateSubscriptionRequestEvent",
466 "version": "0.0.1"
468 "value": {
469 "key": {
470 "name": "CreateSubscriptionRequestEvent",
471 "version": "0.0.1"
473 "UUID": "7cfcf843-337e-3f41-b755-5043cb0a08fc",
474 "description": "Generated description for concept referred to by key \"CreateSubscriptionRequestEvent:0.0.1\""
478 "key": {
479 "name": "CreateSubscriptionRequestTask",
480 "version": "0.0.1"
482 "value": {
483 "key": {
484 "name": "CreateSubscriptionRequestTask",
485 "version": "0.0.1"
487 "UUID": "89cb75e9-f06c-30d3-b4ff-698d45f63869",
488 "description": "Generated description for concept referred to by key \"CreateSubscriptionRequestTask:0.0.1\""
492 "key": {
493 "name": "DeleteSubscriptionPayloadEvent",
494 "version": "0.0.1"
496 "value": {
497 "key": {
498 "name": "DeleteSubscriptionPayloadEvent",
499 "version": "0.0.1"
501 "UUID": "994fa441-04ab-33bb-832d-1cd12ab5d074",
502 "description": "Generated description for concept referred to by key \"DeleteSubscriptionPayloadEvent:0.0.1\""
506 "key": {
507 "name": "DeleteSubscriptionPayloadTask",
508 "version": "0.0.1"
510 "value": {
511 "key": {
512 "name": "DeleteSubscriptionPayloadTask",
513 "version": "0.0.1"
515 "UUID": "0f519117-5fea-3e4b-941f-8f778100465f",
516 "description": "Generated description for concept referred to by key \"DeleteSubscriptionPayloadTask:0.0.1\""
520 "key": {
521 "name": "DeleteSubscriptionRequestEvent",
522 "version": "0.0.1"
524 "value": {
525 "key": {
526 "name": "DeleteSubscriptionRequestEvent",
527 "version": "0.0.1"
529 "UUID": "15d618d8-1689-3a05-89a5-05efa9388f65",
530 "description": "Generated description for concept referred to by key \"DeleteSubscriptionRequestEvent:0.0.1\""
534 "key": {
535 "name": "DeleteSubscriptionRequestTask",
536 "version": "0.0.1"
538 "value": {
539 "key": {
540 "name": "DeleteSubscriptionRequestTask",
541 "version": "0.0.1"
543 "UUID": "acb772fe-d442-39e3-98f9-b1080caf4150",
544 "description": "Generated description for concept referred to by key \"DeleteSubscriptionRequestTask:0.0.1\""
548 "key": {
549 "name": "PMSubscriptionAlbum",
550 "version": "0.0.1"
552 "value": {
553 "key": {
554 "name": "PMSubscriptionAlbum",
555 "version": "0.0.1"
557 "UUID": "c2bd6f0d-6854-317a-9be2-97c08338428c",
558 "description": "Generated description for concept referred to by key \"PMSubscriptionAlbum:0.0.1\""
562 "key": {
563 "name": "PMSubscriptionOutputEvent",
564 "version": "0.0.1"
566 "value": {
567 "key": {
568 "name": "PMSubscriptionOutputEvent",
569 "version": "0.0.1"
571 "UUID": "992b7819-9f69-3aa0-bb0f-6e45ea15ce05",
572 "description": "Generated description for concept referred to by key \"PMSubscriptionOutputEvent:0.0.1\""
576 "key": {
577 "name": "PMSubscriptionType",
578 "version": "0.0.1"
580 "value": {
581 "key": {
582 "name": "PMSubscriptionType",
583 "version": "0.0.1"
585 "UUID": "73c1c397-4fc3-357f-93b6-a8ad707fbaae",
586 "description": "Generated description for concept referred to by key \"PMSubscriptionType:0.0.1\""
590 "key": {
591 "name": "ReceiveEventPolicy",
592 "version": "0.0.1"
594 "value": {
595 "key": {
596 "name": "ReceiveEventPolicy",
597 "version": "0.0.1"
599 "UUID": "568b7345-9de1-36d3-b6a3-9b857e6809a1",
600 "description": "Generated description for concept referred to by key \"ReceiveEventPolicy:0.0.1\""
604 "key": {
605 "name": "ReceivePMSubscriptionTask",
606 "version": "0.0.1"
608 "value": {
609 "key": {
610 "name": "ReceivePMSubscriptionTask",
611 "version": "0.0.1"
613 "UUID": "6c1c6c45-26e0-3591-94bf-679d20e283f4",
614 "description": "Generated description for concept referred to by key \"ReceivePMSubscriptionTask:0.0.1\""
618 "key": {
619 "name": "SimpleIntType",
620 "version": "0.0.1"
622 "value": {
623 "key": {
624 "name": "SimpleIntType",
625 "version": "0.0.1"
627 "UUID": "153791fd-ae0a-36a7-88a5-309a7936415d",
628 "description": "Generated description for concept referred to by key \"SimpleIntType:0.0.1\""
632 "key": {
633 "name": "SimpleStringType",
634 "version": "0.0.1"
636 "value": {
637 "key": {
638 "name": "SimpleStringType",
639 "version": "0.0.1"
641 "UUID": "8a4957cf-9493-3a76-8c22-a208e23259af",
642 "description": "Generated description for concept referred to by key \"SimpleStringType:0.0.1\""
646 "key": {
647 "name": "SubscriptionStatusType",
648 "version": "0.0.1"
650 "value": {
651 "key": {
652 "name": "SubscriptionStatusType",
653 "version": "0.0.1"
655 "UUID": "597643b1-9db1-31ce-85d0-e1c63c43b30b",
656 "description": "Generated description for concept referred to by key \"SubscriptionStatusType:0.0.1\""
660 "key": {
661 "name": "SubscriptionType",
662 "version": "0.0.1"
664 "value": {
665 "key": {
666 "name": "SubscriptionType",
667 "version": "0.0.1"
669 "UUID": "184547bb-7d64-3cb2-a273-d7185102c5ce",
670 "description": "Generated description for concept referred to by key \"SubscriptionType:0.0.1\""
674 "key": {
675 "name": "UUIDType",
676 "version": "0.0.1"
678 "value": {
679 "key": {
680 "name": "UUIDType",
681 "version": "0.0.1"
683 "UUID": "6a8cc68e-dfc8-3403-9c6d-071c886b319c",
684 "description": "Generated description for concept referred to by key \"UUIDType:0.0.1\""
688 "key": {
689 "name": "testPolicyB",
690 "version": "0.0.1"
692 "value": {
693 "key": {
694 "name": "testPolicyB",
695 "version": "0.0.1"
697 "UUID": "ead590a3-ba2e-3a01-b6e9-9329f5c8fee1",
698 "description": "Generated description for concept referred to by key \"testPolicyB:0.0.1\""
704 "policies": {
705 "key": {
706 "name": "APEXgRPCPolicy_Policies",
707 "version": "0.0.1"
709 "policyMap": {
710 "entry": [
712 "key": {
713 "name": "CDSResponsePolicy",
714 "version": "0.0.1"
716 "value": {
717 "policyKey": {
718 "name": "CDSResponsePolicy",
719 "version": "0.0.1"
721 "template": "Freestyle",
722 "state": {
723 "entry": [
725 "key": "CDSResponseState",
726 "value": {
727 "stateKey": {
728 "parentKeyName": "CDSResponsePolicy",
729 "parentKeyVersion": "0.0.1",
730 "parentLocalName": "NULL",
731 "localName": "CDSResponseState"
733 "trigger": {
734 "name": "CDSResponseEvent",
735 "version": "0.0.1"
737 "stateOutputs": {
738 "entry": [
740 "key": "ResponseOutput",
741 "value": {
742 "key": {
743 "parentKeyName": "CDSResponsePolicy",
744 "parentKeyVersion": "0.0.1",
745 "parentLocalName": "CDSResponseState",
746 "localName": "ResponseOutput"
748 "outgoingEvent": {
749 "name": "CDSResponseStatusEvent",
750 "version": "0.0.1"
752 "nextState": {
753 "parentKeyName": "NULL",
754 "parentKeyVersion": "0.0.0",
755 "parentLocalName": "NULL",
756 "localName": "NULL"
762 "contextAlbumReference": [],
763 "taskSelectionLogic": {
764 "key": "NULL",
765 "logicFlavour": "UNDEFINED",
766 "logic": ""
768 "stateFinalizerLogicMap": {
769 "entry": []
771 "defaultTask": {
772 "name": "CDSResponseTask",
773 "version": "0.0.1"
775 "taskReferences": {
776 "entry": [
778 "key": {
779 "name": "CDSResponseTask",
780 "version": "0.0.1"
782 "value": {
783 "key": {
784 "parentKeyName": "CDSResponsePolicy",
785 "parentKeyVersion": "0.0.1",
786 "parentLocalName": "CDSResponseState",
787 "localName": "CDSResponsePolicy"
789 "outputType": "DIRECT",
790 "output": {
791 "parentKeyName": "CDSResponsePolicy",
792 "parentKeyVersion": "0.0.1",
793 "parentLocalName": "CDSResponseState",
794 "localName": "ResponseOutput"
804 "firstState": "CDSResponseState"
808 "key": {
809 "name": "ReceiveEventPolicy",
810 "version": "0.0.1"
812 "value": {
813 "policyKey": {
814 "name": "ReceiveEventPolicy",
815 "version": "0.0.1"
817 "template": "Freestyle",
818 "state": {
819 "entry": [
821 "key": "CreateOrDeleteState",
822 "value": {
823 "stateKey": {
824 "parentKeyName": "ReceiveEventPolicy",
825 "parentKeyVersion": "0.0.1",
826 "parentLocalName": "NULL",
827 "localName": "CreateOrDeleteState"
829 "trigger": {
830 "name": "PMSubscriptionOutputEvent",
831 "version": "0.0.1"
833 "stateOutputs": {
834 "entry": [
836 "key": "CreateSubscriptionPayload",
837 "value": {
838 "key": {
839 "parentKeyName": "ReceiveEventPolicy",
840 "parentKeyVersion": "0.0.1",
841 "parentLocalName": "CreateOrDeleteState",
842 "localName": "CreateSubscriptionPayload"
844 "outgoingEvent": {
845 "name": "CreateSubscriptionPayloadEvent",
846 "version": "0.0.1"
848 "nextState": {
849 "parentKeyName": "ReceiveEventPolicy",
850 "parentKeyVersion": "0.0.1",
851 "parentLocalName": "NULL",
852 "localName": "CreateSubscription"
857 "key": "DeleteSubscriptionPayload",
858 "value": {
859 "key": {
860 "parentKeyName": "ReceiveEventPolicy",
861 "parentKeyVersion": "0.0.1",
862 "parentLocalName": "CreateOrDeleteState",
863 "localName": "DeleteSubscriptionPayload"
865 "outgoingEvent": {
866 "name": "DeleteSubscriptionPayloadEvent",
867 "version": "0.0.1"
869 "nextState": {
870 "parentKeyName": "ReceiveEventPolicy",
871 "parentKeyVersion": "0.0.1",
872 "parentLocalName": "NULL",
873 "localName": "DeleteSubscription"
879 "contextAlbumReference": [
881 "name": "PMSubscriptionAlbum",
882 "version": "0.0.1"
885 "taskSelectionLogic": {
886 "key": "TaskSelectionLogic",
887 "logicFlavour": "JAVASCRIPT",
888 "logic": "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2020 Nordix Foundation.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.info(executor.subject.id);\n\nvar pmSubscriptionInfo = executor.getContextAlbum(\"PMSubscriptionAlbum\").get(executor.inFields.get(\"albumID\").toString())\nvar changeType = pmSubscriptionInfo.get(\"changeType\").toString()\n\nif (\"CREATE\".equals(changeType)) {\n executor.subject.getTaskKey(\"CreateSubscriptionPayloadTask\").copyTo(executor.selectedTask);\n}\nelse if (\"DELETE\".equals(changeType)) {\n executor.subject.getTaskKey(\"DeleteSubscriptionPayloadTask\").copyTo(executor.selectedTask);\n}\n\ntrue;"
890 "stateFinalizerLogicMap": {
891 "entry": []
893 "defaultTask": {
894 "name": "CreateSubscriptionPayloadTask",
895 "version": "0.0.1"
897 "taskReferences": {
898 "entry": [
900 "key": {
901 "name": "CreateSubscriptionPayloadTask",
902 "version": "0.0.1"
904 "value": {
905 "key": {
906 "parentKeyName": "ReceiveEventPolicy",
907 "parentKeyVersion": "0.0.1",
908 "parentLocalName": "CreateOrDeleteState",
909 "localName": "ReceiveEventPolicy"
911 "outputType": "DIRECT",
912 "output": {
913 "parentKeyName": "ReceiveEventPolicy",
914 "parentKeyVersion": "0.0.1",
915 "parentLocalName": "CreateOrDeleteState",
916 "localName": "CreateSubscriptionPayload"
921 "key": {
922 "name": "DeleteSubscriptionPayloadTask",
923 "version": "0.0.1"
925 "value": {
926 "key": {
927 "parentKeyName": "ReceiveEventPolicy",
928 "parentKeyVersion": "0.0.1",
929 "parentLocalName": "CreateOrDeleteState",
930 "localName": "ReceiveEventPolicy"
932 "outputType": "DIRECT",
933 "output": {
934 "parentKeyName": "ReceiveEventPolicy",
935 "parentKeyVersion": "0.0.1",
936 "parentLocalName": "CreateOrDeleteState",
937 "localName": "DeleteSubscriptionPayload"
946 "key": "CreateSubscription",
947 "value": {
948 "stateKey": {
949 "parentKeyName": "ReceiveEventPolicy",
950 "parentKeyVersion": "0.0.1",
951 "parentLocalName": "NULL",
952 "localName": "CreateSubscription"
954 "trigger": {
955 "name": "CreateSubscriptionPayloadEvent",
956 "version": "0.0.1"
958 "stateOutputs": {
959 "entry": [
961 "key": "IssueCreateSubscriptionRequestOutput",
962 "value": {
963 "key": {
964 "parentKeyName": "ReceiveEventPolicy",
965 "parentKeyVersion": "0.0.1",
966 "parentLocalName": "CreateSubscription",
967 "localName": "IssueCreateSubscriptionRequestOutput"
969 "outgoingEvent": {
970 "name": "CreateSubscriptionRequestEvent",
971 "version": "0.0.1"
973 "nextState": {
974 "parentKeyName": "NULL",
975 "parentKeyVersion": "0.0.0",
976 "parentLocalName": "NULL",
977 "localName": "NULL"
983 "contextAlbumReference": [
985 "name": "PMSubscriptionAlbum",
986 "version": "0.0.1"
989 "taskSelectionLogic": {
990 "key": "NULL",
991 "logicFlavour": "UNDEFINED",
992 "logic": ""
994 "stateFinalizerLogicMap": {
995 "entry": []
997 "defaultTask": {
998 "name": "CreateSubscriptionRequestTask",
999 "version": "0.0.1"
1001 "taskReferences": {
1002 "entry": [
1004 "key": {
1005 "name": "CreateSubscriptionRequestTask",
1006 "version": "0.0.1"
1008 "value": {
1009 "key": {
1010 "parentKeyName": "ReceiveEventPolicy",
1011 "parentKeyVersion": "0.0.1",
1012 "parentLocalName": "CreateSubscription",
1013 "localName": "ReceiveEventPolicy"
1015 "outputType": "DIRECT",
1016 "output": {
1017 "parentKeyName": "ReceiveEventPolicy",
1018 "parentKeyVersion": "0.0.1",
1019 "parentLocalName": "CreateSubscription",
1020 "localName": "IssueCreateSubscriptionRequestOutput"
1029 "key": "DeleteSubscription",
1030 "value": {
1031 "stateKey": {
1032 "parentKeyName": "ReceiveEventPolicy",
1033 "parentKeyVersion": "0.0.1",
1034 "parentLocalName": "NULL",
1035 "localName": "DeleteSubscription"
1037 "trigger": {
1038 "name": "DeleteSubscriptionPayloadEvent",
1039 "version": "0.0.1"
1041 "stateOutputs": {
1042 "entry": [
1044 "key": "IssueDeleteSubscriptionRequestOutput",
1045 "value": {
1046 "key": {
1047 "parentKeyName": "ReceiveEventPolicy",
1048 "parentKeyVersion": "0.0.1",
1049 "parentLocalName": "DeleteSubscription",
1050 "localName": "IssueDeleteSubscriptionRequestOutput"
1052 "outgoingEvent": {
1053 "name": "DeleteSubscriptionRequestEvent",
1054 "version": "0.0.1"
1056 "nextState": {
1057 "parentKeyName": "NULL",
1058 "parentKeyVersion": "0.0.0",
1059 "parentLocalName": "NULL",
1060 "localName": "NULL"
1066 "contextAlbumReference": [
1068 "name": "PMSubscriptionAlbum",
1069 "version": "0.0.1"
1072 "taskSelectionLogic": {
1073 "key": "NULL",
1074 "logicFlavour": "UNDEFINED",
1075 "logic": ""
1077 "stateFinalizerLogicMap": {
1078 "entry": []
1080 "defaultTask": {
1081 "name": "DeleteSubscriptionRequestTask",
1082 "version": "0.0.1"
1084 "taskReferences": {
1085 "entry": [
1087 "key": {
1088 "name": "DeleteSubscriptionRequestTask",
1089 "version": "0.0.1"
1091 "value": {
1092 "key": {
1093 "parentKeyName": "ReceiveEventPolicy",
1094 "parentKeyVersion": "0.0.1",
1095 "parentLocalName": "DeleteSubscription",
1096 "localName": "ReceiveEventPolicy"
1098 "outputType": "DIRECT",
1099 "output": {
1100 "parentKeyName": "ReceiveEventPolicy",
1101 "parentKeyVersion": "0.0.1",
1102 "parentLocalName": "DeleteSubscription",
1103 "localName": "IssueDeleteSubscriptionRequestOutput"
1112 "key": "ReceiveSubscriptionState",
1113 "value": {
1114 "stateKey": {
1115 "parentKeyName": "ReceiveEventPolicy",
1116 "parentKeyVersion": "0.0.1",
1117 "parentLocalName": "NULL",
1118 "localName": "ReceiveSubscriptionState"
1120 "trigger": {
1121 "name": "testPolicyB",
1122 "version": "0.0.1"
1124 "stateOutputs": {
1125 "entry": [
1127 "key": "ReceivePMSubscriptionOutput",
1128 "value": {
1129 "key": {
1130 "parentKeyName": "ReceiveEventPolicy",
1131 "parentKeyVersion": "0.0.1",
1132 "parentLocalName": "ReceiveSubscriptionState",
1133 "localName": "ReceivePMSubscriptionOutput"
1135 "outgoingEvent": {
1136 "name": "PMSubscriptionOutputEvent",
1137 "version": "0.0.1"
1139 "nextState": {
1140 "parentKeyName": "ReceiveEventPolicy",
1141 "parentKeyVersion": "0.0.1",
1142 "parentLocalName": "NULL",
1143 "localName": "CreateOrDeleteState"
1149 "contextAlbumReference": [
1151 "name": "PMSubscriptionAlbum",
1152 "version": "0.0.1"
1155 "taskSelectionLogic": {
1156 "key": "NULL",
1157 "logicFlavour": "UNDEFINED",
1158 "logic": ""
1160 "stateFinalizerLogicMap": {
1161 "entry": []
1163 "defaultTask": {
1164 "name": "ReceivePMSubscriptionTask",
1165 "version": "0.0.1"
1167 "taskReferences": {
1168 "entry": [
1170 "key": {
1171 "name": "ReceivePMSubscriptionTask",
1172 "version": "0.0.1"
1174 "value": {
1175 "key": {
1176 "parentKeyName": "ReceiveEventPolicy",
1177 "parentKeyVersion": "0.0.1",
1178 "parentLocalName": "ReceiveSubscriptionState",
1179 "localName": "ReceiveEventPolicy"
1181 "outputType": "DIRECT",
1182 "output": {
1183 "parentKeyName": "ReceiveEventPolicy",
1184 "parentKeyVersion": "0.0.1",
1185 "parentLocalName": "ReceiveSubscriptionState",
1186 "localName": "ReceivePMSubscriptionOutput"
1196 "firstState": "ReceiveSubscriptionState"
1202 "tasks": {
1203 "key": {
1204 "name": "APEXgRPCPolicy_Tasks",
1205 "version": "0.0.1"
1207 "taskMap": {
1208 "entry": [
1210 "key": {
1211 "name": "CDSResponseTask",
1212 "version": "0.0.1"
1214 "value": {
1215 "key": {
1216 "name": "CDSResponseTask",
1217 "version": "0.0.1"
1219 "inputFields": {
1220 "entry": [
1222 "key": "actionIdentifiers",
1223 "value": {
1224 "key": "actionIdentifiers",
1225 "fieldSchemaKey": {
1226 "name": "CDSActionIdentifiersType",
1227 "version": "0.0.1"
1229 "optional": false
1233 "key": "commonHeader",
1234 "value": {
1235 "key": "commonHeader",
1236 "fieldSchemaKey": {
1237 "name": "CDSResponseCommonHeaderType",
1238 "version": "0.0.1"
1240 "optional": false
1244 "key": "payload",
1245 "value": {
1246 "key": "payload",
1247 "fieldSchemaKey": {
1248 "name": "CDSResponsePayloadType",
1249 "version": "0.0.1"
1251 "optional": false
1255 "key": "status",
1256 "value": {
1257 "key": "status",
1258 "fieldSchemaKey": {
1259 "name": "CDSResponseStatusType",
1260 "version": "0.0.1"
1262 "optional": false
1267 "outputFields": {
1268 "entry": [
1270 "key": "status",
1271 "value": {
1272 "key": "status",
1273 "fieldSchemaKey": {
1274 "name": "SubscriptionStatusType",
1275 "version": "0.0.1"
1277 "optional": false
1282 "taskParameters": {
1283 "entry": []
1285 "contextAlbumReference": [
1287 "name": "PMSubscriptionAlbum",
1288 "version": "0.0.1"
1291 "taskLogic": {
1292 "key": "TaskLogic",
1293 "logicFlavour": "JAVASCRIPT",
1294 "logic": "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2020 Nordix. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\n\nvar uuidType = java.util.UUID;\n\nvar albumID = uuidType.fromString(\"d0050623-18e5-46c9-9298-9a567990cd7c\");\n\nvar pmSubscriptionInfo = executor.getContextAlbum(\"PMSubscriptionAlbum\").get(albumID.toString());\n\nvar responseStatus = executor.subject.getOutFieldSchemaHelper(\"status\").createNewInstance();\n\nresponseStatus.put(\"subscriptionName\", pmSubscriptionInfo.get(\"subscription\").get(\"subscriptionName\"))\nresponseStatus.put(\"nfName\", pmSubscriptionInfo.get(\"nfName\"))\nresponseStatus.put(\"changeType\", pmSubscriptionInfo.get(\"changeType\"))\n\nvar response = executor.inFields.get(\"payload\")\n\nif (\"failure\".equals(response.get(\"create_DasH_subscription_DasH_response\").get(\"odl_DasH_response\").get(\"status\"))) {\n responseStatus.put(\"message\", \"failed\")\n} else {\n responseStatus.put(\"message\", \"success\")\n}\n\nexecutor.outFields.put(\"status\", responseStatus)\n\ntrue;"
1299 "key": {
1300 "name": "CreateSubscriptionPayloadTask",
1301 "version": "0.0.1"
1303 "value": {
1304 "key": {
1305 "name": "CreateSubscriptionPayloadTask",
1306 "version": "0.0.1"
1308 "inputFields": {
1309 "entry": [
1311 "key": "albumID",
1312 "value": {
1313 "key": "albumID",
1314 "fieldSchemaKey": {
1315 "name": "UUIDType",
1316 "version": "0.0.1"
1318 "optional": false
1323 "outputFields": {
1324 "entry": [
1326 "key": "albumID",
1327 "value": {
1328 "key": "albumID",
1329 "fieldSchemaKey": {
1330 "name": "UUIDType",
1331 "version": "0.0.1"
1333 "optional": false
1337 "key": "payload",
1338 "value": {
1339 "key": "payload",
1340 "fieldSchemaKey": {
1341 "name": "CDSCreateSubscriptionPayloadType",
1342 "version": "0.0.1"
1344 "optional": false
1349 "taskParameters": {
1350 "entry": []
1352 "contextAlbumReference": [
1354 "name": "PMSubscriptionAlbum",
1355 "version": "0.0.1"
1358 "taskLogic": {
1359 "key": "TaskLogic",
1360 "logicFlavour": "JAVASCRIPT",
1361 "logic": "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2020 Nordix. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.info(executor.subject.id);\n\nvar pmSubscriptionInfo = executor.getContextAlbum(\"PMSubscriptionAlbum\").get(executor.inFields.get(\"albumID\").toString())\n\nvar payloadProperties = executor.subject.getOutFieldSchemaHelper(\"payload\").createNewSubInstance(\"create_DasH_subscription_DasH_properties_record\");\n\npayloadProperties.put(\"nfName\", pmSubscriptionInfo.get(\"nfName\"))\npayloadProperties.put(\"subscriptionName\", pmSubscriptionInfo.get(\"subscription\").get(\"subscriptionName\"))\npayloadProperties.put(\"administrativeState\", pmSubscriptionInfo.get(\"subscription\").get(\"administrativeState\"))\npayloadProperties.put(\"fileBasedGP\", pmSubscriptionInfo.get(\"subscription\").get(\"fileBasedGP\").toString())\npayloadProperties.put(\"fileLocation\", pmSubscriptionInfo.get(\"subscription\").get(\"fileLocation\"))\npayloadProperties.put(\"measurementGroups\", pmSubscriptionInfo.get(\"subscription\").get(\"measurementGroups\"))\n\nvar payloadEntry = executor.subject.getOutFieldSchemaHelper(\"payload\").createNewSubInstance(\"CDSRequestPayloadEntry\");\npayloadEntry.put(\"create_DasH_subscription_DasH_properties\", payloadProperties)\n\nvar payload = executor.subject.getOutFieldSchemaHelper(\"payload\").createNewInstance();\npayload.put(\"create_DasH_subscription_DasH_request\", payloadEntry);\n\nexecutor.outFields.put(\"albumID\", executor.inFields.get(\"albumID\"))\nexecutor.outFields.put(\"payload\", payload);\n\nexecutor.logger.info(\"Sending Create Subscription Event to CDS\")\n\ntrue;"
1366 "key": {
1367 "name": "CreateSubscriptionRequestTask",
1368 "version": "0.0.1"
1370 "value": {
1371 "key": {
1372 "name": "CreateSubscriptionRequestTask",
1373 "version": "0.0.1"
1375 "inputFields": {
1376 "entry": [
1378 "key": "albumID",
1379 "value": {
1380 "key": "albumID",
1381 "fieldSchemaKey": {
1382 "name": "UUIDType",
1383 "version": "0.0.1"
1385 "optional": false
1389 "key": "payload",
1390 "value": {
1391 "key": "payload",
1392 "fieldSchemaKey": {
1393 "name": "CDSCreateSubscriptionPayloadType",
1394 "version": "0.0.1"
1396 "optional": false
1401 "outputFields": {
1402 "entry": [
1404 "key": "actionIdentifiers",
1405 "value": {
1406 "key": "actionIdentifiers",
1407 "fieldSchemaKey": {
1408 "name": "CDSActionIdentifiersType",
1409 "version": "0.0.1"
1411 "optional": false
1415 "key": "commonHeader",
1416 "value": {
1417 "key": "commonHeader",
1418 "fieldSchemaKey": {
1419 "name": "CDSRequestCommonHeaderType",
1420 "version": "0.0.1"
1422 "optional": false
1426 "key": "payload",
1427 "value": {
1428 "key": "payload",
1429 "fieldSchemaKey": {
1430 "name": "CDSCreateSubscriptionPayloadType",
1431 "version": "0.0.1"
1433 "optional": false
1438 "taskParameters": {
1439 "entry": []
1441 "contextAlbumReference": [
1443 "name": "PMSubscriptionAlbum",
1444 "version": "0.0.1"
1447 "taskLogic": {
1448 "key": "TaskLogic",
1449 "logicFlavour": "JAVASCRIPT",
1450 "logic": "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2020 Nordix. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.info(executor.subject.id);\n\nvar pmSubscriptionInfo = executor.getContextAlbum(\"PMSubscriptionAlbum\").get(executor.inFields.get(\"albumID\").toString())\nvar payload = executor.inFields.get(\"payload\")\nvar actionName = \"create-subscription\"\n\nvar commonHeader = executor.subject.getOutFieldSchemaHelper(\"commonHeader\").createNewInstance();\ncommonHeader.put(\"originatorId\", \"sdnc\");\ncommonHeader.put(\"requestId\", \"123456-1000\");\ncommonHeader.put(\"subRequestId\", \"sub-123456-1000\");\n\nvar actionIdentifiers = executor.subject.getOutFieldSchemaHelper(\"actionIdentifiers\").createNewInstance();\nactionIdentifiers.put(\"actionName\", actionName);\nactionIdentifiers.put(\"blueprintName\", \"pm_control\");\nactionIdentifiers.put(\"blueprintVersion\", \"1.0.0\");\nactionIdentifiers.put(\"mode\", \"sync\");\n\nexecutor.outFields.put(\"commonHeader\", commonHeader);\nexecutor.outFields.put(\"actionIdentifiers\", actionIdentifiers);\nexecutor.outFields.put(\"payload\", payload);\n\nexecutor.logger.info(\"Sending Activate Subscription Event to CDS\")\n\ntrue;"
1455 "key": {
1456 "name": "DeleteSubscriptionPayloadTask",
1457 "version": "0.0.1"
1459 "value": {
1460 "key": {
1461 "name": "DeleteSubscriptionPayloadTask",
1462 "version": "0.0.1"
1464 "inputFields": {
1465 "entry": [
1467 "key": "albumID",
1468 "value": {
1469 "key": "albumID",
1470 "fieldSchemaKey": {
1471 "name": "UUIDType",
1472 "version": "0.0.1"
1474 "optional": false
1479 "outputFields": {
1480 "entry": [
1482 "key": "albumID",
1483 "value": {
1484 "key": "albumID",
1485 "fieldSchemaKey": {
1486 "name": "UUIDType",
1487 "version": "0.0.1"
1489 "optional": false
1493 "key": "payload",
1494 "value": {
1495 "key": "payload",
1496 "fieldSchemaKey": {
1497 "name": "CDSDeleteSubscriptionPayloadType",
1498 "version": "0.0.1"
1500 "optional": false
1505 "taskParameters": {
1506 "entry": []
1508 "contextAlbumReference": [
1510 "name": "PMSubscriptionAlbum",
1511 "version": "0.0.1"
1514 "taskLogic": {
1515 "key": "TaskLogic",
1516 "logicFlavour": "JAVASCRIPT",
1517 "logic": "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2020 Nordix. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.info(executor.subject.id);\n\nvar pmSubscriptionInfo = executor.getContextAlbum(\"PMSubscriptionAlbum\").get(executor.inFields.get(\"albumID\").toString())\n\nvar payloadProperties = executor.subject.getOutFieldSchemaHelper(\"payload\").createNewSubInstance(\"delete_DasH_subscription_DasH_properties_record\");\n\npayloadProperties.put(\"nfName\", pmSubscriptionInfo.get(\"nfName\"))\npayloadProperties.put(\"subscriptionName\", pmSubscriptionInfo.get(\"subscription\").get(\"subscriptionName\"))\npayloadProperties.put(\"administrativeState\", pmSubscriptionInfo.get(\"subscription\").get(\"administrativeState\"))\npayloadProperties.put(\"fileBasedGP\", pmSubscriptionInfo.get(\"subscription\").get(\"fileBasedGP\").toString())\npayloadProperties.put(\"fileLocation\", pmSubscriptionInfo.get(\"subscription\").get(\"fileLocation\"))\npayloadProperties.put(\"measurementGroups\", pmSubscriptionInfo.get(\"subscription\").get(\"measurementGroups\"))\n\nvar payloadEntry = executor.subject.getOutFieldSchemaHelper(\"payload\").createNewSubInstance(\"CDSRequestPayloadEntry\");\npayloadEntry.put(\"delete_DasH_subscription_DasH_properties\", payloadProperties)\n\nvar payload = executor.subject.getOutFieldSchemaHelper(\"payload\").createNewInstance();\npayload.put(\"delete_DasH_subscription_DasH_request\", payloadEntry);\n\nexecutor.outFields.put(\"albumID\", executor.inFields.get(\"albumID\"))\nexecutor.outFields.put(\"payload\", payload);\n\nexecutor.logger.info(\"Sending delete Subscription Event to CDS\")\n\ntrue;"
1522 "key": {
1523 "name": "DeleteSubscriptionRequestTask",
1524 "version": "0.0.1"
1526 "value": {
1527 "key": {
1528 "name": "DeleteSubscriptionRequestTask",
1529 "version": "0.0.1"
1531 "inputFields": {
1532 "entry": [
1534 "key": "albumID",
1535 "value": {
1536 "key": "albumID",
1537 "fieldSchemaKey": {
1538 "name": "UUIDType",
1539 "version": "0.0.1"
1541 "optional": false
1545 "key": "payload",
1546 "value": {
1547 "key": "payload",
1548 "fieldSchemaKey": {
1549 "name": "CDSDeleteSubscriptionPayloadType",
1550 "version": "0.0.1"
1552 "optional": false
1557 "outputFields": {
1558 "entry": [
1560 "key": "actionIdentifiers",
1561 "value": {
1562 "key": "actionIdentifiers",
1563 "fieldSchemaKey": {
1564 "name": "CDSActionIdentifiersType",
1565 "version": "0.0.1"
1567 "optional": false
1571 "key": "commonHeader",
1572 "value": {
1573 "key": "commonHeader",
1574 "fieldSchemaKey": {
1575 "name": "CDSRequestCommonHeaderType",
1576 "version": "0.0.1"
1578 "optional": false
1582 "key": "payload",
1583 "value": {
1584 "key": "payload",
1585 "fieldSchemaKey": {
1586 "name": "CDSDeleteSubscriptionPayloadType",
1587 "version": "0.0.1"
1589 "optional": false
1594 "taskParameters": {
1595 "entry": []
1597 "contextAlbumReference": [
1599 "name": "PMSubscriptionAlbum",
1600 "version": "0.0.1"
1603 "taskLogic": {
1604 "key": "TaskLogic",
1605 "logicFlavour": "JAVASCRIPT",
1606 "logic": "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2020 Nordix. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.info(executor.subject.id);\n\nvar pmSubscriptionInfo = executor.getContextAlbum(\"PMSubscriptionAlbum\").get(executor.inFields.get(\"albumID\").toString())\nvar payload = executor.inFields.get(\"payload\")\nvar actionName = \"delete-subscription\"\n\nvar commonHeader = executor.subject.getOutFieldSchemaHelper(\"commonHeader\").createNewInstance();\ncommonHeader.put(\"originatorId\", \"sdnc\");\ncommonHeader.put(\"requestId\", \"123456-1000\");\ncommonHeader.put(\"subRequestId\", \"sub-123456-1000\");\n\nvar actionIdentifiers = executor.subject.getOutFieldSchemaHelper(\"actionIdentifiers\").createNewInstance();\nactionIdentifiers.put(\"actionName\", actionName);\nactionIdentifiers.put(\"blueprintName\", \"pm_control\");\nactionIdentifiers.put(\"blueprintVersion\", \"1.0.0\");\nactionIdentifiers.put(\"mode\", \"sync\");\n\nexecutor.outFields.put(\"commonHeader\", commonHeader);\nexecutor.outFields.put(\"actionIdentifiers\", actionIdentifiers);\nexecutor.outFields.put(\"payload\", payload);\n\nexecutor.logger.info(\"Sending Deactivate Subscription Event to CDS\")\n\ntrue;"
1611 "key": {
1612 "name": "ReceivePMSubscriptionTask",
1613 "version": "0.0.1"
1615 "value": {
1616 "key": {
1617 "name": "ReceivePMSubscriptionTask",
1618 "version": "0.0.1"
1620 "inputFields": {
1621 "entry": [
1623 "key": "changeType",
1624 "value": {
1625 "key": "changeType",
1626 "fieldSchemaKey": {
1627 "name": "SimpleStringType",
1628 "version": "0.0.1"
1630 "optional": false
1634 "key": "closedLoopControlName",
1635 "value": {
1636 "key": "closedLoopControlName",
1637 "fieldSchemaKey": {
1638 "name": "SimpleStringType",
1639 "version": "0.0.1"
1641 "optional": false
1645 "key": "nfName",
1646 "value": {
1647 "key": "nfName",
1648 "fieldSchemaKey": {
1649 "name": "SimpleStringType",
1650 "version": "0.0.1"
1652 "optional": false
1656 "key": "policyName",
1657 "value": {
1658 "key": "policyName",
1659 "fieldSchemaKey": {
1660 "name": "SimpleStringType",
1661 "version": "0.0.1"
1663 "optional": false
1667 "key": "subscription",
1668 "value": {
1669 "key": "subscription",
1670 "fieldSchemaKey": {
1671 "name": "SubscriptionType",
1672 "version": "0.0.1"
1674 "optional": false
1679 "outputFields": {
1680 "entry": [
1682 "key": "albumID",
1683 "value": {
1684 "key": "albumID",
1685 "fieldSchemaKey": {
1686 "name": "UUIDType",
1687 "version": "0.0.1"
1689 "optional": false
1694 "taskParameters": {
1695 "entry": []
1697 "contextAlbumReference": [
1699 "name": "PMSubscriptionAlbum",
1700 "version": "0.0.1"
1703 "taskLogic": {
1704 "key": "TaskLogic",
1705 "logicFlavour": "JAVASCRIPT",
1706 "logic": "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2020 Nordix. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\nvar uuidType = java.util.UUID;\n\n\n//albumID will be used to fetch info from our album later\nvar albumID = uuidType.fromString(\"d0050623-18e5-46c9-9298-9a567990cd7c\");\nvar pmSubscriptionInfo = executor.getContextAlbum(\"PMSubscriptionAlbum\").getSchemaHelper().createNewInstance();\nvar returnValue = true;;\n\nif(executor.inFields.get(\"policyName\") != null) {\n var changeType = executor.inFields.get(\"changeType\")\n var nfName = executor.inFields.get(\"nfName\")\n var policyName = executor.inFields.get(\"policyName\")\n var closedLoopControlName = executor.inFields.get(\"closedLoopControlName\")\n var subscription = executor.inFields.get(\"subscription\")\n\n pmSubscriptionInfo.put(\"nfName\", executor.inFields.get(\"nfName\"));\n pmSubscriptionInfo.put(\"changeType\", executor.inFields.get(\"changeType\"))\n pmSubscriptionInfo.put(\"policyName\", executor.inFields.get(\"policyName\"))\n pmSubscriptionInfo.put(\"closedLoopControlName\", executor.inFields.get(\"closedLoopControlName\"))\n pmSubscriptionInfo.put(\"subscription\", subscription)\n\n executor.getContextAlbum(\"PMSubscriptionAlbum\").put(albumID.toString(), pmSubscriptionInfo);\n\n executor.outFields.put(\"albumID\", albumID)\n} else {\n executor.message = \"Received invalid event\"\n returnValue = false;\n}\nreturnValue;"
1713 "events": {
1714 "key": {
1715 "name": "APEXgRPCPolicy_Events",
1716 "version": "0.0.1"
1718 "eventMap": {
1719 "entry": [
1721 "key": {
1722 "name": "CDSResponseEvent",
1723 "version": "0.0.1"
1725 "value": {
1726 "key": {
1727 "name": "CDSResponseEvent",
1728 "version": "0.0.1"
1730 "nameSpace": "org.onap.policy.apex.onap.pmcontrol",
1731 "source": "CDS",
1732 "target": "APEX",
1733 "parameter": {
1734 "entry": [
1736 "key": "actionIdentifiers",
1737 "value": {
1738 "key": "actionIdentifiers",
1739 "fieldSchemaKey": {
1740 "name": "CDSActionIdentifiersType",
1741 "version": "0.0.1"
1743 "optional": false
1747 "key": "commonHeader",
1748 "value": {
1749 "key": "commonHeader",
1750 "fieldSchemaKey": {
1751 "name": "CDSResponseCommonHeaderType",
1752 "version": "0.0.1"
1754 "optional": false
1758 "key": "payload",
1759 "value": {
1760 "key": "payload",
1761 "fieldSchemaKey": {
1762 "name": "CDSResponsePayloadType",
1763 "version": "0.0.1"
1765 "optional": false
1769 "key": "status",
1770 "value": {
1771 "key": "status",
1772 "fieldSchemaKey": {
1773 "name": "CDSResponseStatusType",
1774 "version": "0.0.1"
1776 "optional": false
1784 "key": {
1785 "name": "CDSResponseStatusEvent",
1786 "version": "0.0.1"
1788 "value": {
1789 "key": {
1790 "name": "CDSResponseStatusEvent",
1791 "version": "0.0.1"
1793 "nameSpace": "org.onap.policy.apex.onap.pmcontrol",
1794 "source": "APEX",
1795 "target": "DCAE",
1796 "parameter": {
1797 "entry": [
1799 "key": "status",
1800 "value": {
1801 "key": "status",
1802 "fieldSchemaKey": {
1803 "name": "SubscriptionStatusType",
1804 "version": "0.0.1"
1806 "optional": false
1814 "key": {
1815 "name": "CreateSubscriptionPayloadEvent",
1816 "version": "0.0.1"
1818 "value": {
1819 "key": {
1820 "name": "CreateSubscriptionPayloadEvent",
1821 "version": "0.0.1"
1823 "nameSpace": "org.onap.policy.apex.onap.pmcontrol",
1824 "source": "APEX",
1825 "target": "APEX",
1826 "parameter": {
1827 "entry": [
1829 "key": "albumID",
1830 "value": {
1831 "key": "albumID",
1832 "fieldSchemaKey": {
1833 "name": "UUIDType",
1834 "version": "0.0.1"
1836 "optional": false
1840 "key": "payload",
1841 "value": {
1842 "key": "payload",
1843 "fieldSchemaKey": {
1844 "name": "CDSCreateSubscriptionPayloadType",
1845 "version": "0.0.1"
1847 "optional": false
1855 "key": {
1856 "name": "CreateSubscriptionRequestEvent",
1857 "version": "0.0.1"
1859 "value": {
1860 "key": {
1861 "name": "CreateSubscriptionRequestEvent",
1862 "version": "0.0.1"
1864 "nameSpace": "org.onap.policy.apex.onap.pmcontrol",
1865 "source": "APEX",
1866 "target": "APEX",
1867 "parameter": {
1868 "entry": [
1870 "key": "actionIdentifiers",
1871 "value": {
1872 "key": "actionIdentifiers",
1873 "fieldSchemaKey": {
1874 "name": "CDSActionIdentifiersType",
1875 "version": "0.0.1"
1877 "optional": false
1881 "key": "commonHeader",
1882 "value": {
1883 "key": "commonHeader",
1884 "fieldSchemaKey": {
1885 "name": "CDSRequestCommonHeaderType",
1886 "version": "0.0.1"
1888 "optional": false
1892 "key": "payload",
1893 "value": {
1894 "key": "payload",
1895 "fieldSchemaKey": {
1896 "name": "CDSCreateSubscriptionPayloadType",
1897 "version": "0.0.1"
1899 "optional": false
1907 "key": {
1908 "name": "DeleteSubscriptionPayloadEvent",
1909 "version": "0.0.1"
1911 "value": {
1912 "key": {
1913 "name": "DeleteSubscriptionPayloadEvent",
1914 "version": "0.0.1"
1916 "nameSpace": "org.onap.policy.apex.onap.pmcontrol",
1917 "source": "APEX",
1918 "target": "APEX",
1919 "parameter": {
1920 "entry": [
1922 "key": "albumID",
1923 "value": {
1924 "key": "albumID",
1925 "fieldSchemaKey": {
1926 "name": "UUIDType",
1927 "version": "0.0.1"
1929 "optional": false
1933 "key": "payload",
1934 "value": {
1935 "key": "payload",
1936 "fieldSchemaKey": {
1937 "name": "CDSDeleteSubscriptionPayloadType",
1938 "version": "0.0.1"
1940 "optional": false
1948 "key": {
1949 "name": "DeleteSubscriptionRequestEvent",
1950 "version": "0.0.1"
1952 "value": {
1953 "key": {
1954 "name": "DeleteSubscriptionRequestEvent",
1955 "version": "0.0.1"
1957 "nameSpace": "org.onap.policy.apex.onap.pmcontrol",
1958 "source": "APEX",
1959 "target": "APEX",
1960 "parameter": {
1961 "entry": [
1963 "key": "actionIdentifiers",
1964 "value": {
1965 "key": "actionIdentifiers",
1966 "fieldSchemaKey": {
1967 "name": "CDSActionIdentifiersType",
1968 "version": "0.0.1"
1970 "optional": false
1974 "key": "commonHeader",
1975 "value": {
1976 "key": "commonHeader",
1977 "fieldSchemaKey": {
1978 "name": "CDSRequestCommonHeaderType",
1979 "version": "0.0.1"
1981 "optional": false
1985 "key": "payload",
1986 "value": {
1987 "key": "payload",
1988 "fieldSchemaKey": {
1989 "name": "CDSDeleteSubscriptionPayloadType",
1990 "version": "0.0.1"
1992 "optional": false
2000 "key": {
2001 "name": "PMSubscriptionOutputEvent",
2002 "version": "0.0.1"
2004 "value": {
2005 "key": {
2006 "name": "PMSubscriptionOutputEvent",
2007 "version": "0.0.1"
2009 "nameSpace": "org.onap.policy.apex.onap.pmcontrol",
2010 "source": "APEX",
2011 "target": "APEX",
2012 "parameter": {
2013 "entry": [
2015 "key": "albumID",
2016 "value": {
2017 "key": "albumID",
2018 "fieldSchemaKey": {
2019 "name": "UUIDType",
2020 "version": "0.0.1"
2022 "optional": false
2030 "key": {
2031 "name": "testPolicyB",
2032 "version": "0.0.1"
2034 "value": {
2035 "key": {
2036 "name": "testPolicyB",
2037 "version": "0.0.1"
2039 "nameSpace": "org.onap.policy.apex.onap.pmcontrol",
2040 "source": "DCAE",
2041 "target": "APEX",
2042 "parameter": {
2043 "entry": [
2045 "key": "changeType",
2046 "value": {
2047 "key": "changeType",
2048 "fieldSchemaKey": {
2049 "name": "SimpleStringType",
2050 "version": "0.0.1"
2052 "optional": false
2056 "key": "closedLoopControlName",
2057 "value": {
2058 "key": "closedLoopControlName",
2059 "fieldSchemaKey": {
2060 "name": "SimpleStringType",
2061 "version": "0.0.1"
2063 "optional": false
2067 "key": "nfName",
2068 "value": {
2069 "key": "nfName",
2070 "fieldSchemaKey": {
2071 "name": "SimpleStringType",
2072 "version": "0.0.1"
2074 "optional": false
2078 "key": "policyName",
2079 "value": {
2080 "key": "policyName",
2081 "fieldSchemaKey": {
2082 "name": "SimpleStringType",
2083 "version": "0.0.1"
2085 "optional": false
2089 "key": "subscription",
2090 "value": {
2091 "key": "subscription",
2092 "fieldSchemaKey": {
2093 "name": "SubscriptionType",
2094 "version": "0.0.1"
2096 "optional": false
2106 "albums": {
2107 "key": {
2108 "name": "APEXgRPCPolicy_Albums",
2109 "version": "0.0.1"
2111 "albums": {
2112 "entry": [
2114 "key": {
2115 "name": "PMSubscriptionAlbum",
2116 "version": "0.0.1"
2118 "value": {
2119 "key": {
2120 "name": "PMSubscriptionAlbum",
2121 "version": "0.0.1"
2123 "scope": "policy",
2124 "isWritable": true,
2125 "itemSchema": {
2126 "name": "PMSubscriptionType",
2127 "version": "0.0.1"
2134 "schemas": {
2135 "key": {
2136 "name": "APEXgRPCPolicy_Schemas",
2137 "version": "0.0.1"
2139 "schemas": {
2140 "entry": [
2142 "key": {
2143 "name": "CDSActionIdentifiersType",
2144 "version": "0.0.1"
2146 "value": {
2147 "key": {
2148 "name": "CDSActionIdentifiersType",
2149 "version": "0.0.1"
2151 "schemaFlavour": "Avro",
2152 "schemaDefinition": "{\n \"type\": \"record\",\n \"name\": \"CDSActionIdentifiers_Type\",\n \"namespace\": \"org.onap.policy.apex.onap.helloworld\",\n \"fields\": [\n {\n \"name\": \"actionName\",\n \"type\": \"string\"\n },\n {\n \"name\": \"blueprintName\",\n \"type\": \"string\"\n },\n {\n \"name\": \"blueprintVersion\",\n \"type\": \"string\"\n },\n {\n \"name\": \"mode\",\n \"type\": \"string\"\n }\n ]\n}"
2156 "key": {
2157 "name": "CDSCreateSubscriptionPayloadType",
2158 "version": "0.0.1"
2160 "value": {
2161 "key": {
2162 "name": "CDSCreateSubscriptionPayloadType",
2163 "version": "0.0.1"
2165 "schemaFlavour": "Avro",
2166 "schemaDefinition": "{\n \"type\": \"map\",\n \"values\": {\n \"type\": \"record\",\n \"name\": \"CDSRequestPayloadEntry\",\n \"fields\": [\n {\n \"name\": \"create_DasH_subscription_DasH_properties\",\n \"type\": {\n \"name\": \"create_DasH_subscription_DasH_properties_record\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"nfName\",\n \"type\": \"string\"\n },\n {\n \"name\": \"subscriptionName\",\n \"type\": \"string\"\n },\n {\n \"name\": \"administrativeState\",\n \"type\": \"string\"\n },\n {\n \"name\": \"fileBasedGP\",\n \"type\": \"string\"\n },\n {\n \"name\": \"fileLocation\",\n \"type\": \"string\"\n },\n {\n \"name\": \"measurementGroups\",\n \"type\": {\n \"type\": \"array\",\n \"items\": {\n \"name\": \"measurementGroups_record\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"measurementGroup\",\n \"type\": {\n \"name\": \"measurementGroup\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"measurementTypes\",\n \"type\": {\n \"type\": \"array\",\n \"items\": {\n \"name\": \"measurementTypes_record\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"measurementType\",\n \"type\": \"string\"\n }\n ]\n }\n }\n },\n {\n \"name\": \"managedObjectDNsBasic\",\n \"type\": {\n \"type\": \"array\",\n \"items\": {\n \"name\": \"managedObjectDNsBasic_record\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"DN\",\n \"type\": \"string\"\n }\n ]\n }\n }\n }\n ]\n }\n }\n ]\n }\n }\n }\n ]\n }\n }\n ]\n }\n}"
2170 "key": {
2171 "name": "CDSDeleteSubscriptionPayloadType",
2172 "version": "0.0.1"
2174 "value": {
2175 "key": {
2176 "name": "CDSDeleteSubscriptionPayloadType",
2177 "version": "0.0.1"
2179 "schemaFlavour": "Avro",
2180 "schemaDefinition": "{\n \"type\": \"map\",\n \"values\": {\n \"type\": \"record\",\n \"name\": \"CDSRequestPayloadEntry\",\n \"fields\": [\n {\n \"name\": \"delete_DasH_subscription_DasH_properties\",\n \"type\": {\n \"name\": \"delete_DasH_subscription_DasH_properties_record\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"nfName\",\n \"type\": \"string\"\n },\n {\n \"name\": \"subscriptionName\",\n \"type\": \"string\"\n },\n {\n \"name\": \"administrativeState\",\n \"type\": \"string\"\n },\n {\n \"name\": \"fileBasedGP\",\n \"type\": \"string\"\n },\n {\n \"name\": \"fileLocation\",\n \"type\": \"string\"\n },\n {\n \"name\": \"measurementGroups\",\n \"type\": {\n \"type\": \"array\",\n \"items\": {\n \"name\": \"measurementGroups_record\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"measurementGroup\",\n \"type\": {\n \"name\": \"measurementGroup\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"measurementTypes\",\n \"type\": {\n \"type\": \"array\",\n \"items\": {\n \"name\": \"measurementTypes_record\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"measurementType\",\n \"type\": \"string\"\n }\n ]\n }\n }\n },\n {\n \"name\": \"managedObjectDNsBasic\",\n \"type\": {\n \"type\": \"array\",\n \"items\": {\n \"name\": \"managedObjectDNsBasic_record\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"DN\",\n \"type\": \"string\"\n }\n ]\n }\n }\n }\n ]\n }\n }\n ]\n }\n }\n }\n ]\n }\n }\n ]\n }\n}"
2184 "key": {
2185 "name": "CDSRequestCommonHeaderType",
2186 "version": "0.0.1"
2188 "value": {
2189 "key": {
2190 "name": "CDSRequestCommonHeaderType",
2191 "version": "0.0.1"
2193 "schemaFlavour": "Avro",
2194 "schemaDefinition": "{\n \"type\": \"record\",\n \"name\": \"CDSRequestCommonHeader_Type\",\n \"namespace\": \"org.onap.policy.apex.onap.helloworld\",\n \"fields\": [\n {\n \"name\": \"originatorId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"requestId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"subRequestId\",\n \"type\": \"string\"\n }\n ]\n}"
2198 "key": {
2199 "name": "CDSResponseCommonHeaderType",
2200 "version": "0.0.1"
2202 "value": {
2203 "key": {
2204 "name": "CDSResponseCommonHeaderType",
2205 "version": "0.0.1"
2207 "schemaFlavour": "Avro",
2208 "schemaDefinition": "{\n \"type\": \"record\",\n \"name\": \"CDSResponseCommonHeader_Type\",\n \"namespace\": \"org.onap.policy.apex.onap.helloworld\",\n \"fields\": [\n {\n \"name\": \"originatorId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"requestId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"subRequestId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"timestamp\",\n \"type\": \"string\"\n }\n ]\n}"
2212 "key": {
2213 "name": "CDSResponsePayloadType",
2214 "version": "0.0.1"
2216 "value": {
2217 "key": {
2218 "name": "CDSResponsePayloadType",
2219 "version": "0.0.1"
2221 "schemaFlavour": "Avro",
2222 "schemaDefinition": "{\n \"name\": \"CDSResponsePayloadEntry\",\n \"type\": \"record\",\n \"namespace\": \"com.acme.avro\",\n \"fields\": [\n {\n \"name\": \"create_DasH_subscription_DasH_response\",\n \"type\": {\n \"name\": \"create_DasH_subscription_DasH_response\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"odl_DasH_response\",\n \"type\": {\n \"name\": \"odl_DasH_response\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"status\",\n \"type\": \"string\"\n }\n ]\n }\n }\n ]\n }\n }\n ]\n}"
2226 "key": {
2227 "name": "CDSResponseStatusType",
2228 "version": "0.0.1"
2230 "value": {
2231 "key": {
2232 "name": "CDSResponseStatusType",
2233 "version": "0.0.1"
2235 "schemaFlavour": "Avro",
2236 "schemaDefinition": "{\n \"type\": \"record\",\n \"name\": \"CDSResponseStatus_Type\",\n \"namespace\": \"org.onap.policy.apex.onap.helloworld\",\n \"fields\": [\n {\n \"name\": \"code\",\n \"type\": \"int\"\n },\n {\n \"name\": \"eventType\",\n \"type\": \"string\"\n },\n {\n \"name\": \"timestamp\",\n \"type\": \"string\"\n },\n {\n \"name\": \"message\",\n \"type\": \"string\"\n }\n ]\n}"
2240 "key": {
2241 "name": "PMSubscriptionType",
2242 "version": "0.0.1"
2244 "value": {
2245 "key": {
2246 "name": "PMSubscriptionType",
2247 "version": "0.0.1"
2249 "schemaFlavour": "Avro",
2250 "schemaDefinition": "{\n \"name\": \"PMSubscription\",\n \"type\": \"record\",\n \"namespace\": \"org.onap.policy.apex.onap.pmcontrol\",\n \"fields\": [\n {\n \"name\": \"nfName\",\n \"type\": \"string\"\n },\n {\n \"name\": \"changeType\",\n \"type\": \"string\"\n },\n {\n \"name\": \"closedLoopControlName\",\n \"type\": \"string\"\n },\n {\n \"name\": \"policyName\",\n \"type\": \"string\"\n },\n {\n \"name\": \"subscription\",\n \"type\": {\n \"name\": \"subscription\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"subscriptionName\",\n \"type\": \"string\"\n },\n {\n \"name\": \"administrativeState\",\n \"type\": \"string\"\n },\n {\n \"name\": \"fileBasedGP\",\n \"type\": \"int\"\n },\n {\n \"name\": \"fileLocation\",\n \"type\": \"string\"\n },\n {\n \"name\": \"measurementGroups\",\n \"type\": {\n \"type\": \"array\",\n \"items\": {\n \"name\": \"Measurement_Groups_Type\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"measurementGroup\",\n \"type\": {\n \"name\": \"Measurement_Group_Type\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"measurementTypes\",\n \"type\": {\n \"type\": \"array\",\n \"items\": {\n \"name\": \"Measurement_Types_Type\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"measurementType\",\n \"type\": \"string\"\n }\n ]\n }\n }\n },\n {\n \"name\": \"managedObjectDNsBasic\",\n \"type\": {\n \"type\": \"array\",\n \"items\": {\n \"name\": \"Managed_Object_Dns_Basic_Type\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"DN\",\n \"type\": \"string\"\n }\n ]\n }\n }\n }\n ]\n }\n }\n ]\n }\n }\n }\n ]\n }\n }\n ]\n}"
2254 "key": {
2255 "name": "SimpleIntType",
2256 "version": "0.0.1"
2258 "value": {
2259 "key": {
2260 "name": "SimpleIntType",
2261 "version": "0.0.1"
2263 "schemaFlavour": "Java",
2264 "schemaDefinition": "java.lang.Integer"
2268 "key": {
2269 "name": "SimpleStringType",
2270 "version": "0.0.1"
2272 "value": {
2273 "key": {
2274 "name": "SimpleStringType",
2275 "version": "0.0.1"
2277 "schemaFlavour": "Java",
2278 "schemaDefinition": "java.lang.String"
2282 "key": {
2283 "name": "SubscriptionStatusType",
2284 "version": "0.0.1"
2286 "value": {
2287 "key": {
2288 "name": "SubscriptionStatusType",
2289 "version": "0.0.1"
2291 "schemaFlavour": "Avro",
2292 "schemaDefinition": "{\n \"type\": \"record\",\n \"name\": \"ActivateSubscriptionStatus_Type\",\n \"namespace\": \"org.onap.policy.apex.onap.helloworld\",\n \"fields\": [\n {\n \"name\": \"subscriptionName\",\n \"type\": \"string\"\n },\n {\n \"name\": \"nfName\",\n \"type\": \"string\"\n },\n {\n \"name\": \"changeType\",\n \"type\": \"string\"\n },\n {\n \"name\": \"message\",\n \"type\": \"string\"\n }\n ]\n}"
2296 "key": {
2297 "name": "SubscriptionType",
2298 "version": "0.0.1"
2300 "value": {
2301 "key": {
2302 "name": "SubscriptionType",
2303 "version": "0.0.1"
2305 "schemaFlavour": "Avro",
2306 "schemaDefinition": "{\n \"name\": \"subscription\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"subscriptionName\",\n \"type\": \"string\"\n },\n {\n \"name\": \"administrativeState\",\n \"type\": \"string\"\n },\n {\n \"name\": \"fileBasedGP\",\n \"type\": \"int\"\n },\n {\n \"name\": \"fileLocation\",\n \"type\": \"string\"\n },\n {\n \"name\": \"measurementGroups\",\n \"type\": {\n \"type\": \"array\",\n \"items\": {\n \"name\": \"Measurement_Groups_Type\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"measurementGroup\",\n \"type\": {\n \"name\": \"Measurement_Group_Type\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"measurementTypes\",\n \"type\": {\n \"type\": \"array\",\n \"items\": {\n \"name\": \"Measurement_Types_Type\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"measurementType\",\n \"type\": \"string\"\n }\n ]\n }\n }\n },\n {\n \"name\": \"managedObjectDNsBasic\",\n \"type\": {\n \"type\": \"array\",\n \"items\": {\n \"name\": \"Managed_Object_Dns_Basic_Type\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"DN\",\n \"type\": \"string\"\n }\n ]\n }\n }\n }\n ]\n }\n }\n ]\n }\n }\n }\n ]\n}"
2310 "key": {
2311 "name": "UUIDType",
2312 "version": "0.0.1"
2314 "value": {
2315 "key": {
2316 "name": "UUIDType",
2317 "version": "0.0.1"
2319 "schemaFlavour": "Java",
2320 "schemaDefinition": "java.util.UUID"
2329 "eventOutputParameters": {
2330 "logOutputter": {
2331 "carrierTechnologyParameters": {
2332 "carrierTechnology": "FILE",
2333 "parameters": {
2334 "fileName": "outputevents.log"
2337 "eventProtocolParameters": {
2338 "eventProtocol": "JSON"
2341 "CDSRequestProducer": {
2342 "carrierTechnologyParameters": {
2343 "carrierTechnology": "GRPC",
2344 "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.grpc.GrpcCarrierTechnologyParameters",
2345 "parameters": {
2346 "host": "10.2.0.122",
2347 "port": 54322,
2348 "username": "ccsdkapps",
2349 "password": "ccsdkapps",
2350 "timeout": 60
2353 "eventProtocolParameters": {
2354 "eventProtocol": "JSON"
2356 "eventNameFilter": "(Create|Delete)SubscriptionRequestEvent",
2357 "requestorMode": true,
2358 "requestorPeer": "CDSRequestConsumer",
2359 "requestorTimeout": 500
2361 "CDSReplyProducer": {
2362 "carrierTechnologyParameters": {
2363 "carrierTechnology": "RESTCLIENT",
2364 "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restclient.RestClientCarrierTechnologyParameters",
2365 "parameters": {
2366 "url": "http://message-router:3904/events/POLICY-CL-MGT"
2369 "eventProtocolParameters": {
2370 "eventProtocol": "JSON"
2372 "eventNameFilter": "CDSResponseStatusEvent"
2375 "eventInputParameters": {
2376 "DCAEConsumer": {
2377 "carrierTechnologyParameters": {
2378 "carrierTechnology": "RESTCLIENT",
2379 "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restclient.RestClientCarrierTechnologyParameters",
2380 "parameters": {
2381 "url": "http://message-router:3904/events/unauthenticated.DCAE_CL_OUTPUT/cg1/c1?timeout=30000"
2384 "eventProtocolParameters": {
2385 "eventProtocol": "JSON",
2386 "parameters": {
2387 "nameAlias": "testPolicyB"
2390 "eventName": "testPolicyB",
2391 "eventNameFilter": "testPolicyB"
2393 "CDSRequestConsumer": {
2394 "carrierTechnologyParameters": {
2395 "carrierTechnology": "GRPC",
2396 "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.grpc.GrpcCarrierTechnologyParameters"
2398 "eventProtocolParameters": {
2399 "eventProtocol": "JSON"
2401 "eventName": "CDSResponseEvent",
2402 "eventNameFilter": "CDSResponseEvent",
2403 "requestorMode": true,
2404 "requestorPeer": "CDSRequestProducer",
2405 "requestorTimeout": 500
2409 "name": "operational.apex.stabilityTestDefaultDomain",
2410 "version": "1.0.0",
2411 "metadata": {
2412 "policy-id": "operational.apex.stabilityTestDefaultDomain",
2413 "policy-version": "1.0.0"
2419 "name": "ToscaServiceTemplateSimple",
2420 "version": "1.0.0",
2421 "metadata": {}
2423 <stringProp name="Argument.metadata">=</stringProp>
2427 <stringProp name="HTTPSampler.domain">${HOSTNAME}</stringProp>
2428 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
2429 <stringProp name="HTTPSampler.protocol">https</stringProp>
2430 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
2431 <stringProp name="HTTPSampler.path">/policy/api/v1/policies</stringProp>
2432 <stringProp name="HTTPSampler.method">POST</stringProp>
2433 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
2434 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
2435 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
2436 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
2437 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
2438 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
2439 <stringProp name="HTTPSampler.response_timeout"></stringProp>
2442 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
2443 <collectionProp name="Asserion.test_strings">
2444 <stringProp name="49586">200</stringProp>
2446 <stringProp name="Assertion.custom_message"></stringProp>
2447 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
2448 <boolProp name="Assertion.assume_success">false</boolProp>
2449 <intProp name="Assertion.test_type">1</intProp>
2450 </ResponseAssertion>
2453 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Deploy policy" enabled="true">
2454 <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
2455 <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
2456 <collectionProp name="Arguments.arguments">
2457 <elementProp name="" elementType="HTTPArgument">
2458 <boolProp name="HTTPArgument.always_encode">false</boolProp>
2459 <stringProp name="Argument.value">{
2460 "groups": [
2462 "name": "defaultGroup",
2463 "deploymentSubgroups": [
2465 "pdpType": "apex",
2466 "action": "POST",
2467 "policies": [
2469 "name": "operational.apex.stabilityTestDefaultDomain",
2470 "version": "1.0.0"
2478 <stringProp name="Argument.metadata">=</stringProp>
2482 <stringProp name="HTTPSampler.domain">${HOSTNAME}</stringProp>
2483 <stringProp name="HTTPSampler.port">${PAP_PORT}</stringProp>
2484 <stringProp name="HTTPSampler.protocol">https</stringProp>
2485 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
2486 <stringProp name="HTTPSampler.path">/policy/pap/v1/pdps/deployments/batch</stringProp>
2487 <stringProp name="HTTPSampler.method">POST</stringProp>
2488 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
2489 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
2490 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
2491 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
2492 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
2493 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
2494 <stringProp name="HTTPSampler.response_timeout"></stringProp>
2497 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
2498 <collectionProp name="Asserion.test_strings">
2499 <stringProp name="49588">202</stringProp>
2501 <stringProp name="Assertion.custom_message"></stringProp>
2502 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
2503 <boolProp name="Assertion.assume_success">false</boolProp>
2504 <intProp name="Assertion.test_type">1</intProp>
2505 </ResponseAssertion>
2509 <ThreadGroup guiclass="ThreadGroupGui" testclass="ThreadGroup" testname="Thread Group" enabled="true">
2510 <stringProp name="ThreadGroup.on_sample_error">continue</stringProp>
2511 <elementProp name="ThreadGroup.main_controller" elementType="LoopController" guiclass="LoopControlPanel" testclass="LoopController" testname="Loop Controller" enabled="true">
2512 <boolProp name="LoopController.continue_forever">false</boolProp>
2513 <intProp name="LoopController.loops">-1</intProp>
2515 <stringProp name="ThreadGroup.num_threads">${threads}</stringProp>
2516 <stringProp name="ThreadGroup.ramp_time">1</stringProp>
2517 <boolProp name="ThreadGroup.scheduler">true</boolProp>
2518 <stringProp name="ThreadGroup.duration">5400</stringProp>
2519 <stringProp name="ThreadGroup.delay"></stringProp>
2520 <boolProp name="ThreadGroup.same_user_on_next_iteration">true</boolProp>
2523 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Health Check" enabled="true">
2524 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
2525 <collectionProp name="Arguments.arguments"/>
2527 <stringProp name="HTTPSampler.domain">${HOSTNAME}</stringProp>
2528 <stringProp name="HTTPSampler.port">${APEX_PORT}</stringProp>
2529 <stringProp name="HTTPSampler.protocol">https</stringProp>
2530 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
2531 <stringProp name="HTTPSampler.path">/policy/apex-pdp/v1/healthcheck</stringProp>
2532 <stringProp name="HTTPSampler.method">GET</stringProp>
2533 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
2534 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
2535 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
2536 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
2537 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
2538 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
2539 <stringProp name="HTTPSampler.response_timeout"></stringProp>
2542 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
2543 <stringProp name="cacheKey">true</stringProp>
2544 <stringProp name="filename"></stringProp>
2545 <stringProp name="parameters"></stringProp>
2546 <stringProp name="script">import groovy.json.JsonSlurper;
2549 if (prev.getResponseCode() == '200') {
2550 def jsonSlurper = new JsonSlurper();
2551 res = jsonSlurper.parseText(prev.getResponseDataAsString());
2553 assert res instanceof Map;
2554 assert res.healthy == true;
2555 assert res.message == 'alive';
2558 <stringProp name="scriptLanguage">groovy</stringProp>
2562 <GenericController guiclass="LogicControllerGui" testclass="GenericController" testname="Test Controller" enabled="true"/>
2564 <SyncTimer guiclass="TestBeanGUI" testclass="SyncTimer" testname="Synchronizing Timer" enabled="false">
2565 <stringProp name="groupSize">${threads}</stringProp>
2566 <stringProp name="timeoutInMs">${threadsTimeOutInMs}</stringProp>
2569 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Send Input Event" enabled="true">
2570 <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
2571 <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
2572 <collectionProp name="Arguments.arguments">
2573 <elementProp name="" elementType="HTTPArgument">
2574 <boolProp name="HTTPArgument.always_encode">false</boolProp>
2575 <stringProp name="Argument.value">{
2576 "changeType": "CREATE",
2577 "closedLoopControlName": "test",
2578 "policyName": "test",
2579 "nfName": "pnf300",
2580 "subscription": {
2581 "subscriptionName": "testPolicyB",
2582 "administrativeState": "UNLOCKED",
2583 "fileBasedGP": 15,
2584 "fileLocation": "/pm/pm.xml",
2585 "measurementGroups": [
2587 "measurementGroup": {
2588 "measurementTypes": [
2590 "measurementType": "countera"
2593 "measurementType": "counterb"
2596 "managedObjectDNsBasic": [
2598 "DN": "dna"
2601 "DN": "dnb"
2607 "measurementGroup": {
2608 "measurementTypes": [
2610 "measurementType": "counterc"
2613 "measurementType": "counterd"
2616 "managedObjectDNsBasic": [
2618 "DN": "dnc"
2621 "DN": "dnd"
2629 <stringProp name="Argument.metadata">=</stringProp>
2633 <stringProp name="HTTPSampler.domain">${HOSTNAME}</stringProp>
2634 <stringProp name="HTTPSampler.port">${DMAAP_PORT}</stringProp>
2635 <stringProp name="HTTPSampler.protocol">http</stringProp>
2636 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
2637 <stringProp name="HTTPSampler.path">/events/unauthenticated.DCAE_CL_OUTPUT</stringProp>
2638 <stringProp name="HTTPSampler.method">POST</stringProp>
2639 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
2640 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
2641 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
2642 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
2643 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
2644 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
2645 <stringProp name="HTTPSampler.response_timeout"></stringProp>
2646 <stringProp name="TestPlan.comments">Send input event to apex-pdp</stringProp>
2649 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Assert Response Code" enabled="true">
2650 <collectionProp name="Asserion.test_strings">
2651 <stringProp name="49586">200</stringProp>
2653 <stringProp name="Assertion.custom_message"></stringProp>
2654 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
2655 <boolProp name="Assertion.assume_success">false</boolProp>
2656 <intProp name="Assertion.test_type">8</intProp>
2657 <stringProp name="Scope.variable">Response code</stringProp>
2658 <stringProp name="TestPlan.comments">Assert response code coming back from apex-pdp</stringProp>
2659 </ResponseAssertion>
2661 <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="WAIT" enabled="true">
2662 <stringProp name="ConstantTimer.delay">${wait}</stringProp>
2666 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get the ouput event response" enabled="true">
2667 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
2668 <collectionProp name="Arguments.arguments"/>
2670 <stringProp name="HTTPSampler.domain">${HOSTNAME}</stringProp>
2671 <stringProp name="HTTPSampler.port">${DMAAP_PORT}</stringProp>
2672 <stringProp name="HTTPSampler.protocol">http</stringProp>
2673 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
2674 <stringProp name="HTTPSampler.path">/events/POLICY-CL-MGT/cg${__threadNum}/c1?timeout=30000</stringProp>
2675 <stringProp name="HTTPSampler.method">GET</stringProp>
2676 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
2677 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
2678 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
2679 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
2680 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
2681 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
2682 <stringProp name="HTTPSampler.response_timeout"></stringProp>
2683 <stringProp name="TestPlan.comments">Check output event </stringProp>
2686 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Assert Response Code" enabled="true">
2687 <collectionProp name="Asserion.test_strings">
2688 <stringProp name="49586">200</stringProp>
2690 <stringProp name="Assertion.custom_message"></stringProp>
2691 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
2692 <boolProp name="Assertion.assume_success">false</boolProp>
2693 <intProp name="Assertion.test_type">8</intProp>
2694 <stringProp name="Scope.variable">Response code</stringProp>
2695 <stringProp name="TestPlan.comments">Assert response code coming back from apex-pdp</stringProp>
2696 </ResponseAssertion>
2698 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Assert Response Message" enabled="true">
2699 <collectionProp name="Asserion.test_strings">
2700 <stringProp name="1608759622">org.onap.policy.apex.onap.pmcontrol</stringProp>
2701 <stringProp name="1996002556">CREATE</stringProp>
2703 <stringProp name="Assertion.custom_message"></stringProp>
2704 <stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
2705 <boolProp name="Assertion.assume_success">false</boolProp>
2706 <intProp name="Assertion.test_type">2</intProp>
2707 <stringProp name="Scope.variable">Response code</stringProp>
2708 <stringProp name="TestPlan.comments">Assert response message coming back from apex-pdp</stringProp>
2709 </ResponseAssertion>
2711 <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="WAIT" enabled="false">
2712 <stringProp name="ConstantTimer.delay">${wait}</stringProp>
2718 <PostThreadGroup guiclass="PostThreadGroupGui" testclass="PostThreadGroup" testname="tearDown Thread Group" enabled="true">
2719 <stringProp name="ThreadGroup.on_sample_error">continue</stringProp>
2720 <elementProp name="ThreadGroup.main_controller" elementType="LoopController" guiclass="LoopControlPanel" testclass="LoopController" testname="Loop Controller" enabled="true">
2721 <boolProp name="LoopController.continue_forever">false</boolProp>
2722 <stringProp name="LoopController.loops">1</stringProp>
2724 <stringProp name="ThreadGroup.num_threads">1</stringProp>
2725 <stringProp name="ThreadGroup.ramp_time">1</stringProp>
2726 <boolProp name="ThreadGroup.scheduler">false</boolProp>
2727 <stringProp name="ThreadGroup.duration"></stringProp>
2728 <stringProp name="ThreadGroup.delay"></stringProp>
2729 <boolProp name="ThreadGroup.same_user_on_next_iteration">true</boolProp>
2732 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Un deploy policy" enabled="true">
2733 <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
2734 <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
2735 <collectionProp name="Arguments.arguments">
2736 <elementProp name="" elementType="HTTPArgument">
2737 <boolProp name="HTTPArgument.always_encode">false</boolProp>
2738 <stringProp name="Argument.value">{
2739 "groups": [
2741 "name": "defaultGroup",
2742 "deploymentSubgroups": [
2744 "pdpType": "apex",
2745 "action": "DELETE",
2746 "policies": [
2748 "name": "operational.apex.stabilityTestDefaultDomain",
2749 "version": "1.0.0"
2757 <stringProp name="Argument.metadata">=</stringProp>
2761 <stringProp name="HTTPSampler.domain">${HOSTNAME}</stringProp>
2762 <stringProp name="HTTPSampler.port">${PAP_PORT}</stringProp>
2763 <stringProp name="HTTPSampler.protocol">https</stringProp>
2764 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
2765 <stringProp name="HTTPSampler.path">/policy/pap/v1/pdps/deployments/batch</stringProp>
2766 <stringProp name="HTTPSampler.method">POST</stringProp>
2767 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
2768 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
2769 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
2770 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
2771 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
2772 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
2773 <stringProp name="HTTPSampler.response_timeout"></stringProp>
2776 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
2777 <collectionProp name="Asserion.test_strings">
2778 <stringProp name="49588">202</stringProp>
2780 <stringProp name="Assertion.custom_message"></stringProp>
2781 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
2782 <boolProp name="Assertion.assume_success">false</boolProp>
2783 <intProp name="Assertion.test_type">1</intProp>
2784 </ResponseAssertion>
2787 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete Policy" enabled="true">
2788 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
2789 <collectionProp name="Arguments.arguments"/>
2791 <stringProp name="HTTPSampler.domain">${HOSTNAME}</stringProp>
2792 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
2793 <stringProp name="HTTPSampler.protocol">https</stringProp>
2794 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
2795 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.native.Apex/versions/1.0.0/policies/operational.apex.stabilityTestDefaultDomain/versions/1.0.0</stringProp>
2796 <stringProp name="HTTPSampler.method">DELETE</stringProp>
2797 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
2798 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
2799 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
2800 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
2801 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
2802 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
2803 <stringProp name="HTTPSampler.response_timeout"></stringProp>
2806 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
2807 <collectionProp name="Asserion.test_strings">
2808 <stringProp name="49586">200</stringProp>
2810 <stringProp name="Assertion.custom_message"></stringProp>
2811 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
2812 <boolProp name="Assertion.assume_success">false</boolProp>
2813 <intProp name="Assertion.test_type">1</intProp>
2814 </ResponseAssertion>
2818 <ResultCollector guiclass="SummaryReport" testclass="ResultCollector" testname="Summary Report" enabled="true">
2819 <boolProp name="ResultCollector.error_logging">false</boolProp>
2821 <name>saveConfig</name>
2822 <value class="SampleSaveConfiguration">
2824 <latency>true</latency>
2825 <timestamp>true</timestamp>
2826 <success>true</success>
2829 <message>true</message>
2830 <threadName>true</threadName>
2831 <dataType>true</dataType>
2832 <encoding>false</encoding>
2833 <assertions>true</assertions>
2834 <subresults>true</subresults>
2835 <responseData>false</responseData>
2836 <samplerData>false</samplerData>
2838 <fieldNames>true</fieldNames>
2839 <responseHeaders>false</responseHeaders>
2840 <requestHeaders>false</requestHeaders>
2841 <responseDataOnError>false</responseDataOnError>
2842 <saveAssertionResultsFailureMessage>true</saveAssertionResultsFailureMessage>
2843 <assertionsResultsToSave>0</assertionsResultsToSave>
2845 <sentBytes>true</sentBytes>
2846 <threadCounts>true</threadCounts>
2847 <idleTime>true</idleTime>
2848 <connectTime>true</connectTime>
2851 <stringProp name="filename">/home/adityap/apex_stability/Stability.log</stringProp>
2854 <ResultCollector guiclass="ViewResultsFullVisualizer" testclass="ResultCollector" testname="View Results Tree" enabled="true">
2855 <boolProp name="ResultCollector.error_logging">false</boolProp>
2857 <name>saveConfig</name>
2858 <value class="SampleSaveConfiguration">
2860 <latency>true</latency>
2861 <timestamp>true</timestamp>
2862 <success>true</success>
2865 <message>true</message>
2866 <threadName>true</threadName>
2867 <dataType>true</dataType>
2868 <encoding>false</encoding>
2869 <assertions>true</assertions>
2870 <subresults>true</subresults>
2871 <responseData>false</responseData>
2872 <samplerData>false</samplerData>
2874 <fieldNames>true</fieldNames>
2875 <responseHeaders>false</responseHeaders>
2876 <requestHeaders>false</requestHeaders>
2877 <responseDataOnError>false</responseDataOnError>
2878 <saveAssertionResultsFailureMessage>true</saveAssertionResultsFailureMessage>
2879 <assertionsResultsToSave>0</assertionsResultsToSave>
2881 <sentBytes>true</sentBytes>
2882 <threadCounts>true</threadCounts>
2883 <idleTime>true</idleTime>
2884 <connectTime>true</connectTime>
2887 <stringProp name="filename">/mnt/c/Users/arek/Desktop/s3p_results/performance/6/testresults_1.jtl</stringProp>
2890 <ResultCollector guiclass="TableVisualizer" testclass="ResultCollector" testname="View Results in Table" enabled="true">
2891 <boolProp name="ResultCollector.error_logging">false</boolProp>
2893 <name>saveConfig</name>
2894 <value class="SampleSaveConfiguration">
2896 <latency>true</latency>
2897 <timestamp>true</timestamp>
2898 <success>true</success>
2901 <message>true</message>
2902 <threadName>true</threadName>
2903 <dataType>true</dataType>
2904 <encoding>false</encoding>
2905 <assertions>true</assertions>
2906 <subresults>true</subresults>
2907 <responseData>false</responseData>
2908 <samplerData>false</samplerData>
2910 <fieldNames>true</fieldNames>
2911 <responseHeaders>false</responseHeaders>
2912 <requestHeaders>false</requestHeaders>
2913 <responseDataOnError>false</responseDataOnError>
2914 <saveAssertionResultsFailureMessage>true</saveAssertionResultsFailureMessage>
2915 <assertionsResultsToSave>0</assertionsResultsToSave>
2917 <sentBytes>true</sentBytes>
2918 <threadCounts>true</threadCounts>
2919 <idleTime>true</idleTime>
2920 <connectTime>true</connectTime>
2923 <stringProp name="filename">/home/adityap/apex_stability/resultTable.log</stringProp>