ramverma | 78c6f58 | 2018-10-23 16:58:34 +0100 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8"?> |
aditya.puthuparambil | ff67d11 | 2020-06-02 16:22:59 +0100 | [diff] [blame^] | 2 | <!-- |
| 3 | ============LICENSE_START======================================================= |
| 4 | ONAP Apex-PDP |
| 5 | ================================================================================ |
| 6 | Copyright (C) 2020 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 |
| 11 | |
| 12 | http://www.apache.org/licenses/LICENSE-2.0 |
| 13 | |
| 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========================================================= |
| 20 | --> |
| 21 | <jmeterTestPlan version="1.2" properties="5.0" jmeter="5.2.1"> |
ramverma | 78c6f58 | 2018-10-23 16:58:34 +0100 | [diff] [blame] | 22 | <hashTree> |
| 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"/> |
| 30 | </elementProp> |
| 31 | <stringProp name="TestPlan.user_define_classpath"></stringProp> |
| 32 | </TestPlan> |
| 33 | <hashTree> |
| 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> |
| 39 | </elementProp> |
| 40 | <elementProp name="" elementType="Header"> |
| 41 | <stringProp name="Header.name">Accept</stringProp> |
| 42 | <stringProp name="Header.value">application/json</stringProp> |
| 43 | </elementProp> |
| 44 | </collectionProp> |
| 45 | </HeaderManager> |
| 46 | <hashTree/> |
aditya.puthuparambil | ff67d11 | 2020-06-02 16:22:59 +0100 | [diff] [blame^] | 47 | <ConfigTestElement guiclass="HttpDefaultsGui" testclass="ConfigTestElement" testname="HTTP Request Defaults" enabled="false"> |
ramverma | 78c6f58 | 2018-10-23 16:58:34 +0100 | [diff] [blame] | 48 | <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true"> |
| 49 | <collectionProp name="Arguments.arguments"/> |
| 50 | </elementProp> |
| 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> |
| 59 | </ConfigTestElement> |
| 60 | <hashTree/> |
| 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> |
aditya.puthuparambil | ff67d11 | 2020-06-02 16:22:59 +0100 | [diff] [blame^] | 65 | <stringProp name="Argument.value">${__P(threads,5)}</stringProp> |
ramverma | 78c6f58 | 2018-10-23 16:58:34 +0100 | [diff] [blame] | 66 | <stringProp name="Argument.metadata">=</stringProp> |
| 67 | </elementProp> |
| 68 | <elementProp name="threadsTimeOutInMs" elementType="Argument"> |
| 69 | <stringProp name="Argument.name">threadsTimeOutInMs</stringProp> |
aditya.puthuparambil | ff67d11 | 2020-06-02 16:22:59 +0100 | [diff] [blame^] | 70 | <stringProp name="Argument.value">${__P(threadsTimeOutInMs,150000)}</stringProp> |
ramverma | 78c6f58 | 2018-10-23 16:58:34 +0100 | [diff] [blame] | 71 | <stringProp name="Argument.metadata">=</stringProp> |
| 72 | </elementProp> |
| 73 | <elementProp name="wait" elementType="Argument"> |
| 74 | <stringProp name="Argument.name">wait</stringProp> |
aditya.puthuparambil | ff67d11 | 2020-06-02 16:22:59 +0100 | [diff] [blame^] | 75 | <stringProp name="Argument.value">${__P(wait,120000)}</stringProp> |
ramverma | 78c6f58 | 2018-10-23 16:58:34 +0100 | [diff] [blame] | 76 | <stringProp name="Argument.desc">Wait time between requests to apex-pdp</stringProp> |
| 77 | <stringProp name="Argument.metadata">=</stringProp> |
| 78 | </elementProp> |
aditya.puthuparambil | ff67d11 | 2020-06-02 16:22:59 +0100 | [diff] [blame^] | 79 | <elementProp name="PAP_PORT" elementType="Argument"> |
| 80 | <stringProp name="Argument.name">PAP_PORT</stringProp> |
| 81 | <stringProp name="Argument.value">${__P(PAP_PORT,32597)}</stringProp> |
| 82 | <stringProp name="Argument.metadata">=</stringProp> |
| 83 | </elementProp> |
| 84 | <elementProp name="API_PORT" elementType="Argument"> |
| 85 | <stringProp name="Argument.name">API_PORT</stringProp> |
| 86 | <stringProp name="Argument.value">${__P(API_PORT,32634)}</stringProp> |
| 87 | <stringProp name="Argument.metadata">=</stringProp> |
| 88 | </elementProp> |
| 89 | <elementProp name="APEX_PORT" elementType="Argument"> |
| 90 | <stringProp name="Argument.name">APEX_PORT</stringProp> |
| 91 | <stringProp name="Argument.value">${__P(APEX_PORT,31089)}</stringProp> |
| 92 | <stringProp name="Argument.metadata">=</stringProp> |
| 93 | </elementProp> |
| 94 | <elementProp name="DMAAP_PORT" elementType="Argument"> |
| 95 | <stringProp name="Argument.name">DMAAP_PORT</stringProp> |
| 96 | <stringProp name="Argument.value">${__P(DMAAP_PORT,31532)}</stringProp> |
| 97 | <stringProp name="Argument.metadata">=</stringProp> |
| 98 | </elementProp> |
| 99 | <elementProp name="HOSTNAME" elementType="Argument"> |
| 100 | <stringProp name="Argument.name">HOSTNAME</stringProp> |
| 101 | <stringProp name="Argument.value">${__P(HOSTNAME,10.2.0.197)}</stringProp> |
| 102 | <stringProp name="Argument.metadata">=</stringProp> |
| 103 | </elementProp> |
| 104 | <elementProp name="LOG_PATH" elementType="Argument"> |
| 105 | <stringProp name="Argument.name">LOG_PATH</stringProp> |
| 106 | <stringProp name="Argument.value">${__P(LOG_PATH,/home/adityap/apex_stability)}</stringProp> |
| 107 | <stringProp name="Argument.metadata">=</stringProp> |
| 108 | </elementProp> |
ramverma | 78c6f58 | 2018-10-23 16:58:34 +0100 | [diff] [blame] | 109 | </collectionProp> |
| 110 | </Arguments> |
| 111 | <hashTree/> |
aditya.puthuparambil | ff67d11 | 2020-06-02 16:22:59 +0100 | [diff] [blame^] | 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> |
| 120 | </elementProp> |
| 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> |
| 127 | </elementProp> |
| 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> |
| 134 | </elementProp> |
| 135 | </collectionProp> |
| 136 | <boolProp name="AuthManager.controlledByThreadGroup">false</boolProp> |
| 137 | </AuthManager> |
| 138 | <hashTree/> |
| 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> |
| 144 | </elementProp> |
| 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> |
| 151 | </SetupThreadGroup> |
| 152 | <hashTree> |
| 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": [
 |
| 163 | {
 |
| 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"
 |
| 178 | }
 |
| 179 | },
 |
| 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"
 |
| 185 | },
 |
| 186 | "Java": {
 |
| 187 | "parameterClassName": "org.onap.policy.apex.context.impl.schema.java.JavaSchemaHelperParameters",
 |
| 188 | "jsonAdapters": {
 |
| 189 | "Instant": {
 |
| 190 | "adaptedClass": "java.time.Instant",
 |
| 191 | "adaptorClass": "org.onap.policy.controlloop.util.Serialization$GsonInstantAdapter"
 |
| 192 | }
 |
| 193 | }
 |
| 194 | }
 |
| 195 | }
 |
| 196 | }
 |
| 197 | },
 |
