1 <?xml version="1.0" encoding="UTF-8"?>
3 ============LICENSE_START=======================================================
5 ================================================================================
6 Copyright (C) 2020-2021 Nordix Foundation.All rights reserved.
7 ================================================================================
8 Licensed under the Apache License, Version 2.0 (the "License");
9 you may not use this file except in compliance with the License.
10 You may obtain a copy of the License at
12 http://www.apache.org/licenses/LICENSE-2.0
14 Unless required by applicable law or agreed to in writing, software
15 distributed under the License is distributed on an "AS IS" BASIS,
16 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 See the License for the specific language governing permissions and
18 limitations under the License.
19 ============LICENSE_END=========================================================
21 <jmeterTestPlan version="1.2" properties="5.0" jmeter="5.3">
23 <TestPlan guiclass="TestPlanGui" testclass="TestPlan" testname="APEX PDP STABILITY TEST PLAN" enabled="true">
24 <stringProp name="TestPlan.comments"></stringProp>
25 <boolProp name="TestPlan.functional_mode">false</boolProp>
26 <boolProp name="TestPlan.tearDown_on_shutdown">true</boolProp>
27 <boolProp name="TestPlan.serialize_threadgroups">true</boolProp>
28 <elementProp name="TestPlan.user_defined_variables" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
29 <collectionProp name="Arguments.arguments"/>
31 <stringProp name="TestPlan.user_define_classpath"></stringProp>
34 <HeaderManager guiclass="HeaderPanel" testclass="HeaderManager" testname="HTTP Header Manager" enabled="true">
35 <collectionProp name="HeaderManager.headers">
36 <elementProp name="" elementType="Header">
37 <stringProp name="Header.name">Content-Type</stringProp>
38 <stringProp name="Header.value">application/json</stringProp>
40 <elementProp name="" elementType="Header">
41 <stringProp name="Header.name">Accept</stringProp>
42 <stringProp name="Header.value">application/json</stringProp>
47 <ConfigTestElement guiclass="HttpDefaultsGui" testclass="ConfigTestElement" testname="HTTP Request Defaults" enabled="false">
48 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
49 <collectionProp name="Arguments.arguments"/>
51 <stringProp name="HTTPSampler.domain"></stringProp>
52 <stringProp name="HTTPSampler.port">23324</stringProp>
53 <stringProp name="HTTPSampler.protocol">http</stringProp>
54 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
55 <stringProp name="HTTPSampler.path"></stringProp>
56 <stringProp name="HTTPSampler.concurrentPool">6</stringProp>
57 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
58 <stringProp name="HTTPSampler.response_timeout"></stringProp>
61 <Arguments guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
62 <collectionProp name="Arguments.arguments">
63 <elementProp name="threads" elementType="Argument">
64 <stringProp name="Argument.name">threads</stringProp>
65 <stringProp name="Argument.value">${__P(threads,5)}</stringProp>
66 <stringProp name="Argument.metadata">=</stringProp>
68 <elementProp name="threadsTimeOutInMs" elementType="Argument">
69 <stringProp name="Argument.name">threadsTimeOutInMs</stringProp>
70 <stringProp name="Argument.value">${__P(threadsTimeOutInMs,5000)}</stringProp>
71 <stringProp name="Argument.metadata">=</stringProp>
73 <elementProp name="wait" elementType="Argument">
74 <stringProp name="Argument.name">wait</stringProp>
75 <stringProp name="Argument.value">${__P(wait,10000)}</stringProp>
76 <stringProp name="Argument.desc">Wait time between requests to apex-pdp</stringProp>
77 <stringProp name="Argument.metadata">=</stringProp>
79 <elementProp name="PAP_PORT" elementType="Argument">
80 <stringProp name="Argument.name">PAP_PORT</stringProp>
81 <stringProp name="Argument.value">${__P(PAP_PORT,30211)}</stringProp>
82 <stringProp name="Argument.metadata">=</stringProp>
84 <elementProp name="API_PORT" elementType="Argument">
85 <stringProp name="Argument.name">API_PORT</stringProp>
86 <stringProp name="Argument.value">${__P(API_PORT,30785)}</stringProp>
87 <stringProp name="Argument.metadata">=</stringProp>
89 <elementProp name="APEX_PORT" elementType="Argument">
90 <stringProp name="Argument.name">APEX_PORT</stringProp>
91 <stringProp name="Argument.value">${__P(APEX_PORT,30687)}</stringProp>
92 <stringProp name="Argument.metadata">=</stringProp>
94 <elementProp name="DMAAP_PORT" elementType="Argument">
95 <stringProp name="Argument.name">DMAAP_PORT</stringProp>
96 <stringProp name="Argument.value">${__P(DMAAP_PORT,31345)}</stringProp>
97 <stringProp name="Argument.metadata">=</stringProp>
99 <elementProp name="HOSTNAME" elementType="Argument">
100 <stringProp name="Argument.name">HOSTNAME</stringProp>
101 <stringProp name="Argument.value">${__P(HOSTNAME,10.2.0.120)}</stringProp>
102 <stringProp name="Argument.metadata">=</stringProp>
104 <elementProp name="LOG_PATH" elementType="Argument">
105 <stringProp name="Argument.name">LOG_PATH</stringProp>
106 <stringProp name="Argument.value">${__P(LOG_PATH,/home/arkadiusza/apex_stability)}</stringProp>
107 <stringProp name="Argument.metadata">=</stringProp>
112 <AuthManager guiclass="AuthPanel" testclass="AuthManager" testname="HTTP Authorization Manager" enabled="true">
113 <collectionProp name="AuthManager.auth_list">
114 <elementProp name="" elementType="Authorization">
115 <stringProp name="Authorization.url">https://${HOSTNAME}:${API_PORT}</stringProp>
116 <stringProp name="Authorization.username">healthcheck</stringProp>
117 <stringProp name="Authorization.password">zb!XztG34</stringProp>
118 <stringProp name="Authorization.domain"></stringProp>
119 <stringProp name="Authorization.realm"></stringProp>
121 <elementProp name="" elementType="Authorization">
122 <stringProp name="Authorization.url">https://${HOSTNAME}:${PAP_PORT}</stringProp>
123 <stringProp name="Authorization.username">healthcheck</stringProp>
124 <stringProp name="Authorization.password">zb!XztG34</stringProp>
125 <stringProp name="Authorization.domain"></stringProp>
126 <stringProp name="Authorization.realm"></stringProp>
128 <elementProp name="" elementType="Authorization">
129 <stringProp name="Authorization.url">https://${HOSTNAME}:${APEX_PORT}</stringProp>
130 <stringProp name="Authorization.username">healthcheck</stringProp>
131 <stringProp name="Authorization.password">zb!XztG34</stringProp>
132 <stringProp name="Authorization.domain"></stringProp>
133 <stringProp name="Authorization.realm"></stringProp>
136 <boolProp name="AuthManager.controlledByThreadGroup">false</boolProp>
139 <SetupThreadGroup guiclass="SetupThreadGroupGui" testclass="SetupThreadGroup" testname="setUp Thread Group" enabled="true">
140 <stringProp name="ThreadGroup.on_sample_error">continue</stringProp>
141 <elementProp name="ThreadGroup.main_controller" elementType="LoopController" guiclass="LoopControlPanel" testclass="LoopController" testname="Loop Controller" enabled="true">
142 <boolProp name="LoopController.continue_forever">false</boolProp>
143 <stringProp name="LoopController.loops">1</stringProp>
145 <stringProp name="ThreadGroup.num_threads">1</stringProp>
146 <stringProp name="ThreadGroup.ramp_time">1</stringProp>
147 <boolProp name="ThreadGroup.scheduler">false</boolProp>
148 <stringProp name="ThreadGroup.duration"></stringProp>
149 <stringProp name="ThreadGroup.delay"></stringProp>
150 <boolProp name="ThreadGroup.same_user_on_next_iteration">true</boolProp>
153 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create Policy" enabled="true">
154 <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
155 <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
156 <collectionProp name="Arguments.arguments">
157 <elementProp name="" elementType="HTTPArgument">
158 <boolProp name="HTTPArgument.always_encode">false</boolProp>
159 <stringProp name="Argument.value">{
160 "tosca_definitions_version": "tosca_simple_yaml_1_1_0",
161 "topology_template": {
162 "policies": [
164 "operational.apex.stabilityTestDefaultDomain": {
165 "type": "onap.policies.native.Apex",
166 "type_version": "1.0.0",
167 "properties": {
168 "engineServiceParameters": {
169 "name": "MyApexEngine",
170 "version": "0.0.1",
171 "id": 45,
172 "instanceCount": 4,
173 "deploymentPort": 12561,
174 "engineParameters": {
175 "executorParameters": {
176 "JAVASCRIPT": {
177 "parameterClassName": "org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters"
180 "contextParameters": {
181 "parameterClassName": "org.onap.policy.apex.context.parameters.ContextParameters",
182 "schemaParameters": {
183 "Avro": {
184 "parameterClassName": "org.onap.policy.apex.plugins.context.schema.avro.AvroSchemaHelperParameters"
189 "policy_type_impl": {
190 "apexPolicyModel": {
191 "key": {
192 "name": "APEXgRPCPolicy",
193 "version": "0.0.1"
195 "keyInformation": {
196 "key": {
197 "name": "APEXgRPCPolicy_KeyInfo",
198 "version": "0.0.1"
200 "keyInfoMap": {
201 "entry": [
203 "key": {
204 "name": "APEXgRPCPolicy",
205 "version": "0.0.1"
207 "value": {
208 "key": {
209 "name": "APEXgRPCPolicy",
210 "version": "0.0.1"
212 "UUID": "b8424cdb-29fb-3566-b77a-f4f847d81cc9",
213 "description": "Generated description for concept referred to by key \"APEXgRPCPolicy:0.0.1\""
217 "key": {
218 "name": "APEXgRPCPolicy_Albums",
219 "version": "0.0.1"
221 "value": {
222 "key": {
223 "name": "APEXgRPCPolicy_Albums",
224 "version": "0.0.1"
226 "UUID": "9922906c-ccaa-34f7-95e2-bcc36e77821b",
227 "description": "Generated description for concept referred to by key \"APEXgRPCPolicy_Albums:0.0.1\""
231 "key": {
232 "name": "APEXgRPCPolicy_Events",
233 "version": "0.0.1"
235 "value": {
236 "key": {
237 "name": "APEXgRPCPolicy_Events",
238 "version": "0.0.1"
240 "UUID": "5bf28afd-787c-3138-a3e1-b33ad94a038a",
241 "description": "Generated description for concept referred to by key \"APEXgRPCPolicy_Events:0.0.1\""
245 "key": {
246 "name": "APEXgRPCPolicy_KeyInfo",
247 "version": "0.0.1"
249 "value": {
250 "key": {
251 "name": "APEXgRPCPolicy_KeyInfo",
252 "version": "0.0.1"
254 "UUID": "68abaa6f-8d03-3a53-9590-007115817d5c",
255 "description": "Generated description for concept referred to by key \"APEXgRPCPolicy_KeyInfo:0.0.1\""
259 "key": {
260 "name": "APEXgRPCPolicy_Policies",
261 "version": "0.0.1"
263 "value": {
264 "key": {
265 "name": "APEXgRPCPolicy_Policies",
266 "version": "0.0.1"
268 "UUID": "819d06c3-33c2-3031-aa78-96281aa4270a",
269 "description": "Generated description for concept referred to by key \"APEXgRPCPolicy_Policies:0.0.1\""
273 "key": {
274 "name": "APEXgRPCPolicy_Schemas",
275 "version": "0.0.1"
277 "value": {
278 "key": {
279 "name": "APEXgRPCPolicy_Schemas",
280 "version": "0.0.1"
282 "UUID": "8e67d466-f990-3a39-9fd7-4490cac342dc",
283 "description": "Generated description for concept referred to by key \"APEXgRPCPolicy_Schemas:0.0.1\""
287 "key": {
288 "name": "APEXgRPCPolicy_Tasks",
289 "version": "0.0.1"
291 "value": {
292 "key": {
293 "name": "APEXgRPCPolicy_Tasks",
294 "version": "0.0.1"
296 "UUID": "4668db3d-6fe2-3885-8e47-f30cd0102f0a",
297 "description": "Generated description for concept referred to by key \"APEXgRPCPolicy_Tasks:0.0.1\""
301 "key": {
302 "name": "CDSActionIdentifiersType",
303 "version": "0.0.1"
305 "value": {
306 "key": {
307 "name": "CDSActionIdentifiersType",
308 "version": "0.0.1"
310 "UUID": "6e5fa19b-14df-37e3-a4ae-8c537e861a82",
311 "description": "Generated description for concept referred to by key \"CDSActionIdentifiersType:0.0.1\""
315 "key": {
316 "name": "CDSCreateSubscriptionPayloadType",
317 "version": "0.0.1"
319 "value": {
320 "key": {
321 "name": "CDSCreateSubscriptionPayloadType",
322 "version": "0.0.1"
324 "UUID": "8350ac5e-c157-38b9-9614-a0f93a830e60",
325 "description": "Generated description for concept referred to by key \"CDSCreateSubscriptionPayloadType:0.0.1\""
329 "key": {
330 "name": "CDSDeleteSubscriptionPayloadType",
331 "version": "0.0.1"
333 "value": {
334 "key": {
335 "name": "CDSDeleteSubscriptionPayloadType",
336 "version": "0.0.1"
338 "UUID": "12658406-9147-3c9d-a38c-5ad5e30b092b",
339 "description": "Generated description for concept referred to by key \"CDSDeleteSubscriptionPayloadType:0.0.1\""
343 "key": {
344 "name": "CDSRequestCommonHeaderType",
345 "version": "0.0.1"
347 "value": {
348 "key": {
349 "name": "CDSRequestCommonHeaderType",
350 "version": "0.0.1"
352 "UUID": "35590ac0-062c-39f1-8786-b4ff716e30b1",
353 "description": "Generated description for concept referred to by key \"CDSRequestCommonHeaderType:0.0.1\""
357 "key": {
358 "name": "CDSResponseCommonHeaderType",
359 "version": "0.0.1"
361 "value": {
362 "key": {
363 "name": "CDSResponseCommonHeaderType",
364 "version": "0.0.1"
366 "UUID": "dd7e1805-885a-350b-aaf9-ed541321ae3c",
367 "description": "Generated description for concept referred to by key \"CDSResponseCommonHeaderType:0.0.1\""
371 "key": {
372 "name": "CDSResponseEvent",
373 "version": "0.0.1"
375 "value": {
376 "key": {
377 "name": "CDSResponseEvent",
378 "version": "0.0.1"
380 "UUID": "15161037-9ac8-3223-820f-4e743562a345",
381 "description": "Generated description for concept referred to by key \"CDSResponseEvent:0.0.1\""
385 "key": {
386 "name": "CDSResponsePayloadType",
387 "version": "0.0.1"
389 "value": {
390 "key": {
391 "name": "CDSResponsePayloadType",
392 "version": "0.0.1"
394 "UUID": "97dc5f58-25bb-3c20-8d53-fdb70d7ca256",
395 "description": "Generated description for concept referred to by key \"CDSResponsePayloadType:0.0.1\""
399 "key": {
400 "name": "CDSResponsePolicy",
401 "version": "0.0.1"
403 "value": {
404 "key": {
405 "name": "CDSResponsePolicy",
406 "version": "0.0.1"
408 "UUID": "c28b05a8-7436-3ac0-82ca-6d5fc18c9584",
409 "description": "Generated description for concept referred to by key \"CDSResponsePolicy:0.0.1\""
413 "key": {
414 "name": "CDSResponseStatusEvent",
415 "version": "0.0.1"
417 "value": {
418 "key": {
419 "name": "CDSResponseStatusEvent",
420 "version": "0.0.1"
422 "UUID": "7986e21b-32f7-302e-9554-31f21b673493",
423 "description": "Generated description for concept referred to by key \"CDSResponseStatusEvent:0.0.1\""
427 "key": {
428 "name": "CDSResponseStatusType",
429 "version": "0.0.1"
431 "value": {
432 "key": {
433 "name": "CDSResponseStatusType",
434 "version": "0.0.1"
436 "UUID": "92b8a2cf-344e-3ce1-8cc0-2b7d3cb695fa",
437 "description": "Generated description for concept referred to by key \"CDSResponseStatusType:0.0.1\""
441 "key": {
442 "name": "CDSResponseTask",
443 "version": "0.0.1"
445 "value": {
446 "key": {
447 "name": "CDSResponseTask",
448 "version": "0.0.1"
450 "UUID": "d22c78a5-272c-391d-8083-28588280caf9",
451 "description": "Generated description for concept referred to by key \"CDSResponseTask:0.0.1\""
455 "key": {
456 "name": "CreateSubscriptionPayloadEvent",
457 "version": "0.0.1"
459 "value": {
460 "key": {
461 "name": "CreateSubscriptionPayloadEvent",
462 "version": "0.0.1"
464 "UUID": "92162397-1a8e-3a3f-a469-d2af7700af4a",
465 "description": "Generated description for concept referred to by key \"CreateSubscriptionPayloadEvent:0.0.1\""
469 "key": {
470 "name": "CreateSubscriptionPayloadTask",
471 "version": "0.0.1"
473 "value": {
474 "key": {
475 "name": "CreateSubscriptionPayloadTask",
476 "version": "0.0.1"
478 "UUID": "bc0c69f0-52ed-38ea-b468-ae4a6fd1730d",
479 "description": "Generated description for concept referred to by key \"CreateSubscriptionPayloadTask:0.0.1\""
483 "key": {
484 "name": "CreateSubscriptionRequestEvent",
485 "version": "0.0.1"
487 "value": {
488 "key": {
489 "name": "CreateSubscriptionRequestEvent",
490 "version": "0.0.1"
492 "UUID": "7cfcf843-337e-3f41-b755-5043cb0a08fc",
493 "description": "Generated description for concept referred to by key \"CreateSubscriptionRequestEvent:0.0.1\""
497 "key": {
498 "name": "CreateSubscriptionRequestTask",
499 "version": "0.0.1"
501 "value": {
502 "key": {
503 "name": "CreateSubscriptionRequestTask",
504 "version": "0.0.1"
506 "UUID": "89cb75e9-f06c-30d3-b4ff-698d45f63869",
507 "description": "Generated description for concept referred to by key \"CreateSubscriptionRequestTask:0.0.1\""
511 "key": {
512 "name": "DeleteSubscriptionPayloadEvent",
513 "version": "0.0.1"
515 "value": {
516 "key": {
517 "name": "DeleteSubscriptionPayloadEvent",
518 "version": "0.0.1"
520 "UUID": "994fa441-04ab-33bb-832d-1cd12ab5d074",
521 "description": "Generated description for concept referred to by key \"DeleteSubscriptionPayloadEvent:0.0.1\""
525 "key": {
526 "name": "DeleteSubscriptionPayloadTask",
527 "version": "0.0.1"
529 "value": {
530 "key": {
531 "name": "DeleteSubscriptionPayloadTask",
532 "version": "0.0.1"
534 "UUID": "0f519117-5fea-3e4b-941f-8f778100465f",
535 "description": "Generated description for concept referred to by key \"DeleteSubscriptionPayloadTask:0.0.1\""
539 "key": {
540 "name": "DeleteSubscriptionRequestEvent",
541 "version": "0.0.1"
543 "value": {
544 "key": {
545 "name": "DeleteSubscriptionRequestEvent",
546 "version": "0.0.1"
548 "UUID": "15d618d8-1689-3a05-89a5-05efa9388f65",
549 "description": "Generated description for concept referred to by key \"DeleteSubscriptionRequestEvent:0.0.1\""
553 "key": {
554 "name": "DeleteSubscriptionRequestTask",
555 "version": "0.0.1"
557 "value": {
558 "key": {
559 "name": "DeleteSubscriptionRequestTask",
560 "version": "0.0.1"
562 "UUID": "acb772fe-d442-39e3-98f9-b1080caf4150",
563 "description": "Generated description for concept referred to by key \"DeleteSubscriptionRequestTask:0.0.1\""
567 "key": {
568 "name": "PMSubscriptionAlbum",
569 "version": "0.0.1"
571 "value": {
572 "key": {
573 "name": "PMSubscriptionAlbum",
574 "version": "0.0.1"
576 "UUID": "c2bd6f0d-6854-317a-9be2-97c08338428c",
577 "description": "Generated description for concept referred to by key \"PMSubscriptionAlbum:0.0.1\""
581 "key": {
582 "name": "PMSubscriptionOutputEvent",
583 "version": "0.0.1"
585 "value": {
586 "key": {
587 "name": "PMSubscriptionOutputEvent",
588 "version": "0.0.1"
590 "UUID": "992b7819-9f69-3aa0-bb0f-6e45ea15ce05",
591 "description": "Generated description for concept referred to by key \"PMSubscriptionOutputEvent:0.0.1\""
595 "key": {
596 "name": "PMSubscriptionType",
597 "version": "0.0.1"
599 "value": {
600 "key": {
601 "name": "PMSubscriptionType",
602 "version": "0.0.1"
604 "UUID": "73c1c397-4fc3-357f-93b6-a8ad707fbaae",
605 "description": "Generated description for concept referred to by key \"PMSubscriptionType:0.0.1\""
609 "key": {
610 "name": "ReceiveEventPolicy",
611 "version": "0.0.1"
613 "value": {
614 "key": {
615 "name": "ReceiveEventPolicy",
616 "version": "0.0.1"
618 "UUID": "568b7345-9de1-36d3-b6a3-9b857e6809a1",
619 "description": "Generated description for concept referred to by key \"ReceiveEventPolicy:0.0.1\""
623 "key": {
624 "name": "ReceivePMSubscriptionTask",
625 "version": "0.0.1"
627 "value": {
628 "key": {
629 "name": "ReceivePMSubscriptionTask",
630 "version": "0.0.1"
632 "UUID": "6c1c6c45-26e0-3591-94bf-679d20e283f4",
633 "description": "Generated description for concept referred to by key \"ReceivePMSubscriptionTask:0.0.1\""
637 "key": {
638 "name": "SimpleIntType",
639 "version": "0.0.1"
641 "value": {
642 "key": {
643 "name": "SimpleIntType",
644 "version": "0.0.1"
646 "UUID": "153791fd-ae0a-36a7-88a5-309a7936415d",
647 "description": "Generated description for concept referred to by key \"SimpleIntType:0.0.1\""
651 "key": {
652 "name": "SimpleStringType",
653 "version": "0.0.1"
655 "value": {
656 "key": {
657 "name": "SimpleStringType",
658 "version": "0.0.1"
660 "UUID": "8a4957cf-9493-3a76-8c22-a208e23259af",
661 "description": "Generated description for concept referred to by key \"SimpleStringType:0.0.1\""
665 "key": {
666 "name": "SubscriptionStatusType",
667 "version": "0.0.1"
669 "value": {
670 "key": {
671 "name": "SubscriptionStatusType",
672 "version": "0.0.1"
674 "UUID": "597643b1-9db1-31ce-85d0-e1c63c43b30b",
675 "description": "Generated description for concept referred to by key \"SubscriptionStatusType:0.0.1\""
679 "key": {
680 "name": "SubscriptionType",
681 "version": "0.0.1"
683 "value": {
684 "key": {
685 "name": "SubscriptionType",
686 "version": "0.0.1"
688 "UUID": "184547bb-7d64-3cb2-a273-d7185102c5ce",
689 "description": "Generated description for concept referred to by key \"SubscriptionType:0.0.1\""
693 "key": {
694 "name": "UUIDType",
695 "version": "0.0.1"
697 "value": {
698 "key": {
699 "name": "UUIDType",
700 "version": "0.0.1"
702 "UUID": "6a8cc68e-dfc8-3403-9c6d-071c886b319c",
703 "description": "Generated description for concept referred to by key \"UUIDType:0.0.1\""
707 "key": {
708 "name": "testPolicyB",
709 "version": "0.0.1"
711 "value": {
712 "key": {
713 "name": "testPolicyB",
714 "version": "0.0.1"
716 "UUID": "ead590a3-ba2e-3a01-b6e9-9329f5c8fee1",
717 "description": "Generated description for concept referred to by key \"testPolicyB:0.0.1\""
723 "policies": {
724 "key": {
725 "name": "APEXgRPCPolicy_Policies",
726 "version": "0.0.1"
728 "policyMap": {
729 "entry": [
731 "key": {
732 "name": "CDSResponsePolicy",
733 "version": "0.0.1"
735 "value": {
736 "policyKey": {
737 "name": "CDSResponsePolicy",
738 "version": "0.0.1"
740 "template": "Freestyle",
741 "state": {
742 "entry": [
744 "key": "CDSResponseState",
745 "value": {
746 "stateKey": {
747 "parentKeyName": "CDSResponsePolicy",
748 "parentKeyVersion": "0.0.1",
749 "parentLocalName": "NULL",
750 "localName": "CDSResponseState"
752 "trigger": {
753 "name": "CDSResponseEvent",
754 "version": "0.0.1"
756 "stateOutputs": {
757 "entry": [
759 "key": "ResponseOutput",
760 "value": {
761 "key": {
762 "parentKeyName": "CDSResponsePolicy",
763 "parentKeyVersion": "0.0.1",
764 "parentLocalName": "CDSResponseState",
765 "localName": "ResponseOutput"
767 "outgoingEvent": {
768 "name": "CDSResponseStatusEvent",
769 "version": "0.0.1"
771 "nextState": {
772 "parentKeyName": "NULL",
773 "parentKeyVersion": "0.0.0",
774 "parentLocalName": "NULL",
775 "localName": "NULL"
781 "contextAlbumReference": [],
782 "taskSelectionLogic": {
783 "key": "NULL",
784 "logicFlavour": "UNDEFINED",
785 "logic": ""
787 "stateFinalizerLogicMap": {
788 "entry": []
790 "defaultTask": {
791 "name": "CDSResponseTask",
792 "version": "0.0.1"
794 "taskReferences": {
795 "entry": [
797 "key": {
798 "name": "CDSResponseTask",
799 "version": "0.0.1"
801 "value": {
802 "key": {
803 "parentKeyName": "CDSResponsePolicy",
804 "parentKeyVersion": "0.0.1",
805 "parentLocalName": "CDSResponseState",
806 "localName": "CDSResponsePolicy"
808 "outputType": "DIRECT",
809 "output": {
810 "parentKeyName": "CDSResponsePolicy",
811 "parentKeyVersion": "0.0.1",
812 "parentLocalName": "CDSResponseState",
813 "localName": "ResponseOutput"
823 "firstState": "CDSResponseState"
827 "key": {
828 "name": "ReceiveEventPolicy",
829 "version": "0.0.1"
831 "value": {
832 "policyKey": {
833 "name": "ReceiveEventPolicy",
834 "version": "0.0.1"
836 "template": "Freestyle",
837 "state": {
838 "entry": [
840 "key": "CreateOrDeleteState",
841 "value": {
842 "stateKey": {
843 "parentKeyName": "ReceiveEventPolicy",
844 "parentKeyVersion": "0.0.1",
845 "parentLocalName": "NULL",
846 "localName": "CreateOrDeleteState"
848 "trigger": {
849 "name": "PMSubscriptionOutputEvent",
850 "version": "0.0.1"
852 "stateOutputs": {
853 "entry": [
855 "key": "CreateSubscriptionPayload",
856 "value": {
857 "key": {
858 "parentKeyName": "ReceiveEventPolicy",
859 "parentKeyVersion": "0.0.1",
860 "parentLocalName": "CreateOrDeleteState",
861 "localName": "CreateSubscriptionPayload"
863 "outgoingEvent": {
864 "name": "CreateSubscriptionPayloadEvent",
865 "version": "0.0.1"
867 "nextState": {
868 "parentKeyName": "ReceiveEventPolicy",
869 "parentKeyVersion": "0.0.1",
870 "parentLocalName": "NULL",
871 "localName": "CreateSubscription"
876 "key": "DeleteSubscriptionPayload",
877 "value": {
878 "key": {
879 "parentKeyName": "ReceiveEventPolicy",
880 "parentKeyVersion": "0.0.1",
881 "parentLocalName": "CreateOrDeleteState",
882 "localName": "DeleteSubscriptionPayload"
884 "outgoingEvent": {
885 "name": "DeleteSubscriptionPayloadEvent",
886 "version": "0.0.1"
888 "nextState": {
889 "parentKeyName": "ReceiveEventPolicy",
890 "parentKeyVersion": "0.0.1",
891 "parentLocalName": "NULL",
892 "localName": "DeleteSubscription"
898 "contextAlbumReference": [
900 "name": "PMSubscriptionAlbum",
901 "version": "0.0.1"
904 "taskSelectionLogic": {
905 "key": "TaskSelectionLogic",
906 "logicFlavour": "JAVASCRIPT",
907 "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;"
909 "stateFinalizerLogicMap": {
910 "entry": []
912 "defaultTask": {
913 "name": "CreateSubscriptionPayloadTask",
914 "version": "0.0.1"
916 "taskReferences": {
917 "entry": [
919 "key": {
920 "name": "CreateSubscriptionPayloadTask",
921 "version": "0.0.1"
923 "value": {
924 "key": {
925 "parentKeyName": "ReceiveEventPolicy",
926 "parentKeyVersion": "0.0.1",
927 "parentLocalName": "CreateOrDeleteState",
928 "localName": "ReceiveEventPolicy"
930 "outputType": "DIRECT",
931 "output": {
932 "parentKeyName": "ReceiveEventPolicy",
933 "parentKeyVersion": "0.0.1",
934 "parentLocalName": "CreateOrDeleteState",
935 "localName": "CreateSubscriptionPayload"
940 "key": {
941 "name": "DeleteSubscriptionPayloadTask",
942 "version": "0.0.1"
944 "value": {
945 "key": {
946 "parentKeyName": "ReceiveEventPolicy",
947 "parentKeyVersion": "0.0.1",
948 "parentLocalName": "CreateOrDeleteState",
949 "localName": "ReceiveEventPolicy"
951 "outputType": "DIRECT",
952 "output": {
953 "parentKeyName": "ReceiveEventPolicy",
954 "parentKeyVersion": "0.0.1",
955 "parentLocalName": "CreateOrDeleteState",
956 "localName": "DeleteSubscriptionPayload"
965 "key": "CreateSubscription",
966 "value": {
967 "stateKey": {
968 "parentKeyName": "ReceiveEventPolicy",
969 "parentKeyVersion": "0.0.1",
970 "parentLocalName": "NULL",
971 "localName": "CreateSubscription"
973 "trigger": {
974 "name": "CreateSubscriptionPayloadEvent",
975 "version": "0.0.1"
977 "stateOutputs": {
978 "entry": [
980 "key": "IssueCreateSubscriptionRequestOutput",
981 "value": {
982 "key": {
983 "parentKeyName": "ReceiveEventPolicy",
984 "parentKeyVersion": "0.0.1",
985 "parentLocalName": "CreateSubscription",
986 "localName": "IssueCreateSubscriptionRequestOutput"
988 "outgoingEvent": {
989 "name": "CreateSubscriptionRequestEvent",
990 "version": "0.0.1"
992 "nextState": {
993 "parentKeyName": "NULL",
994 "parentKeyVersion": "0.0.0",
995 "parentLocalName": "NULL",
996 "localName": "NULL"
1002 "contextAlbumReference": [
1004 "name": "PMSubscriptionAlbum",
1005 "version": "0.0.1"
1008 "taskSelectionLogic": {
1009 "key": "NULL",
1010 "logicFlavour": "UNDEFINED",
1011 "logic": ""
1013 "stateFinalizerLogicMap": {
1014 "entry": []
1016 "defaultTask": {
1017 "name": "CreateSubscriptionRequestTask",
1018 "version": "0.0.1"
1020 "taskReferences": {
1021 "entry": [
1023 "key": {
1024 "name": "CreateSubscriptionRequestTask",
1025 "version": "0.0.1"
1027 "value": {
1028 "key": {
1029 "parentKeyName": "ReceiveEventPolicy",
1030 "parentKeyVersion": "0.0.1",
1031 "parentLocalName": "CreateSubscription",
1032 "localName": "ReceiveEventPolicy"
1034 "outputType": "DIRECT",
1035 "output": {
1036 "parentKeyName": "ReceiveEventPolicy",
1037 "parentKeyVersion": "0.0.1",
1038 "parentLocalName": "CreateSubscription",
1039 "localName": "IssueCreateSubscriptionRequestOutput"
1048 "key": "DeleteSubscription",
1049 "value": {
1050 "stateKey": {
1051 "parentKeyName": "ReceiveEventPolicy",
1052 "parentKeyVersion": "0.0.1",
1053 "parentLocalName": "NULL",
1054 "localName": "DeleteSubscription"
1056 "trigger": {
1057 "name": "DeleteSubscriptionPayloadEvent",
1058 "version": "0.0.1"
1060 "stateOutputs": {
1061 "entry": [
1063 "key": "IssueDeleteSubscriptionRequestOutput",
1064 "value": {
1065 "key": {
1066 "parentKeyName": "ReceiveEventPolicy",
1067 "parentKeyVersion": "0.0.1",
1068 "parentLocalName": "DeleteSubscription",
1069 "localName": "IssueDeleteSubscriptionRequestOutput"
1071 "outgoingEvent": {
1072 "name": "DeleteSubscriptionRequestEvent",
1073 "version": "0.0.1"
1075 "nextState": {
1076 "parentKeyName": "NULL",
1077 "parentKeyVersion": "0.0.0",
1078 "parentLocalName": "NULL",
1079 "localName": "NULL"
1085 "contextAlbumReference": [
1087 "name": "PMSubscriptionAlbum",
1088 "version": "0.0.1"
1091 "taskSelectionLogic": {
1092 "key": "NULL",
1093 "logicFlavour": "UNDEFINED",
1094 "logic": ""
1096 "stateFinalizerLogicMap": {
1097 "entry": []
1099 "defaultTask": {
1100 "name": "DeleteSubscriptionRequestTask",
1101 "version": "0.0.1"
1103 "taskReferences": {
1104 "entry": [
1106 "key": {
1107 "name": "DeleteSubscriptionRequestTask",
1108 "version": "0.0.1"
1110 "value": {
1111 "key": {
1112 "parentKeyName": "ReceiveEventPolicy",
1113 "parentKeyVersion": "0.0.1",
1114 "parentLocalName": "DeleteSubscription",
1115 "localName": "ReceiveEventPolicy"
1117 "outputType": "DIRECT",
1118 "output": {
1119 "parentKeyName": "ReceiveEventPolicy",
1120 "parentKeyVersion": "0.0.1",
1121 "parentLocalName": "DeleteSubscription",
1122 "localName": "IssueDeleteSubscriptionRequestOutput"
1131 "key": "ReceiveSubscriptionState",
1132 "value": {
1133 "stateKey": {
1134 "parentKeyName": "ReceiveEventPolicy",
1135 "parentKeyVersion": "0.0.1",
1136 "parentLocalName": "NULL",
1137 "localName": "ReceiveSubscriptionState"
1139 "trigger": {
1140 "name": "testPolicyB",
1141 "version": "0.0.1"
1143 "stateOutputs": {
1144 "entry": [
1146 "key": "ReceivePMSubscriptionOutput",
1147 "value": {
1148 "key": {
1149 "parentKeyName": "ReceiveEventPolicy",
1150 "parentKeyVersion": "0.0.1",
1151 "parentLocalName": "ReceiveSubscriptionState",
1152 "localName": "ReceivePMSubscriptionOutput"
1154 "outgoingEvent": {
1155 "name": "PMSubscriptionOutputEvent",
1156 "version": "0.0.1"
1158 "nextState": {
1159 "parentKeyName": "ReceiveEventPolicy",
1160 "parentKeyVersion": "0.0.1",
1161 "parentLocalName": "NULL",
1162 "localName": "CreateOrDeleteState"
1168 "contextAlbumReference": [
1170 "name": "PMSubscriptionAlbum",
1171 "version": "0.0.1"
1174 "taskSelectionLogic": {
1175 "key": "NULL",
1176 "logicFlavour": "UNDEFINED",
1177 "logic": ""
1179 "stateFinalizerLogicMap": {
1180 "entry": []
1182 "defaultTask": {
1183 "name": "ReceivePMSubscriptionTask",
1184 "version": "0.0.1"
1186 "taskReferences": {
1187 "entry": [
1189 "key": {
1190 "name": "ReceivePMSubscriptionTask",
1191 "version": "0.0.1"
1193 "value": {
1194 "key": {
1195 "parentKeyName": "ReceiveEventPolicy",
1196 "parentKeyVersion": "0.0.1",
1197 "parentLocalName": "ReceiveSubscriptionState",
1198 "localName": "ReceiveEventPolicy"
1200 "outputType": "DIRECT",
1201 "output": {
1202 "parentKeyName": "ReceiveEventPolicy",
1203 "parentKeyVersion": "0.0.1",
1204 "parentLocalName": "ReceiveSubscriptionState",
1205 "localName": "ReceivePMSubscriptionOutput"
1215 "firstState": "ReceiveSubscriptionState"
1221 "tasks": {
1222 "key": {
1223 "name": "APEXgRPCPolicy_Tasks",
1224 "version": "0.0.1"
1226 "taskMap": {
1227 "entry": [
1229 "key": {
1230 "name": "CDSResponseTask",
1231 "version": "0.0.1"
1233 "value": {
1234 "key": {
1235 "name": "CDSResponseTask",
1236 "version": "0.0.1"
1238 "inputFields": {
1239 "entry": [
1241 "key": "actionIdentifiers",
1242 "value": {
1243 "key": "actionIdentifiers",
1244 "fieldSchemaKey": {
1245 "name": "CDSActionIdentifiersType",
1246 "version": "0.0.1"
1248 "optional": false
1252 "key": "commonHeader",
1253 "value": {
1254 "key": "commonHeader",
1255 "fieldSchemaKey": {
1256 "name": "CDSResponseCommonHeaderType",
1257 "version": "0.0.1"
1259 "optional": false
1263 "key": "payload",
1264 "value": {
1265 "key": "payload",
1266 "fieldSchemaKey": {
1267 "name": "CDSResponsePayloadType",
1268 "version": "0.0.1"
1270 "optional": false
1274 "key": "status",
1275 "value": {
1276 "key": "status",
1277 "fieldSchemaKey": {
1278 "name": "CDSResponseStatusType",
1279 "version": "0.0.1"
1281 "optional": false
1286 "outputFields": {
1287 "entry": [
1289 "key": "status",
1290 "value": {
1291 "key": "status",
1292 "fieldSchemaKey": {
1293 "name": "SubscriptionStatusType",
1294 "version": "0.0.1"
1296 "optional": false
1301 "taskParameters": {
1302 "entry": []
1304 "contextAlbumReference": [
1306 "name": "PMSubscriptionAlbum",
1307 "version": "0.0.1"
1310 "taskLogic": {
1311 "key": "TaskLogic",
1312 "logicFlavour": "JAVASCRIPT",
1313 "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;"
1318 "key": {
1319 "name": "CreateSubscriptionPayloadTask",
1320 "version": "0.0.1"
1322 "value": {
1323 "key": {
1324 "name": "CreateSubscriptionPayloadTask",
1325 "version": "0.0.1"
1327 "inputFields": {
1328 "entry": [
1330 "key": "albumID",
1331 "value": {
1332 "key": "albumID",
1333 "fieldSchemaKey": {
1334 "name": "UUIDType",
1335 "version": "0.0.1"
1337 "optional": false
1342 "outputFields": {
1343 "entry": [
1345 "key": "albumID",
1346 "value": {
1347 "key": "albumID",
1348 "fieldSchemaKey": {
1349 "name": "UUIDType",
1350 "version": "0.0.1"
1352 "optional": false
1356 "key": "payload",
1357 "value": {
1358 "key": "payload",
1359 "fieldSchemaKey": {
1360 "name": "CDSCreateSubscriptionPayloadType",
1361 "version": "0.0.1"
1363 "optional": false
1368 "taskParameters": {
1369 "entry": []
1371 "contextAlbumReference": [
1373 "name": "PMSubscriptionAlbum",
1374 "version": "0.0.1"
1377 "taskLogic": {
1378 "key": "TaskLogic",
1379 "logicFlavour": "JAVASCRIPT",
1380 "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;"
1385 "key": {
1386 "name": "CreateSubscriptionRequestTask",
1387 "version": "0.0.1"
1389 "value": {
1390 "key": {
1391 "name": "CreateSubscriptionRequestTask",
1392 "version": "0.0.1"
1394 "inputFields": {
1395 "entry": [
1397 "key": "albumID",
1398 "value": {
1399 "key": "albumID",
1400 "fieldSchemaKey": {
1401 "name": "UUIDType",
1402 "version": "0.0.1"
1404 "optional": false
1408 "key": "payload",
1409 "value": {
1410 "key": "payload",
1411 "fieldSchemaKey": {
1412 "name": "CDSCreateSubscriptionPayloadType",
1413 "version": "0.0.1"
1415 "optional": false
1420 "outputFields": {
1421 "entry": [
1423 "key": "actionIdentifiers",
1424 "value": {
1425 "key": "actionIdentifiers",
1426 "fieldSchemaKey": {
1427 "name": "CDSActionIdentifiersType",
1428 "version": "0.0.1"
1430 "optional": false
1434 "key": "commonHeader",
1435 "value": {
1436 "key": "commonHeader",
1437 "fieldSchemaKey": {
1438 "name": "CDSRequestCommonHeaderType",
1439 "version": "0.0.1"
1441 "optional": false
1445 "key": "payload",
1446 "value": {
1447 "key": "payload",
1448 "fieldSchemaKey": {
1449 "name": "CDSCreateSubscriptionPayloadType",
1450 "version": "0.0.1"
1452 "optional": false
1457 "taskParameters": {
1458 "entry": []
1460 "contextAlbumReference": [
1462 "name": "PMSubscriptionAlbum",
1463 "version": "0.0.1"
1466 "taskLogic": {
1467 "key": "TaskLogic",
1468 "logicFlavour": "JAVASCRIPT",
1469 "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;"
1474 "key": {
1475 "name": "DeleteSubscriptionPayloadTask",
1476 "version": "0.0.1"
1478 "value": {
1479 "key": {
1480 "name": "DeleteSubscriptionPayloadTask",
1481 "version": "0.0.1"
1483 "inputFields": {
1484 "entry": [
1486 "key": "albumID",
1487 "value": {
1488 "key": "albumID",
1489 "fieldSchemaKey": {
1490 "name": "UUIDType",
1491 "version": "0.0.1"
1493 "optional": false
1498 "outputFields": {
1499 "entry": [
1501 "key": "albumID",
1502 "value": {
1503 "key": "albumID",
1504 "fieldSchemaKey": {
1505 "name": "UUIDType",
1506 "version": "0.0.1"
1508 "optional": false
1512 "key": "payload",
1513 "value": {
1514 "key": "payload",
1515 "fieldSchemaKey": {
1516 "name": "CDSDeleteSubscriptionPayloadType",
1517 "version": "0.0.1"
1519 "optional": false
1524 "taskParameters": {
1525 "entry": []
1527 "contextAlbumReference": [
1529 "name": "PMSubscriptionAlbum",
1530 "version": "0.0.1"
1533 "taskLogic": {
1534 "key": "TaskLogic",
1535 "logicFlavour": "JAVASCRIPT",
1536 "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;"
1541 "key": {
1542 "name": "DeleteSubscriptionRequestTask",
1543 "version": "0.0.1"
1545 "value": {
1546 "key": {
1547 "name": "DeleteSubscriptionRequestTask",
1548 "version": "0.0.1"
1550 "inputFields": {
1551 "entry": [
1553 "key": "albumID",
1554 "value": {
1555 "key": "albumID",
1556 "fieldSchemaKey": {
1557 "name": "UUIDType",
1558 "version": "0.0.1"
1560 "optional": false
1564 "key": "payload",
1565 "value": {
1566 "key": "payload",
1567 "fieldSchemaKey": {
1568 "name": "CDSDeleteSubscriptionPayloadType",
1569 "version": "0.0.1"
1571 "optional": false
1576 "outputFields": {
1577 "entry": [
1579 "key": "actionIdentifiers",
1580 "value": {
1581 "key": "actionIdentifiers",
1582 "fieldSchemaKey": {
1583 "name": "CDSActionIdentifiersType",
1584 "version": "0.0.1"
1586 "optional": false
1590 "key": "commonHeader",
1591 "value": {
1592 "key": "commonHeader",
1593 "fieldSchemaKey": {
1594 "name": "CDSRequestCommonHeaderType",
1595 "version": "0.0.1"
1597 "optional": false
1601 "key": "payload",
1602 "value": {
1603 "key": "payload",
1604 "fieldSchemaKey": {
1605 "name": "CDSDeleteSubscriptionPayloadType",
1606 "version": "0.0.1"
1608 "optional": false
1613 "taskParameters": {
1614 "entry": []
1616 "contextAlbumReference": [
1618 "name": "PMSubscriptionAlbum",
1619 "version": "0.0.1"
1622 "taskLogic": {
1623 "key": "TaskLogic",
1624 "logicFlavour": "JAVASCRIPT",
1625 "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;"
1630 "key": {
1631 "name": "ReceivePMSubscriptionTask",
1632 "version": "0.0.1"
1634 "value": {
1635 "key": {
1636 "name": "ReceivePMSubscriptionTask",
1637 "version": "0.0.1"
1639 "inputFields": {
1640 "entry": [
1642 "key": "changeType",
1643 "value": {
1644 "key": "changeType",
1645 "fieldSchemaKey": {
1646 "name": "SimpleStringType",
1647 "version": "0.0.1"
1649 "optional": false
1653 "key": "closedLoopControlName",
1654 "value": {
1655 "key": "closedLoopControlName",
1656 "fieldSchemaKey": {
1657 "name": "SimpleStringType",
1658 "version": "0.0.1"
1660 "optional": false
1664 "key": "nfName",
1665 "value": {
1666 "key": "nfName",
1667 "fieldSchemaKey": {
1668 "name": "SimpleStringType",
1669 "version": "0.0.1"
1671 "optional": false
1675 "key": "policyName",
1676 "value": {
1677 "key": "policyName",
1678 "fieldSchemaKey": {
1679 "name": "SimpleStringType",
1680 "version": "0.0.1"
1682 "optional": false
1686 "key": "subscription",
1687 "value": {
1688 "key": "subscription",
1689 "fieldSchemaKey": {
1690 "name": "SubscriptionType",
1691 "version": "0.0.1"
1693 "optional": false
1698 "outputFields": {
1699 "entry": [
1701 "key": "albumID",
1702 "value": {
1703 "key": "albumID",
1704 "fieldSchemaKey": {
1705 "name": "UUIDType",
1706 "version": "0.0.1"
1708 "optional": false
1713 "taskParameters": {
1714 "entry": []
1716 "contextAlbumReference": [
1718 "name": "PMSubscriptionAlbum",
1719 "version": "0.0.1"
1722 "taskLogic": {
1723 "key": "TaskLogic",
1724 "logicFlavour": "JAVASCRIPT",
1725 "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;"
1732 "events": {
1733 "key": {
1734 "name": "APEXgRPCPolicy_Events",
1735 "version": "0.0.1"
1737 "eventMap": {
1738 "entry": [
1740 "key": {
1741 "name": "CDSResponseEvent",
1742 "version": "0.0.1"
1744 "value": {
1745 "key": {
1746 "name": "CDSResponseEvent",
1747 "version": "0.0.1"
1749 "nameSpace": "org.onap.policy.apex.onap.pmcontrol",
1750 "source": "CDS",
1751 "target": "APEX",
1752 "parameter": {
1753 "entry": [
1755 "key": "actionIdentifiers",
1756 "value": {
1757 "key": "actionIdentifiers",
1758 "fieldSchemaKey": {
1759 "name": "CDSActionIdentifiersType",
1760 "version": "0.0.1"
1762 "optional": false
1766 "key": "commonHeader",
1767 "value": {
1768 "key": "commonHeader",
1769 "fieldSchemaKey": {
1770 "name": "CDSResponseCommonHeaderType",
1771 "version": "0.0.1"
1773 "optional": false
1777 "key": "payload",
1778 "value": {
1779 "key": "payload",
1780 "fieldSchemaKey": {
1781 "name": "CDSResponsePayloadType",
1782 "version": "0.0.1"
1784 "optional": false
1788 "key": "status",
1789 "value": {
1790 "key": "status",
1791 "fieldSchemaKey": {
1792 "name": "CDSResponseStatusType",
1793 "version": "0.0.1"
1795 "optional": false
1803 "key": {
1804 "name": "CDSResponseStatusEvent",
1805 "version": "0.0.1"
1807 "value": {
1808 "key": {
1809 "name": "CDSResponseStatusEvent",
1810 "version": "0.0.1"
1812 "nameSpace": "org.onap.policy.apex.onap.pmcontrol",
1813 "source": "APEX",
1814 "target": "DCAE",
1815 "parameter": {
1816 "entry": [
1818 "key": "status",
1819 "value": {
1820 "key": "status",
1821 "fieldSchemaKey": {
1822 "name": "SubscriptionStatusType",
1823 "version": "0.0.1"
1825 "optional": false
1833 "key": {
1834 "name": "CreateSubscriptionPayloadEvent",
1835 "version": "0.0.1"
1837 "value": {
1838 "key": {
1839 "name": "CreateSubscriptionPayloadEvent",
1840 "version": "0.0.1"
1842 "nameSpace": "org.onap.policy.apex.onap.pmcontrol",
1843 "source": "APEX",
1844 "target": "APEX",
1845 "parameter": {
1846 "entry": [
1848 "key": "albumID",
1849 "value": {
1850 "key": "albumID",
1851 "fieldSchemaKey": {
1852 "name": "UUIDType",
1853 "version": "0.0.1"
1855 "optional": false
1859 "key": "payload",
1860 "value": {
1861 "key": "payload",
1862 "fieldSchemaKey": {
1863 "name": "CDSCreateSubscriptionPayloadType",
1864 "version": "0.0.1"
1866 "optional": false
1874 "key": {
1875 "name": "CreateSubscriptionRequestEvent",
1876 "version": "0.0.1"
1878 "value": {
1879 "key": {
1880 "name": "CreateSubscriptionRequestEvent",
1881 "version": "0.0.1"
1883 "nameSpace": "org.onap.policy.apex.onap.pmcontrol",
1884 "source": "APEX",
1885 "target": "APEX",
1886 "parameter": {
1887 "entry": [
1889 "key": "actionIdentifiers",
1890 "value": {
1891 "key": "actionIdentifiers",
1892 "fieldSchemaKey": {
1893 "name": "CDSActionIdentifiersType",
1894 "version": "0.0.1"
1896 "optional": false
1900 "key": "commonHeader",
1901 "value": {
1902 "key": "commonHeader",
1903 "fieldSchemaKey": {
1904 "name": "CDSRequestCommonHeaderType",
1905 "version": "0.0.1"
1907 "optional": false
1911 "key": "payload",
1912 "value": {
1913 "key": "payload",
1914 "fieldSchemaKey": {
1915 "name": "CDSCreateSubscriptionPayloadType",
1916 "version": "0.0.1"
1918 "optional": false
1926 "key": {
1927 "name": "DeleteSubscriptionPayloadEvent",
1928 "version": "0.0.1"
1930 "value": {
1931 "key": {
1932 "name": "DeleteSubscriptionPayloadEvent",
1933 "version": "0.0.1"
1935 "nameSpace": "org.onap.policy.apex.onap.pmcontrol",
1936 "source": "APEX",
1937 "target": "APEX",
1938 "parameter": {
1939 "entry": [
1941 "key": "albumID",
1942 "value": {
1943 "key": "albumID",
1944 "fieldSchemaKey": {
1945 "name": "UUIDType",
1946 "version": "0.0.1"
1948 "optional": false
1952 "key": "payload",
1953 "value": {
1954 "key": "payload",
1955 "fieldSchemaKey": {
1956 "name": "CDSDeleteSubscriptionPayloadType",
1957 "version": "0.0.1"
1959 "optional": false
1967 "key": {
1968 "name": "DeleteSubscriptionRequestEvent",
1969 "version": "0.0.1"
1971 "value": {
1972 "key": {
1973 "name": "DeleteSubscriptionRequestEvent",
1974 "version": "0.0.1"
1976 "nameSpace": "org.onap.policy.apex.onap.pmcontrol",
1977 "source": "APEX",
1978 "target": "APEX",
1979 "parameter": {
1980 "entry": [
1982 "key": "actionIdentifiers",
1983 "value": {
1984 "key": "actionIdentifiers",
1985 "fieldSchemaKey": {
1986 "name": "CDSActionIdentifiersType",
1987 "version": "0.0.1"
1989 "optional": false
1993 "key": "commonHeader",
1994 "value": {
1995 "key": "commonHeader",
1996 "fieldSchemaKey": {
1997 "name": "CDSRequestCommonHeaderType",
1998 "version": "0.0.1"
2000 "optional": false
2004 "key": "payload",
2005 "value": {
2006 "key": "payload",
2007 "fieldSchemaKey": {
2008 "name": "CDSDeleteSubscriptionPayloadType",
2009 "version": "0.0.1"
2011 "optional": false
2019 "key": {
2020 "name": "PMSubscriptionOutputEvent",
2021 "version": "0.0.1"
2023 "value": {
2024 "key": {
2025 "name": "PMSubscriptionOutputEvent",
2026 "version": "0.0.1"
2028 "nameSpace": "org.onap.policy.apex.onap.pmcontrol",
2029 "source": "APEX",
2030 "target": "APEX",
2031 "parameter": {
2032 "entry": [
2034 "key": "albumID",
2035 "value": {
2036 "key": "albumID",
2037 "fieldSchemaKey": {
2038 "name": "UUIDType",
2039 "version": "0.0.1"
2041 "optional": false
2049 "key": {
2050 "name": "testPolicyB",
2051 "version": "0.0.1"
2053 "value": {
2054 "key": {
2055 "name": "testPolicyB",
2056 "version": "0.0.1"
2058 "nameSpace": "org.onap.policy.apex.onap.pmcontrol",
2059 "source": "DCAE",
2060 "target": "APEX",
2061 "parameter": {
2062 "entry": [
2064 "key": "changeType",
2065 "value": {
2066 "key": "changeType",
2067 "fieldSchemaKey": {
2068 "name": "SimpleStringType",
2069 "version": "0.0.1"
2071 "optional": false
2075 "key": "closedLoopControlName",
2076 "value": {
2077 "key": "closedLoopControlName",
2078 "fieldSchemaKey": {
2079 "name": "SimpleStringType",
2080 "version": "0.0.1"
2082 "optional": false
2086 "key": "nfName",
2087 "value": {
2088 "key": "nfName",
2089 "fieldSchemaKey": {
2090 "name": "SimpleStringType",
2091 "version": "0.0.1"
2093 "optional": false
2097 "key": "policyName",
2098 "value": {
2099 "key": "policyName",
2100 "fieldSchemaKey": {
2101 "name": "SimpleStringType",
2102 "version": "0.0.1"
2104 "optional": false
2108 "key": "subscription",
2109 "value": {
2110 "key": "subscription",
2111 "fieldSchemaKey": {
2112 "name": "SubscriptionType",
2113 "version": "0.0.1"
2115 "optional": false
2125 "albums": {
2126 "key": {
2127 "name": "APEXgRPCPolicy_Albums",
2128 "version": "0.0.1"
2130 "albums": {
2131 "entry": [
2133 "key": {
2134 "name": "PMSubscriptionAlbum",
2135 "version": "0.0.1"
2137 "value": {
2138 "key": {
2139 "name": "PMSubscriptionAlbum",
2140 "version": "0.0.1"
2142 "scope": "policy",
2143 "isWritable": true,
2144 "itemSchema": {
2145 "name": "PMSubscriptionType",
2146 "version": "0.0.1"
2153 "schemas": {
2154 "key": {
2155 "name": "APEXgRPCPolicy_Schemas",
2156 "version": "0.0.1"
2158 "schemas": {
2159 "entry": [
2161 "key": {
2162 "name": "CDSActionIdentifiersType",
2163 "version": "0.0.1"
2165 "value": {
2166 "key": {
2167 "name": "CDSActionIdentifiersType",
2168 "version": "0.0.1"
2170 "schemaFlavour": "Avro",
2171 "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}"
2175 "key": {
2176 "name": "CDSCreateSubscriptionPayloadType",
2177 "version": "0.0.1"
2179 "value": {
2180 "key": {
2181 "name": "CDSCreateSubscriptionPayloadType",
2182 "version": "0.0.1"
2184 "schemaFlavour": "Avro",
2185 "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}"
2189 "key": {
2190 "name": "CDSDeleteSubscriptionPayloadType",
2191 "version": "0.0.1"
2193 "value": {
2194 "key": {
2195 "name": "CDSDeleteSubscriptionPayloadType",
2196 "version": "0.0.1"
2198 "schemaFlavour": "Avro",
2199 "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}"
2203 "key": {
2204 "name": "CDSRequestCommonHeaderType",
2205 "version": "0.0.1"
2207 "value": {
2208 "key": {
2209 "name": "CDSRequestCommonHeaderType",
2210 "version": "0.0.1"
2212 "schemaFlavour": "Avro",
2213 "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}"
2217 "key": {
2218 "name": "CDSResponseCommonHeaderType",
2219 "version": "0.0.1"
2221 "value": {
2222 "key": {
2223 "name": "CDSResponseCommonHeaderType",
2224 "version": "0.0.1"
2226 "schemaFlavour": "Avro",
2227 "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}"
2231 "key": {
2232 "name": "CDSResponsePayloadType",
2233 "version": "0.0.1"
2235 "value": {
2236 "key": {
2237 "name": "CDSResponsePayloadType",
2238 "version": "0.0.1"
2240 "schemaFlavour": "Avro",
2241 "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}"
2245 "key": {
2246 "name": "CDSResponseStatusType",
2247 "version": "0.0.1"
2249 "value": {
2250 "key": {
2251 "name": "CDSResponseStatusType",
2252 "version": "0.0.1"
2254 "schemaFlavour": "Avro",
2255 "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}"
2259 "key": {
2260 "name": "PMSubscriptionType",
2261 "version": "0.0.1"
2263 "value": {
2264 "key": {
2265 "name": "PMSubscriptionType",
2266 "version": "0.0.1"
2268 "schemaFlavour": "Avro",
2269 "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}"
2273 "key": {
2274 "name": "SimpleIntType",
2275 "version": "0.0.1"
2277 "value": {
2278 "key": {
2279 "name": "SimpleIntType",
2280 "version": "0.0.1"
2282 "schemaFlavour": "Java",
2283 "schemaDefinition": "java.lang.Integer"
2287 "key": {
2288 "name": "SimpleStringType",
2289 "version": "0.0.1"
2291 "value": {
2292 "key": {
2293 "name": "SimpleStringType",
2294 "version": "0.0.1"
2296 "schemaFlavour": "Java",
2297 "schemaDefinition": "java.lang.String"
2301 "key": {
2302 "name": "SubscriptionStatusType",
2303 "version": "0.0.1"
2305 "value": {
2306 "key": {
2307 "name": "SubscriptionStatusType",
2308 "version": "0.0.1"
2310 "schemaFlavour": "Avro",
2311 "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}"
2315 "key": {
2316 "name": "SubscriptionType",
2317 "version": "0.0.1"
2319 "value": {
2320 "key": {
2321 "name": "SubscriptionType",
2322 "version": "0.0.1"
2324 "schemaFlavour": "Avro",
2325 "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}"
2329 "key": {
2330 "name": "UUIDType",
2331 "version": "0.0.1"
2333 "value": {
2334 "key": {
2335 "name": "UUIDType",
2336 "version": "0.0.1"
2338 "schemaFlavour": "Java",
2339 "schemaDefinition": "java.util.UUID"
2348 "eventOutputParameters": {
2349 "logOutputter": {
2350 "carrierTechnologyParameters": {
2351 "carrierTechnology": "FILE",
2352 "parameters": {
2353 "fileName": "outputevents.log"
2356 "eventProtocolParameters": {
2357 "eventProtocol": "JSON"
2360 "CDSRequestProducer": {
2361 "carrierTechnologyParameters": {
2362 "carrierTechnology": "GRPC",
2363 "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.grpc.GrpcCarrierTechnologyParameters",
2364 "parameters": {
2365 "host": "10.2.0.122",
2366 "port": 54322,
2367 "username": "ccsdkapps",
2368 "password": "ccsdkapps",
2369 "timeout": 60
2372 "eventProtocolParameters": {
2373 "eventProtocol": "JSON"
2375 "eventNameFilter": "(Create|Delete)SubscriptionRequestEvent",
2376 "requestorMode": true,
2377 "requestorPeer": "CDSRequestConsumer",
2378 "requestorTimeout": 500
2380 "CDSReplyProducer": {
2381 "carrierTechnologyParameters": {
2382 "carrierTechnology": "RESTCLIENT",
2383 "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restclient.RestClientCarrierTechnologyParameters",
2384 "parameters": {
2385 "url": "http://message-router:3904/events/POLICY-CL-MGT"
2388 "eventProtocolParameters": {
2389 "eventProtocol": "JSON"
2391 "eventNameFilter": "CDSResponseStatusEvent"
2394 "eventInputParameters": {
2395 "DCAEConsumer": {
2396 "carrierTechnologyParameters": {
2397 "carrierTechnology": "RESTCLIENT",
2398 "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restclient.RestClientCarrierTechnologyParameters",
2399 "parameters": {
2400 "url": "http://message-router:3904/events/unauthenticated.DCAE_CL_OUTPUT/cg1/c1?timeout=30000"
2403 "eventProtocolParameters": {
2404 "eventProtocol": "JSON",
2405 "parameters": {
2406 "nameAlias": "testPolicyB"
2409 "eventName": "testPolicyB",
2410 "eventNameFilter": "testPolicyB"
2412 "CDSRequestConsumer": {
2413 "carrierTechnologyParameters": {
2414 "carrierTechnology": "GRPC",
2415 "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.grpc.GrpcCarrierTechnologyParameters"
2417 "eventProtocolParameters": {
2418 "eventProtocol": "JSON"
2420 "eventName": "CDSResponseEvent",
2421 "eventNameFilter": "CDSResponseEvent",
2422 "requestorMode": true,
2423 "requestorPeer": "CDSRequestProducer",
2424 "requestorTimeout": 500
2428 "name": "operational.apex.stabilityTestDefaultDomain",
2429 "version": "1.0.0",
2430 "metadata": {
2431 "policy-id": "operational.apex.stabilityTestDefaultDomain",
2432 "policy-version": "1.0.0"
2438 "name": "ToscaServiceTemplateSimple",
2439 "version": "1.0.0",
2440 "metadata": {}
2442 <stringProp name="Argument.metadata">=</stringProp>
2446 <stringProp name="HTTPSampler.domain">${HOSTNAME}</stringProp>
2447 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
2448 <stringProp name="HTTPSampler.protocol">https</stringProp>
2449 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
2450 <stringProp name="HTTPSampler.path">/policy/api/v1/policies</stringProp>
2451 <stringProp name="HTTPSampler.method">POST</stringProp>
2452 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
2453 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
2454 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
2455 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
2456 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
2457 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
2458 <stringProp name="HTTPSampler.response_timeout"></stringProp>
2461 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
2462 <collectionProp name="Asserion.test_strings">
2463 <stringProp name="49586">200</stringProp>
2465 <stringProp name="Assertion.custom_message"></stringProp>
2466 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
2467 <boolProp name="Assertion.assume_success">false</boolProp>
2468 <intProp name="Assertion.test_type">1</intProp>
2469 </ResponseAssertion>
2472 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Deploy policy" enabled="true">
2473 <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
2474 <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
2475 <collectionProp name="Arguments.arguments">
2476 <elementProp name="" elementType="HTTPArgument">
2477 <boolProp name="HTTPArgument.always_encode">false</boolProp>
2478 <stringProp name="Argument.value">{
2479 "groups": [
2481 "name": "defaultGroup",
2482 "deploymentSubgroups": [
2484 "pdpType": "apex",
2485 "action": "POST",
2486 "policies": [
2488 "name": "operational.apex.stabilityTestDefaultDomain",
2489 "version": "1.0.0"
2497 <stringProp name="Argument.metadata">=</stringProp>
2501 <stringProp name="HTTPSampler.domain">${HOSTNAME}</stringProp>
2502 <stringProp name="HTTPSampler.port">${PAP_PORT}</stringProp>
2503 <stringProp name="HTTPSampler.protocol">https</stringProp>
2504 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
2505 <stringProp name="HTTPSampler.path">/policy/pap/v1/pdps/deployments/batch</stringProp>
2506 <stringProp name="HTTPSampler.method">POST</stringProp>
2507 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
2508 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
2509 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
2510 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
2511 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
2512 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
2513 <stringProp name="HTTPSampler.response_timeout"></stringProp>
2516 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
2517 <collectionProp name="Asserion.test_strings">
2518 <stringProp name="49588">202</stringProp>
2520 <stringProp name="Assertion.custom_message"></stringProp>
2521 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
2522 <boolProp name="Assertion.assume_success">false</boolProp>
2523 <intProp name="Assertion.test_type">1</intProp>
2524 </ResponseAssertion>
2528 <ThreadGroup guiclass="ThreadGroupGui" testclass="ThreadGroup" testname="Thread Group" enabled="true">
2529 <stringProp name="ThreadGroup.on_sample_error">continue</stringProp>
2530 <elementProp name="ThreadGroup.main_controller" elementType="LoopController" guiclass="LoopControlPanel" testclass="LoopController" testname="Loop Controller" enabled="true">
2531 <boolProp name="LoopController.continue_forever">false</boolProp>
2532 <intProp name="LoopController.loops">-1</intProp>
2534 <stringProp name="ThreadGroup.num_threads">${threads}</stringProp>
2535 <stringProp name="ThreadGroup.ramp_time">1</stringProp>
2536 <boolProp name="ThreadGroup.scheduler">true</boolProp>
2537 <stringProp name="ThreadGroup.duration">259200</stringProp>
2538 <stringProp name="ThreadGroup.delay"></stringProp>
2539 <boolProp name="ThreadGroup.same_user_on_next_iteration">true</boolProp>
2542 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Health Check" enabled="true">
2543 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
2544 <collectionProp name="Arguments.arguments"/>
2546 <stringProp name="HTTPSampler.domain">${HOSTNAME}</stringProp>
2547 <stringProp name="HTTPSampler.port">${APEX_PORT}</stringProp>
2548 <stringProp name="HTTPSampler.protocol">https</stringProp>
2549 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
2550 <stringProp name="HTTPSampler.path">/policy/apex-pdp/v1/healthcheck</stringProp>
2551 <stringProp name="HTTPSampler.method">GET</stringProp>
2552 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
2553 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
2554 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
2555 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
2556 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
2557 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
2558 <stringProp name="HTTPSampler.response_timeout"></stringProp>
2561 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
2562 <stringProp name="cacheKey">true</stringProp>
2563 <stringProp name="filename"></stringProp>
2564 <stringProp name="parameters"></stringProp>
2565 <stringProp name="script">import groovy.json.JsonSlurper;
2568 if (prev.getResponseCode() == '200') {
2569 def jsonSlurper = new JsonSlurper();
2570 res = jsonSlurper.parseText(prev.getResponseDataAsString());
2572 assert res instanceof Map;
2573 assert res.healthy == true;
2574 assert res.message == 'alive';
2577 <stringProp name="scriptLanguage">groovy</stringProp>
2581 <GenericController guiclass="LogicControllerGui" testclass="GenericController" testname="Test Controller" enabled="true"/>
2583 <SyncTimer guiclass="TestBeanGUI" testclass="SyncTimer" testname="Synchronizing Timer" enabled="false">
2584 <stringProp name="groupSize">${threads}</stringProp>
2585 <stringProp name="timeoutInMs">${threadsTimeOutInMs}</stringProp>
2588 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Send Input Event" enabled="true">
2589 <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
2590 <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
2591 <collectionProp name="Arguments.arguments">
2592 <elementProp name="" elementType="HTTPArgument">
2593 <boolProp name="HTTPArgument.always_encode">false</boolProp>
2594 <stringProp name="Argument.value">{
2595 "changeType": "CREATE",
2596 "closedLoopControlName": "test",
2597 "policyName": "test",
2598 "nfName": "pnf300",
2599 "subscription": {
2600 "subscriptionName": "testPolicyB",
2601 "administrativeState": "UNLOCKED",
2602 "fileBasedGP": 15,
2603 "fileLocation": "/pm/pm.xml",
2604 "measurementGroups": [
2606 "measurementGroup": {
2607 "measurementTypes": [
2609 "measurementType": "countera"
2612 "measurementType": "counterb"
2615 "managedObjectDNsBasic": [
2617 "DN": "dna"
2620 "DN": "dnb"
2626 "measurementGroup": {
2627 "measurementTypes": [
2629 "measurementType": "counterc"
2632 "measurementType": "counterd"
2635 "managedObjectDNsBasic": [
2637 "DN": "dnc"
2640 "DN": "dnd"
2648 <stringProp name="Argument.metadata">=</stringProp>
2652 <stringProp name="HTTPSampler.domain">${HOSTNAME}</stringProp>
2653 <stringProp name="HTTPSampler.port">${DMAAP_PORT}</stringProp>
2654 <stringProp name="HTTPSampler.protocol">http</stringProp>
2655 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
2656 <stringProp name="HTTPSampler.path">/events/unauthenticated.DCAE_CL_OUTPUT</stringProp>
2657 <stringProp name="HTTPSampler.method">POST</stringProp>
2658 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
2659 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
2660 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
2661 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
2662 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
2663 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
2664 <stringProp name="HTTPSampler.response_timeout"></stringProp>
2665 <stringProp name="TestPlan.comments">Send input event to apex-pdp</stringProp>
2668 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Assert Response Code" enabled="true">
2669 <collectionProp name="Asserion.test_strings">
2670 <stringProp name="49586">200</stringProp>
2672 <stringProp name="Assertion.custom_message"></stringProp>
2673 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
2674 <boolProp name="Assertion.assume_success">false</boolProp>
2675 <intProp name="Assertion.test_type">8</intProp>
2676 <stringProp name="Scope.variable">Response code</stringProp>
2677 <stringProp name="TestPlan.comments">Assert response code coming back from apex-pdp</stringProp>
2678 </ResponseAssertion>
2680 <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="WAIT" enabled="true">
2681 <stringProp name="ConstantTimer.delay">${wait}</stringProp>
2685 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get the ouput event response" enabled="true">
2686 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
2687 <collectionProp name="Arguments.arguments"/>
2689 <stringProp name="HTTPSampler.domain">${HOSTNAME}</stringProp>
2690 <stringProp name="HTTPSampler.port">${DMAAP_PORT}</stringProp>
2691 <stringProp name="HTTPSampler.protocol">http</stringProp>
2692 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
2693 <stringProp name="HTTPSampler.path">/events/POLICY-CL-MGT/cg${__threadNum}/c1?timeout=30000</stringProp>
2694 <stringProp name="HTTPSampler.method">GET</stringProp>
2695 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
2696 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
2697 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
2698 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
2699 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
2700 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
2701 <stringProp name="HTTPSampler.response_timeout"></stringProp>
2702 <stringProp name="TestPlan.comments">Check output event </stringProp>
2705 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Assert Response Code" enabled="true">
2706 <collectionProp name="Asserion.test_strings">
2707 <stringProp name="49586">200</stringProp>
2709 <stringProp name="Assertion.custom_message"></stringProp>
2710 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
2711 <boolProp name="Assertion.assume_success">false</boolProp>
2712 <intProp name="Assertion.test_type">8</intProp>
2713 <stringProp name="Scope.variable">Response code</stringProp>
2714 <stringProp name="TestPlan.comments">Assert response code coming back from apex-pdp</stringProp>
2715 </ResponseAssertion>
2717 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Assert Response Message" enabled="true">
2718 <collectionProp name="Asserion.test_strings">
2719 <stringProp name="1608759622">org.onap.policy.apex.onap.pmcontrol</stringProp>
2720 <stringProp name="1996002556">CREATE</stringProp>
2722 <stringProp name="Assertion.custom_message"></stringProp>
2723 <stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
2724 <boolProp name="Assertion.assume_success">false</boolProp>
2725 <intProp name="Assertion.test_type">2</intProp>
2726 <stringProp name="Scope.variable">Response code</stringProp>
2727 <stringProp name="TestPlan.comments">Assert response message coming back from apex-pdp</stringProp>
2728 </ResponseAssertion>
2730 <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="WAIT" enabled="false">
2731 <stringProp name="ConstantTimer.delay">${wait}</stringProp>
2737 <PostThreadGroup guiclass="PostThreadGroupGui" testclass="PostThreadGroup" testname="tearDown Thread Group" enabled="true">
2738 <stringProp name="ThreadGroup.on_sample_error">continue</stringProp>
2739 <elementProp name="ThreadGroup.main_controller" elementType="LoopController" guiclass="LoopControlPanel" testclass="LoopController" testname="Loop Controller" enabled="true">
2740 <boolProp name="LoopController.continue_forever">false</boolProp>
2741 <stringProp name="LoopController.loops">1</stringProp>
2743 <stringProp name="ThreadGroup.num_threads">1</stringProp>
2744 <stringProp name="ThreadGroup.ramp_time">1</stringProp>
2745 <boolProp name="ThreadGroup.scheduler">false</boolProp>
2746 <stringProp name="ThreadGroup.duration"></stringProp>
2747 <stringProp name="ThreadGroup.delay"></stringProp>
2748 <boolProp name="ThreadGroup.same_user_on_next_iteration">true</boolProp>
2751 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Un deploy policy" enabled="true">
2752 <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
2753 <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
2754 <collectionProp name="Arguments.arguments">
2755 <elementProp name="" elementType="HTTPArgument">
2756 <boolProp name="HTTPArgument.always_encode">false</boolProp>
2757 <stringProp name="Argument.value">{
2758 "groups": [
2760 "name": "defaultGroup",
2761 "deploymentSubgroups": [
2763 "pdpType": "apex",
2764 "action": "DELETE",
2765 "policies": [
2767 "name": "operational.apex.stabilityTestDefaultDomain",
2768 "version": "1.0.0"
2776 <stringProp name="Argument.metadata">=</stringProp>
2780 <stringProp name="HTTPSampler.domain">${HOSTNAME}</stringProp>
2781 <stringProp name="HTTPSampler.port">${PAP_PORT}</stringProp>
2782 <stringProp name="HTTPSampler.protocol">https</stringProp>
2783 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
2784 <stringProp name="HTTPSampler.path">/policy/pap/v1/pdps/deployments/batch</stringProp>
2785 <stringProp name="HTTPSampler.method">POST</stringProp>
2786 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
2787 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
2788 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
2789 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
2790 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
2791 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
2792 <stringProp name="HTTPSampler.response_timeout"></stringProp>
2795 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
2796 <collectionProp name="Asserion.test_strings">
2797 <stringProp name="49588">202</stringProp>
2799 <stringProp name="Assertion.custom_message"></stringProp>
2800 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
2801 <boolProp name="Assertion.assume_success">false</boolProp>
2802 <intProp name="Assertion.test_type">1</intProp>
2803 </ResponseAssertion>
2806 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete Policy" enabled="true">
2807 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
2808 <collectionProp name="Arguments.arguments"/>
2810 <stringProp name="HTTPSampler.domain">${HOSTNAME}</stringProp>
2811 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
2812 <stringProp name="HTTPSampler.protocol">https</stringProp>
2813 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
2814 <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>
2815 <stringProp name="HTTPSampler.method">DELETE</stringProp>
2816 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
2817 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
2818 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
2819 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
2820 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
2821 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
2822 <stringProp name="HTTPSampler.response_timeout"></stringProp>
2825 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
2826 <collectionProp name="Asserion.test_strings">
2827 <stringProp name="49586">200</stringProp>
2829 <stringProp name="Assertion.custom_message"></stringProp>
2830 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
2831 <boolProp name="Assertion.assume_success">false</boolProp>
2832 <intProp name="Assertion.test_type">1</intProp>
2833 </ResponseAssertion>
2837 <ResultCollector guiclass="SummaryReport" testclass="ResultCollector" testname="Summary Report" enabled="true">
2838 <boolProp name="ResultCollector.error_logging">false</boolProp>
2840 <name>saveConfig</name>
2841 <value class="SampleSaveConfiguration">
2843 <latency>true</latency>
2844 <timestamp>true</timestamp>
2845 <success>true</success>
2848 <message>true</message>
2849 <threadName>true</threadName>
2850 <dataType>true</dataType>
2851 <encoding>false</encoding>
2852 <assertions>true</assertions>
2853 <subresults>true</subresults>
2854 <responseData>false</responseData>
2855 <samplerData>false</samplerData>
2857 <fieldNames>true</fieldNames>
2858 <responseHeaders>false</responseHeaders>
2859 <requestHeaders>false</requestHeaders>
2860 <responseDataOnError>false</responseDataOnError>
2861 <saveAssertionResultsFailureMessage>true</saveAssertionResultsFailureMessage>
2862 <assertionsResultsToSave>0</assertionsResultsToSave>
2864 <sentBytes>true</sentBytes>
2865 <threadCounts>true</threadCounts>
2866 <idleTime>true</idleTime>
2867 <connectTime>true</connectTime>
2870 <stringProp name="filename">/home/adityap/apex_stability/Stability.log</stringProp>
2873 <ResultCollector guiclass="ViewResultsFullVisualizer" testclass="ResultCollector" testname="View Results Tree" enabled="true">
2874 <boolProp name="ResultCollector.error_logging">false</boolProp>
2876 <name>saveConfig</name>
2877 <value class="SampleSaveConfiguration">
2879 <latency>true</latency>
2880 <timestamp>true</timestamp>
2881 <success>true</success>
2884 <message>true</message>
2885 <threadName>true</threadName>
2886 <dataType>true</dataType>
2887 <encoding>false</encoding>
2888 <assertions>true</assertions>
2889 <subresults>true</subresults>
2890 <responseData>false</responseData>
2891 <samplerData>false</samplerData>
2893 <fieldNames>true</fieldNames>
2894 <responseHeaders>false</responseHeaders>
2895 <requestHeaders>false</requestHeaders>
2896 <responseDataOnError>false</responseDataOnError>
2897 <saveAssertionResultsFailureMessage>true</saveAssertionResultsFailureMessage>
2898 <assertionsResultsToSave>0</assertionsResultsToSave>
2900 <sentBytes>true</sentBytes>
2901 <threadCounts>true</threadCounts>
2902 <idleTime>true</idleTime>
2903 <connectTime>true</connectTime>
2906 <stringProp name="filename">/home/adityap/apex_stability/resultTree.log</stringProp>
2909 <ResultCollector guiclass="TableVisualizer" testclass="ResultCollector" testname="View Results in Table" enabled="true">
2910 <boolProp name="ResultCollector.error_logging">false</boolProp>
2912 <name>saveConfig</name>
2913 <value class="SampleSaveConfiguration">
2915 <latency>true</latency>
2916 <timestamp>true</timestamp>
2917 <success>true</success>
2920 <message>true</message>
2921 <threadName>true</threadName>
2922 <dataType>true</dataType>
2923 <encoding>false</encoding>
2924 <assertions>true</assertions>
2925 <subresults>true</subresults>
2926 <responseData>false</responseData>
2927 <samplerData>false</samplerData>
2929 <fieldNames>true</fieldNames>
2930 <responseHeaders>false</responseHeaders>
2931 <requestHeaders>false</requestHeaders>
2932 <responseDataOnError>false</responseDataOnError>
2933 <saveAssertionResultsFailureMessage>true</saveAssertionResultsFailureMessage>
2934 <assertionsResultsToSave>0</assertionsResultsToSave>
2936 <sentBytes>true</sentBytes>
2937 <threadCounts>true</threadCounts>
2938 <idleTime>true</idleTime>
2939 <connectTime>true</connectTime>
2942 <stringProp name="filename">/home/adityap/apex_stability/resultTable.log</stringProp>