| 198 | "policy_type_impl": {
 |
| 199 | "apexPolicyModel": {
 |
| 200 | "key": {
 |
| 201 | "name": "APEXgRPCPolicy",
 |
| 202 | "version": "0.0.1"
 |
| 203 | },
 |
| 204 | "keyInformation": {
 |
| 205 | "key": {
 |
| 206 | "name": "APEXgRPCPolicy_KeyInfo",
 |
| 207 | "version": "0.0.1"
 |
| 208 | },
 |
| 209 | "keyInfoMap": {
 |
| 210 | "entry": [
 |
| 211 | {
 |
| 212 | "key": {
 |
| 213 | "name": "APEXgRPCPolicy",
 |
| 214 | "version": "0.0.1"
 |
| 215 | },
 |
| 216 | "value": {
 |
| 217 | "key": {
 |
| 218 | "name": "APEXgRPCPolicy",
 |
| 219 | "version": "0.0.1"
 |
| 220 | },
 |
| 221 | "UUID": "b8424cdb-29fb-3566-b77a-f4f847d81cc9",
 |
| 222 | "description": "Generated description for concept referred to by key \"APEXgRPCPolicy:0.0.1\""
 |
| 223 | }
 |
| 224 | },
 |
| 225 | {
 |
| 226 | "key": {
 |
| 227 | "name": "APEXgRPCPolicy_Albums",
 |
| 228 | "version": "0.0.1"
 |
| 229 | },
 |
| 230 | "value": {
 |
| 231 | "key": {
 |
| 232 | "name": "APEXgRPCPolicy_Albums",
 |
| 233 | "version": "0.0.1"
 |
| 234 | },
 |
| 235 | "UUID": "9922906c-ccaa-34f7-95e2-bcc36e77821b",
 |
| 236 | "description": "Generated description for concept referred to by key \"APEXgRPCPolicy_Albums:0.0.1\""
 |
| 237 | }
 |
| 238 | },
 |
| 239 | {
 |
| 240 | "key": {
 |
| 241 | "name": "APEXgRPCPolicy_Events",
 |
| 242 | "version": "0.0.1"
 |
| 243 | },
 |
| 244 | "value": {
 |
| 245 | "key": {
 |
| 246 | "name": "APEXgRPCPolicy_Events",
 |
| 247 | "version": "0.0.1"
 |
| 248 | },
 |
| 249 | "UUID": "5bf28afd-787c-3138-a3e1-b33ad94a038a",
 |
| 250 | "description": "Generated description for concept referred to by key \"APEXgRPCPolicy_Events:0.0.1\""
 |
| 251 | }
 |
| 252 | },
 |
| 253 | {
 |
| 254 | "key": {
 |
| 255 | "name": "APEXgRPCPolicy_KeyInfo",
 |
| 256 | "version": "0.0.1"
 |
| 257 | },
 |
| 258 | "value": {
 |
| 259 | "key": {
 |
| 260 | "name": "APEXgRPCPolicy_KeyInfo",
 |
| 261 | "version": "0.0.1"
 |
| 262 | },
 |
| 263 | "UUID": "68abaa6f-8d03-3a53-9590-007115817d5c",
 |
| 264 | "description": "Generated description for concept referred to by key \"APEXgRPCPolicy_KeyInfo:0.0.1\""
 |
| 265 | }
 |
| 266 | },
 |
| 267 | {
 |
| 268 | "key": {
 |
| 269 | "name": "APEXgRPCPolicy_Policies",
 |
| 270 | "version": "0.0.1"
 |
| 271 | },
 |
| 272 | "value": {
 |
| 273 | "key": {
 |
| 274 | "name": "APEXgRPCPolicy_Policies",
 |
| 275 | "version": "0.0.1"
 |
| 276 | },
 |
| 277 | "UUID": "819d06c3-33c2-3031-aa78-96281aa4270a",
 |
| 278 | "description": "Generated description for concept referred to by key \"APEXgRPCPolicy_Policies:0.0.1\""
 |
| 279 | }
 |
| 280 | },
 |
| 281 | {
 |
| 282 | "key": {
 |
| 283 | "name": "APEXgRPCPolicy_Schemas",
 |
| 284 | "version": "0.0.1"
 |
| 285 | },
 |
| 286 | "value": {
 |
| 287 | "key": {
 |
| 288 | "name": "APEXgRPCPolicy_Schemas",
 |
| 289 | "version": "0.0.1"
 |
| 290 | },
 |
| 291 | "UUID": "8e67d466-f990-3a39-9fd7-4490cac342dc",
 |
| 292 | "description": "Generated description for concept referred to by key \"APEXgRPCPolicy_Schemas:0.0.1\""
 |
| 293 | }
 |
| 294 | },
 |
| 295 | {
 |
| 296 | "key": {
 |
| 297 | "name": "APEXgRPCPolicy_Tasks",
 |
| 298 | "version": "0.0.1"
 |
| 299 | },
 |
| 300 | "value": {
 |
| 301 | "key": {
 |
| 302 | "name": "APEXgRPCPolicy_Tasks",
 |
| 303 | "version": "0.0.1"
 |
| 304 | },
 |
| 305 | "UUID": "4668db3d-6fe2-3885-8e47-f30cd0102f0a",
 |
| 306 | "description": "Generated description for concept referred to by key \"APEXgRPCPolicy_Tasks:0.0.1\""
 |
| 307 | }
 |
| 308 | },
 |
| 309 | {
 |
| 310 | "key": {
 |
| 311 | "name": "CDSActionIdentifiersType",
 |
| 312 | "version": "0.0.1"
 |
| 313 | },
 |
| 314 | "value": {
 |
| 315 | "key": {
 |
| 316 | "name": "CDSActionIdentifiersType",
 |
| 317 | "version": "0.0.1"
 |
| 318 | },
 |
| 319 | "UUID": "6e5fa19b-14df-37e3-a4ae-8c537e861a82",
 |
| 320 | "description": "Generated description for concept referred to by key \"CDSActionIdentifiersType:0.0.1\""
 |
| 321 | }
 |
| 322 | },
 |
| 323 | {
 |
| 324 | "key": {
 |
| 325 | "name": "CDSCreateSubscriptionPayloadType",
 |
| 326 | "version": "0.0.1"
 |
| 327 | },
 |
| 328 | "value": {
 |
| 329 | "key": {
 |
| 330 | "name": "CDSCreateSubscriptionPayloadType",
 |
| 331 | "version": "0.0.1"
 |
| 332 | },
 |
| 333 | "UUID": "8350ac5e-c157-38b9-9614-a0f93a830e60",
 |
| 334 | "description": "Generated description for concept referred to by key \"CDSCreateSubscriptionPayloadType:0.0.1\""
 |
| 335 | }
 |
| 336 | },
 |
| 337 | {
 |
| 338 | "key": {
 |
| 339 | "name": "CDSDeleteSubscriptionPayloadType",
 |
| 340 | "version": "0.0.1"
 |
| 341 | },
 |
| 342 | "value": {
 |
| 343 | "key": {
 |
| 344 | "name": "CDSDeleteSubscriptionPayloadType",
 |
| 345 | "version": "0.0.1"
 |
| 346 | },
 |
| 347 | "UUID": "12658406-9147-3c9d-a38c-5ad5e30b092b",
 |
| 348 | "description": "Generated description for concept referred to by key \"CDSDeleteSubscriptionPayloadType:0.0.1\""
 |
| 349 | }
 |
| 350 | },
 |
| 351 | {
 |
| 352 | "key": {
 |
| 353 | "name": "CDSRequestCommonHeaderType",
 |
| 354 | "version": "0.0.1"
 |
| 355 | },
 |
| 356 | "value": {
 |
| 357 | "key": {
 |
| 358 | "name": "CDSRequestCommonHeaderType",
 |
| 359 | "version": "0.0.1"
 |
| 360 | },
 |
| 361 | "UUID": "35590ac0-062c-39f1-8786-b4ff716e30b1",
 |
| 362 | "description": "Generated description for concept referred to by key \"CDSRequestCommonHeaderType:0.0.1\""
 |
| 363 | }
 |
| 364 | },
 |
| 365 | {
 |
| 366 | "key": {
 |
| 367 | "name": "CDSResponseCommonHeaderType",
 |
| 368 | "version": "0.0.1"
 |
| 369 | },
 |
| 370 | "value": {
 |
| 371 | "key": {
 |
| 372 | "name": "CDSResponseCommonHeaderType",
 |
| 373 | "version": "0.0.1"
 |
| 374 | },
 |
| 375 | "UUID": "dd7e1805-885a-350b-aaf9-ed541321ae3c",
 |
| 376 | "description": "Generated description for concept referred to by key \"CDSResponseCommonHeaderType:0.0.1\""
 |
| 377 | }
 |
| 378 | },
 |
| 379 | {
 |
| 380 | "key": {
 |
| 381 | "name": "CDSResponseEvent",
 |
| 382 | "version": "0.0.1"
 |
| 383 | },
 |
| 384 | "value": {
 |
| 385 | "key": {
 |
| 386 | "name": "CDSResponseEvent",
 |
| 387 | "version": "0.0.1"
 |
| 388 | },
 |
| 389 | "UUID": "15161037-9ac8-3223-820f-4e743562a345",
 |
| 390 | "description": "Generated description for concept referred to by key \"CDSResponseEvent:0.0.1\""
 |
| 391 | }
 |
| 392 | },
 |
| 393 | {
 |
| 394 | "key": {
 |
| 395 | "name": "CDSResponsePayloadType",
 |
| 396 | "version": "0.0.1"
 |
| 397 | },
 |
| 398 | "value": {
 |
| 399 | "key": {
 |
| 400 | "name": "CDSResponsePayloadType",
 |
| 401 | "version": "0.0.1"
 |
| 402 | },
 |
| 403 | "UUID": "97dc5f58-25bb-3c20-8d53-fdb70d7ca256",
 |
| 404 | "description": "Generated description for concept referred to by key \"CDSResponsePayloadType:0.0.1\""
 |
| 405 | }
 |
| 406 | },
 |
| 407 | {
 |
| 408 | "key": {
 |
| 409 | "name": "CDSResponsePolicy",
 |
| 410 | "version": "0.0.1"
 |
| 411 | },
 |
| 412 | "value": {
 |
| 413 | "key": {
 |
| 414 | "name": "CDSResponsePolicy",
 |
| 415 | "version": "0.0.1"
 |
| 416 | },
 |
| 417 | "UUID": "c28b05a8-7436-3ac0-82ca-6d5fc18c9584",
 |
| 418 | "description": "Generated description for concept referred to by key \"CDSResponsePolicy:0.0.1\""
 |
| 419 | }
 |
| 420 | },
 |
| 421 | {
 |
| 422 | "key": {
 |
| 423 | "name": "CDSResponseStatusEvent",
 |
| 424 | "version": "0.0.1"
 |
| 425 | },
 |
| 426 | "value": {
 |
| 427 | "key": {
 |
| 428 | "name": "CDSResponseStatusEvent",
 |
| 429 | "version": "0.0.1"
 |
| 430 | },
 |
| 431 | "UUID": "7986e21b-32f7-302e-9554-31f21b673493",
 |
| 432 | "description": "Generated description for concept referred to by key \"CDSResponseStatusEvent:0.0.1\""
 |
| 433 | }
 |
| 434 | },
 |
| 435 | {
 |
| 436 | "key": {
 |
| 437 | "name": "CDSResponseStatusType",
 |
| 438 | "version": "0.0.1"
 |
| 439 | },
 |
| 440 | "value": {
 |
| 441 | "key": {
 |
| 442 | "name": "CDSResponseStatusType",
 |
| 443 | "version": "0.0.1"
 |
| 444 | },
 |
| 445 | "UUID": "92b8a2cf-344e-3ce1-8cc0-2b7d3cb695fa",
 |
| 446 | "description": "Generated description for concept referred to by key \"CDSResponseStatusType:0.0.1\""
 |
| 447 | }
 |
| 448 | },
 |
| 449 | {
 |
| 450 | "key": {
 |
| 451 | "name": "CDSResponseTask",
 |
| 452 | "version": "0.0.1"
 |
| 453 | },
 |
| 454 | "value": {
 |
| 455 | "key": {
 |
| 456 | "name": "CDSResponseTask",
 |
| 457 | "version": "0.0.1"
 |
| 458 | },
 |
| 459 | "UUID": "d22c78a5-272c-391d-8083-28588280caf9",
 |
| 460 | "description": "Generated description for concept referred to by key \"CDSResponseTask:0.0.1\""
 |
| 461 | }
 |
| 462 | },
 |
| 463 | {
 |
| 464 | "key": {
 |
| 465 | "name": "CreateSubscriptionPayloadEvent",
 |
| 466 | "version": "0.0.1"
 |
| 467 | },
 |
| 468 | "value": {
 |
| 469 | "key": {
 |
| 470 | "name": "CreateSubscriptionPayloadEvent",
 |
| 471 | "version": "0.0.1"
 |
| 472 | },
 |
| 473 | "UUID": "92162397-1a8e-3a3f-a469-d2af7700af4a",
 |
| 474 | "description": "Generated description for concept referred to by key \"CreateSubscriptionPayloadEvent:0.0.1\""
 |
| 475 | }
 |
| 476 | },
 |
| 477 | {
 |
| 478 | "key": {
 |
| 479 | "name": "CreateSubscriptionPayloadTask",
 |
| 480 | "version": "0.0.1"
 |
| 481 | },
 |
| 482 | "value": {
 |
| 483 | "key": {
 |
| 484 | "name": "CreateSubscriptionPayloadTask",
 |
| 485 | "version": "0.0.1"
 |
| 486 | },
 |
| 487 | "UUID": "bc0c69f0-52ed-38ea-b468-ae4a6fd1730d",
 |
| 488 | "description": "Generated description for concept referred to by key \"CreateSubscriptionPayloadTask:0.0.1\""
 |
| 489 | }
 |
| 490 | },
 |
| 491 | {
 |
| 492 | "key": {
 |
| 493 | "name": "CreateSubscriptionRequestEvent",
 |
| 494 | "version": "0.0.1"
 |
| 495 | },
 |
| 496 | "value": {
 |
| 497 | "key": {
 |
| 498 | "name": "CreateSubscriptionRequestEvent",
 |
| 499 | "version": "0.0.1"
 |
| 500 | },
 |
| 501 | "UUID": "7cfcf843-337e-3f41-b755-5043cb0a08fc",
 |
| 502 | "description": "Generated description for concept referred to by key \"CreateSubscriptionRequestEvent:0.0.1\""
 |
| 503 | }
 |
| 504 | },
 |
| 505 | {
 |
| 506 | "key": {
 |
| 507 | "name": "CreateSubscriptionRequestTask",
 |
| 508 | "version": "0.0.1"
 |
| 509 | },
 |
| 510 | "value": {
 |
| 511 | "key": {
 |
| 512 | "name": "CreateSubscriptionRequestTask",
 |
| 513 | "version": "0.0.1"
 |
| 514 | },
 |
| 515 | "UUID": "89cb75e9-f06c-30d3-b4ff-698d45f63869",
 |
| 516 | "description": "Generated description for concept referred to by key \"CreateSubscriptionRequestTask:0.0.1\""
 |
| 517 | }
 |
| 518 | },
 |
| 519 | {
 |
| 520 | "key": {
 |
| 521 | "name": "DeleteSubscriptionPayloadEvent",
 |
| 522 | "version": "0.0.1"
 |
| 523 | },
 |
| 524 | "value": {
 |
| 525 | "key": {
 |
| 526 | "name": "DeleteSubscriptionPayloadEvent",
 |
| 527 | "version": "0.0.1"
 |
| 528 | },
 |
| 529 | "UUID": "994fa441-04ab-33bb-832d-1cd12ab5d074",
 |
| 530 | "description": "Generated description for concept referred to by key \"DeleteSubscriptionPayloadEvent:0.0.1\""
 |
| 531 | }
 |
| 532 | },
 |
| 533 | {
 |
| 534 | "key": {
 |
| 535 | "name": "DeleteSubscriptionPayloadTask",
 |
| 536 | "version": "0.0.1"
 |
| 537 | },
 |
| 538 | "value": {
 |
| 539 | "key": {
 |
| 540 | "name": "DeleteSubscriptionPayloadTask",
 |
| 541 | "version": "0.0.1"
 |
| 542 | },
 |
| 543 | "UUID": "0f519117-5fea-3e4b-941f-8f778100465f",
 |
| 544 | "description": "Generated description for concept referred to by key \"DeleteSubscriptionPayloadTask:0.0.1\""
 |
| 545 | }
 |
| 546 | },
 |
| 547 | {
 |
| 548 | "key": {
 |
| 549 | "name": "DeleteSubscriptionRequestEvent",
 |
| 550 | "version": "0.0.1"
 |
| 551 | },
 |
| 552 | "value": {
 |
| 553 | "key": {
 |
| 554 | "name": "DeleteSubscriptionRequestEvent",
 |
| 555 | "version": "0.0.1"
 |
| 556 | },
 |
| 557 | "UUID": "15d618d8-1689-3a05-89a5-05efa9388f65",
 |
| 558 | "description": "Generated description for concept referred to by key \"DeleteSubscriptionRequestEvent:0.0.1\""
 |
| 559 | }
 |
| 560 | },
 |
| 561 | {
 |
| 562 | "key": {
 |
| 563 | "name": "DeleteSubscriptionRequestTask",
 |
| 564 | "version": "0.0.1"
 |
| 565 | },
 |
| 566 | "value": {
 |
| 567 | "key": {
 |
| 568 | "name": "DeleteSubscriptionRequestTask",
 |
| 569 | "version": "0.0.1"
 |
| 570 | },
 |
| 571 | "UUID": "acb772fe-d442-39e3-98f9-b1080caf4150",
 |
| 572 | "description": "Generated description for concept referred to by key \"DeleteSubscriptionRequestTask:0.0.1\""
 |
| 573 | }
 |
| 574 | },
 |
| 575 | {
 |
| 576 | "key": {
 |
| 577 | "name": "PMSubscriptionAlbum",
 |
| 578 | "version": "0.0.1"
 |
| 579 | },
 |
| 580 | "value": {
 |
| 581 | "key": {
 |
| 582 | "name": "PMSubscriptionAlbum",
 |
| 583 | "version": "0.0.1"
 |
| 584 | },
 |
| 585 | "UUID": "c2bd6f0d-6854-317a-9be2-97c08338428c",
 |
| 586 | "description": "Generated description for concept referred to by key \"PMSubscriptionAlbum:0.0.1\""
 |
| 587 | }
 |
| 588 | },
 |
| 589 | {
 |
| 590 | "key": {
 |
| 591 | "name": "PMSubscriptionOutputEvent",
 |
| 592 | "version": "0.0.1"
 |
| 593 | },
 |
| 594 | "value": {
 |
| 595 | "key": {
 |
| 596 | "name": "PMSubscriptionOutputEvent",
 |
| 597 | "version": "0.0.1"
 |
| 598 | },
 |
| 599 | "UUID": "992b7819-9f69-3aa0-bb0f-6e45ea15ce05",
 |
| 600 | "description": "Generated description for concept referred to by key \"PMSubscriptionOutputEvent:0.0.1\""
 |
| 601 | }
 |
| 602 | },
 |
| 603 | {
 |
| 604 | "key": {
 |
| 605 | "name": "PMSubscriptionType",
 |
| 606 | "version": "0.0.1"
 |
| 607 | },
 |
| 608 | "value": {
 |
| 609 | "key": {
 |
| 610 | "name": "PMSubscriptionType",
 |
| 611 | "version": "0.0.1"
 |
| 612 | },
 |
| 613 | "UUID": "73c1c397-4fc3-357f-93b6-a8ad707fbaae",
 |
| 614 | "description": "Generated description for concept referred to by key \"PMSubscriptionType:0.0.1\""
 |
| 615 | }
 |
| 616 | },
 |
| 617 | {
 |
| 618 | "key": {
 |
| 619 | "name": "ReceiveEventPolicy",
 |
| 620 | "version": "0.0.1"
 |
| 621 | },
 |
| 622 | "value": {
 |
| 623 | "key": {
 |
| 624 | "name": "ReceiveEventPolicy",
 |
| 625 | "version": "0.0.1"
 |
| 626 | },
 |
| 627 | "UUID": "568b7345-9de1-36d3-b6a3-9b857e6809a1",
 |
| 628 | "description": "Generated description for concept referred to by key \"ReceiveEventPolicy:0.0.1\""
 |
| 629 | }
 |
| 630 | },
 |
| 631 | {
 |
| 632 | "key": {
 |
| 633 | "name": "ReceivePMSubscriptionTask",
 |
| 634 | "version": "0.0.1"
 |
| 635 | },
 |
| 636 | "value": {
 |
| 637 | "key": {
 |
| 638 | "name": "ReceivePMSubscriptionTask",
 |
| 639 | "version": "0.0.1"
 |
| 640 | },
 |
| 641 | "UUID": "6c1c6c45-26e0-3591-94bf-679d20e283f4",
 |
| 642 | "description": "Generated description for concept referred to by key \"ReceivePMSubscriptionTask:0.0.1\""
 |
| 643 | }
 |
| 644 | },
 |
| 645 | {
 |
| 646 | "key": {
 |
| 647 | "name": "SimpleIntType",
 |
| 648 | "version": "0.0.1"
 |
| 649 | },
 |
| 650 | "value": {
 |
| 651 | "key": {
 |
| 652 | "name": "SimpleIntType",
 |
| 653 | "version": "0.0.1"
 |
| 654 | },
 |
| 655 | "UUID": "153791fd-ae0a-36a7-88a5-309a7936415d",
 |
| 656 | "description": "Generated description for concept referred to by key \"SimpleIntType:0.0.1\""
 |
| 657 | }
 |
| 658 | },
 |
| 659 | {
 |
| 660 | "key": {
 |
| 661 | "name": "SimpleStringType",
 |
| 662 | "version": "0.0.1"
 |
| 663 | },
 |
| 664 | "value": {
 |
| 665 | "key": {
 |
| 666 | "name": "SimpleStringType",
 |
| 667 | "version": "0.0.1"
 |
| 668 | },
 |
| 669 | "UUID": "8a4957cf-9493-3a76-8c22-a208e23259af",
 |
| 670 | "description": "Generated description for concept referred to by key \"SimpleStringType:0.0.1\""
 |
| 671 | }
 |
| 672 | },
 |
| 673 | {
 |
| 674 | "key": {
 |
| 675 | "name": "SubscriptionStatusType",
 |
| 676 | "version": "0.0.1"
 |
| 677 | },
 |
| 678 | "value": {
 |
| 679 | "key": {
 |
| 680 | "name": "SubscriptionStatusType",
 |
| 681 | "version": "0.0.1"
 |
| 682 | },
 |
| 683 | "UUID": "597643b1-9db1-31ce-85d0-e1c63c43b30b",
 |
| 684 | "description": "Generated description for concept referred to by key \"SubscriptionStatusType:0.0.1\""
 |
| 685 | }
 |
| 686 | },
 |
| 687 | {
 |
| 688 | "key": {
 |
| 689 | "name": "SubscriptionType",
 |
| 690 | "version": "0.0.1"
 |
| 691 | },
 |
| 692 | "value": {
 |
| 693 | "key": {
 |
| 694 | "name": "SubscriptionType",
 |
| 695 | "version": "0.0.1"
 |
| 696 | },
 |
| 697 | "UUID": "184547bb-7d64-3cb2-a273-d7185102c5ce",
 |
| 698 | "description": "Generated description for concept referred to by key \"SubscriptionType:0.0.1\""
 |
| 699 | }
 |
| 700 | },
 |
| 701 | {
 |
| 702 | "key": {
 |
| 703 | "name": "UUIDType",
 |
| 704 | "version": "0.0.1"
 |
| 705 | },
 |
| 706 | "value": {
 |
| 707 | "key": {
 |
| 708 | "name": "UUIDType",
 |
| 709 | "version": "0.0.1"
 |
| 710 | },
 |
| 711 | "UUID": "6a8cc68e-dfc8-3403-9c6d-071c886b319c",
 |
| 712 | "description": "Generated description for concept referred to by key \"UUIDType:0.0.1\""
 |
| 713 | }
 |
| 714 | },
 |
| 715 | {
 |
| 716 | "key": {
 |
| 717 | "name": "testPolicyB",
 |
| 718 | "version": "0.0.1"
 |
| 719 | },
 |
| 720 | "value": {
 |
| 721 | "key": {
 |
| 722 | "name": "testPolicyB",
 |
| 723 | "version": "0.0.1"
 |
| 724 | },
 |
| 725 | "UUID": "ead590a3-ba2e-3a01-b6e9-9329f5c8fee1",
 |
| 726 | "description": "Generated description for concept referred to by key \"testPolicyB:0.0.1\""
 |
| 727 | }
 |
| 728 | }
 |
| 729 | ]
 |
| 730 | }
 |
| 731 | },
 |
| 732 | "policies": {
 |
| 733 | "key": {
 |
| 734 | "name": "APEXgRPCPolicy_Policies",
 |
| 735 | "version": "0.0.1"
 |
| 736 | },
 |
| 737 | "policyMap": {
 |
| 738 | "entry": [
 |
| 739 | {
 |
| 740 | "key": {
 |
| 741 | "name": "CDSResponsePolicy",
 |
| 742 | "version": "0.0.1"
 |
| 743 | },
 |
| 744 | "value": {
 |
| 745 | "policyKey": {
 |
| 746 | "name": "CDSResponsePolicy",
 |
| 747 | "version": "0.0.1"
 |
| 748 | },
 |
| 749 | "template": "Freestyle",
 |
| 750 | "state": {
 |
| 751 | "entry": [
 |
| 752 | {
 |
| 753 | "key": "CDSResponseState",
 |
| 754 | "value": {
 |
| 755 | "stateKey": {
 |
| 756 | "parentKeyName": "CDSResponsePolicy",
 |
| 757 | "parentKeyVersion": "0.0.1",
 |
| 758 | "parentLocalName": "NULL",
 |
| 759 | "localName": "CDSResponseState"
 |
| 760 | },
 |
| 761 | "trigger": {
 |
| 762 | "name": "CDSResponseEvent",
 |
| 763 | "version": "0.0.1"
 |
| 764 | },
 |
| 765 | "stateOutputs": {
 |
| 766 | "entry": [
 |
| 767 | {
 |
| 768 | "key": "ResponseOutput",
 |
| 769 | "value": {
 |
| 770 | "key": {
 |
| 771 | "parentKeyName": "CDSResponsePolicy",
 |
| 772 | "parentKeyVersion": "0.0.1",
 |
| 773 | "parentLocalName": "CDSResponseState",
 |
| 774 | "localName": "ResponseOutput"
 |
| 775 | },
 |
| 776 | "outgoingEvent": {
 |
| 777 | "name": "CDSResponseStatusEvent",
 |
| 778 | "version": "0.0.1"
 |
| 779 | },
 |
| 780 | "nextState": {
 |
| 781 | "parentKeyName": "NULL",
 |
| 782 | "parentKeyVersion": "0.0.0",
 |
| 783 | "parentLocalName": "NULL",
 |
| 784 | "localName": "NULL"
 |
| 785 | }
 |
| 786 | }
 |
| 787 | }
 |
| 788 | ]
 |
| 789 | },
 |
| 790 | "contextAlbumReference": [],
 |
| 791 | "taskSelectionLogic": {
 |
| 792 | "key": "NULL",
 |
| 793 | "logicFlavour": "UNDEFINED",
 |
| 794 | "logic": ""
 |
| 795 | },
 |
| 796 | "stateFinalizerLogicMap": {
 |
| 797 | "entry": []
 |
| 798 | },
 |
| 799 | "defaultTask": {
 |
| 800 | "name": "CDSResponseTask",
 |
| 801 | "version": "0.0.1"
 |
| 802 | },
 |
| 803 | "taskReferences": {
 |
| 804 | "entry": [
 |
| 805 | {
 |
| 806 | "key": {
 |
| 807 | "name": "CDSResponseTask",
 |
| 808 | "version": "0.0.1"
 |
| 809 | },
 |
| 810 | "value": {
 |
| 811 | "key": {
 |
| 812 | "parentKeyName": "CDSResponsePolicy",
 |
| 813 | "parentKeyVersion": "0.0.1",
 |
| 814 | "parentLocalName": "CDSResponseState",
 |
| 815 | "localName": "CDSResponsePolicy"
 |
| 816 | },
 |
| 817 | "outputType": "DIRECT",
 |
| 818 | "output": {
 |
| 819 | "parentKeyName": "CDSResponsePolicy",
 |
| 820 | "parentKeyVersion": "0.0.1",
 |
| 821 | "parentLocalName": "CDSResponseState",
 |
| 822 | "localName": "ResponseOutput"
 |
| 823 | }
 |
| 824 | }
 |
| 825 | }
 |
| 826 | ]
 |
| 827 | }
 |
| 828 | }
 |
| 829 | }
 |
| 830 | ]
 |
| 831 | },
 |
| 832 | "firstState": "CDSResponseState"
 |
| 833 | }
 |
| 834 | },
 |
| 835 | {
 |
| 836 | "key": {
 |
| 837 | "name": "ReceiveEventPolicy",
 |
| 838 | "version": "0.0.1"
 |
| 839 | },
 |
| 840 | "value": {
 |
| 841 | "policyKey": {
 |
| 842 | "name": "ReceiveEventPolicy",
 |
| 843 | "version": "0.0.1"
 |
| 844 | },
 |
| 845 | "template": "Freestyle",
 |
| 846 | "state": {
 |
| 847 | "entry": [
 |
| 848 | {
 |
| 849 | "key": "CreateOrDeleteState",
 |
| 850 | "value": {
 |
| 851 | "stateKey": {
 |
| 852 | "parentKeyName": "ReceiveEventPolicy",
 |
| 853 | "parentKeyVersion": "0.0.1",
 |
| 854 | "parentLocalName": "NULL",
 |
| 855 | "localName": "CreateOrDeleteState"
 |
| 856 | },
 |
| 857 | "trigger": {
 |
| 858 | "name": "PMSubscriptionOutputEvent",
 |
| 859 | "version": "0.0.1"
 |
| 860 | },
 |
| 861 | "stateOutputs": {
 |
| 862 | "entry": [
 |
| 863 | {
 |
| 864 | "key": "CreateSubscriptionPayload",
 |
| 865 | "value": {
 |
| 866 | "key": {
 |
| 867 | "parentKeyName": "ReceiveEventPolicy",
 |
| 868 | "parentKeyVersion": "0.0.1",
 |
| 869 | "parentLocalName": "CreateOrDeleteState",
 |
| 870 | "localName": "CreateSubscriptionPayload"
 |
| 871 | },
 |
| 872 | "outgoingEvent": {
 |
| 873 | "name": "CreateSubscriptionPayloadEvent",
 |
| 874 | "version": "0.0.1"
 |
| 875 | },
 |
| 876 | "nextState": {
 |
| 877 | "parentKeyName": "ReceiveEventPolicy",
 |
| 878 | "parentKeyVersion": "0.0.1",
 |
| 879 | "parentLocalName": "NULL",
 |
| 880 | "localName": "CreateSubscription"
 |
| 881 | }
 |
| 882 | }
 |
| 883 | },
 |
| 884 | {
 |
| 885 | "key": "DeleteSubscriptionPayload",
 |
| 886 | "value": {
 |
| 887 | "key": {
 |
| 888 | "parentKeyName": "ReceiveEventPolicy",
 |
| 889 | "parentKeyVersion": "0.0.1",
 |
| 890 | "parentLocalName": "CreateOrDeleteState",
 |
| 891 | "localName": "DeleteSubscriptionPayload"
 |
| 892 | },
 |
| 893 | "outgoingEvent": {
 |
| 894 | "name": "DeleteSubscriptionPayloadEvent",
 |
| 895 | "version": "0.0.1"
 |
| 896 | },
 |
| 897 | "nextState": {
 |
| 898 | "parentKeyName": "ReceiveEventPolicy",
 |
| 899 | "parentKeyVersion": "0.0.1",
 |
| 900 | "parentLocalName": "NULL",
 |
| 901 | "localName": "DeleteSubscription"
 |
| 902 | }
 |
| 903 | }
 |
| 904 | }
 |
| 905 | ]
 |
| 906 | },
 |
| 907 | "contextAlbumReference": [
 |
| 908 | {
 |
| 909 | "name": "PMSubscriptionAlbum",
 |
| 910 | "version": "0.0.1"
 |
| 911 | }
 |
| 912 | ],
 |
| 913 | "taskSelectionLogic": {
 |
| 914 | "key": "TaskSelectionLogic",
 |
| 915 | "logicFlavour": "JAVASCRIPT",
 |
| 916 | "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;"
 |
| 917 | },
 |
| 918 | "stateFinalizerLogicMap": {
 |
| 919 | "entry": []
 |
| 920 | },
 |
| 921 | "defaultTask": {
 |
| 922 | "name": "CreateSubscriptionPayloadTask",
 |
| 923 | "version": "0.0.1"
 |
| 924 | },
 |
| 925 | "taskReferences": {
 |
| 926 | "entry": [
 |
| 927 | {
 |
| 928 | "key": {
 |
| 929 | "name": "CreateSubscriptionPayloadTask",
 |
| 930 | "version": "0.0.1"
 |
| 931 | },
 |
| 932 | "value": {
 |
| 933 | "key": {
 |
| 934 | "parentKeyName": "ReceiveEventPolicy",
 |
| 935 | "parentKeyVersion": "0.0.1",
 |
| 936 | "parentLocalName": "CreateOrDeleteState",
 |
| 937 | "localName": "ReceiveEventPolicy"
 |
| 938 | },
 |
| 939 | "outputType": "DIRECT",
 |
| 940 | "output": {
 |
| 941 | "parentKeyName": "ReceiveEventPolicy",
 |
| 942 | "parentKeyVersion": "0.0.1",
 |
| 943 | "parentLocalName": "CreateOrDeleteState",
 |
| 944 | "localName": "CreateSubscriptionPayload"
 |
| 945 | }
 |
| 946 | }
 |
| 947 | },
 |
| 948 | {
 |
| 949 | "key": {
 |
| 950 | "name": "DeleteSubscriptionPayloadTask",
 |
| 951 | "version": "0.0.1"
 |
| 952 | },
 |
| 953 | "value": {
 |
| 954 | "key": {
 |
| 955 | "parentKeyName": "ReceiveEventPolicy",
 |
| 956 | "parentKeyVersion": "0.0.1",
 |
| 957 | "parentLocalName": "CreateOrDeleteState",
 |
| 958 | "localName": "ReceiveEventPolicy"
 |
| 959 | },
 |
| 960 | "outputType": "DIRECT",
 |
| 961 | "output": {
 |
| 962 | "parentKeyName": "ReceiveEventPolicy",
 |
| 963 | "parentKeyVersion": "0.0.1",
 |
| 964 | "parentLocalName": "CreateOrDeleteState",
 |
| 965 | "localName": "DeleteSubscriptionPayload"
 |
| 966 | }
 |
| 967 | }
 |
| 968 | }
 |
| 969 | ]
 |
| 970 | }
 |
| 971 | }
 |
| 972 | },
 |
| 973 | {
 |
| 974 | "key": "CreateSubscription",
 |
| 975 | "value": {
 |
| 976 | "stateKey": {
 |
| 977 | "parentKeyName": "ReceiveEventPolicy",
 |
| 978 | "parentKeyVersion": "0.0.1",
 |
| 979 | "parentLocalName": "NULL",
 |
| 980 | "localName": "CreateSubscription"
 |
| 981 | },
 |
| 982 | "trigger": {
 |
| 983 | "name": "CreateSubscriptionPayloadEvent",
 |
| 984 | "version": "0.0.1"
 |
| 985 | },
 |
| 986 | "stateOutputs": {
 |
| 987 | "entry": [
 |
| 988 | {
 |
| 989 | "key": "IssueCreateSubscriptionRequestOutput",
 |
| 990 | "value": {
 |
| 991 | "key": {
 |
| 992 | "parentKeyName": "ReceiveEventPolicy",
 |
| 993 | "parentKeyVersion": "0.0.1",
 |
| 994 | "parentLocalName": "CreateSubscription",
 |
| 995 | "localName": "IssueCreateSubscriptionRequestOutput"
 |
| 996 | },
 |
| 997 | "outgoingEvent": {
 |
| 998 | "name": "CreateSubscriptionRequestEvent",
 |
| 999 | "version": "0.0.1"
 |
| 1000 | },
 |
| 1001 | "nextState": {
 |
| 1002 | "parentKeyName": "NULL",
 |
| 1003 | "parentKeyVersion": "0.0.0",
 |
| 1004 | "parentLocalName": "NULL",
 |
| 1005 | "localName": "NULL"
 |
| 1006 | }
 |
| 1007 | }
 |
| 1008 | }
 |
| 1009 | ]
 |
| 1010 | },
 |
| 1011 | "contextAlbumReference": [
 |
| 1012 | {
 |
| 1013 | "name": "PMSubscriptionAlbum",
 |
| 1014 | "version": "0.0.1"
 |
| 1015 | }
 |
| 1016 | ],
 |
| 1017 | "taskSelectionLogic": {
 |
| 1018 | "key": "NULL",
 |
| 1019 | "logicFlavour": "UNDEFINED",
 |
| 1020 | "logic": ""
 |
| 1021 | },
 |
| 1022 | "stateFinalizerLogicMap": {
 |
| 1023 | "entry": []
 |
| 1024 | },
 |
| 1025 | "defaultTask": {
 |
| 1026 | "name": "CreateSubscriptionRequestTask",
 |
| 1027 | "version": "0.0.1"
 |
| 1028 | },
 |
| 1029 | "taskReferences": {
 |
| 1030 | "entry": [
 |
| 1031 | {
 |
| 1032 | "key": {
 |
| 1033 | "name": "CreateSubscriptionRequestTask",
 |
| 1034 | "version": "0.0.1"
 |
| 1035 | },
 |
| 1036 | "value": {
 |
| 1037 | "key": {
 |
| 1038 | "parentKeyName": "ReceiveEventPolicy",
 |
| 1039 | "parentKeyVersion": "0.0.1",
 |
| 1040 | "parentLocalName": "CreateSubscription",
 |
| 1041 | "localName": "ReceiveEventPolicy"
 |
| 1042 | },
 |
| 1043 | "outputType": "DIRECT",
 |
| 1044 | "output": {
 |
| 1045 | "parentKeyName": "ReceiveEventPolicy",
 |
| 1046 | "parentKeyVersion": "0.0.1",
 |
| 1047 | "parentLocalName": "CreateSubscription",
 |
| 1048 | "localName": "IssueCreateSubscriptionRequestOutput"
 |
| 1049 | }
 |
| 1050 | }
 |
| 1051 | }
 |
| 1052 | ]
 |
| 1053 | }
 |
| 1054 | }
 |
| 1055 | },
 |
| 1056 | {
 |
| 1057 | "key": "DeleteSubscription",
 |
| 1058 | "value": {
 |
| 1059 | "stateKey": {
 |
| 1060 | "parentKeyName": "ReceiveEventPolicy",
 |
| 1061 | "parentKeyVersion": "0.0.1",
 |
| 1062 | "parentLocalName": "NULL",
 |
| 1063 | "localName": "DeleteSubscription"
 |
| 1064 | },
 |
| 1065 | "trigger": {
 |
| 1066 | "name": "DeleteSubscriptionPayloadEvent",
 |
| 1067 | "version": "0.0.1"
 |
| 1068 | },
 |
| 1069 | "stateOutputs": {
 |
| 1070 | "entry": [
 |
| 1071 | {
 |
| 1072 | "key": "IssueDeleteSubscriptionRequestOutput",
 |
| 1073 | "value": {
 |
| 1074 | "key": {
 |
| 1075 | "parentKeyName": "ReceiveEventPolicy",
 |
| 1076 | "parentKeyVersion": "0.0.1",
 |
| 1077 | "parentLocalName": "DeleteSubscription",
 |
| 1078 | "localName": "IssueDeleteSubscriptionRequestOutput"
 |
| 1079 | },
 |
| 1080 | "outgoingEvent": {
 |
| 1081 | "name": "DeleteSubscriptionRequestEvent",
 |
| 1082 | "version": "0.0.1"
 |
| 1083 | },
 |
| 1084 | "nextState": {
 |
| 1085 | "parentKeyName": "NULL",
 |
| 1086 | "parentKeyVersion": "0.0.0",
 |
| 1087 | "parentLocalName": "NULL",
 |
| 1088 | "localName": "NULL"
 |
| 1089 | }
 |
| 1090 | }
 |
| 1091 | }
 |
| 1092 | ]
 |
| 1093 | },
 |
| 1094 | "contextAlbumReference": [
 |
| 1095 | {
 |
| 1096 | "name": "PMSubscriptionAlbum",
 |
| 1097 | "version": "0.0.1"
 |
| 1098 | }
 |
| 1099 | ],
 |
| 1100 | "taskSelectionLogic": {
 |
| 1101 | "key": "NULL",
 |
| 1102 | "logicFlavour": "UNDEFINED",
 |
| 1103 | "logic": ""
 |
| 1104 | },
 |
| 1105 | "stateFinalizerLogicMap": {
 |
| 1106 | "entry": []
 |
| 1107 | },
 |
| 1108 | "defaultTask": {
 |
| 1109 | "name": "DeleteSubscriptionRequestTask",
 |
| 1110 | "version": "0.0.1"
 |
| 1111 | },
 |
| 1112 | "taskReferences": {
 |
| 1113 | "entry": [
 |
| 1114 | {
 |
| 1115 | "key": {
 |
| 1116 | "name": "DeleteSubscriptionRequestTask",
 |
| 1117 | "version": "0.0.1"
 |
| 1118 | },
 |
| 1119 | "value": {
 |
| 1120 | "key": {
 |
| 1121 | "parentKeyName": "ReceiveEventPolicy",
 |
| 1122 | "parentKeyVersion": "0.0.1",
 |
| 1123 | "parentLocalName": "DeleteSubscription",
 |
| 1124 | "localName": "ReceiveEventPolicy"
 |
| 1125 | },
 |
| 1126 | "outputType": "DIRECT",
 |
| 1127 | "output": {
 |
| 1128 | "parentKeyName": "ReceiveEventPolicy",
 |
| 1129 | "parentKeyVersion": "0.0.1",
 |
| 1130 | "parentLocalName": "DeleteSubscription",
 |
| 1131 | "localName": "IssueDeleteSubscriptionRequestOutput"
 |
| 1132 | }
 |
| 1133 | }
 |
| 1134 | }
 |
| 1135 | ]
 |
| 1136 | }
 |
| 1137 | }
 |
| 1138 | },
 |
| 1139 | {
 |
| 1140 | "key": "ReceiveSubscriptionState",
 |
| 1141 | "value": {
 |
| 1142 | "stateKey": {
 |
| 1143 | "parentKeyName": "ReceiveEventPolicy",
 |
| 1144 | "parentKeyVersion": "0.0.1",
 |
| 1145 | "parentLocalName": "NULL",
 |
| 1146 | "localName": "ReceiveSubscriptionState"
 |
| 1147 | },
 |
| 1148 | "trigger": {
 |
| 1149 | "name": "testPolicyB",
 |
| 1150 | "version": "0.0.1"
 |
| 1151 | },
 |
| 1152 | "stateOutputs": {
 |
| 1153 | "entry": [
 |
| 1154 | {
 |
| 1155 | "key": "ReceivePMSubscriptionOutput",
 |
| 1156 | "value": {
 |
| 1157 | "key": {
 |
| 1158 | "parentKeyName": "ReceiveEventPolicy",
 |
| 1159 | "parentKeyVersion": "0.0.1",
 |
| 1160 | "parentLocalName": "ReceiveSubscriptionState",
 |
| 1161 | "localName": "ReceivePMSubscriptionOutput"
 |
| 1162 | },
 |
| 1163 | "outgoingEvent": {
 |
| 1164 | "name": "PMSubscriptionOutputEvent",
 |
| 1165 | "version": "0.0.1"
 |
| 1166 | },
 |
| 1167 | "nextState": {
 |
| 1168 | "parentKeyName": "ReceiveEventPolicy",
 |
| 1169 | "parentKeyVersion": "0.0.1",
 |
| 1170 | "parentLocalName": "NULL",
 |
| 1171 | "localName": "CreateOrDeleteState"
 |
| 1172 | }
 |
| 1173 | }
 |
| 1174 | }
 |
| 1175 | ]
 |
| 1176 | },
 |
| 1177 | "contextAlbumReference": [
 |
| 1178 | {
 |
| 1179 | "name": "PMSubscriptionAlbum",
 |
| 1180 | "version": "0.0.1"
 |
| 1181 | }
 |
| 1182 | ],
 |
| 1183 | "taskSelectionLogic": {
 |
| 1184 | "key": "NULL",
 |
| 1185 | "logicFlavour": "UNDEFINED",
 |
| 1186 | "logic": ""
 |
| 1187 | },
 |
| 1188 | "stateFinalizerLogicMap": {
 |
| 1189 | "entry": []
 |
| 1190 | },
 |
| 1191 | "defaultTask": {
 |
| 1192 | "name": "ReceivePMSubscriptionTask",
 |
| 1193 | "version": "0.0.1"
 |
| 1194 | },
 |
| 1195 | "taskReferences": {
 |
| 1196 | "entry": [
 |
| 1197 | {
 |
| 1198 | "key": {
 |
| 1199 | "name": "ReceivePMSubscriptionTask",
 |
| 1200 | "version": "0.0.1"
 |
| 1201 | },
 |
| 1202 | "value": {
 |
| 1203 | "key": {
 |
| 1204 | "parentKeyName": "ReceiveEventPolicy",
 |
| 1205 | "parentKeyVersion": "0.0.1",
 |
| 1206 | "parentLocalName": "ReceiveSubscriptionState",
 |
| 1207 | "localName": "ReceiveEventPolicy"
 |
| 1208 | },
 |
| 1209 | "outputType": "DIRECT",
 |
| 1210 | "output": {
 |
| 1211 | "parentKeyName": "ReceiveEventPolicy",
 |
| 1212 | "parentKeyVersion": "0.0.1",
 |
| 1213 | "parentLocalName": "ReceiveSubscriptionState",
 |
| 1214 | "localName": "ReceivePMSubscriptionOutput"
 |
| 1215 | }
 |
| 1216 | }
 |
| 1217 | }
 |
| 1218 | ]
 |
| 1219 | }
 |
| 1220 | }
 |
| 1221 | }
 |
| 1222 | ]
 |
| 1223 | },
 |
| 1224 | "firstState": "ReceiveSubscriptionState"
 |
| 1225 | }
 |
| 1226 | }
 |
| 1227 | ]
 |
| 1228 | }
 |
| 1229 | },
 |
| 1230 | "tasks": {
 |
| 1231 | "key": {
 |
| 1232 | "name": "APEXgRPCPolicy_Tasks",
 |
| 1233 | "version": "0.0.1"
 |
| 1234 | },
 |
| 1235 | "taskMap": {
 |
| 1236 | "entry": [
 |
| 1237 | {
 |
| 1238 | "key": {
 |
| 1239 | "name": "CDSResponseTask",
 |
| 1240 | "version": "0.0.1"
 |
| 1241 | },
 |
| 1242 | "value": {
 |
| 1243 | "key": {
 |
| 1244 | "name": "CDSResponseTask",
 |
| 1245 | "version": "0.0.1"
 |
| 1246 | },
 |
| 1247 | "inputFields": {
 |
| 1248 | "entry": [
 |
| 1249 | {
 |
| 1250 | "key": "actionIdentifiers",
 |
| 1251 | "value": {
 |
| 1252 | "key": "actionIdentifiers",
 |
| 1253 | "fieldSchemaKey": {
 |
| 1254 | "name": "CDSActionIdentifiersType",
 |
| 1255 | "version": "0.0.1"
 |
| 1256 | },
 |
| 1257 | "optional": false
 |
| 1258 | }
 |
| 1259 | },
 |
| 1260 | {
 |
| 1261 | "key": "commonHeader",
 |
| 1262 | "value": {
 |
| 1263 | "key": "commonHeader",
 |
| 1264 | "fieldSchemaKey": {
 |
| 1265 | "name": "CDSResponseCommonHeaderType",
 |
| 1266 | "version": "0.0.1"
 |
| 1267 | },
 |
| 1268 | "optional": false
 |
| 1269 | }
 |
| 1270 | },
 |
| 1271 | {
 |
| 1272 | "key": "payload",
 |
| 1273 | "value": {
 |
| 1274 | "key": "payload",
 |
| 1275 | "fieldSchemaKey": {
 |
| 1276 | "name": "CDSResponsePayloadType",
 |
| 1277 | "version": "0.0.1"
 |
| 1278 | },
 |
| 1279 | "optional": false
 |
| 1280 | }
 |
| 1281 | },
 |
| 1282 | {
 |
| 1283 | "key": "status",
 |
| 1284 | "value": {
 |
| 1285 | "key": "status",
 |
| 1286 | "fieldSchemaKey": {
 |
| 1287 | "name": "CDSResponseStatusType",
 |
| 1288 | "version": "0.0.1"
 |
| 1289 | },
 |
| 1290 | "optional": false
 |
| 1291 | }
 |
| 1292 | }
 |
| 1293 | ]
 |
| 1294 | },
 |
| 1295 | "outputFields": {
 |
| 1296 | "entry": [
 |
| 1297 | {
 |
| 1298 | "key": "status",
 |
| 1299 | "value": {
 |
| 1300 | "key": "status",
 |
| 1301 | "fieldSchemaKey": {
 |
| 1302 | "name": "SubscriptionStatusType",
 |
| 1303 | "version": "0.0.1"
 |
| 1304 | },
 |
| 1305 | "optional": false
 |
| 1306 | }
 |
| 1307 | }
 |
| 1308 | ]
 |
| 1309 | },
 |
| 1310 | "taskParameters": {
 |
| 1311 | "entry": []
 |
| 1312 | },
 |
| 1313 | "contextAlbumReference": [
 |
| 1314 | {
 |
| 1315 | "name": "PMSubscriptionAlbum",
 |
| 1316 | "version": "0.0.1"
 |
| 1317 | }
 |
| 1318 | ],
 |
| 1319 | "taskLogic": {
 |
| 1320 | "key": "TaskLogic",
 |
| 1321 | "logicFlavour": "JAVASCRIPT",
 |
| 1322 | "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;"
 |
| 1323 | }
 |
| 1324 | }
 |
| 1325 | },
 |
| 1326 | {
 |
| 1327 | "key": {
 |
| 1328 | "name": "CreateSubscriptionPayloadTask",
 |
| 1329 | "version": "0.0.1"
 |
| 1330 | },
 |
| 1331 | "value": {
 |
| 1332 | "key": {
 |
| 1333 | "name": "CreateSubscriptionPayloadTask",
 |
| 1334 | "version": "0.0.1"
 |
| 1335 | },
 |
| 1336 | "inputFields": {
 |
| 1337 | "entry": [
 |
| 1338 | {
 |
| 1339 | "key": "albumID",
 |
| 1340 | "value": {
 |
| 1341 | "key": "albumID",
 |
| 1342 | "fieldSchemaKey": {
 |
| 1343 | "name": "UUIDType",
 |
| 1344 | "version": "0.0.1"
 |
| 1345 | },
 |
| 1346 | "optional": false
 |
| 1347 | }
 |
| 1348 | }
 |
| 1349 | ]
 |
| 1350 | },
 |
| 1351 | "outputFields": {
 |
| 1352 | "entry": [
 |
| 1353 | {
 |
| 1354 | "key": "albumID",
 |
| 1355 | "value": {
 |
| 1356 | "key": "albumID",
 |
| 1357 | "fieldSchemaKey": {
 |
| 1358 | "name": "UUIDType",
 |
| 1359 | "version": "0.0.1"
 |
| 1360 | },
 |
| 1361 | "optional": false
 |
| 1362 | }
 |
| 1363 | },
 |
| 1364 | {
 |
| 1365 | "key": "payload",
 |
| 1366 | "value": {
 |
| 1367 | "key": "payload",
 |
| 1368 | "fieldSchemaKey": {
 |
| 1369 | "name": "CDSCreateSubscriptionPayloadType",
 |
| 1370 | "version": "0.0.1"
 |
| 1371 | },
 |
| 1372 | "optional": false
 |
| 1373 | }
 |
| 1374 | }
 |
| 1375 | ]
 |
| 1376 | },
 |
| 1377 | "taskParameters": {
 |
| 1378 | "entry": []
 |
| 1379 | },
 |
| 1380 | "contextAlbumReference": [
 |
| 1381 | {
 |
| 1382 | "name": "PMSubscriptionAlbum",
 |
| 1383 | "version": "0.0.1"
 |
| 1384 | }
 |
| 1385 | ],
 |
| 1386 | "taskLogic": {
 |
| 1387 | "key": "TaskLogic",
 |
| 1388 | "logicFlavour": "JAVASCRIPT",
 |
| 1389 | "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;"
 |
| 1390 | }
 |
| 1391 | }
 |
| 1392 | },
 |
| 1393 | {
 |
| 1394 | "key": {
 |
| 1395 | "name": "CreateSubscriptionRequestTask",
 |
| 1396 | "version": "0.0.1"
 |
| 1397 | },
 |
| 1398 | "value": {
 |
| 1399 | "key": {
 |
| 1400 | "name": "CreateSubscriptionRequestTask",
 |
| 1401 | "version": "0.0.1"
 |
| 1402 | },
 |
| 1403 | "inputFields": {
 |
| 1404 | "entry": [
 |
| 1405 | {
 |
| 1406 | "key": "albumID",
 |
| 1407 | "value": {
 |
| 1408 | "key": "albumID",
 |
| 1409 | "fieldSchemaKey": {
 |
| 1410 | "name": "UUIDType",
 |
| 1411 | "version": "0.0.1"
 |
| 1412 | },
 |
| 1413 | "optional": false
 |
| 1414 | }
 |
| 1415 | },
 |
| 1416 | {
 |
| 1417 | "key": "payload",
 |
| 1418 | "value": {
 |
| 1419 | "key": "payload",
 |
| 1420 | "fieldSchemaKey": {
 |
| 1421 | "name": "CDSCreateSubscriptionPayloadType",
 |
| 1422 | "version": "0.0.1"
 |
| 1423 | },
 |
| 1424 | "optional": false
 |
| 1425 | }
 |
| 1426 | }
 |
| 1427 | ]
 |
| 1428 | },
 |
| 1429 | "outputFields": {
 |
| 1430 | "entry": [
 |
| 1431 | {
 |
| 1432 | "key": "actionIdentifiers",
 |
| 1433 | "value": {
 |
| 1434 | "key": "actionIdentifiers",
 |
| 1435 | "fieldSchemaKey": {
 |
| 1436 | "name": "CDSActionIdentifiersType",
 |
| 1437 | "version": "0.0.1"
 |
| 1438 | },
 |
| 1439 | "optional": false
 |
| 1440 | }
 |
| 1441 | },
 |
| 1442 | {
 |
| 1443 | "key": "commonHeader",
 |
| 1444 | "value": {
 |
| 1445 | "key": "commonHeader",
 |
| 1446 | "fieldSchemaKey": {
 |
| 1447 | "name": "CDSRequestCommonHeaderType",
 |
| 1448 | "version": "0.0.1"
 |
| 1449 | },
 |
| 1450 | "optional": false
 |
| 1451 | }
 |
| 1452 | },
 |
| 1453 | {
 |
| 1454 | "key": "payload",
 |
| 1455 | "value": {
 |
| 1456 | "key": "payload",
 |
| 1457 | "fieldSchemaKey": {
 |
| 1458 | "name": "CDSCreateSubscriptionPayloadType",
 |
| 1459 | "version": "0.0.1"
 |
| 1460 | },
 |
| 1461 | "optional": false
 |
| 1462 | }
 |
| 1463 | }
 |
| 1464 | ]
 |
| 1465 | },
 |
| 1466 | "taskParameters": {
 |
| 1467 | "entry": []
 |
| 1468 | },
 |
| 1469 | "contextAlbumReference": [
 |
| 1470 | {
 |
| 1471 | "name": "PMSubscriptionAlbum",
 |
| 1472 | "version": "0.0.1"
 |
| 1473 | }
 |
| 1474 | ],
 |
| 1475 | "taskLogic": {
 |
| 1476 | "key": "TaskLogic",
 |
| 1477 | "logicFlavour": "JAVASCRIPT",
 |
| 1478 | "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;"
 |
| 1479 | }
 |
| 1480 | }
 |
| 1481 | },
 |
| 1482 | {
 |
| 1483 | "key": {
 |
| 1484 | "name": "DeleteSubscriptionPayloadTask",
 |
| 1485 | "version": "0.0.1"
 |
| 1486 | },
 |
| 1487 | "value": {
 |
| 1488 | "key": {
 |
| 1489 | "name": "DeleteSubscriptionPayloadTask",
 |
| 1490 | "version": "0.0.1"
 |
| 1491 | },
 |
| 1492 | "inputFields": {
 |
| 1493 | "entry": [
 |
| 1494 | {
 |
| 1495 | "key": "albumID",
 |
| 1496 | "value": {
 |
| 1497 | "key": "albumID",
 |
| 1498 | "fieldSchemaKey": {
 |
| 1499 | "name": "UUIDType",
 |
| 1500 | "version": "0.0.1"
 |
| 1501 | },
 |
| 1502 | "optional": false
 |
| 1503 | }
 |
| 1504 | }
 |
| 1505 | ]
 |
| 1506 | },
 |
| 1507 | "outputFields": {
 |
| 1508 | "entry": [
 |
| 1509 | {
 |
| 1510 | "key": "albumID",
 |
| 1511 | "value": {
 |
| 1512 | "key": "albumID",
 |
| 1513 | "fieldSchemaKey": {
 |
| 1514 | "name": "UUIDType",
 |
| 1515 | "version": "0.0.1"
 |
| 1516 | },
 |
| 1517 | "optional": false
 |
| 1518 | }
 |
| 1519 | },
 |
| 1520 | {
 |
| 1521 | "key": "payload",
 |
| 1522 | "value": {
 |
| 1523 | "key": "payload",
 |
| 1524 | "fieldSchemaKey": {
 |
| 1525 | "name": "CDSDeleteSubscriptionPayloadType",
 |
| 1526 | "version": "0.0.1"
 |
| 1527 | },
 |
| 1528 | "optional": false
 |
| 1529 | }
 |
| 1530 | }
 |
| 1531 | ]
 |
| 1532 | },
 |
| 1533 | "taskParameters": {
 |
| 1534 | "entry": []
 |
| 1535 | },
 |
| 1536 | "contextAlbumReference": [
 |
| 1537 | {
 |
| 1538 | "name": "PMSubscriptionAlbum",
 |
| 1539 | "version": "0.0.1"
 |
| 1540 | }
 |
| 1541 | ],
 |
| 1542 | "taskLogic": {
 |
| 1543 | "key": "TaskLogic",
 |
| 1544 | "logicFlavour": "JAVASCRIPT",
 |
| 1545 | "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;"
 |
| 1546 | }
 |
| 1547 | }
 |
| 1548 | },
 |
| 1549 | {
 |
| 1550 | "key": {
 |
| 1551 | "name": "DeleteSubscriptionRequestTask",
 |
| 1552 | "version": "0.0.1"
 |
| 1553 | },
 |
| 1554 | "value": {
 |
| 1555 | "key": {
 |
| 1556 | "name": "DeleteSubscriptionRequestTask",
 |
| 1557 | "version": "0.0.1"
 |
| 1558 | },
 |
| 1559 | "inputFields": {
 |
| 1560 | "entry": [
 |
| 1561 | {
 |
| 1562 | "key": "albumID",
 |
| 1563 | "value": {
 |
| 1564 | "key": "albumID",
 |
| 1565 | "fieldSchemaKey": {
 |
| 1566 | "name": "UUIDType",
 |
| 1567 | "version": "0.0.1"
 |
| 1568 | },
 |
| 1569 | "optional": false
 |
| 1570 | }
 |
| 1571 | },
 |
| 1572 | {
 |
| 1573 | "key": "payload",
 |
| 1574 | "value": {
 |
| 1575 | "key": "payload",
 |
| 1576 | "fieldSchemaKey": {
 |
| 1577 | "name": "CDSDeleteSubscriptionPayloadType",
 |
| 1578 | "version": "0.0.1"
 |
| 1579 | },
 |
| 1580 | "optional": false
 |
| 1581 | }
 |
| 1582 | }
 |
| 1583 | ]
 |
| 1584 | },
 |
| 1585 | "outputFields": {
 |
| 1586 | "entry": [
 |
| 1587 | {
 |
| 1588 | "key": "actionIdentifiers",
 |
| 1589 | "value": {
 |
| 1590 | "key": "actionIdentifiers",
 |
| 1591 | "fieldSchemaKey": {
 |
| 1592 | "name": "CDSActionIdentifiersType",
 |
| 1593 | "version": "0.0.1"
 |
| 1594 | },
 |
| 1595 | "optional": false
 |
| 1596 | }
 |
| 1597 | },
 |
| 1598 | {
 |
| 1599 | "key": "commonHeader",
 |
| 1600 | "value": {
 |
| 1601 | "key": "commonHeader",
 |
| 1602 | "fieldSchemaKey": {
 |
| 1603 | "name": "CDSRequestCommonHeaderType",
 |
| 1604 | "version": "0.0.1"
 |
| 1605 | },
 |
| 1606 | "optional": false
 |
| 1607 | }
 |
| 1608 | },
 |
| 1609 | {
 |
| 1610 | "key": "payload",
 |
| 1611 | "value": {
 |
| 1612 | "key": "payload",
 |
| 1613 | "fieldSchemaKey": {
 |
| 1614 | "name": "CDSDeleteSubscriptionPayloadType",
 |
| 1615 | "version": "0.0.1"
 |
| 1616 | },
 |
| 1617 | "optional": false
 |
| 1618 | }
 |
| 1619 | }
 |
| 1620 | ]
 |
| 1621 | },
 |
| 1622 | "taskParameters": {
 |
| 1623 | "entry": []
 |
| 1624 | },
 |
| 1625 | "contextAlbumReference": [
 |
| 1626 | {
 |
| 1627 | "name": "PMSubscriptionAlbum",
 |
| 1628 | "version": "0.0.1"
 |
| 1629 | }
 |
| 1630 | ],
 |
| 1631 | "taskLogic": {
 |
| 1632 | "key": "TaskLogic",
 |
| 1633 | "logicFlavour": "JAVASCRIPT",
 |
| 1634 | "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;"
 |
| 1635 | }
 |
| 1636 | }
 |
| 1637 | },
 |
| 1638 | {
 |
| 1639 | "key": {
 |
| 1640 | "name": "ReceivePMSubscriptionTask",
 |
| 1641 | "version": "0.0.1"
 |
| 1642 | },
 |
| 1643 | "value": {
 |
| 1644 | "key": {
 |
| 1645 | "name": "ReceivePMSubscriptionTask",
 |
| 1646 | "version": "0.0.1"
 |
| 1647 | },
 |
| 1648 | "inputFields": {
 |
| 1649 | "entry": [
 |
| 1650 | {
 |
| 1651 | "key": "changeType",
 |
| 1652 | "value": {
 |
| 1653 | "key": "changeType",
 |
| 1654 | "fieldSchemaKey": {
 |
| 1655 | "name": "SimpleStringType",
 |
| 1656 | "version": "0.0.1"
 |
| 1657 | },
 |
| 1658 | "optional": false
 |
| 1659 | }
 |
| 1660 | },
 |
| 1661 | {
 |
| 1662 | "key": "closedLoopControlName",
 |
| 1663 | "value": {
 |
| 1664 | "key": "closedLoopControlName",
 |
| 1665 | "fieldSchemaKey": {
 |
| 1666 | "name": "SimpleStringType",
 |
| 1667 | "version": "0.0.1"
 |
| 1668 | },
 |
| 1669 | "optional": false
 |
| 1670 | }
 |
| 1671 | },
 |
| 1672 | {
 |
| 1673 | "key": "nfName",
 |
| 1674 | "value": {
 |
| 1675 | "key": "nfName",
 |
| 1676 | "fieldSchemaKey": {
 |
| 1677 | "name": "SimpleStringType",
 |
| 1678 | "version": "0.0.1"
 |
| 1679 | },
 |
| 1680 | "optional": false
 |
| 1681 | }
 |
| 1682 | },
 |
| 1683 | {
 |
| 1684 | "key": "policyName",
 |
| 1685 | "value": {
 |
| 1686 | "key": "policyName",
 |
| 1687 | "fieldSchemaKey": {
 |
| 1688 | "name": "SimpleStringType",
 |
| 1689 | "version": "0.0.1"
 |
| 1690 | },
 |
| 1691 | "optional": false
 |
| 1692 | }
 |
| 1693 | },
 |
| 1694 | {
 |
| 1695 | "key": "subscription",
 |
| 1696 | "value": {
 |
| 1697 | "key": "subscription",
 |
| 1698 | "fieldSchemaKey": {
 |
| 1699 | "name": "SubscriptionType",
 |
| 1700 | "version": "0.0.1"
 |
| 1701 | },
 |
| 1702 | "optional": false
 |
| 1703 | }
 |
| 1704 | }
 |
| 1705 | ]
 |
| 1706 | },
 |
| 1707 | "outputFields": {
 |
| 1708 | "entry": [
 |
| 1709 | {
 |
| 1710 | "key": "albumID",
 |
| 1711 | "value": {
 |
| 1712 | "key": "albumID",
 |
| 1713 | "fieldSchemaKey": {
 |
| 1714 | "name": "UUIDType",
 |
| 1715 | "version": "0.0.1"
 |
| 1716 | },
 |
| 1717 | "optional": false
 |
| 1718 | }
 |
| 1719 | }
 |
| 1720 | ]
 |
| 1721 | },
 |
| 1722 | "taskParameters": {
 |
| 1723 | "entry": []
 |
| 1724 | },
 |
| 1725 | "contextAlbumReference": [
 |
| 1726 | {
 |
| 1727 | "name": "PMSubscriptionAlbum",
 |
| 1728 | "version": "0.0.1"
 |
| 1729 | }
 |
| 1730 | ],
 |
| 1731 | "taskLogic": {
 |
| 1732 | "key": "TaskLogic",
 |
| 1733 | "logicFlavour": "JAVASCRIPT",
 |
| 1734 | "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;"
 |
| 1735 | }
 |
| 1736 | }
 |
| 1737 | }
 |
| 1738 | ]
 |
| 1739 | }
 |
| 1740 | },
 |
| 1741 | "events": {
 |
| 1742 | "key": {
 |
| 1743 | "name": "APEXgRPCPolicy_Events",
 |
| 1744 | "version": "0.0.1"
 |
| 1745 | },
 |
| 1746 | "eventMap": {
 |
| 1747 | "entry": [
 |
| 1748 | {
 |
| 1749 | "key": {
 |
| 1750 | "name": "CDSResponseEvent",
 |
| 1751 | "version": "0.0.1"
 |
| 1752 | },
 |
| 1753 | "value": {
 |
| 1754 | "key": {
 |
| 1755 | "name": "CDSResponseEvent",
 |
| 1756 | "version": "0.0.1"
 |
| 1757 | },
 |
| 1758 | "nameSpace": "org.onap.policy.apex.onap.pmcontrol",
 |
| 1759 | "source": "CDS",
 |
| 1760 | "target": "APEX",
 |
| 1761 | "parameter": {
 |
| 1762 | "entry": [
 |
| 1763 | {
 |
| 1764 | "key": "actionIdentifiers",
 |
| 1765 | "value": {
 |
| 1766 | "key": "actionIdentifiers",
 |
| 1767 | "fieldSchemaKey": {
 |
| 1768 | "name": "CDSActionIdentifiersType",
 |
| 1769 | "version": "0.0.1"
 |
| 1770 | },
 |
| 1771 | "optional": false
 |
| 1772 | }
 |
| 1773 | },
 |
| 1774 | {
 |
| 1775 | "key": "commonHeader",
 |
| 1776 | "value": {
 |
| 1777 | "key": "commonHeader",
 |
| 1778 | "fieldSchemaKey": {
 |
| 1779 | "name": "CDSResponseCommonHeaderType",
 |
| 1780 | "version": "0.0.1"
 |
| 1781 | },
 |
| 1782 | "optional": false
 |
| 1783 | }
 |
| 1784 | },
 |
| 1785 | {
 |
| 1786 | "key": "payload",
 |
| 1787 | "value": {
 |
| 1788 | "key": "payload",
 |
| 1789 | "fieldSchemaKey": {
 |
| 1790 | "name": "CDSResponsePayloadType",
 |
| 1791 | "version": "0.0.1"
 |
| 1792 | },
 |
| 1793 | "optional": false
 |
| 1794 | }
 |
| 1795 | },
 |
| 1796 | {
 |
| 1797 | "key": "status",
 |
| 1798 | "value": {
 |
| 1799 | "key": "status",
 |
| 1800 | "fieldSchemaKey": {
 |
| 1801 | "name": "CDSResponseStatusType",
 |
| 1802 | "version": "0.0.1"
 |
| 1803 | },
 |
| 1804 | "optional": false
 |
| 1805 | }
 |
| 1806 | }
 |
| 1807 | ]
 |
| 1808 | }
 |
| 1809 | }
 |
| 1810 | },
 |
| 1811 | {
 |
| 1812 | "key": {
 |
| 1813 | "name": "CDSResponseStatusEvent",
 |
| 1814 | "version": "0.0.1"
 |
| 1815 | },
 |
| 1816 | "value": {
 |
| 1817 | "key": {
 |
| 1818 | "name": "CDSResponseStatusEvent",
 |
| 1819 | "version": "0.0.1"
 |
| 1820 | },
 |
| 1821 | "nameSpace": "org.onap.policy.apex.onap.pmcontrol",
 |
| 1822 | "source": "APEX",
 |
| 1823 | "target": "DCAE",
 |
| 1824 | "parameter": {
 |
| 1825 | "entry": [
 |
| 1826 | {
 |
| 1827 | "key": "status",
 |
| 1828 | "value": {
 |
| 1829 | "key": "status",
 |
| 1830 | "fieldSchemaKey": {
 |
| 1831 | "name": "SubscriptionStatusType",
 |
| 1832 | "version": "0.0.1"
 |
| 1833 | },
 |
| 1834 | "optional": false
 |
| 1835 | }
 |
| 1836 | }
 |
| 1837 | ]
 |
| 1838 | }
 |
| 1839 | }
 |
| 1840 | },
 |
| 1841 | {
 |
| 1842 | "key": {
 |
| 1843 | "name": "CreateSubscriptionPayloadEvent",
 |
| 1844 | "version": "0.0.1"
 |
| 1845 | },
 |
| 1846 | "value": {
 |
| 1847 | "key": {
 |
| 1848 | "name": "CreateSubscriptionPayloadEvent",
 |
| 1849 | "version": "0.0.1"
 |
| 1850 | },
 |
| 1851 | "nameSpace": "org.onap.policy.apex.onap.pmcontrol",
 |
| 1852 | "source": "APEX",
 |
| 1853 | "target": "APEX",
 |
| 1854 | "parameter": {
 |
| 1855 | "entry": [
 |
| 1856 | {
 |
| 1857 | "key": "albumID",
 |
| 1858 | "value": {
 |
| 1859 | "key": "albumID",
 |
| 1860 | "fieldSchemaKey": {
 |
| 1861 | "name": "UUIDType",
 |
| 1862 | "version": "0.0.1"
 |
| 1863 | },
 |
| 1864 | "optional": false
 |
| 1865 | }
 |
| 1866 | },
 |
| 1867 | {
 |
| 1868 | "key": "payload",
 |
| 1869 | "value": {
 |
| 1870 | "key": "payload",
 |
| 1871 | "fieldSchemaKey": {
 |
| 1872 | "name": "CDSCreateSubscriptionPayloadType",
 |
| 1873 | "version": "0.0.1"
 |
| 1874 | },
 |
| 1875 | "optional": false
 |
| 1876 | }
 |
| 1877 | }
 |
| 1878 | ]
 |
| 1879 | }
 |
| 1880 | }
 |
| 1881 | },
 |
| 1882 | {
 |
| 1883 | "key": {
 |
| 1884 | "name": "CreateSubscriptionRequestEvent",
 |
| 1885 | "version": "0.0.1"
 |
| 1886 | },
 |
| 1887 | "value": {
 |
| 1888 | "key": {
 |
| 1889 | "name": "CreateSubscriptionRequestEvent",
 |
| 1890 | "version": "0.0.1"
 |
| 1891 | },
 |
| 1892 | "nameSpace": "org.onap.policy.apex.onap.pmcontrol",
 |
| 1893 | "source": "APEX",
 |
| 1894 | "target": "APEX",
 |
| 1895 | "parameter": {
 |
| 1896 | "entry": [
 |
| 1897 | {
 |
| 1898 | "key": "actionIdentifiers",
 |
| 1899 | "value": {
 |
| 1900 | "key": "actionIdentifiers",
 |
| 1901 | "fieldSchemaKey": {
 |
| 1902 | "name": "CDSActionIdentifiersType",
 |
| 1903 | "version": "0.0.1"
 |
| 1904 | },
 |
| 1905 | "optional": false
 |
| 1906 | }
 |
| 1907 | },
 |
| 1908 | {
 |
| 1909 | "key": "commonHeader",
 |
| 1910 | "value": {
 |
| 1911 | "key": "commonHeader",
 |
| 1912 | "fieldSchemaKey": {
 |
| 1913 | "name": "CDSRequestCommonHeaderType",
 |
| 1914 | "version": "0.0.1"
 |
| 1915 | },
 |
| 1916 | "optional": false
 |
| 1917 | }
 |
| 1918 | },
 |
| 1919 | {
 |
| 1920 | "key": "payload",
 |
| 1921 | "value": {
 |
| 1922 | "key": "payload",
 |
| 1923 | "fieldSchemaKey": {
 |
| 1924 | "name": "CDSCreateSubscriptionPayloadType",
 |
| 1925 | "version": "0.0.1"
 |
| 1926 | },
 |
| 1927 | "optional": false
 |
| 1928 | }
 |
| 1929 | }
 |
| 1930 | ]
 |
| 1931 | }
 |
| 1932 | }
 |
| 1933 | },
 |
| 1934 | {
 |
| 1935 | "key": {
 |
| 1936 | "name": "DeleteSubscriptionPayloadEvent",
 |
| 1937 | "version": "0.0.1"
 |
| 1938 | },
 |
| 1939 | "value": {
 |
| 1940 | "key": {
 |
| 1941 | "name": "DeleteSubscriptionPayloadEvent",
 |
| 1942 | "version": "0.0.1"
 |
| 1943 | },
 |
| 1944 | "nameSpace": "org.onap.policy.apex.onap.pmcontrol",
 |
| 1945 | "source": "APEX",
 |
| 1946 | "target": "APEX",
 |
| 1947 | "parameter": {
 |
| 1948 | "entry": [
 |
| 1949 | {
 |
| 1950 | "key": "albumID",
 |
| 1951 | "value": {
 |
| 1952 | "key": "albumID",
 |
| 1953 | "fieldSchemaKey": {
 |
| 1954 | "name": "UUIDType",
 |
| 1955 | "version": "0.0.1"
 |
| 1956 | },
 |
| 1957 | "optional": false
 |
| 1958 | }
 |
| 1959 | },
 |
| 1960 | {
 |
| 1961 | "key": "payload",
 |
| 1962 | "value": {
 |
| 1963 | "key": "payload",
 |
| 1964 | "fieldSchemaKey": {
 |
| 1965 | "name": "CDSDeleteSubscriptionPayloadType",
 |
| 1966 | "version": "0.0.1"
 |
| 1967 | },
 |
| 1968 | "optional": false
 |
| 1969 | }
 |
| 1970 | }
 |
| 1971 | ]
 |
| 1972 | }
 |
| 1973 | }
 |
| 1974 | },
 |
| 1975 | {
 |
| 1976 | "key": {
 |
| 1977 | "name": "DeleteSubscriptionRequestEvent",
 |
| 1978 | "version": "0.0.1"
 |
| 1979 | },
 |
| 1980 | "value": {
 |
| 1981 | "key": {
 |
| 1982 | "name": "DeleteSubscriptionRequestEvent",
 |
| 1983 | "version": "0.0.1"
 |
| 1984 | },
 |
| 1985 | "nameSpace": "org.onap.policy.apex.onap.pmcontrol",
 |
| 1986 | "source": "APEX",
 |
| 1987 | "target": "APEX",
 |
| 1988 | "parameter": {
 |
| 1989 | "entry": [
 |
| 1990 | {
 |
| 1991 | "key": "actionIdentifiers",
 |
| 1992 | "value": {
 |
| 1993 | "key": "actionIdentifiers",
 |
| 1994 | "fieldSchemaKey": {
 |
| 1995 | "name": "CDSActionIdentifiersType",
 |
| 1996 | "version": "0.0.1"
 |
| 1997 | },
 |
| 1998 | "optional": false
 |
| 1999 | }
 |
| 2000 | },
 |
| 2001 | {
 |
| 2002 | "key": "commonHeader",
 |
| 2003 | "value": {
 |
| 2004 | "key": "commonHeader",
 |
| 2005 | "fieldSchemaKey": {
 |
| 2006 | "name": "CDSRequestCommonHeaderType",
 |
| 2007 | "version": "0.0.1"
 |
| 2008 | },
 |
| 2009 | "optional": false
 |
| 2010 | }
 |
| 2011 | },
 |
| 2012 | {
 |
| 2013 | "key": "payload",
 |
| 2014 | "value": {
 |
| 2015 | "key": "payload",
 |
| 2016 | "fieldSchemaKey": {
 |
| 2017 | "name": "CDSDeleteSubscriptionPayloadType",
 |
| 2018 | "version": "0.0.1"
 |
| 2019 | },
 |
| 2020 | "optional": false
 |
| 2021 | }
 |
| 2022 | }
 |
| 2023 | ]
 |
| 2024 | }
 |
| 2025 | }
 |
| 2026 | },
 |
| 2027 | {
 |
| 2028 | "key": {
 |
| 2029 | "name": "PMSubscriptionOutputEvent",
 |
| 2030 | "version": "0.0.1"
 |
| 2031 | },
 |
| 2032 | "value": {
 |
| 2033 | "key": {
 |
| 2034 | "name": "PMSubscriptionOutputEvent",
 |
| 2035 | "version": "0.0.1"
 |
| 2036 | },
 |
| 2037 | "nameSpace": "org.onap.policy.apex.onap.pmcontrol",
 |
| 2038 | "source": "APEX",
 |
| 2039 | "target": "APEX",
 |
| 2040 | "parameter": {
 |
| 2041 | "entry": [
 |
| 2042 | {
 |
| 2043 | "key": "albumID",
 |
| 2044 | "value": {
 |
| 2045 | "key": "albumID",
 |
| 2046 | "fieldSchemaKey": {
 |
| 2047 | "name": "UUIDType",
 |
| 2048 | "version": "0.0.1"
 |
| 2049 | },
 |
| 2050 | "optional": false
 |
| 2051 | }
 |
| 2052 | }
 |
| 2053 | ]
 |
| 2054 | }
 |
| 2055 | }
 |
| 2056 | },
 |
| 2057 | {
 |
| 2058 | "key": {
 |
| 2059 | "name": "testPolicyB",
 |
| 2060 | "version": "0.0.1"
 |
| 2061 | },
 |
| 2062 | "value": {
 |
| 2063 | "key": {
 |
| 2064 | "name": "testPolicyB",
 |
| 2065 | "version": "0.0.1"
 |
| 2066 | },
 |
| 2067 | "nameSpace": "org.onap.policy.apex.onap.pmcontrol",
 |
| 2068 | "source": "DCAE",
 |
| 2069 | "target": "APEX",
 |
| 2070 | "parameter": {
 |
| 2071 | "entry": [
 |
| 2072 | {
 |
| 2073 | "key": "changeType",
 |
| 2074 | "value": {
 |
| 2075 | "key": "changeType",
 |
| 2076 | "fieldSchemaKey": {
 |
| 2077 | "name": "SimpleStringType",
 |
| 2078 | "version": "0.0.1"
 |
| 2079 | },
 |
| 2080 | "optional": false
 |
| 2081 | }
 |
| 2082 | },
 |
| 2083 | {
 |
| 2084 | "key": "closedLoopControlName",
 |
| 2085 | "value": {
 |
| 2086 | "key": "closedLoopControlName",
 |
| 2087 | "fieldSchemaKey": {
 |
| 2088 | "name": "SimpleStringType",
 |
| 2089 | "version": "0.0.1"
 |
| 2090 | },
 |
| 2091 | "optional": false
 |
| 2092 | }
 |
| 2093 | },
 |
| 2094 | {
 |
| 2095 | "key": "nfName",
 |
| 2096 | "value": {
 |
| 2097 | "key": "nfName",
 |
| 2098 | "fieldSchemaKey": {
 |
| 2099 | "name": "SimpleStringType",
 |
| 2100 | "version": "0.0.1"
 |
| 2101 | },
 |
| 2102 | "optional": false
 |
| 2103 | }
 |
| 2104 | },
 |
| 2105 | {
 |
| 2106 | "key": "policyName",
 |
| 2107 | "value": {
 |
| 2108 | "key": "policyName",
 |
| 2109 | "fieldSchemaKey": {
 |
| 2110 | "name": "SimpleStringType",
 |
| 2111 | "version": "0.0.1"
 |
| 2112 | },
 |
| 2113 | "optional": false
 |
| 2114 | }
 |
| 2115 | },
 |
| 2116 | {
 |
| 2117 | "key": "subscription",
 |
| 2118 | "value": {
 |
| 2119 | "key": "subscription",
 |
| 2120 | "fieldSchemaKey": {
 |
| 2121 | "name": "SubscriptionType",
 |
| 2122 | "version": "0.0.1"
 |
| 2123 | },
 |
| 2124 | "optional": false
 |
| 2125 | }
 |
| 2126 | }
 |
| 2127 | ]
 |
| 2128 | }
 |
| 2129 | }
 |
| 2130 | }
 |
| 2131 | ]
 |
| 2132 | }
 |
| 2133 | },
 |
| 2134 | "albums": {
 |
| 2135 | "key": {
 |
| 2136 | "name": "APEXgRPCPolicy_Albums",
 |
| 2137 | "version": "0.0.1"
 |
| 2138 | },
 |
| 2139 | "albums": {
 |
| 2140 | "entry": [
 |
| 2141 | {
 |
| 2142 | "key": {
 |
| 2143 | "name": "PMSubscriptionAlbum",
 |
| 2144 | "version": "0.0.1"
 |
| 2145 | },
 |
| 2146 | "value": {
 |
| 2147 | "key": {
 |
| 2148 | "name": "PMSubscriptionAlbum",
 |
| 2149 | "version": "0.0.1"
 |
| 2150 | },
 |
| 2151 | "scope": "policy",
 |
| 2152 | "isWritable": true,
 |
| 2153 | "itemSchema": {
 |
| 2154 | "name": "PMSubscriptionType",
 |
| 2155 | "version": "0.0.1"
 |
| 2156 | }
 |
| 2157 | }
 |
| 2158 | }
 |
| 2159 | ]
 |
| 2160 | }
 |
| 2161 | },
 |
| 2162 | "schemas": {
 |
| 2163 | "key": {
 |
| 2164 | "name": "APEXgRPCPolicy_Schemas",
 |
| 2165 | "version": "0.0.1"
 |
| 2166 | },
 |
| 2167 | "schemas": {
 |
| 2168 | "entry": [
 |
| 2169 | {
 |
| 2170 | "key": {
 |
| 2171 | "name": "CDSActionIdentifiersType",
 |
| 2172 | "version": "0.0.1"
 |
| 2173 | },
 |
| 2174 | "value": {
 |
| 2175 | "key": {
 |
| 2176 | "name": "CDSActionIdentifiersType",
 |
| 2177 | "version": "0.0.1"
 |
| 2178 | },
 |
| 2179 | "schemaFlavour": "Avro",
 |
| 2180 | "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}"
 |
| 2181 | }
 |
| 2182 | },
 |
| 2183 | {
 |
| 2184 | "key": {
 |
| 2185 | "name": "CDSCreateSubscriptionPayloadType",
 |
| 2186 | "version": "0.0.1"
 |
| 2187 | },
 |
| 2188 | "value": {
 |
| 2189 | "key": {
 |
| 2190 | "name": "CDSCreateSubscriptionPayloadType",
 |
| 2191 | "version": "0.0.1"
 |
| 2192 | },
 |
| 2193 | "schemaFlavour": "Avro",
 |
| 2194 | "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}"
 |
| 2195 | }
 |
| 2196 | },
 |
| 2197 | {
 |
| 2198 | "key": {
 |
| 2199 | "name": "CDSDeleteSubscriptionPayloadType",
 |
| 2200 | "version": "0.0.1"
 |
| 2201 | },
 |
| 2202 | "value": {
 |
| 2203 | "key": {
 |
| 2204 | "name": "CDSDeleteSubscriptionPayloadType",
 |
| 2205 | "version": "0.0.1"
 |
| 2206 | },
 |
| 2207 | "schemaFlavour": "Avro",
 |
| 2208 | "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}"
 |
| 2209 | }
 |
| 2210 | },
 |
| 2211 | {
 |
| 2212 | "key": {
 |
| 2213 | "name": "CDSRequestCommonHeaderType",
 |
| 2214 | "version": "0.0.1"
 |
| 2215 | },
 |
| 2216 | "value": {
 |
| 2217 | "key": {
 |
| 2218 | "name": "CDSRequestCommonHeaderType",
 |
| 2219 | "version": "0.0.1"
 |
| 2220 | },
 |
| 2221 | "schemaFlavour": "Avro",
 |
| 2222 | "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}"
 |
| 2223 | }
 |
| 2224 | },
 |
| 2225 | {
 |
| 2226 | "key": {
 |
| 2227 | "name": "CDSResponseCommonHeaderType",
 |
| 2228 | "version": "0.0.1"
 |
| 2229 | },
 |
| 2230 | "value": {
 |
| 2231 | "key": {
 |
| 2232 | "name": "CDSResponseCommonHeaderType",
 |
| 2233 | "version": "0.0.1"
 |
| 2234 | },
 |
| 2235 | "schemaFlavour": "Avro",
 |
| 2236 | "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}"
 |
| 2237 | }
 |
| 2238 | },
 |
| 2239 | {
 |
| 2240 | "key": {
 |
| 2241 | "name": "CDSResponsePayloadType",
 |
| 2242 | "version": "0.0.1"
 |
| 2243 | },
 |
| 2244 | "value": {
 |
| 2245 | "key": {
 |
| 2246 | "name": "CDSResponsePayloadType",
 |
| 2247 | "version": "0.0.1"
 |
| 2248 | },
 |
| 2249 | "schemaFlavour": "Avro",
 |
| 2250 | "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}"
 |
| 2251 | }
 |
| 2252 | },
 |
| 2253 | {
 |
| 2254 | "key": {
 |
| 2255 | "name": "CDSResponseStatusType",
 |
| 2256 | "version": "0.0.1"
 |
| 2257 | },
 |
| 2258 | "value": {
 |
| 2259 | "key": {
 |
| 2260 | "name": "CDSResponseStatusType",
 |
| 2261 | "version": "0.0.1"
 |
| 2262 | },
 |
| 2263 | "schemaFlavour": "Avro",
 |
| 2264 | "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}"
 |
| 2265 | }
 |
| 2266 | },
 |
| 2267 | {
 |
| 2268 | "key": {
 |
| 2269 | "name": "PMSubscriptionType",
 |
| 2270 | "version": "0.0.1"
 |
| 2271 | },
 |
| 2272 | "value": {
 |
| 2273 | "key": {
 |
| 2274 | "name": "PMSubscriptionType",
 |
| 2275 | "version": "0.0.1"
 |
| 2276 | },
 |
| 2277 | "schemaFlavour": "Avro",
 |
| 2278 | "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}"
 |
| 2279 | }
 |
| 2280 | },
 |
| 2281 | {
 |
| 2282 | "key": {
 |
| 2283 | "name": "SimpleIntType",
 |
| 2284 | "version": "0.0.1"
 |
| 2285 | },
 |
| 2286 | "value": {
 |
| 2287 | "key": {
 |
| 2288 | "name": "SimpleIntType",
 |
| 2289 | "version": "0.0.1"
 |
| 2290 | },
 |
| 2291 | "schemaFlavour": "Java",
 |
| 2292 | "schemaDefinition": "java.lang.Integer"
 |
| 2293 | }
 |
| 2294 | },
 |
| 2295 | {
 |
| 2296 | "key": {
 |
| 2297 | "name": "SimpleStringType",
 |
| 2298 | "version": "0.0.1"
 |
| 2299 | },
 |
| 2300 | "value": {
 |
| 2301 | "key": {
 |
| 2302 | "name": "SimpleStringType",
 |
| 2303 | "version": "0.0.1"
 |
| 2304 | },
 |
| 2305 | "schemaFlavour": "Java",
 |
| 2306 | "schemaDefinition": "java.lang.String"
 |
| 2307 | }
 |
| 2308 | },
 |
| 2309 | {
 |
| 2310 | "key": {
 |
| 2311 | "name": "SubscriptionStatusType",
 |
| 2312 | "version": "0.0.1"
 |
| 2313 | },
 |
| 2314 | "value": {
 |
| 2315 | "key": {
 |
| 2316 | "name": "SubscriptionStatusType",
 |
| 2317 | "version": "0.0.1"
 |
| 2318 | },
 |
| 2319 | "schemaFlavour": "Avro",
 |
| 2320 | "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}"
 |
| 2321 | }
 |
| 2322 | },
 |
| 2323 | {
 |
| 2324 | "key": {
 |
| 2325 | "name": "SubscriptionType",
 |
| 2326 | "version": "0.0.1"
 |
| 2327 | },
 |
| 2328 | "value": {
 |
| 2329 | "key": {
 |
| 2330 | "name": "SubscriptionType",
 |
| 2331 | "version": "0.0.1"
 |
| 2332 | },
 |
| 2333 | "schemaFlavour": "Avro",
 |
| 2334 | "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}"
 |
| 2335 | }
 |
| 2336 | },
 |
| 2337 | {
 |
| 2338 | "key": {
 |
| 2339 | "name": "UUIDType",
 |
| 2340 | "version": "0.0.1"
 |
| 2341 | },
 |
| 2342 | "value": {
 |
| 2343 | "key": {
 |
| 2344 | "name": "UUIDType",
 |
| 2345 | "version": "0.0.1"
 |
| 2346 | },
 |
| 2347 | "schemaFlavour": "Java",
 |
| 2348 | "schemaDefinition": "java.util.UUID"
 |
| 2349 | }
 |
| 2350 | }
 |
| 2351 | ]
 |
| 2352 | }
 |
| 2353 | }
 |
| 2354 | }
 |
| 2355 | }
 |
| 2356 | },
 |
| 2357 | "eventOutputParameters": {
 |
| 2358 | "logOutputter": {
 |
| 2359 | "carrierTechnologyParameters": {
 |
| 2360 | "carrierTechnology": "FILE",
 |
| 2361 | "parameters": {
 |
| 2362 | "fileName": "outputevents.log"
 |
| 2363 | }
 |
| 2364 | },
 |
| 2365 | "eventProtocolParameters": {
 |
| 2366 | "eventProtocol": "JSON"
 |
| 2367 | }
 |
| 2368 | },
 |
| 2369 | "CDSRequestProducer": {
 |
| 2370 | "carrierTechnologyParameters": {
 |
| 2371 | "carrierTechnology": "GRPC",
 |
| 2372 | "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.grpc.GrpcCarrierTechnologyParameters",
 |
| 2373 | "parameters": {
 |
| 2374 | "host": "10.2.0.105",
 |
| 2375 | "port": 54322,
 |
| 2376 | "username": "ccsdkapps",
 |
| 2377 | "password": "ccsdkapps",
 |
| 2378 | "timeout": 60
 |
| 2379 | }
 |
| 2380 | },
 |
| 2381 | "eventProtocolParameters": {
 |
| 2382 | "eventProtocol": "JSON"
 |
| 2383 | },
 |
| 2384 | "eventNameFilter": "(Create|Delete)SubscriptionRequestEvent",
 |
| 2385 | "requestorMode": true,
 |
| 2386 | "requestorPeer": "CDSRequestConsumer",
 |
| 2387 | "requestorTimeout": 500
 |
| 2388 | },
 |
| 2389 | "CDSReplyProducer": {
 |
| 2390 | "carrierTechnologyParameters": {
 |
| 2391 | "carrierTechnology": "RESTCLIENT",
 |
| 2392 | "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restclient.RestClientCarrierTechnologyParameters",
 |
| 2393 | "parameters": {
 |
| 2394 | "url": "https://message-router:3905/events/POLICY_CL_MGT"
 |
| 2395 | }
 |
| 2396 | },
 |
| 2397 | "eventProtocolParameters": {
 |
| 2398 | "eventProtocol": "JSON"
 |
| 2399 | },
 |
| 2400 | "eventNameFilter": "CDSResponseStatusEvent"
 |
| 2401 | }
 |
| 2402 | },
 |
| 2403 | "eventInputParameters": {
 |
| 2404 | "DCAEConsumer": {
 |
| 2405 | "carrierTechnologyParameters": {
 |
| 2406 | "carrierTechnology": "RESTCLIENT",
 |
| 2407 | "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restclient.RestClientCarrierTechnologyParameters",
 |
| 2408 | "parameters": {
 |
| 2409 | "url": "https://message-router:3905/events/unauthenticated.DCAE_CL_OUTPUT/cg1/c1?timeout=30000"
 |
| 2410 | }
 |
| 2411 | },
 |
| 2412 | "eventProtocolParameters": {
 |
| 2413 | "eventProtocol": "JSON",
 |
| 2414 | "parameters": {
 |
| 2415 | "nameAlias": "testPolicyB"
 |
| 2416 | }
 |
| 2417 | },
 |
| 2418 | "eventName": "testPolicyB",
 |
| 2419 | "eventNameFilter": "testPolicyB"
 |
| 2420 | },
 |
| 2421 | "CDSRequestConsumer": {
 |
| 2422 | "carrierTechnologyParameters": {
 |
| 2423 | "carrierTechnology": "GRPC",
 |
| 2424 | "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.grpc.GrpcCarrierTechnologyParameters"
 |
| 2425 | },
 |
| 2426 | "eventProtocolParameters": {
 |
| 2427 | "eventProtocol": "JSON"
 |
| 2428 | },
 |
| 2429 | "eventName": "CDSResponseEvent",
 |
| 2430 | "eventNameFilter": "CDSResponseEvent",
 |
| 2431 | "requestorMode": true,
 |
| 2432 | "requestorPeer": "CDSRequestProducer",
 |
| 2433 | "requestorTimeout": 500
 |
| 2434 | }
 |
| 2435 | }
 |
| 2436 | },
 |
| 2437 | "name": "operational.apex.stabilityTestDefaultDomain",
 |
| 2438 | "version": "1.0.0",
 |
| 2439 | "metadata": {
 |
| 2440 | "policy-id": "operational.apex.stabilityTestDefaultDomain",
 |
| 2441 | "policy-version": "1.0.0"
 |
| 2442 | }
 |
| 2443 | }
 |
| 2444 | }
 |
| 2445 | ]
 |
| 2446 | },
 |
| 2447 | "name": "ToscaServiceTemplateSimple",
 |
| 2448 | "version": "1.0.0",
 |
| 2449 | "metadata": {}
 |
| 2450 | }</stringProp> |
| 2451 | <stringProp name="Argument.metadata">=</stringProp> |
| 2452 | </elementProp> |
| 2453 | </collectionProp> |
| 2454 | </elementProp> |
| 2455 | <stringProp name="HTTPSampler.domain">${HOSTNAME}</stringProp> |
| 2456 | <stringProp name="HTTPSampler.port">${API_PORT}</stringProp> |
| 2457 | <stringProp name="HTTPSampler.protocol">https</stringProp> |
| 2458 | <stringProp name="HTTPSampler.contentEncoding"></stringProp> |
| 2459 | <stringProp name="HTTPSampler.path">/policy/api/v1/policies</stringProp> |
| 2460 | <stringProp name="HTTPSampler.method">POST</stringProp> |
| 2461 | <boolProp name="HTTPSampler.follow_redirects">true</boolProp> |
| 2462 | <boolProp name="HTTPSampler.auto_redirects">false</boolProp> |
| 2463 | <boolProp name="HTTPSampler.use_keepalive">true</boolProp> |
| 2464 | <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp> |
| 2465 | <stringProp name="HTTPSampler.embedded_url_re"></stringProp> |
| 2466 | <stringProp name="HTTPSampler.connect_timeout"></stringProp> |
| 2467 | <stringProp name="HTTPSampler.response_timeout"></stringProp> |
| 2468 | </HTTPSamplerProxy> |
| 2469 | <hashTree> |
| 2470 | <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true"> |
| 2471 | <collectionProp name="Asserion.test_strings"> |
| 2472 | <stringProp name="49586">200</stringProp> |
| 2473 | </collectionProp> |
| 2474 | <stringProp name="Assertion.custom_message"></stringProp> |
| 2475 | <stringProp name="Assertion.test_field">Assertion.response_code</stringProp> |
| 2476 | <boolProp name="Assertion.assume_success">false</boolProp> |
| 2477 | <intProp name="Assertion.test_type">1</intProp> |
| 2478 | </ResponseAssertion> |
| 2479 | <hashTree/> |
| 2480 | </hashTree> |
| 2481 | <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Deploy policy" enabled="true"> |
| 2482 | <boolProp name="HTTPSampler.postBodyRaw">true</boolProp> |
| 2483 | <elementProp name="HTTPsampler.Arguments" elementType="Arguments"> |
| 2484 | <collectionProp name="Arguments.arguments"> |
| 2485 | <elementProp name="" elementType="HTTPArgument"> |
| 2486 | <boolProp name="HTTPArgument.always_encode">false</boolProp> |
| 2487 | <stringProp name="Argument.value">{
 |
| 2488 | "groups": [
 |
| 2489 | {
 |
| 2490 | "name": "defaultGroup",
 |
| 2491 | "deploymentSubgroups": [
 |
| 2492 | {
 |
| 2493 | "pdpType": "apex",
 |
| 2494 | "action": "POST",
 |
| 2495 | "policies": [
 |
| 2496 | {
 |
| 2497 | "name": "operational.apex.stabilityTestDefaultDomain",
 |
| 2498 | "version": "1.0.0"
 |
| 2499 | }
 |
| 2500 | ]
 |
| 2501 | }
 |
| 2502 | ]
 |
| 2503 | }
 |
| 2504 | ]
 |
| 2505 | }</stringProp> |
| 2506 | <stringProp name="Argument.metadata">=</stringProp> |
| 2507 | </elementProp> |
| 2508 | </collectionProp> |
| 2509 | </elementProp> |
| 2510 | <stringProp name="HTTPSampler.domain">${HOSTNAME}</stringProp> |
| 2511 | <stringProp name="HTTPSampler.port">${PAP_PORT}</stringProp> |
| 2512 | <stringProp name="HTTPSampler.protocol">https</stringProp> |
| 2513 | <stringProp name="HTTPSampler.contentEncoding"></stringProp> |
| 2514 | <stringProp name="HTTPSampler.path">/policy/pap/v1/pdps/deployments/batch</stringProp> |
| 2515 | <stringProp name="HTTPSampler.method">POST</stringProp> |
| 2516 | <boolProp name="HTTPSampler.follow_redirects">true</boolProp> |
| 2517 | <boolProp name="HTTPSampler.auto_redirects">false</boolProp> |
| 2518 | <boolProp name="HTTPSampler.use_keepalive">true</boolProp> |
| 2519 | <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp> |
| 2520 | <stringProp name="HTTPSampler.embedded_url_re"></stringProp> |
| 2521 | <stringProp name="HTTPSampler.connect_timeout"></stringProp> |
| 2522 | <stringProp name="HTTPSampler.response_timeout"></stringProp> |
| 2523 | </HTTPSamplerProxy> |
| 2524 | <hashTree> |
| 2525 | <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true"> |
| 2526 | <collectionProp name="Asserion.test_strings"> |
| 2527 | <stringProp name="49586">200</stringProp> |
| 2528 | </collectionProp> |
| 2529 | <stringProp name="Assertion.custom_message"></stringProp> |
| 2530 | <stringProp name="Assertion.test_field">Assertion.response_code</stringProp> |
| 2531 | <boolProp name="Assertion.assume_success">false</boolProp> |
| 2532 | <intProp name="Assertion.test_type">1</intProp> |
| 2533 | </ResponseAssertion> |
| 2534 | <hashTree/> |
| 2535 | </hashTree> |
| 2536 | </hashTree> |
ramverma | 78c6f58 | 2018-10-23 16:58:34 +0100 | [diff] [blame] | 2537 | <ThreadGroup guiclass="ThreadGroupGui" testclass="ThreadGroup" testname="Thread Group" enabled="true"> |
aditya.puthuparambil | ff67d11 | 2020-06-02 16:22:59 +0100 | [diff] [blame^] | 2538 | <stringProp name="ThreadGroup.on_sample_error">continue</stringProp> |
ramverma | 78c6f58 | 2018-10-23 16:58:34 +0100 | [diff] [blame] | 2539 | <elementProp name="ThreadGroup.main_controller" elementType="LoopController" guiclass="LoopControlPanel" testclass="LoopController" testname="Loop Controller" enabled="true"> |
| 2540 | <boolProp name="LoopController.continue_forever">false</boolProp> |
| 2541 | <intProp name="LoopController.loops">-1</intProp> |
| 2542 | </elementProp> |
| 2543 | <stringProp name="ThreadGroup.num_threads">${threads}</stringProp> |
| 2544 | <stringProp name="ThreadGroup.ramp_time">1</stringProp> |
aditya.puthuparambil | ff67d11 | 2020-06-02 16:22:59 +0100 | [diff] [blame^] | 2545 | <boolProp name="ThreadGroup.scheduler">true</boolProp> |
| 2546 | <stringProp name="ThreadGroup.duration">260000</stringProp> |
ramverma | 78c6f58 | 2018-10-23 16:58:34 +0100 | [diff] [blame] | 2547 | <stringProp name="ThreadGroup.delay"></stringProp> |
aditya.puthuparambil | ff67d11 | 2020-06-02 16:22:59 +0100 | [diff] [blame^] | 2548 | <boolProp name="ThreadGroup.same_user_on_next_iteration">true</boolProp> |
ramverma | 78c6f58 | 2018-10-23 16:58:34 +0100 | [diff] [blame] | 2549 | </ThreadGroup> |
| 2550 | <hashTree> |
aditya.puthuparambil | ff67d11 | 2020-06-02 16:22:59 +0100 | [diff] [blame^] | 2551 | <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Health Check" enabled="true"> |
| 2552 | <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true"> |
| 2553 | <collectionProp name="Arguments.arguments"/> |
| 2554 | </elementProp> |
| 2555 | <stringProp name="HTTPSampler.domain">${HOSTNAME}</stringProp> |
| 2556 | <stringProp name="HTTPSampler.port">${APEX_PORT}</stringProp> |
| 2557 | <stringProp name="HTTPSampler.protocol">https</stringProp> |
| 2558 | <stringProp name="HTTPSampler.contentEncoding"></stringProp> |
| 2559 | <stringProp name="HTTPSampler.path">/policy/apex-pdp/v1/healthcheck</stringProp> |
| 2560 | <stringProp name="HTTPSampler.method">GET</stringProp> |
| 2561 | <boolProp name="HTTPSampler.follow_redirects">true</boolProp> |
| 2562 | <boolProp name="HTTPSampler.auto_redirects">false</boolProp> |
| 2563 | <boolProp name="HTTPSampler.use_keepalive">true</boolProp> |
| 2564 | <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp> |
| 2565 | <stringProp name="HTTPSampler.embedded_url_re"></stringProp> |
| 2566 | <stringProp name="HTTPSampler.connect_timeout"></stringProp> |
| 2567 | <stringProp name="HTTPSampler.response_timeout"></stringProp> |
| 2568 | </HTTPSamplerProxy> |
| 2569 | <hashTree> |
| 2570 | <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true"> |
| 2571 | <stringProp name="cacheKey">true</stringProp> |
| 2572 | <stringProp name="filename"></stringProp> |
| 2573 | <stringProp name="parameters"></stringProp> |
| 2574 | <stringProp name="script">import groovy.json.JsonSlurper; |
| 2575 | |
| 2576 | def res = []; |
| 2577 | if (prev.getResponseCode() == '200') { |
| 2578 | def jsonSlurper = new JsonSlurper(); |
| 2579 | res = jsonSlurper.parseText(prev.getResponseDataAsString()); |
| 2580 | |
| 2581 | assert res instanceof Map; |
| 2582 | assert res.healthy == true; |
| 2583 | assert res.message == 'alive'; |
| 2584 | } |
| 2585 | </stringProp> |
| 2586 | <stringProp name="scriptLanguage">groovy</stringProp> |
| 2587 | </JSR223Assertion> |
| 2588 | <hashTree/> |
| 2589 | </hashTree> |
ramverma | 78c6f58 | 2018-10-23 16:58:34 +0100 | [diff] [blame] | 2590 | <GenericController guiclass="LogicControllerGui" testclass="GenericController" testname="Test Controller" enabled="true"/> |
| 2591 | <hashTree> |
| 2592 | <SyncTimer guiclass="TestBeanGUI" testclass="SyncTimer" testname="Synchronizing Timer" enabled="true"> |
| 2593 | <stringProp name="groupSize">${threads}</stringProp> |
| 2594 | <stringProp name="timeoutInMs">${threadsTimeOutInMs}</stringProp> |
| 2595 | </SyncTimer> |
| 2596 | <hashTree/> |
| 2597 | <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Send Input Event" enabled="true"> |
| 2598 | <boolProp name="HTTPSampler.postBodyRaw">true</boolProp> |
| 2599 | <elementProp name="HTTPsampler.Arguments" elementType="Arguments"> |
| 2600 | <collectionProp name="Arguments.arguments"> |
| 2601 | <elementProp name="" elementType="HTTPArgument"> |
| 2602 | <boolProp name="HTTPArgument.always_encode">false</boolProp> |
| 2603 | <stringProp name="Argument.value">{
 |
aditya.puthuparambil | ff67d11 | 2020-06-02 16:22:59 +0100 | [diff] [blame^] | 2604 | "changeType": "CREATE",
 |
| 2605 | "closedLoopControlName": "test",
 |
| 2606 | "policyName": "test",
 |
| 2607 | "nfName": "pnf300",
 |
| 2608 | "subscription": {
 |
| 2609 | "subscriptionName": "testPolicyB",
 |
| 2610 | "administrativeState": "UNLOCKED",
 |
| 2611 | "fileBasedGP": 15,
 |
| 2612 | "fileLocation": "/pm/pm.xml",
 |
| 2613 | "measurementGroups": [
 |
| 2614 | {
 |
| 2615 | "measurementGroup": {
 |
| 2616 | "measurementTypes": [
 |
| 2617 | {
 |
| 2618 | "measurementType": "countera"
 |
| 2619 | },
 |
| 2620 | {
 |
| 2621 | "measurementType": "counterb"
 |
| 2622 | }
 |
| 2623 | ],
 |
| 2624 | "managedObjectDNsBasic": [
 |
| 2625 | {
 |
| 2626 | "DN": "dna"
 |
| 2627 | },
 |
| 2628 | {
 |
| 2629 | "DN": "dnb"
 |
| 2630 | }
 |
| 2631 | ]
 |
| 2632 | }
 |
| 2633 | },
 |
| 2634 | {
 |
| 2635 | "measurementGroup": {
 |
| 2636 | "measurementTypes": [
 |
| 2637 | {
 |
| 2638 | "measurementType": "counterc"
 |
| 2639 | },
 |
| 2640 | {
 |
| 2641 | "measurementType": "counterd"
 |
| 2642 | }
 |
| 2643 | ],
 |
| 2644 | "managedObjectDNsBasic": [
 |
| 2645 | {
 |
| 2646 | "DN": "dnc"
 |
| 2647 | },
 |
| 2648 | {
 |
| 2649 | "DN": "dnd"
 |
| 2650 | }
 |
| 2651 | ]
 |
| 2652 | }
 |
| 2653 | }
 |
| 2654 | ]
 |
| 2655 | }
 |
| 2656 | }</stringProp> |
ramverma | 78c6f58 | 2018-10-23 16:58:34 +0100 | [diff] [blame] | 2657 | <stringProp name="Argument.metadata">=</stringProp> |
| 2658 | </elementProp> |
| 2659 | </collectionProp> |
| 2660 | </elementProp> |
aditya.puthuparambil | ff67d11 | 2020-06-02 16:22:59 +0100 | [diff] [blame^] | 2661 | <stringProp name="HTTPSampler.domain">${HOSTNAME}</stringProp> |
| 2662 | <stringProp name="HTTPSampler.port">${DMAAP_PORT}</stringProp> |
| 2663 | <stringProp name="HTTPSampler.protocol">http</stringProp> |
ramverma | 78c6f58 | 2018-10-23 16:58:34 +0100 | [diff] [blame] | 2664 | <stringProp name="HTTPSampler.contentEncoding"></stringProp> |
aditya.puthuparambil | ff67d11 | 2020-06-02 16:22:59 +0100 | [diff] [blame^] | 2665 | <stringProp name="HTTPSampler.path">/events/unauthenticated.DCAE_CL_OUTPUT</stringProp> |
| 2666 | <stringProp name="HTTPSampler.method">POST</stringProp> |
ramverma | 78c6f58 | 2018-10-23 16:58:34 +0100 | [diff] [blame] | 2667 | <boolProp name="HTTPSampler.follow_redirects">true</boolProp> |
| 2668 | <boolProp name="HTTPSampler.auto_redirects">false</boolProp> |
| 2669 | <boolProp name="HTTPSampler.use_keepalive">true</boolProp> |
| 2670 | <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp> |
| 2671 | <stringProp name="HTTPSampler.embedded_url_re"></stringProp> |
| 2672 | <stringProp name="HTTPSampler.connect_timeout"></stringProp> |
| 2673 | <stringProp name="HTTPSampler.response_timeout"></stringProp> |
| 2674 | <stringProp name="TestPlan.comments">Send input event to apex-pdp</stringProp> |
| 2675 | </HTTPSamplerProxy> |
| 2676 | <hashTree> |
| 2677 | <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Assert Response Code" enabled="true"> |
| 2678 | <collectionProp name="Asserion.test_strings"> |
| 2679 | <stringProp name="49586">200</stringProp> |
| 2680 | </collectionProp> |
| 2681 | <stringProp name="Assertion.custom_message"></stringProp> |
| 2682 | <stringProp name="Assertion.test_field">Assertion.response_code</stringProp> |
| 2683 | <boolProp name="Assertion.assume_success">false</boolProp> |
| 2684 | <intProp name="Assertion.test_type">8</intProp> |
| 2685 | <stringProp name="Scope.variable">Response code</stringProp> |
| 2686 | <stringProp name="TestPlan.comments">Assert response code coming back from apex-pdp</stringProp> |
| 2687 | </ResponseAssertion> |
| 2688 | <hashTree/> |
aditya.puthuparambil | ff67d11 | 2020-06-02 16:22:59 +0100 | [diff] [blame^] | 2689 | <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="WAIT" enabled="true"> |
| 2690 | <stringProp name="ConstantTimer.delay">${wait}</stringProp> |
| 2691 | </ConstantTimer> |
| 2692 | <hashTree/> |
| 2693 | </hashTree> |
| 2694 | <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get the ouput event response" enabled="true"> |
| 2695 | <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true"> |
| 2696 | <collectionProp name="Arguments.arguments"/> |
| 2697 | </elementProp> |
| 2698 | <stringProp name="HTTPSampler.domain">${HOSTNAME}</stringProp> |
| 2699 | <stringProp name="HTTPSampler.port">${DMAAP_PORT}</stringProp> |
| 2700 | <stringProp name="HTTPSampler.protocol">http</stringProp> |
| 2701 | <stringProp name="HTTPSampler.contentEncoding"></stringProp> |
| 2702 | <stringProp name="HTTPSampler.path">/events/POLICY_CL_MGT/cg1/c1?timeout=30000</stringProp> |
| 2703 | <stringProp name="HTTPSampler.method">GET</stringProp> |
| 2704 | <boolProp name="HTTPSampler.follow_redirects">true</boolProp> |
| 2705 | <boolProp name="HTTPSampler.auto_redirects">false</boolProp> |
| 2706 | <boolProp name="HTTPSampler.use_keepalive">true</boolProp> |
| 2707 | <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp> |
| 2708 | <stringProp name="HTTPSampler.embedded_url_re"></stringProp> |
| 2709 | <stringProp name="HTTPSampler.connect_timeout"></stringProp> |
| 2710 | <stringProp name="HTTPSampler.response_timeout"></stringProp> |
| 2711 | <stringProp name="TestPlan.comments">Check output event </stringProp> |
| 2712 | </HTTPSamplerProxy> |
| 2713 | <hashTree> |
| 2714 | <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Assert Response Code" enabled="true"> |
ramverma | 78c6f58 | 2018-10-23 16:58:34 +0100 | [diff] [blame] | 2715 | <collectionProp name="Asserion.test_strings"> |
aditya.puthuparambil | ff67d11 | 2020-06-02 16:22:59 +0100 | [diff] [blame^] | 2716 | <stringProp name="49586">200</stringProp> |
| 2717 | </collectionProp> |
| 2718 | <stringProp name="Assertion.custom_message"></stringProp> |
| 2719 | <stringProp name="Assertion.test_field">Assertion.response_code</stringProp> |
| 2720 | <boolProp name="Assertion.assume_success">false</boolProp> |
| 2721 | <intProp name="Assertion.test_type">8</intProp> |
| 2722 | <stringProp name="Scope.variable">Response code</stringProp> |
| 2723 | <stringProp name="TestPlan.comments">Assert response code coming back from apex-pdp</stringProp> |
| 2724 | </ResponseAssertion> |
| 2725 | <hashTree/> |
| 2726 | <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Assert Response Message" enabled="false"> |
| 2727 | <collectionProp name="Asserion.test_strings"> |
| 2728 | <stringProp name="1608759622">org.onap.policy.apex.onap.pmcontrol</stringProp> |
| 2729 | <stringProp name="1996002556">CREATE</stringProp> |
ramverma | 78c6f58 | 2018-10-23 16:58:34 +0100 | [diff] [blame] | 2730 | </collectionProp> |
| 2731 | <stringProp name="Assertion.custom_message"></stringProp> |
| 2732 | <stringProp name="Assertion.test_field">Assertion.response_data</stringProp> |
| 2733 | <boolProp name="Assertion.assume_success">false</boolProp> |
| 2734 | <intProp name="Assertion.test_type">2</intProp> |
| 2735 | <stringProp name="Scope.variable">Response code</stringProp> |
| 2736 | <stringProp name="TestPlan.comments">Assert response message coming back from apex-pdp</stringProp> |
| 2737 | </ResponseAssertion> |
| 2738 | <hashTree/> |
aditya.puthuparambil | ff67d11 | 2020-06-02 16:22:59 +0100 | [diff] [blame^] | 2739 | <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="WAIT" enabled="false"> |
ramverma | 78c6f58 | 2018-10-23 16:58:34 +0100 | [diff] [blame] | 2740 | <stringProp name="ConstantTimer.delay">${wait}</stringProp> |
| 2741 | </ConstantTimer> |
| 2742 | <hashTree/> |
| 2743 | </hashTree> |
| 2744 | </hashTree> |
| 2745 | </hashTree> |
aditya.puthuparambil | ff67d11 | 2020-06-02 16:22:59 +0100 | [diff] [blame^] | 2746 | <PostThreadGroup guiclass="PostThreadGroupGui" testclass="PostThreadGroup" testname="tearDown Thread Group" enabled="true"> |
| 2747 | <stringProp name="ThreadGroup.on_sample_error">continue</stringProp> |
| 2748 | <elementProp name="ThreadGroup.main_controller" elementType="LoopController" guiclass="LoopControlPanel" testclass="LoopController" testname="Loop Controller" enabled="true"> |
| 2749 | <boolProp name="LoopController.continue_forever">false</boolProp> |
| 2750 | <stringProp name="LoopController.loops">1</stringProp> |
| 2751 | </elementProp> |
| 2752 | <stringProp name="ThreadGroup.num_threads">1</stringProp> |
| 2753 | <stringProp name="ThreadGroup.ramp_time">1</stringProp> |
| 2754 | <boolProp name="ThreadGroup.scheduler">false</boolProp> |
| 2755 | <stringProp name="ThreadGroup.duration"></stringProp> |
| 2756 | <stringProp name="ThreadGroup.delay"></stringProp> |
| 2757 | <boolProp name="ThreadGroup.same_user_on_next_iteration">true</boolProp> |
| 2758 | </PostThreadGroup> |
| 2759 | <hashTree> |
| 2760 | <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Un deploy policy" enabled="true"> |
| 2761 | <boolProp name="HTTPSampler.postBodyRaw">true</boolProp> |
| 2762 | <elementProp name="HTTPsampler.Arguments" elementType="Arguments"> |
| 2763 | <collectionProp name="Arguments.arguments"> |
| 2764 | <elementProp name="" elementType="HTTPArgument"> |
| 2765 | <boolProp name="HTTPArgument.always_encode">false</boolProp> |
| 2766 | <stringProp name="Argument.value">{
 |
| 2767 | "groups": [
 |
| 2768 | {
 |
| 2769 | "name": "defaultGroup",
 |
| 2770 | "deploymentSubgroups": [
 |
| 2771 | {
 |
| 2772 | "pdpType": "apex",
 |
| 2773 | "action": "DELETE",
 |
| 2774 | "policies": [
 |
| 2775 | {
 |
| 2776 | "name": "operational.apex.stabilityTestDefaultDomain",
 |
| 2777 | "version": "1.0.0"
 |
| 2778 | }
 |
| 2779 | ]
 |
| 2780 | }
 |
| 2781 | ]
 |
| 2782 | }
 |
| 2783 | ]
 |
| 2784 | }</stringProp> |
| 2785 | <stringProp name="Argument.metadata">=</stringProp> |
| 2786 | </elementProp> |
| 2787 | </collectionProp> |
| 2788 | </elementProp> |
| 2789 | <stringProp name="HTTPSampler.domain">${HOSTNAME}</stringProp> |
| 2790 | <stringProp name="HTTPSampler.port">${PAP_PORT}</stringProp> |
| 2791 | <stringProp name="HTTPSampler.protocol">https</stringProp> |
| 2792 | <stringProp name="HTTPSampler.contentEncoding"></stringProp> |
| 2793 | <stringProp name="HTTPSampler.path">/policy/pap/v1/pdps/deployments/batch</stringProp> |
| 2794 | <stringProp name="HTTPSampler.method">POST</stringProp> |
| 2795 | <boolProp name="HTTPSampler.follow_redirects">true</boolProp> |
| 2796 | <boolProp name="HTTPSampler.auto_redirects">false</boolProp> |
| 2797 | <boolProp name="HTTPSampler.use_keepalive">true</boolProp> |
| 2798 | <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp> |
| 2799 | <stringProp name="HTTPSampler.embedded_url_re"></stringProp> |
| 2800 | <stringProp name="HTTPSampler.connect_timeout"></stringProp> |
| 2801 | <stringProp name="HTTPSampler.response_timeout"></stringProp> |
| 2802 | </HTTPSamplerProxy> |
| 2803 | <hashTree> |
| 2804 | <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true"> |
| 2805 | <collectionProp name="Asserion.test_strings"> |
| 2806 | <stringProp name="49586">200</stringProp> |
| 2807 | </collectionProp> |
| 2808 | <stringProp name="Assertion.custom_message"></stringProp> |
| 2809 | <stringProp name="Assertion.test_field">Assertion.response_code</stringProp> |
| 2810 | <boolProp name="Assertion.assume_success">false</boolProp> |
| 2811 | <intProp name="Assertion.test_type">1</intProp> |
| 2812 | </ResponseAssertion> |
| 2813 | <hashTree/> |
| 2814 | </hashTree> |
| 2815 | <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete Policy" enabled="true"> |
| 2816 | <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true"> |
| 2817 | <collectionProp name="Arguments.arguments"/> |
| 2818 | </elementProp> |
| 2819 | <stringProp name="HTTPSampler.domain">${HOSTNAME}</stringProp> |
| 2820 | <stringProp name="HTTPSampler.port">${API_PORT}</stringProp> |
| 2821 | <stringProp name="HTTPSampler.protocol">https</stringProp> |
| 2822 | <stringProp name="HTTPSampler.contentEncoding"></stringProp> |
| 2823 | <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> |
| 2824 | <stringProp name="HTTPSampler.method">DELETE</stringProp> |
| 2825 | <boolProp name="HTTPSampler.follow_redirects">true</boolProp> |
| 2826 | <boolProp name="HTTPSampler.auto_redirects">false</boolProp> |
| 2827 | <boolProp name="HTTPSampler.use_keepalive">true</boolProp> |
| 2828 | <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp> |
| 2829 | <stringProp name="HTTPSampler.embedded_url_re"></stringProp> |
| 2830 | <stringProp name="HTTPSampler.connect_timeout"></stringProp> |
| 2831 | <stringProp name="HTTPSampler.response_timeout"></stringProp> |
| 2832 | </HTTPSamplerProxy> |
| 2833 | <hashTree> |
| 2834 | <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true"> |
| 2835 | <collectionProp name="Asserion.test_strings"> |
| 2836 | <stringProp name="49586">200</stringProp> |
| 2837 | </collectionProp> |
| 2838 | <stringProp name="Assertion.custom_message"></stringProp> |
| 2839 | <stringProp name="Assertion.test_field">Assertion.response_code</stringProp> |
| 2840 | <boolProp name="Assertion.assume_success">false</boolProp> |
| 2841 | <intProp name="Assertion.test_type">1</intProp> |
| 2842 | </ResponseAssertion> |
| 2843 | <hashTree/> |
| 2844 | </hashTree> |
| 2845 | </hashTree> |
ramverma | 78c6f58 | 2018-10-23 16:58:34 +0100 | [diff] [blame] | 2846 | <ResultCollector guiclass="SummaryReport" testclass="ResultCollector" testname="Summary Report" enabled="true"> |
| 2847 | <boolProp name="ResultCollector.error_logging">false</boolProp> |
| 2848 | <objProp> |
| 2849 | <name>saveConfig</name> |
| 2850 | <value class="SampleSaveConfiguration"> |
| 2851 | <time>true</time> |
| 2852 | <latency>true</latency> |
| 2853 | <timestamp>true</timestamp> |
| 2854 | <success>true</success> |
| 2855 | <label>true</label> |
| 2856 | <code>true</code> |
| 2857 | <message>true</message> |
| 2858 | <threadName>true</threadName> |
| 2859 | <dataType>true</dataType> |
| 2860 | <encoding>false</encoding> |
| 2861 | <assertions>true</assertions> |
| 2862 | <subresults>true</subresults> |
| 2863 | <responseData>false</responseData> |
| 2864 | <samplerData>false</samplerData> |
| 2865 | <xml>false</xml> |
| 2866 | <fieldNames>true</fieldNames> |
| 2867 | <responseHeaders>false</responseHeaders> |
| 2868 | <requestHeaders>false</requestHeaders> |
| 2869 | <responseDataOnError>false</responseDataOnError> |
| 2870 | <saveAssertionResultsFailureMessage>true</saveAssertionResultsFailureMessage> |
| 2871 | <assertionsResultsToSave>0</assertionsResultsToSave> |
| 2872 | <bytes>true</bytes> |
| 2873 | <sentBytes>true</sentBytes> |
| 2874 | <threadCounts>true</threadCounts> |
| 2875 | <idleTime>true</idleTime> |
| 2876 | <connectTime>true</connectTime> |
| 2877 | </value> |
| 2878 | </objProp> |
aditya.puthuparambil | ff67d11 | 2020-06-02 16:22:59 +0100 | [diff] [blame^] | 2879 | <stringProp name="filename">/home/adityap/apex_stability/Stability.log</stringProp> |
ramverma | 78c6f58 | 2018-10-23 16:58:34 +0100 | [diff] [blame] | 2880 | </ResultCollector> |
| 2881 | <hashTree/> |
| 2882 | <ResultCollector guiclass="ViewResultsFullVisualizer" testclass="ResultCollector" testname="View Results Tree" enabled="true"> |
| 2883 | <boolProp name="ResultCollector.error_logging">false</boolProp> |
| 2884 | <objProp> |
| 2885 | <name>saveConfig</name> |
| 2886 | <value class="SampleSaveConfiguration"> |
| 2887 | <time>true</time> |
| 2888 | <latency>true</latency> |
| 2889 | <timestamp>true</timestamp> |
| 2890 | <success>true</success> |
| 2891 | <label>true</label> |
| 2892 | <code>true</code> |
| 2893 | <message>true</message> |
| 2894 | <threadName>true</threadName> |
| 2895 | <dataType>true</dataType> |
| 2896 | <encoding>false</encoding> |
| 2897 | <assertions>true</assertions> |
| 2898 | <subresults>true</subresults> |
| 2899 | <responseData>false</responseData> |
| 2900 | <samplerData>false</samplerData> |
| 2901 | <xml>false</xml> |
| 2902 | <fieldNames>true</fieldNames> |
| 2903 | <responseHeaders>false</responseHeaders> |
| 2904 | <requestHeaders>false</requestHeaders> |
| 2905 | <responseDataOnError>false</responseDataOnError> |
| 2906 | <saveAssertionResultsFailureMessage>true</saveAssertionResultsFailureMessage> |
| 2907 | <assertionsResultsToSave>0</assertionsResultsToSave> |
| 2908 | <bytes>true</bytes> |
| 2909 | <sentBytes>true</sentBytes> |
| 2910 | <threadCounts>true</threadCounts> |
| 2911 | <idleTime>true</idleTime> |
| 2912 | <connectTime>true</connectTime> |
| 2913 | </value> |
| 2914 | </objProp> |
aditya.puthuparambil | ff67d11 | 2020-06-02 16:22:59 +0100 | [diff] [blame^] | 2915 | <stringProp name="filename">/home/adityap/apex_stability/resultTree.log</stringProp> |
ramverma | 78c6f58 | 2018-10-23 16:58:34 +0100 | [diff] [blame] | 2916 | </ResultCollector> |
| 2917 | <hashTree/> |
| 2918 | <ResultCollector guiclass="TableVisualizer" testclass="ResultCollector" testname="View Results in Table" enabled="true"> |
| 2919 | <boolProp name="ResultCollector.error_logging">false</boolProp> |
| 2920 | <objProp> |
| 2921 | <name>saveConfig</name> |
| 2922 | <value class="SampleSaveConfiguration"> |
| 2923 | <time>true</time> |
| 2924 | <latency>true</latency> |
| 2925 | <timestamp>true</timestamp> |
| 2926 | <success>true</success> |
| 2927 | <label>true</label> |
| 2928 | <code>true</code> |
| 2929 | <message>true</message> |
| 2930 | <threadName>true</threadName> |
| 2931 | <dataType>true</dataType> |
| 2932 | <encoding>false</encoding> |
| 2933 | <assertions>true</assertions> |
| 2934 | <subresults>true</subresults> |
| 2935 | <responseData>false</responseData> |
| 2936 | <samplerData>false</samplerData> |
| 2937 | <xml>false</xml> |
| 2938 | <fieldNames>true</fieldNames> |
| 2939 | <responseHeaders>false</responseHeaders> |
| 2940 | <requestHeaders>false</requestHeaders> |
| 2941 | <responseDataOnError>false</responseDataOnError> |
| 2942 | <saveAssertionResultsFailureMessage>true</saveAssertionResultsFailureMessage> |
| 2943 | <assertionsResultsToSave>0</assertionsResultsToSave> |
| 2944 | <bytes>true</bytes> |
| 2945 | <sentBytes>true</sentBytes> |
| 2946 | <threadCounts>true</threadCounts> |
| 2947 | <idleTime>true</idleTime> |
| 2948 | <connectTime>true</connectTime> |
| 2949 | </value> |
| 2950 | </objProp> |
aditya.puthuparambil | ff67d11 | 2020-06-02 16:22:59 +0100 | [diff] [blame^] | 2951 | <stringProp name="filename">/home/adityap/apex_stability/resultTable.log</stringProp> |
ramverma | 78c6f58 | 2018-10-23 16:58:34 +0100 | [diff] [blame] | 2952 | </ResultCollector> |
| 2953 | <hashTree/> |
| 2954 | </hashTree> |
| 2955 | </hashTree> |
| 2956 | </jmeterTestPlan> |
aditya.puthuparambil | ff67d11 | 2020-06-02 16:22:59 +0100 | [diff] [blame^] | 2957 | |