1 <?xml version="1.0" encoding="UTF-8"?>
2 <jmeterTestPlan version="1.2" properties="5.0" jmeter="5.4.1">
4 <TestPlan guiclass="TestPlanGui" testclass="TestPlan" testname="Policy API Stability" enabled="true">
5 <stringProp name="TestPlan.comments"></stringProp>
6 <boolProp name="TestPlan.functional_mode">false</boolProp>
7 <boolProp name="TestPlan.tearDown_on_shutdown">true</boolProp>
8 <boolProp name="TestPlan.serialize_threadgroups">false</boolProp>
9 <elementProp name="TestPlan.user_defined_variables" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
10 <collectionProp name="Arguments.arguments">
11 <elementProp name="API_HOST" elementType="Argument">
12 <stringProp name="Argument.name">API_HOST</stringProp>
13 <stringProp name="Argument.value">10.15.100.214</stringProp>
14 <stringProp name="Argument.metadata">=</stringProp>
16 <elementProp name="API_PORT" elementType="Argument">
17 <stringProp name="Argument.name">API_PORT</stringProp>
18 <stringProp name="Argument.value">31105</stringProp>
19 <stringProp name="Argument.metadata">=</stringProp>
23 <stringProp name="TestPlan.user_define_classpath"></stringProp>
26 <AuthManager guiclass="AuthPanel" testclass="AuthManager" testname="HTTP Authorization Manager" enabled="true">
27 <collectionProp name="AuthManager.auth_list">
28 <elementProp name="" elementType="Authorization">
29 <stringProp name="Authorization.url">https://${API_HOST}:${API_PORT}/</stringProp>
30 <stringProp name="Authorization.username">policyadmin</stringProp>
31 <stringProp name="Authorization.password">zb!XztG34</stringProp>
32 <stringProp name="Authorization.domain"></stringProp>
33 <stringProp name="Authorization.realm"></stringProp>
36 <boolProp name="AuthManager.clearEachIteration">true</boolProp>
37 <boolProp name="AuthManager.controlledByThreadGroup">false</boolProp>
40 <HeaderManager guiclass="HeaderPanel" testclass="HeaderManager" testname="HTTP Header Manager" enabled="true">
41 <collectionProp name="HeaderManager.headers">
42 <elementProp name="" elementType="Header">
43 <stringProp name="Header.name">Accept</stringProp>
44 <stringProp name="Header.value">application/json</stringProp>
46 <elementProp name="" elementType="Header">
47 <stringProp name="Header.name">Content-Type</stringProp>
48 <stringProp name="Header.value">application/json</stringProp>
53 <SetupThreadGroup guiclass="SetupThreadGroupGui" testclass="SetupThreadGroup" testname="setUp Thread Group" enabled="true">
54 <stringProp name="ThreadGroup.on_sample_error">continue</stringProp>
55 <elementProp name="ThreadGroup.main_controller" elementType="LoopController" guiclass="LoopControlPanel" testclass="LoopController" testname="Loop Controller" enabled="true">
56 <boolProp name="LoopController.continue_forever">false</boolProp>
57 <stringProp name="LoopController.loops">1</stringProp>
59 <stringProp name="ThreadGroup.num_threads">1</stringProp>
60 <stringProp name="ThreadGroup.ramp_time">1</stringProp>
61 <boolProp name="ThreadGroup.scheduler">false</boolProp>
62 <stringProp name="ThreadGroup.duration"></stringProp>
63 <stringProp name="ThreadGroup.delay"></stringProp>
64 <boolProp name="ThreadGroup.same_user_on_next_iteration">true</boolProp>
67 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get Healthcheck" enabled="true">
68 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
69 <collectionProp name="Arguments.arguments"/>
71 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
72 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
73 <stringProp name="HTTPSampler.protocol">https</stringProp>
74 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
75 <stringProp name="HTTPSampler.path">/policy/api/v1/healthcheck</stringProp>
76 <stringProp name="HTTPSampler.method">GET</stringProp>
77 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
78 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
79 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
80 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
81 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
82 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
83 <stringProp name="HTTPSampler.response_timeout"></stringProp>
86 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
87 <collectionProp name="Asserion.test_strings">
88 <stringProp name="49586">200</stringProp>
90 <stringProp name="Assertion.custom_message"></stringProp>
91 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
92 <boolProp name="Assertion.assume_success">false</boolProp>
93 <intProp name="Assertion.test_type">1</intProp>
96 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
97 <stringProp name="cacheKey">true</stringProp>
98 <stringProp name="filename"></stringProp>
99 <stringProp name="parameters"></stringProp>
100 <stringProp name="script">import groovy.json.JsonSlurper;
103 if (prev.getResponseCode() == '200') {
104 def jsonSlurper = new JsonSlurper();
105 res = jsonSlurper.parseText(prev.getResponseDataAsString());
107 assert res instanceof Map;
108 assert res.code == 200;
109 assert res.name == "Policy API";
110 assert res.healthy==true;
111 assert res.message=="alive";
113 <stringProp name="scriptLanguage">groovy</stringProp>
117 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get Statistics" enabled="true">
118 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
119 <collectionProp name="Arguments.arguments"/>
121 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
122 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
123 <stringProp name="HTTPSampler.protocol">https</stringProp>
124 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
125 <stringProp name="HTTPSampler.path">/policy/api/v1/statistics</stringProp>
126 <stringProp name="HTTPSampler.method">GET</stringProp>
127 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
128 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
129 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
130 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
131 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
132 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
133 <stringProp name="HTTPSampler.response_timeout"></stringProp>
136 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
137 <collectionProp name="Asserion.test_strings">
138 <stringProp name="49586">200</stringProp>
140 <stringProp name="Assertion.custom_message"></stringProp>
141 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
142 <boolProp name="Assertion.assume_success">false</boolProp>
143 <intProp name="Assertion.test_type">1</intProp>
146 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
147 <stringProp name="scriptLanguage">groovy</stringProp>
148 <stringProp name="parameters"></stringProp>
149 <stringProp name="filename"></stringProp>
150 <stringProp name="cacheKey">true</stringProp>
151 <stringProp name="script">import groovy.json.JsonSlurper;
154 if (prev.getResponseCode() == '200') {
155 def jsonSlurper = new JsonSlurper();
156 res = jsonSlurper.parseText(prev.getResponseDataAsString());
158 assert res instanceof Map;
159 assert res.code == 200;
164 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get Preloaded Policy Types" enabled="true">
165 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
166 <collectionProp name="Arguments.arguments"/>
168 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
169 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
170 <stringProp name="HTTPSampler.protocol">https</stringProp>
171 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
172 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes</stringProp>
173 <stringProp name="HTTPSampler.method">GET</stringProp>
174 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
175 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
176 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
177 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
178 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
179 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
180 <stringProp name="HTTPSampler.response_timeout"></stringProp>
183 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
184 <collectionProp name="Asserion.test_strings">
185 <stringProp name="49586">200</stringProp>
187 <stringProp name="Assertion.custom_message"></stringProp>
188 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
189 <boolProp name="Assertion.assume_success">false</boolProp>
190 <intProp name="Assertion.test_type">1</intProp>
193 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
194 <stringProp name="scriptLanguage">groovy</stringProp>
195 <stringProp name="parameters"></stringProp>
196 <stringProp name="filename"></stringProp>
197 <stringProp name="cacheKey">true</stringProp>
198 <stringProp name="script">import groovy.json.JsonSlurper;
201 if (prev.getResponseCode() == '200') {
202 def jsonSlurper = new JsonSlurper();
203 res = jsonSlurper.parseText(prev.getResponseDataAsString());
205 assert res instanceof Map;
206 assert res.policy_types instanceof Map;
207 assert res.policy_types.size() == 38;
208 assert res.node_types instanceof Map;
209 assert res.data_types instanceof Map;
215 <ThreadGroup guiclass="ThreadGroupGui" testclass="ThreadGroup" testname="API Test Flow" enabled="true">
216 <stringProp name="ThreadGroup.on_sample_error">continue</stringProp>
217 <elementProp name="ThreadGroup.main_controller" elementType="LoopController" guiclass="LoopControlPanel" testclass="LoopController" testname="Loop Controller" enabled="true">
218 <boolProp name="LoopController.continue_forever">false</boolProp>
219 <intProp name="LoopController.loops">-1</intProp>
221 <stringProp name="ThreadGroup.num_threads">5</stringProp>
222 <stringProp name="ThreadGroup.ramp_time">5</stringProp>
223 <boolProp name="ThreadGroup.scheduler">true</boolProp>
224 <stringProp name="ThreadGroup.duration">259200</stringProp>
225 <stringProp name="ThreadGroup.delay">5</stringProp>
226 <boolProp name="ThreadGroup.same_user_on_next_iteration">true</boolProp>
229 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create Policy Type Monitoring" enabled="true">
230 <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
231 <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
232 <collectionProp name="Arguments.arguments">
233 <elementProp name="" elementType="HTTPArgument">
234 <boolProp name="HTTPArgument.always_encode">false</boolProp>
235 <stringProp name="Argument.value">{
236 "tosca_definitions_version": "tosca_simple_yaml_1_1_0",
237 "policy_types": {
238 "onap.policies.Monitoring": {
239 "derived_from": "tosca.policies.Root",
240 "version": "6.0.0",
241 "description": "a base policy type for all policies that govern monitoring provisioning"
243 "onap.policies.monitoring.cdap.tca.hi.lo.app": {
244 "derived_from": "onap.policies.Monitoring",
245 "version": "6.0.${__threadNum}",
246 "properties": {
247 "tca_policy": {
248 "type": "onap.datatypes.monitoring.tca_policy",
249 "description": "TCA Policy JSON",
250 "required": true
255 "data_types": {
256 "onap.datatypes.monitoring.metricsPerEventName": {
257 "derived_from": "tosca.datatypes.Root",
258 "properties": {
259 "controlLoopSchemaType": {
260 "type": "string",
261 "required": true,
262 "description": "Specifies Control Loop Schema Type for the event Name e.g. VNF, VM",
263 "constraints": [
265 "valid_values": [
272 "eventName": {
273 "type": "string",
274 "required": true,
275 "description": "Event name to which thresholds need to be applied"
277 "policyName": {
278 "type": "string",
279 "required": true,
280 "description": "TCA Policy Scope Name"
282 "policyScope": {
283 "type": "string",
284 "required": true,
285 "description": "TCA Policy Scope"
287 "policyVersion": {
288 "type": "string",
289 "required": true,
290 "description": "TCA Policy Scope Version"
292 "thresholds": {
293 "type": "list",
294 "required": true,
295 "description": "Thresholds associated with eventName",
296 "entry_schema": {
297 "type": "onap.datatypes.monitoring.thresholds"
302 "onap.datatypes.monitoring.tca_policy": {
303 "derived_from": "tosca.datatypes.Root",
304 "properties": {
305 "domain": {
306 "type": "string",
307 "required": true,
308 "description": "Domain name to which TCA needs to be applied",
309 "default": "measurementsForVfScaling",
310 "constraints": [
312 "equal": "measurementsForVfScaling"
316 "metricsPerEventName": {
317 "type": "list",
318 "required": true,
319 "description": "Contains eventName and threshold details that need to be applied to given eventName",
320 "entry_schema": {
321 "type": "onap.datatypes.monitoring.metricsPerEventName"
326 "onap.datatypes.monitoring.thresholds": {
327 "derived_from": "tosca.datatypes.Root",
328 "properties": {
329 "closedLoopControlName": {
330 "type": "string",
331 "required": true,
332 "description": "Closed Loop Control Name associated with the threshold"
334 "closedLoopEventStatus": {
335 "type": "string",
336 "required": true,
337 "description": "Closed Loop Event Status of the threshold",
338 "constraints": [
340 "valid_values": [
341 "ONSET",
342 "ABATED"
347 "direction": {
348 "type": "string",
349 "required": true,
350 "description": "Direction of the threshold",
351 "constraints": [
353 "valid_values": [
354 "LESS",
355 "LESS_OR_EQUAL",
356 "GREATER",
357 "GREATER_OR_EQUAL",
358 "EQUAL"
363 "fieldPath": {
364 "type": "string",
365 "required": true,
366 "description": "Json field Path as per CEF message which needs to be analyzed for TCA",
367 "constraints": [
369 "valid_values": [
370 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsDelta",
371 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedOctetsDelta",
372 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedUnicastPacketsDelta",
373 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedMulticastPacketsDelta",
374 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsDelta",
375 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedDiscardedPacketsDelta",
376 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedErrorPacketsDelta",
377 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsAccumulated",
378 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedOctetsAccumulated",
379 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedUnicastPacketsAccumulated",
380 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedMulticastPacketsAccumulated",
381 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsAccumulated",
382 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedDiscardedPacketsAccumulated",
383 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedErrorPacketsAccumulated",
384 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedTotalPacketsDelta",
385 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedOctetsDelta",
386 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedUnicastPacketsDelta",
387 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedMulticastPacketsDelta",
388 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedBroadcastPacketsDelta",
389 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedDiscardedPacketsDelta",
390 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedErrorPacketsDelta",
391 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedTotalPacketsAccumulated",
392 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedOctetsAccumulated",
393 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedUnicastPacketsAccumulated",
394 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedMulticastPacketsAccumulated",
395 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedBroadcastPacketsAccumulated",
396 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedDiscardedPacketsAccumulated",
397 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedErrorPacketsAccumulated",
398 "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuIdle",
399 "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageInterrupt",
400 "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageNice",
401 "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSoftIrq",
402 "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSteal",
403 "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSystem",
404 "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuWait",
405 "$.event.measurementsForVfScalingFields.cpuUsageArray[*].percentUsage",
406 "$.event.measurementsForVfScalingFields.meanRequestLatency",
407 "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryBuffered",
408 "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryCached",
409 "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryConfigured",
410 "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryFree",
411 "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryUsed",
412 "$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value"
417 "severity": {
418 "type": "string",
419 "required": true,
420 "description": "Threshold Event Severity",
421 "constraints": [
423 "valid_values": [
424 "CRITICAL",
425 "MAJOR",
426 "MINOR",
427 "WARNING",
428 "NORMAL"
433 "thresholdValue": {
434 "type": "integer",
435 "required": true,
436 "description": "Threshold value for the field Path inside CEF message"
438 "version": {
439 "type": "string",
440 "required": true,
441 "description": "Version number associated with the threshold"
447 <stringProp name="Argument.metadata">=</stringProp>
451 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
452 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
453 <stringProp name="HTTPSampler.protocol">https</stringProp>
454 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
455 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes</stringProp>
456 <stringProp name="HTTPSampler.method">POST</stringProp>
457 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
458 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
459 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
460 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
461 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
462 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
463 <stringProp name="HTTPSampler.response_timeout"></stringProp>
466 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
467 <collectionProp name="Asserion.test_strings">
468 <stringProp name="49586">200</stringProp>
470 <stringProp name="Assertion.custom_message"></stringProp>
471 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
472 <boolProp name="Assertion.assume_success">false</boolProp>
473 <intProp name="Assertion.test_type">1</intProp>
476 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
477 <stringProp name="scriptLanguage">groovy</stringProp>
478 <stringProp name="parameters"></stringProp>
479 <stringProp name="filename"></stringProp>
480 <stringProp name="cacheKey">true</stringProp>
481 <stringProp name="script">import groovy.json.JsonSlurper;
484 if (prev.getResponseCode() == '200') {
485 def jsonSlurper = new JsonSlurper();
486 res = jsonSlurper.parseText(prev.getResponseDataAsString());
488 assert res instanceof Map;
489 assert res.policy_types instanceof Map;
490 assert res.policy_types.size() == 2;
491 assert res.policy_types.values()[0] instanceof Map;
492 assert res.policy_types.values()[1] instanceof Map;
497 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create Policy Type Monitoring V7" enabled="true">
498 <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
499 <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
500 <collectionProp name="Arguments.arguments">
501 <elementProp name="" elementType="HTTPArgument">
502 <boolProp name="HTTPArgument.always_encode">false</boolProp>
503 <stringProp name="Argument.value">{
504 "tosca_definitions_version": "tosca_simple_yaml_1_1_0",
505 "policy_types": {
506 "onap.policies.Monitoring": {
507 "derived_from": "tosca.policies.Root",
508 "version": "1.0.0",
509 "description": "a base policy type for all policies that govern monitoring provisioning"
511 "onap.policies.monitoring.cdap.tca.hi.lo.app": {
512 "derived_from": "onap.policies.Monitoring",
513 "version": "7.0.${__threadNum}",
514 "properties": {
515 "tca_policy": {
516 "type": "onap.datatypes.monitoring.tca_policy",
517 "description": "TCA Policy JSON",
518 "required": true
523 "data_types": {
524 "onap.datatypes.monitoring.metricsPerEventName": {
525 "derived_from": "tosca.datatypes.Root",
526 "properties": {
527 "controlLoopSchemaType": {
528 "type": "string",
529 "required": true,
530 "description": "Specifies Control Loop Schema Type for the event Name e.g. VNF, VM",
531 "constraints": [
533 "valid_values": [
540 "eventName": {
541 "type": "string",
542 "required": true,
543 "description": "Event name to which thresholds need to be applied"
545 "policyName": {
546 "type": "string",
547 "required": true,
548 "description": "TCA Policy Scope Name"
550 "policyScope": {
551 "type": "string",
552 "required": true,
553 "description": "TCA Policy Scope"
555 "policyVersion": {
556 "type": "string",
557 "required": true,
558 "description": "TCA Policy Scope Version"
560 "thresholds": {
561 "type": "list",
562 "required": true,
563 "description": "Thresholds associated with eventName",
564 "entry_schema": {
565 "type": "onap.datatypes.monitoring.thresholds"
570 "onap.datatypes.monitoring.tca_policy": {
571 "derived_from": "tosca.datatypes.Root",
572 "properties": {
573 "domain": {
574 "type": "string",
575 "required": true,
576 "description": "Domain name to which TCA needs to be applied",
577 "default": "measurementsForVfScaling",
578 "constraints": [
580 "equal": "measurementsForVfScaling"
584 "metricsPerEventName": {
585 "type": "list",
586 "required": true,
587 "description": "Contains eventName and threshold details that need to be applied to given eventName",
588 "entry_schema": {
589 "type": "onap.datatypes.monitoring.metricsPerEventName"
594 "onap.datatypes.monitoring.thresholds": {
595 "derived_from": "tosca.datatypes.Root",
596 "properties": {
597 "closedLoopControlName": {
598 "type": "string",
599 "required": true,
600 "description": "Closed Loop Control Name associated with the threshold"
602 "closedLoopEventStatus": {
603 "type": "string",
604 "required": true,
605 "description": "Closed Loop Event Status of the threshold",
606 "constraints": [
608 "valid_values": [
609 "ONSET",
610 "ABATED"
615 "direction": {
616 "type": "string",
617 "required": true,
618 "description": "Direction of the threshold",
619 "constraints": [
621 "valid_values": [
622 "LESS",
623 "LESS_OR_EQUAL",
624 "GREATER",
625 "GREATER_OR_EQUAL",
626 "EQUAL"
631 "fieldPath": {
632 "type": "string",
633 "required": true,
634 "description": "Json field Path as per CEF message which needs to be analyzed for TCA",
635 "constraints": [
637 "valid_values": [
638 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsDelta",
639 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedOctetsDelta",
640 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedUnicastPacketsDelta",
641 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedMulticastPacketsDelta",
642 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsDelta",
643 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedDiscardedPacketsDelta",
644 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedErrorPacketsDelta",
645 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsAccumulated",
646 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedOctetsAccumulated",
647 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedUnicastPacketsAccumulated",
648 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedMulticastPacketsAccumulated",
649 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsAccumulated",
650 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedDiscardedPacketsAccumulated",
651 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedErrorPacketsAccumulated",
652 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedTotalPacketsDelta",
653 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedOctetsDelta",
654 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedUnicastPacketsDelta",
655 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedMulticastPacketsDelta",
656 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedBroadcastPacketsDelta",
657 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedDiscardedPacketsDelta",
658 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedErrorPacketsDelta",
659 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedTotalPacketsAccumulated",
660 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedOctetsAccumulated",
661 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedUnicastPacketsAccumulated",
662 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedMulticastPacketsAccumulated",
663 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedBroadcastPacketsAccumulated",
664 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedDiscardedPacketsAccumulated",
665 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedErrorPacketsAccumulated",
666 "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuIdle",
667 "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageInterrupt",
668 "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageNice",
669 "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSoftIrq",
670 "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSteal",
671 "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSystem",
672 "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuWait",
673 "$.event.measurementsForVfScalingFields.cpuUsageArray[*].percentUsage",
674 "$.event.measurementsForVfScalingFields.meanRequestLatency",
675 "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryBuffered",
676 "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryCached",
677 "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryConfigured",
678 "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryFree",
679 "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryUsed",
680 "$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value"
685 "severity": {
686 "type": "string",
687 "required": true,
688 "description": "Threshold Event Severity",
689 "constraints": [
691 "valid_values": [
692 "CRITICAL",
693 "MAJOR",
694 "MINOR",
695 "WARNING",
696 "NORMAL"
701 "thresholdValue": {
702 "type": "integer",
703 "required": true,
704 "description": "Threshold value for the field Path inside CEF message"
706 "version": {
707 "type": "string",
708 "required": true,
709 "description": "Version number associated with the threshold"
715 <stringProp name="Argument.metadata">=</stringProp>
719 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
720 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
721 <stringProp name="HTTPSampler.protocol">https</stringProp>
722 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
723 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes</stringProp>
724 <stringProp name="HTTPSampler.method">POST</stringProp>
725 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
726 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
727 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
728 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
729 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
730 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
731 <stringProp name="HTTPSampler.response_timeout"></stringProp>
734 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
735 <collectionProp name="Asserion.test_strings">
736 <stringProp name="49586">200</stringProp>
738 <stringProp name="Assertion.custom_message"></stringProp>
739 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
740 <boolProp name="Assertion.assume_success">false</boolProp>
741 <intProp name="Assertion.test_type">1</intProp>
744 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
745 <stringProp name="scriptLanguage">groovy</stringProp>
746 <stringProp name="parameters"></stringProp>
747 <stringProp name="filename"></stringProp>
748 <stringProp name="cacheKey">true</stringProp>
749 <stringProp name="script">import groovy.json.JsonSlurper;
752 if (prev.getResponseCode() == '200') {
753 def jsonSlurper = new JsonSlurper();
754 res = jsonSlurper.parseText(prev.getResponseDataAsString());
756 assert res instanceof Map;
757 assert res.policy_types instanceof Map;
758 assert res.policy_types.size() == 2;
759 assert res.policy_types.values()[0] instanceof Map;
760 assert res.policy_types.values()[1] instanceof Map;
765 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create Policy Type Optimization" enabled="true">
766 <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
767 <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
768 <collectionProp name="Arguments.arguments">
769 <elementProp name="" elementType="HTTPArgument">
770 <boolProp name="HTTPArgument.always_encode">false</boolProp>
771 <stringProp name="Argument.value">{
772 "tosca_definitions_version": "tosca_simple_yaml_1_1_0",
773 "policy_types": {
774 "onap.policies.optimization.resource.AffinityPolicy": {
775 "derived_from": "onap.policies.optimization.Resource",
776 "version": "6.0.${__threadNum}",
777 "properties": {
778 "applicableResources": {
779 "type": "list",
780 "required": true,
781 "entry_schema": {
782 "type": "string",
783 "constraints": [
785 "valid_values": [
786 "any",
793 "affinityProperties": {
794 "type": "policy.data.affinityProperties_properties",
795 "required": true
800 "data_types": {
801 "policy.data.affinityProperties_properties": {
802 "derived_from": "tosca.nodes.Root",
803 "properties": {
804 "qualifier": {
805 "type": "string",
806 "constraints": [
808 "valid_values": [
809 "same",
810 "different"
815 "category": {
816 "type": "string",
817 "required": true
823 <stringProp name="Argument.metadata">=</stringProp>
827 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
828 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
829 <stringProp name="HTTPSampler.protocol">https</stringProp>
830 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
831 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes</stringProp>
832 <stringProp name="HTTPSampler.method">POST</stringProp>
833 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
834 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
835 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
836 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
837 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
838 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
839 <stringProp name="HTTPSampler.response_timeout"></stringProp>
842 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
843 <collectionProp name="Asserion.test_strings">
844 <stringProp name="49586">200</stringProp>
846 <stringProp name="Assertion.custom_message"></stringProp>
847 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
848 <boolProp name="Assertion.assume_success">false</boolProp>
849 <intProp name="Assertion.test_type">1</intProp>
852 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
853 <stringProp name="scriptLanguage">groovy</stringProp>
854 <stringProp name="parameters"></stringProp>
855 <stringProp name="filename"></stringProp>
856 <stringProp name="cacheKey">true</stringProp>
857 <stringProp name="script">import groovy.json.JsonSlurper;
860 if (prev.getResponseCode() == '200') {
861 def jsonSlurper = new JsonSlurper();
862 res = jsonSlurper.parseText(prev.getResponseDataAsString());
864 assert res instanceof Map;
865 assert res.policy_types instanceof Map;
866 assert res.policy_types.size() == 1;
867 assert res.policy_types.values()[0] instanceof Map;
868 // assert res.policy_types.values()[1] instanceof Map;
873 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create Policy Type Guard" enabled="true">
874 <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
875 <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
876 <collectionProp name="Arguments.arguments">
877 <elementProp name="" elementType="HTTPArgument">
878 <boolProp name="HTTPArgument.always_encode">false</boolProp>
879 <stringProp name="Argument.value">{
880 "tosca_definitions_version": "tosca_simple_yaml_1_1_0",
881 "policy_types": {
882 "onap.policies.controlloop.guard.common.Blacklist": {
883 "derived_from": "onap.policies.controlloop.guard.Common",
884 "type_version": "1.0.0",
885 "version": "6.0.${__threadNum}",
886 "description": "Supports blacklist of entity id's from performing control loop actions on.",
887 "properties": {
888 "blacklist": {
889 "type": "list",
890 "description": "List of entity id's not allowed to have control loop operations on.",
891 "required": true,
892 "entry_schema": {
893 "type": "string"
900 <stringProp name="Argument.metadata">=</stringProp>
904 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
905 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
906 <stringProp name="HTTPSampler.protocol">https</stringProp>
907 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
908 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes</stringProp>
909 <stringProp name="HTTPSampler.method">POST</stringProp>
910 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
911 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
912 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
913 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
914 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
915 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
916 <stringProp name="HTTPSampler.response_timeout"></stringProp>
919 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
920 <collectionProp name="Asserion.test_strings">
921 <stringProp name="49586">200</stringProp>
923 <stringProp name="Assertion.custom_message"></stringProp>
924 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
925 <boolProp name="Assertion.assume_success">false</boolProp>
926 <intProp name="Assertion.test_type">1</intProp>
929 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
930 <stringProp name="scriptLanguage">groovy</stringProp>
931 <stringProp name="parameters"></stringProp>
932 <stringProp name="filename"></stringProp>
933 <stringProp name="cacheKey">true</stringProp>
934 <stringProp name="script">import groovy.json.JsonSlurper;
937 if (prev.getResponseCode() == '200') {
938 def jsonSlurper = new JsonSlurper();
939 res = jsonSlurper.parseText(prev.getResponseDataAsString());
941 assert res instanceof Map;
942 assert res.policy_types instanceof Map;
943 assert res.policy_types.size() == 1;
944 assert res.policy_types.values()[0] instanceof Map;
949 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create Policy Type Native APEX" enabled="true">
950 <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
951 <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
952 <collectionProp name="Arguments.arguments">
953 <elementProp name="" elementType="HTTPArgument">
954 <boolProp name="HTTPArgument.always_encode">false</boolProp>
955 <stringProp name="Argument.value">{
956 "tosca_definitions_version": "tosca_simple_yaml_1_1_0",
957 "policy_types": {
958 "onap.policies.Native": {
959 "derived_from": "tosca.policies.Root",
960 "description": "a base policy type for all native PDP policies",
961 "version": "1.0.0"
963 "onap.policies.native.Apex": {
964 "derived_from": "onap.policies.Native",
965 "description": "a policy type for native apex policies",
966 "version": "6.0.${__threadNum}",
967 "properties": {
968 "engine_service": {
969 "type": "onap.datatypes.native.apex.EngineService",
970 "description": "APEX Engine Service Parameters"
972 "inputs": {
973 "type": "map",
974 "description": "Inputs for handling events coming into the APEX engine",
975 "entry_schema": {
976 "type": "onap.datatypes.native.apex.EventHandler"
979 "outputs": {
980 "type": "map",
981 "description": "Outputs for handling events going out of the APEX engine",
982 "entry_schema": {
983 "type": "onap.datatypes.native.apex.EventHandler"
986 "environment": {
987 "type": "list",
988 "description": "Envioronmental parameters for the APEX engine",
989 "entry_schema": {
990 "type": "onap.datatypes.native.apex.Environment"
996 "data_types": {
997 "onap.datatypes.native.apex.EngineService": {
998 "derived_from": "tosca.datatypes.Root",
999 "properties": {
1000 "name": {
1001 "type": "string",
1002 "description": "Specifies the engine name",
1003 "required": false,
1004 "default": "ApexEngineService"
1006 "version": {
1007 "type": "string",
1008 "description": "Specifies the engine version in double dotted format",
1009 "required": false,
1010 "default": "1.0.0"
1012 "id": {
1013 "type": "integer",
1014 "description": "Specifies the engine id",
1015 "required": true
1017 "instance_count": {
1018 "type": "integer",
1019 "description": "Specifies the number of engine threads that should be run",
1020 "required": true
1022 "deployment_port": {
1023 "type": "integer",
1024 "description": "Specifies the port to connect to for engine administration",
1025 "required": false,
1026 "default": 1
1028 "policy_model_file_name": {
1029 "type": "string",
1030 "description": "The name of the file from which to read the APEX policy model",
1031 "required": false
1033 "policy_type_impl": {
1034 "type": "string",
1035 "description": "The policy type implementation from which to read the APEX policy model",
1036 "required": false
1038 "periodic_event_period": {
1039 "type": "string",
1040 "description": "The time interval in milliseconds for the periodic scanning event, 0 means don't scan",
1041 "required": false
1043 "engine": {
1044 "type": "onap.datatypes.native.apex.engineservice.Engine",
1045 "description": "The parameters for all engines in the APEX engine service",
1046 "required": true
1050 "onap.datatypes.native.apex.EventHandler": {
1051 "derived_from": "tosca.datatypes.Root",
1052 "properties": {
1053 "name": {
1054 "type": "string",
1055 "description": "Specifies the event handler name, if not specified this is set to the key name",
1056 "required": false
1058 "carrier_technology": {
1059 "type": "onap.datatypes.native.apex.CarrierTechnology",
1060 "description": "Specifies the carrier technology of the event handler (such as REST/Web Socket/Kafka)",
1061 "required": true
1063 "event_protocol": {
1064 "type": "onap.datatypes.native.apex.EventProtocol",
1065 "description": "Specifies the event protocol of events for the event handler (such as Yaml/JSON/XML/POJO)",
1066 "required": true
1068 "event_name": {
1069 "type": "string",
1070 "description": "Specifies the event name for events on this event handler, if not specified, the event name is read from or written to the event being received or sent",
1071 "required": false
1073 "event_name_filter": {
1074 "type": "string",
1075 "description": "Specifies a filter as a regular expression, events that do not match the filter are dropped, the default is to let all events through",
1076 "required": false
1078 "synchronous_mode": {
1079 "type": "boolean",
1080 "description": "Specifies the event handler is syncronous (receive event and send response)",
1081 "required": false,
1082 "default": false
1084 "synchronous_peer": {
1085 "type": "string",
1086 "description": "The peer event handler (output for input or input for output) of this event handler in synchronous mode, this parameter is mandatory if the event handler is in synchronous mode",
1087 "required": false
1089 "synchronous_timeout": {
1090 "type": "integer",
1091 "description": "The timeout in milliseconds for responses to be issued by APEX torequests, this parameter is mandatory if the event handler is in synchronous mode",
1092 "required": false
1094 "requestor_mode": {
1095 "type": "boolean",
1096 "description": "Specifies the event handler is in requestor mode (send event and wait for response mode)",
1097 "required": false,
1098 "default": false
1100 "requestor_peer": {
1101 "type": "string",
1102 "description": "The peer event handler (output for input or input for output) of this event handler in requestor mode, this parameter is mandatory if the event handler is in requestor mode",
1103 "required": false
1105 "requestor_timeout": {
1106 "type": "integer",
1107 "description": "The timeout in milliseconds for wait for responses to requests, this parameter is mandatory if the event handler is in requestor mode",
1108 "required": false
1112 "onap.datatypes.native.apex.CarrierTechnology": {
1113 "derived_from": "tosca.datatypes.Root",
1114 "properties": {
1115 "label": {
1116 "type": "string",
1117 "description": "The label (name) of the carrier technology (such as REST, Kafka, WebSocket)",
1118 "required": true
1120 "plugin_parameter_class_name": {
1121 "type": "string",
1122 "description": "The class name of the class that overrides default handling of event input or output for this carrier technology, defaults to the supplied input or output class",
1123 "required": false
1127 "onap.datatypes.native.apex.EventProtocol": {
1128 "derived_from": "tosca.datatypes.Root",
1129 "properties": {
1130 "label": {
1131 "type": "string",
1132 "description": "The label (name) of the event protocol (such as Yaml, JSON, XML, or POJO)",
1133 "required": true
1135 "event_protocol_plugin_class": {
1136 "type": "string",
1137 "description": "The class name of the class that overrides default handling of the event protocol for this carrier technology, defaults to the supplied event protocol class",
1138 "required": false
1142 "onap.datatypes.native.apex.Environment": {
1143 "derived_from": "tosca.datatypes.Root",
1144 "properties": {
1145 "name": {
1146 "type": "string",
1147 "description": "The name of the environment variable",
1148 "required": true
1150 "value": {
1151 "type": "string",
1152 "description": "The value of the environment variable",
1153 "required": true
1157 "onap.datatypes.native.apex.engineservice.Engine": {
1158 "derived_from": "tosca.datatypes.Root",
1159 "properties": {
1160 "context": {
1161 "type": "onap.datatypes.native.apex.engineservice.engine.Context",
1162 "description": "The properties for handling context in APEX engines, defaults to using Java maps for context",
1163 "required": false
1165 "executors": {
1166 "type": "map",
1167 "description": "The plugins for policy executors used in engines such as javascript, MVEL, Jython",
1168 "required": true,
1169 "entry_schema": {
1170 "description": "The plugin class path for this policy executor",
1171 "type": "string"
1176 "onap.datatypes.native.apex.engineservice.engine.Context": {
1177 "derived_from": "tosca.datatypes.Root",
1178 "properties": {
1179 "distributor": {
1180 "type": "onap.datatypes.native.apex.Plugin",
1181 "description": "The plugin to be used for distributing context between APEX PDPs at runtime",
1182 "required": false
1184 "schemas": {
1185 "type": "map",
1186 "description": "The plugins for context schemas available in APEX PDPs such as Java and Avro",
1187 "required": false,
1188 "entry_schema": {
1189 "type": "onap.datatypes.native.apex.Plugin"
1192 "locking": {
1193 "type": "onap.datatypes.native.apex.Plugin",
1194 "description": "The plugin to be used for locking context in and between APEX PDPs at runtime",
1195 "required": false
1197 "persistence": {
1198 "type": "onap.datatypes.native.apex.Plugin",
1199 "description": "The plugin to be used for persisting context for APEX PDPs at runtime",
1200 "required": false
1204 "onap.datatypes.native.apex.Plugin": {
1205 "derived_from": "tosca.datatypes.Root",
1206 "properties": {
1207 "name": {
1208 "type": "string",
1209 "description": "The name of the executor such as Javascript, Jython or MVEL",
1210 "required": true
1212 "plugin_class_name": {
1213 "type": "string",
1214 "description": "The class path of the plugin class for this executor"
1220 <stringProp name="Argument.metadata">=</stringProp>
1224 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
1225 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
1226 <stringProp name="HTTPSampler.protocol">https</stringProp>
1227 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
1228 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes</stringProp>
1229 <stringProp name="HTTPSampler.method">POST</stringProp>
1230 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
1231 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
1232 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
1233 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
1234 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
1235 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
1236 <stringProp name="HTTPSampler.response_timeout"></stringProp>
1239 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
1240 <collectionProp name="Asserion.test_strings">
1241 <stringProp name="49586">200</stringProp>
1243 <stringProp name="Assertion.custom_message"></stringProp>
1244 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
1245 <boolProp name="Assertion.assume_success">false</boolProp>
1246 <intProp name="Assertion.test_type">1</intProp>
1247 </ResponseAssertion>
1249 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
1250 <stringProp name="scriptLanguage">groovy</stringProp>
1251 <stringProp name="parameters"></stringProp>
1252 <stringProp name="filename"></stringProp>
1253 <stringProp name="cacheKey">true</stringProp>
1254 <stringProp name="script">import groovy.json.JsonSlurper;
1257 if (prev.getResponseCode() == '200') {
1258 def jsonSlurper = new JsonSlurper();
1259 res = jsonSlurper.parseText(prev.getResponseDataAsString());
1261 assert res instanceof Map;
1262 assert res.policy_types instanceof Map;
1263 assert res.policy_types.size() == 2;
1264 assert res.policy_types.values()[0] instanceof Map;
1265 assert res.policy_types.values()[1] instanceof Map;
1270 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create Policy Type Native Drools" enabled="true">
1271 <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
1272 <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
1273 <collectionProp name="Arguments.arguments">
1274 <elementProp name="" elementType="HTTPArgument">
1275 <boolProp name="HTTPArgument.always_encode">false</boolProp>
1276 <stringProp name="Argument.value">{
1277 "tosca_definitions_version": "tosca_simple_yaml_1_1_0",
1278 "policy_types": {
1279 "onap.policies.Native": {
1280 "derived_from": "tosca.policies.Root",
1281 "description": "a base policy type for all native PDP policies",
1282 "version": "1.0.0"
1284 "onap.policies.native.Drools": {
1285 "derived_from": "onap.policies.Native",
1286 "description": "a base policy type for all native PDP policies",
1287 "version": "1.0.0"
1289 "onap.policies.native.drools.Controller": {
1290 "derived_from": "onap.policies.native.Drools",
1291 "description": "a policy type for a drools controller configuration",
1292 "version": "6.0.${__threadNum}",
1293 "properties": {
1294 "controllerName": {
1295 "type": "string",
1296 "required": true,
1297 "description": "the drools controller name"
1299 "sourceTopics": {
1300 "type": "list",
1301 "required": false,
1302 "description": "source topics and applicable events",
1303 "entry_schema": {
1304 "type": "onap.datatypes.dmaap.topic"
1307 "sinkTopics": {
1308 "type": "list",
1309 "required": false,
1310 "description": "sink topics and applicable events",
1311 "entry_schema": {
1312 "type": "onap.datatypes.dmaap.topic"
1315 "customConfig": {
1316 "type": "map",
1317 "required": false,
1318 "description": "any use case specific configurations relevant to the drools controller",
1319 "entry_schema": {
1320 "type": "string"
1325 "onap.policies.native.drools.Artifact": {
1326 "derived_from": "onap.policies.native.Drools",
1327 "description": "a policy type for native drools artifact policies",
1328 "version": "6.0.${__threadNum}",
1329 "properties": {
1330 "rulesArtifact": {
1331 "type": "onap.datatypes.native.rules_artifact",
1332 "required": true,
1333 "description": "the GAV information of the maven artifact"
1335 "controller": {
1336 "type": "onap.datatypes.drools.controller.relation",
1337 "required": true,
1338 "description": "the drools controller to which the current native policy is assigned"
1343 "data_types": {
1344 "onap.datatypes.dmaap.topic": {
1345 "derived_from": "tosca.datatypes.Root",
1346 "properties": {
1347 "topicName": {
1348 "type": "string",
1349 "required": true,
1350 "description": "the dmaap topic name"
1352 "events": {
1353 "type": "list",
1354 "required": true,
1355 "description": "events used by this topic",
1356 "entry_schema": {
1357 "type": "onap.datatypes.dmaap.events"
1362 "onap.datatypes.dmaap.events": {
1363 "derived_from": "tosca.datatypes.Root",
1364 "properties": {
1365 "eventClass": {
1366 "type": "string",
1367 "required": true,
1368 "description": "the event canonical class for serialization"
1370 "eventFilter": {
1371 "type": "string",
1372 "required": false,
1373 "description": "the JSONPath based condition to filter out the events to serialize"
1375 "customSerialization": {
1376 "type": "onap.datatypes.dmaap.custom_serialization",
1377 "required": false,
1378 "description": "overrides the default serialization/deserialization mechanisms with custom ones"
1382 "onap.datatypes.dmaap.custom_serialization": {
1383 "derived_from": "tosca.datatypes.Root",
1384 "properties": {
1385 "customSerializerClass": {
1386 "type": "string",
1387 "required": true,
1388 "description": "the class that contains the JSON parser serializer/deserializer."
1390 "jsonParser": {
1391 "type": "string",
1392 "required": true,
1393 "description": "static field in customSerialized class with the json parser (currently only gson supported)"
1397 "onap.datatypes.native.rules_artifact": {
1398 "derived_from": "tosca.datatypes.Root",
1399 "properties": {
1400 "groupId": {
1401 "type": "string",
1402 "required": true,
1403 "description": "the groupId of the maven artifact"
1405 "artifactId": {
1406 "type": "string",
1407 "required": true,
1408 "description": "the artifactId of the maven artifact"
1410 "version": {
1411 "type": "string",
1412 "required": true,
1413 "description": "the version of the maven artifact"
1417 "onap.datatypes.drools.controller.relation": {
1418 "derived_from": "tosca.datatypes.Root",
1419 "properties": {
1420 "name": {
1421 "type": "string",
1422 "required": true,
1423 "description": "the name of drools controller policy"
1429 <stringProp name="Argument.metadata">=</stringProp>
1433 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
1434 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
1435 <stringProp name="HTTPSampler.protocol">https</stringProp>
1436 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
1437 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes</stringProp>
1438 <stringProp name="HTTPSampler.method">POST</stringProp>
1439 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
1440 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
1441 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
1442 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
1443 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
1444 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
1445 <stringProp name="HTTPSampler.response_timeout"></stringProp>
1448 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
1449 <collectionProp name="Asserion.test_strings">
1450 <stringProp name="49586">200</stringProp>
1452 <stringProp name="Assertion.custom_message"></stringProp>
1453 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
1454 <boolProp name="Assertion.assume_success">false</boolProp>
1455 <intProp name="Assertion.test_type">1</intProp>
1456 </ResponseAssertion>
1458 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
1459 <stringProp name="scriptLanguage">groovy</stringProp>
1460 <stringProp name="parameters"></stringProp>
1461 <stringProp name="filename"></stringProp>
1462 <stringProp name="cacheKey">true</stringProp>
1463 <stringProp name="script">import groovy.json.JsonSlurper;
1466 if (prev.getResponseCode() == '200') {
1467 def jsonSlurper = new JsonSlurper();
1468 res = jsonSlurper.parseText(prev.getResponseDataAsString());
1470 assert res instanceof Map;
1471 assert res.policy_types instanceof Map;
1472 assert res.policy_types.size() == 4;
1473 assert res.policy_types.values()[0] instanceof Map;
1474 assert res.policy_types.values()[1] instanceof Map;
1475 assert res.policy_types.values()[2] instanceof Map;
1476 assert res.policy_types.values()[3] instanceof Map;
1481 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create Policy Type Native XACML" enabled="true">
1482 <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
1483 <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
1484 <collectionProp name="Arguments.arguments">
1485 <elementProp name="" elementType="HTTPArgument">
1486 <boolProp name="HTTPArgument.always_encode">false</boolProp>
1487 <stringProp name="Argument.value">{
1488 "tosca_definitions_version": "tosca_simple_yaml_1_1_0",
1489 "policy_types": {
1490 "onap.policies.Native": {
1491 "derived_from": "tosca.policies.Root",
1492 "description": "a base policy type for all native PDP policies",
1493 "version": "1.0.0"
1495 "onap.policies.native.Xacml": {
1496 "derived_from": "onap.policies.Native",
1497 "description": "a policy type for native xacml policies",
1498 "version": "6.0.${__threadNum}",
1499 "properties": {
1500 "policy": {
1501 "type": "string",
1502 "required": true,
1503 "description": "The XML XACML 3.0 PolicySet or Policy",
1504 "metadata": {
1505 "encoding": "Base64"
1512 <stringProp name="Argument.metadata">=</stringProp>
1516 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
1517 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
1518 <stringProp name="HTTPSampler.protocol">https</stringProp>
1519 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
1520 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes</stringProp>
1521 <stringProp name="HTTPSampler.method">POST</stringProp>
1522 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
1523 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
1524 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
1525 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
1526 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
1527 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
1528 <stringProp name="HTTPSampler.response_timeout"></stringProp>
1531 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
1532 <collectionProp name="Asserion.test_strings">
1533 <stringProp name="49586">200</stringProp>
1535 <stringProp name="Assertion.custom_message"></stringProp>
1536 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
1537 <boolProp name="Assertion.assume_success">false</boolProp>
1538 <intProp name="Assertion.test_type">1</intProp>
1539 </ResponseAssertion>
1541 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
1542 <stringProp name="scriptLanguage">groovy</stringProp>
1543 <stringProp name="parameters"></stringProp>
1544 <stringProp name="filename"></stringProp>
1545 <stringProp name="cacheKey">true</stringProp>
1546 <stringProp name="script">import groovy.json.JsonSlurper;
1549 if (prev.getResponseCode() == '200') {
1550 def jsonSlurper = new JsonSlurper();
1551 res = jsonSlurper.parseText(prev.getResponseDataAsString());
1553 assert res instanceof Map;
1554 assert res.policy_types instanceof Map;
1555 assert res.policy_types.size() == 2;
1556 assert res.policy_types.values()[0] instanceof Map;
1557 assert res.policy_types.values()[1] instanceof Map;
1562 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get All Policy Types" enabled="true">
1563 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
1564 <collectionProp name="Arguments.arguments"/>
1566 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
1567 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
1568 <stringProp name="HTTPSampler.protocol">https</stringProp>
1569 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
1570 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes</stringProp>
1571 <stringProp name="HTTPSampler.method">GET</stringProp>
1572 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
1573 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
1574 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
1575 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
1576 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
1577 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
1578 <stringProp name="HTTPSampler.response_timeout"></stringProp>
1581 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
1582 <collectionProp name="Asserion.test_strings">
1583 <stringProp name="49586">200</stringProp>
1585 <stringProp name="Assertion.custom_message"></stringProp>
1586 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
1587 <boolProp name="Assertion.assume_success">false</boolProp>
1588 <intProp name="Assertion.test_type">1</intProp>
1589 </ResponseAssertion>
1591 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
1592 <stringProp name="scriptLanguage">groovy</stringProp>
1593 <stringProp name="parameters"></stringProp>
1594 <stringProp name="filename"></stringProp>
1595 <stringProp name="cacheKey">true</stringProp>
1596 <stringProp name="script">import groovy.json.JsonSlurper;
1599 if (prev.getResponseCode() == '200') {
1600 def jsonSlurper = new JsonSlurper();
1601 res = jsonSlurper.parseText(prev.getResponseDataAsString());
1603 assert res instanceof Map;
1604 assert res.policy_types instanceof Map;
1605 assert res.policy_types.size() == 38;
1608 for (i=0; i<n; i++) {
1609 assert res.policy_types.values()[i] instanceof Map;
1615 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get All Versions of TCA Policy Type" enabled="true">
1616 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
1617 <collectionProp name="Arguments.arguments"/>
1619 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
1620 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
1621 <stringProp name="HTTPSampler.protocol">https</stringProp>
1622 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
1623 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app</stringProp>
1624 <stringProp name="HTTPSampler.method">GET</stringProp>
1625 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
1626 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
1627 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
1628 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
1629 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
1630 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
1631 <stringProp name="HTTPSampler.response_timeout"></stringProp>
1632 <stringProp name="TestPlan.comments">This is not working in Frankfurt and hence disabled.</stringProp>
1635 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
1636 <collectionProp name="Asserion.test_strings">
1637 <stringProp name="49586">200</stringProp>
1639 <stringProp name="Assertion.custom_message"></stringProp>
1640 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
1641 <boolProp name="Assertion.assume_success">false</boolProp>
1642 <intProp name="Assertion.test_type">1</intProp>
1643 </ResponseAssertion>
1645 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
1646 <stringProp name="scriptLanguage">groovy</stringProp>
1647 <stringProp name="parameters"></stringProp>
1648 <stringProp name="filename"></stringProp>
1649 <stringProp name="cacheKey">true</stringProp>
1650 <stringProp name="script">import groovy.json.JsonSlurper;
1653 if (prev.getResponseCode() == '200') {
1654 def jsonSlurper = new JsonSlurper();
1655 res = jsonSlurper.parseText(prev.getResponseDataAsString());
1657 assert res instanceof Map;
1658 assert res.policy_types instanceof Map;
1659 assert res.policy_types.size() > 0 && res.policy_types.size() < 10;
1661 for (i=0; i<res.policy_types.size(); i++) {
1662 assert res.policy_types.values()[i] instanceof Map;
1668 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get Policy Type Monitoring" enabled="true">
1669 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
1670 <collectionProp name="Arguments.arguments"/>
1672 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
1673 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
1674 <stringProp name="HTTPSampler.protocol">https</stringProp>
1675 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
1676 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/6.0.${__threadNum}</stringProp>
1677 <stringProp name="HTTPSampler.method">GET</stringProp>
1678 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
1679 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
1680 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
1681 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
1682 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
1683 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
1684 <stringProp name="HTTPSampler.response_timeout"></stringProp>
1687 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
1688 <collectionProp name="Asserion.test_strings">
1689 <stringProp name="49586">200</stringProp>
1691 <stringProp name="Assertion.custom_message"></stringProp>
1692 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
1693 <boolProp name="Assertion.assume_success">false</boolProp>
1694 <intProp name="Assertion.test_type">1</intProp>
1695 </ResponseAssertion>
1697 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
1698 <stringProp name="scriptLanguage">groovy</stringProp>
1699 <stringProp name="parameters"></stringProp>
1700 <stringProp name="filename"></stringProp>
1701 <stringProp name="cacheKey">true</stringProp>
1702 <stringProp name="script">import groovy.json.JsonSlurper;
1705 if (prev.getResponseCode() == '200') {
1706 def jsonSlurper = new JsonSlurper();
1707 res = jsonSlurper.parseText(prev.getResponseDataAsString());
1709 assert res instanceof Map;
1710 assert res.policy_types instanceof Map;
1711 assert res.policy_types.size() == 2;
1713 assert res.policy_types.get('onap.policies.monitoring.cdap.tca.hi.lo.app') instanceof Map;
1714 assert res.policy_types.get('onap.policies.monitoring.cdap.tca.hi.lo.app').version == "6.0.${__threadNum}";
1719 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get Policy Type Optimization" enabled="true">
1720 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
1721 <collectionProp name="Arguments.arguments"/>
1723 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
1724 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
1725 <stringProp name="HTTPSampler.protocol">https</stringProp>
1726 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
1727 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.optimization.resource.AffinityPolicy/versions/6.0.${__threadNum}</stringProp>
1728 <stringProp name="HTTPSampler.method">GET</stringProp>
1729 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
1730 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
1731 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
1732 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
1733 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
1734 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
1735 <stringProp name="HTTPSampler.response_timeout"></stringProp>
1738 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
1739 <collectionProp name="Asserion.test_strings">
1740 <stringProp name="49586">200</stringProp>
1742 <stringProp name="Assertion.custom_message"></stringProp>
1743 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
1744 <boolProp name="Assertion.assume_success">false</boolProp>
1745 <intProp name="Assertion.test_type">1</intProp>
1746 </ResponseAssertion>
1748 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
1749 <stringProp name="scriptLanguage">groovy</stringProp>
1750 <stringProp name="parameters"></stringProp>
1751 <stringProp name="filename"></stringProp>
1752 <stringProp name="cacheKey">true</stringProp>
1753 <stringProp name="script">import groovy.json.JsonSlurper;
1756 if (prev.getResponseCode() == '200') {
1757 def jsonSlurper = new JsonSlurper();
1758 res = jsonSlurper.parseText(prev.getResponseDataAsString());
1760 assert res instanceof Map;
1761 assert res.policy_types instanceof Map;
1762 assert res.policy_types.size() == 3;
1764 assert res.policy_types.get('onap.policies.optimization.resource.AffinityPolicy') instanceof Map;
1765 assert res.policy_types.get('onap.policies.optimization.resource.AffinityPolicy').version == "6.0.${__threadNum}";
1770 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get Policy Type Guard" enabled="true">
1771 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
1772 <collectionProp name="Arguments.arguments"/>
1774 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
1775 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
1776 <stringProp name="HTTPSampler.protocol">https</stringProp>
1777 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
1778 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.controlloop.guard.common.Blacklist/versions/6.0.${__threadNum}</stringProp>
1779 <stringProp name="HTTPSampler.method">GET</stringProp>
1780 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
1781 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
1782 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
1783 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
1784 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
1785 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
1786 <stringProp name="HTTPSampler.response_timeout"></stringProp>
1789 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
1790 <collectionProp name="Asserion.test_strings">
1791 <stringProp name="49586">200</stringProp>
1793 <stringProp name="Assertion.custom_message"></stringProp>
1794 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
1795 <boolProp name="Assertion.assume_success">false</boolProp>
1796 <intProp name="Assertion.test_type">1</intProp>
1797 </ResponseAssertion>
1799 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
1800 <stringProp name="scriptLanguage">groovy</stringProp>
1801 <stringProp name="parameters"></stringProp>
1802 <stringProp name="filename"></stringProp>
1803 <stringProp name="cacheKey">true</stringProp>
1804 <stringProp name="script">import groovy.json.JsonSlurper;
1807 if (prev.getResponseCode() == '200') {
1808 def jsonSlurper = new JsonSlurper();
1809 res = jsonSlurper.parseText(prev.getResponseDataAsString());
1811 assert res instanceof Map;
1812 assert res.policy_types instanceof Map;
1813 assert res.policy_types.size() == 2;
1815 assert res.policy_types.get('onap.policies.controlloop.guard.common.Blacklist') instanceof Map;
1816 assert res.policy_types.get('onap.policies.controlloop.guard.common.Blacklist').version == "6.0.${__threadNum}";
1821 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get Policy Type Native APEX" enabled="true">
1822 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
1823 <collectionProp name="Arguments.arguments"/>
1825 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
1826 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
1827 <stringProp name="HTTPSampler.protocol">https</stringProp>
1828 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
1829 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.native.Apex/versions/6.0.${__threadNum}</stringProp>
1830 <stringProp name="HTTPSampler.method">GET</stringProp>
1831 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
1832 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
1833 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
1834 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
1835 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
1836 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
1837 <stringProp name="HTTPSampler.response_timeout"></stringProp>
1840 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
1841 <collectionProp name="Asserion.test_strings">
1842 <stringProp name="49586">200</stringProp>
1844 <stringProp name="Assertion.custom_message"></stringProp>
1845 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
1846 <boolProp name="Assertion.assume_success">false</boolProp>
1847 <intProp name="Assertion.test_type">1</intProp>
1848 </ResponseAssertion>
1850 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
1851 <stringProp name="scriptLanguage">groovy</stringProp>
1852 <stringProp name="parameters"></stringProp>
1853 <stringProp name="filename"></stringProp>
1854 <stringProp name="cacheKey">true</stringProp>
1855 <stringProp name="script">import groovy.json.JsonSlurper;
1858 if (prev.getResponseCode() == '200') {
1859 def jsonSlurper = new JsonSlurper();
1860 res = jsonSlurper.parseText(prev.getResponseDataAsString());
1862 assert res instanceof Map;
1863 assert res.policy_types instanceof Map;
1864 assert res.policy_types.size() == 2;
1866 assert res.policy_types.get('onap.policies.native.Apex') instanceof Map;
1867 assert res.policy_types.get('onap.policies.native.Apex').version == "6.0.${__threadNum}";
1872 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get Policy Type Native Drools" enabled="true">
1873 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
1874 <collectionProp name="Arguments.arguments"/>
1876 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
1877 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
1878 <stringProp name="HTTPSampler.protocol">https</stringProp>
1879 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
1880 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.native.drools.Controller/versions/6.0.${__threadNum}</stringProp>
1881 <stringProp name="HTTPSampler.method">GET</stringProp>
1882 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
1883 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
1884 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
1885 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
1886 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
1887 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
1888 <stringProp name="HTTPSampler.response_timeout"></stringProp>
1891 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
1892 <collectionProp name="Asserion.test_strings">
1893 <stringProp name="49586">200</stringProp>
1895 <stringProp name="Assertion.custom_message"></stringProp>
1896 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
1897 <boolProp name="Assertion.assume_success">false</boolProp>
1898 <intProp name="Assertion.test_type">1</intProp>
1899 </ResponseAssertion>
1901 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
1902 <stringProp name="scriptLanguage">groovy</stringProp>
1903 <stringProp name="parameters"></stringProp>
1904 <stringProp name="filename"></stringProp>
1905 <stringProp name="cacheKey">true</stringProp>
1906 <stringProp name="script">import groovy.json.JsonSlurper;
1909 if (prev.getResponseCode() == '200') {
1910 def jsonSlurper = new JsonSlurper();
1911 res = jsonSlurper.parseText(prev.getResponseDataAsString());
1913 assert res instanceof Map;
1914 assert res.policy_types instanceof Map;
1915 assert res.policy_types.size() == 3;
1917 assert res.policy_types.get('onap.policies.native.drools.Controller') instanceof Map;
1918 assert res.policy_types.get('onap.policies.native.drools.Controller').version == "6.0.${__threadNum}";
1923 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get Policy Type Native XACML" enabled="true">
1924 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
1925 <collectionProp name="Arguments.arguments"/>
1927 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
1928 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
1929 <stringProp name="HTTPSampler.protocol">https</stringProp>
1930 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
1931 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.native.Xacml/versions/6.0.${__threadNum}</stringProp>
1932 <stringProp name="HTTPSampler.method">GET</stringProp>
1933 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
1934 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
1935 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
1936 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
1937 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
1938 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
1939 <stringProp name="HTTPSampler.response_timeout"></stringProp>
1942 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
1943 <collectionProp name="Asserion.test_strings">
1944 <stringProp name="49586">200</stringProp>
1946 <stringProp name="Assertion.custom_message"></stringProp>
1947 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
1948 <boolProp name="Assertion.assume_success">false</boolProp>
1949 <intProp name="Assertion.test_type">1</intProp>
1950 </ResponseAssertion>
1952 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
1953 <stringProp name="scriptLanguage">groovy</stringProp>
1954 <stringProp name="parameters"></stringProp>
1955 <stringProp name="filename"></stringProp>
1956 <stringProp name="cacheKey">true</stringProp>
1957 <stringProp name="script">import groovy.json.JsonSlurper;
1960 if (prev.getResponseCode() == '200') {
1961 def jsonSlurper = new JsonSlurper();
1962 res = jsonSlurper.parseText(prev.getResponseDataAsString());
1964 assert res instanceof Map;
1965 assert res.policy_types instanceof Map;
1966 assert res.policy_types.size() == 2;
1968 assert res.policy_types.get('onap.policies.native.Xacml') instanceof Map;
1969 assert res.policy_types.get('onap.policies.native.Xacml').version == "6.0.${__threadNum}";
1974 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get Latest Monitoring Policy Type" enabled="true">
1975 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
1976 <collectionProp name="Arguments.arguments"/>
1978 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
1979 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
1980 <stringProp name="HTTPSampler.protocol">https</stringProp>
1981 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
1982 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/latest</stringProp>
1983 <stringProp name="HTTPSampler.method">GET</stringProp>
1984 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
1985 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
1986 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
1987 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
1988 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
1989 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
1990 <stringProp name="HTTPSampler.response_timeout"></stringProp>
1993 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
1994 <collectionProp name="Asserion.test_strings">
1995 <stringProp name="49586">200</stringProp>
1997 <stringProp name="Assertion.custom_message"></stringProp>
1998 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
1999 <boolProp name="Assertion.assume_success">false</boolProp>
2000 <intProp name="Assertion.test_type">1</intProp>
2001 </ResponseAssertion>
2003 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
2004 <stringProp name="scriptLanguage">groovy</stringProp>
2005 <stringProp name="parameters"></stringProp>
2006 <stringProp name="filename"></stringProp>
2007 <stringProp name="cacheKey">true</stringProp>
2008 <stringProp name="script">import groovy.json.JsonSlurper;
2011 if (prev.getResponseCode() == '200') {
2012 def jsonSlurper = new JsonSlurper();
2013 res = jsonSlurper.parseText(prev.getResponseDataAsString());
2015 assert res instanceof Map;
2016 assert res.policy_types instanceof Map;
2017 assert res.policy_types.size() > 0 && res.policy_types.size() < 10;
2019 assert res.policy_types.get('onap.policies.monitoring.cdap.tca.hi.lo.app') instanceof Map;
2020 assert res.policy_types.get('onap.policies.monitoring.cdap.tca.hi.lo.app').version ==~ /7.0.\d+/;
2025 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create Node Template" enabled="true">
2026 <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
2027 <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
2028 <collectionProp name="Arguments.arguments">
2029 <elementProp name="" elementType="HTTPArgument">
2030 <boolProp name="HTTPArgument.always_encode">false</boolProp>
2031 <stringProp name="Argument.value">{
2032 "tosca_definitions_version": "tosca_simple_yaml_1_1_0",
2033 "node_types": {
2034 "org.onap.nodetypes.policy.MetadataSet": {
2035 "derived_from": "tosca.nodetypes.Root",
2036 "version": "6.0.${__threadNum}"
2039 "topology_template": {
2040 "node_templates": {
2041 "apex.metadata.pnf": {
2042 "version": "6.0.${__threadNum}",
2043 "type": "org.onap.nodetypes.policy.MetadataSet",
2044 "type_version": "6.0.${__threadNum}",
2045 "description": "Metadata set for apex pnf Policy",
2046 "metadata": {
2047 "apexPolicyModel": {
2048 "key": {
2049 "name": "onap.policies.apex.Simplecontrolloop",
2050 "version": "0.0.1"
2052 "keyInformation": {
2053 "key": {
2054 "name": "onap.policies.apex.Simplecontrolloop_KeyInfo",
2055 "version": "0.0.1"
2057 "keyInfoMap": {
2058 "entry": [
2060 "key": {
2061 "name": "SimpleBooleanType",
2062 "version": "0.0.1"
2064 "value": {
2065 "key": {
2066 "name": "SimpleBooleanType",
2067 "version": "0.0.1"
2069 "UUID": "7218fb2f-59e3-321d-9ae1-bc97b19eb4ae",
2070 "description": "Generated description for concept referred to by key \"SimpleBooleanType:0.0.1\""
2074 "key": {
2075 "name": "SimpleCL_AAIFailureResponseEvent",
2076 "version": "0.0.1"
2078 "value": {
2079 "key": {
2080 "name": "SimpleCL_AAIFailureResponseEvent",
2081 "version": "0.0.1"
2083 "UUID": "c8a29e27-0a15-354a-84f9-4c7f207e5c81",
2084 "description": "Generated description for concept referred to by key \"SimpleCL_AAIFailureResponseEvent:0.0.1\""
2088 "key": {
2089 "name": "SimpleCL_AAIFailureResponseHandlerPolicy",
2090 "version": "0.0.1"
2092 "value": {
2093 "key": {
2094 "name": "SimpleCL_AAIFailureResponseHandlerPolicy",
2095 "version": "0.0.1"
2097 "UUID": "5e843cee-0180-39b9-8989-180b2ffe11c0",
2098 "description": "Generated description for concept referred to by key \"SimpleCL_AAIFailureResponseHandlerPolicy:0.0.1\""
2102 "key": {
2103 "name": "SimpleCL_AAIRequestErrorType",
2104 "version": "0.0.1"
2106 "value": {
2107 "key": {
2108 "name": "SimpleCL_AAIRequestErrorType",
2109 "version": "0.0.1"
2111 "UUID": "90291c92-9b27-3cd9-8720-db572419c048",
2112 "description": "Generated description for concept referred to by key \"SimpleCL_AAIRequestErrorType:0.0.1\""
2116 "key": {
2117 "name": "SimpleCL_AAIRequestEvent",
2118 "version": "0.0.1"
2120 "value": {
2121 "key": {
2122 "name": "SimpleCL_AAIRequestEvent",
2123 "version": "0.0.1"
2125 "UUID": "7b7e6751-4e0b-389d-98c0-5567bbc0294c",
2126 "description": "Generated description for concept referred to by key \"SimpleCL_AAIRequestEvent:0.0.1\""
2130 "key": {
2131 "name": "SimpleCL_AAISuccessResponseEvent",
2132 "version": "0.0.1"
2134 "value": {
2135 "key": {
2136 "name": "SimpleCL_AAISuccessResponseEvent",
2137 "version": "0.0.1"
2139 "UUID": "63d5680c-14ef-3505-8d34-ebb646bba07b",
2140 "description": "Generated description for concept referred to by key \"SimpleCL_AAISuccessResponseEvent:0.0.1\""
2144 "key": {
2145 "name": "SimpleCL_AAISuccessResponseHandlerPolicy",
2146 "version": "0.0.1"
2148 "value": {
2149 "key": {
2150 "name": "SimpleCL_AAISuccessResponseHandlerPolicy",
2151 "version": "0.0.1"
2153 "UUID": "a84ca97d-6e94-39a2-91f9-59a6c9aa435e",
2154 "description": "Generated description for concept referred to by key \"SimpleCL_AAISuccessResponseHandlerPolicy:0.0.1\""
2158 "key": {
2159 "name": "SimpleCL_CDSActionIdentifiersType",
2160 "version": "0.0.1"
2162 "value": {
2163 "key": {
2164 "name": "SimpleCL_CDSActionIdentifiersType",
2165 "version": "0.0.1"
2167 "UUID": "0e2ee622-7fd3-3e49-82e2-539c4f5e9624",
2168 "description": "Generated description for concept referred to by key \"SimpleCL_CDSActionIdentifiersType:0.0.1\""
2172 "key": {
2173 "name": "SimpleCL_CDSConfigModifyFailureResponseEvent",
2174 "version": "0.0.1"
2176 "value": {
2177 "key": {
2178 "name": "SimpleCL_CDSConfigModifyFailureResponseEvent",
2179 "version": "0.0.1"
2181 "UUID": "e84f8682-ea33-3ad0-8626-8bc4634581fc",
2182 "description": "Generated description for concept referred to by key \"SimpleCL_CDSConfigModifyFailureResponseEvent:0.0.1\""
2186 "key": {
2187 "name": "SimpleCL_CDSConfigModifyFailureResponseHandlerPolicy",
2188 "version": "0.0.1"
2190 "value": {
2191 "key": {
2192 "name": "SimpleCL_CDSConfigModifyFailureResponseHandlerPolicy",
2193 "version": "0.0.1"
2195 "UUID": "a252f835-2479-38ef-9ef4-20af62725752",
2196 "description": "Generated description for concept referred to by key \"SimpleCL_CDSConfigModifyFailureResponseHandlerPolicy:0.0.1\""
2200 "key": {
2201 "name": "SimpleCL_CDSConfigModifyFailureResponseTask",
2202 "version": "0.0.1"
2204 "value": {
2205 "key": {
2206 "name": "SimpleCL_CDSConfigModifyFailureResponseTask",
2207 "version": "0.0.1"
2209 "UUID": "cfc46ea9-b8c1-38dd-ac9c-304c916daf34",
2210 "description": "Generated description for concept referred to by key \"SimpleCL_CDSConfigModifyFailureResponseTask:0.0.1\""
2214 "key": {
2215 "name": "SimpleCL_CDSConfigModifyRequestEvent",
2216 "version": "0.0.1"
2218 "value": {
2219 "key": {
2220 "name": "SimpleCL_CDSConfigModifyRequestEvent",
2221 "version": "0.0.1"
2223 "UUID": "1e7095d6-a455-3f89-acae-486e35d7e311",
2224 "description": "Generated description for concept referred to by key \"SimpleCL_CDSConfigModifyRequestEvent:0.0.1\""
2228 "key": {
2229 "name": "SimpleCL_CDSConfigModifyRequestPayloadType",
2230 "version": "0.0.1"
2232 "value": {
2233 "key": {
2234 "name": "SimpleCL_CDSConfigModifyRequestPayloadType",
2235 "version": "0.0.1"
2237 "UUID": "d22ea83b-695d-3da9-b9f5-41f16ca433bf",
2238 "description": "Generated description for concept referred to by key \"SimpleCL_CDSConfigModifyRequestPayloadType:0.0.1\""
2242 "key": {
2243 "name": "SimpleCL_CDSConfigModifyResponsePayloadType",
2244 "version": "0.0.1"
2246 "value": {
2247 "key": {
2248 "name": "SimpleCL_CDSConfigModifyResponsePayloadType",
2249 "version": "0.0.1"
2251 "UUID": "e9fe2e40-1f0d-30dd-8b9e-885695878693",
2252 "description": "Generated description for concept referred to by key \"SimpleCL_CDSConfigModifyResponsePayloadType:0.0.1\""
2256 "key": {
2257 "name": "SimpleCL_CDSConfigModifySuccessResponseEvent",
2258 "version": "0.0.1"
2260 "value": {
2261 "key": {
2262 "name": "SimpleCL_CDSConfigModifySuccessResponseEvent",
2263 "version": "0.0.1"
2265 "UUID": "5e04fa76-0a17-38a9-8524-23b2d1a23fa5",
2266 "description": "Generated description for concept referred to by key \"SimpleCL_CDSConfigModifySuccessResponseEvent:0.0.1\""
2270 "key": {
2271 "name": "SimpleCL_CDSConfigModifySuccessResponseHandlerPolicy",
2272 "version": "0.0.1"
2274 "value": {
2275 "key": {
2276 "name": "SimpleCL_CDSConfigModifySuccessResponseHandlerPolicy",
2277 "version": "0.0.1"
2279 "UUID": "15866380-40f5-3f8e-87d9-13747a36d352",
2280 "description": "Generated description for concept referred to by key \"SimpleCL_CDSConfigModifySuccessResponseHandlerPolicy:0.0.1\""
2284 "key": {
2285 "name": "SimpleCL_CDSConfigModifySuccessResponseTask",
2286 "version": "0.0.1"
2288 "value": {
2289 "key": {
2290 "name": "SimpleCL_CDSConfigModifySuccessResponseTask",
2291 "version": "0.0.1"
2293 "UUID": "2c3d76ce-dd42-32ac-a397-ab418534e1cf",
2294 "description": "Generated description for concept referred to by key \"SimpleCL_CDSConfigModifySuccessResponseTask:0.0.1\""
2298 "key": {
2299 "name": "SimpleCL_CDSFailureResponseCommonHeaderType",
2300 "version": "0.0.1"
2302 "value": {
2303 "key": {
2304 "name": "SimpleCL_CDSFailureResponseCommonHeaderType",
2305 "version": "0.0.1"
2307 "UUID": "b99c44da-dae7-3c96-b528-58852537d063",
2308 "description": "Generated description for concept referred to by key \"SimpleCL_CDSFailureResponseCommonHeaderType:0.0.1\""
2312 "key": {
2313 "name": "SimpleCL_CDSFailureResponseStatusType",
2314 "version": "0.0.1"
2316 "value": {
2317 "key": {
2318 "name": "SimpleCL_CDSFailureResponseStatusType",
2319 "version": "0.0.1"
2321 "UUID": "1db688e2-3afe-3b03-9795-fdbfa80fa240",
2322 "description": "Generated description for concept referred to by key \"SimpleCL_CDSFailureResponseStatusType:0.0.1\""
2326 "key": {
2327 "name": "SimpleCL_CDSRequestCommonHeaderType",
2328 "version": "0.0.1"
2330 "value": {
2331 "key": {
2332 "name": "SimpleCL_CDSRequestCommonHeaderType",
2333 "version": "0.0.1"
2335 "UUID": "31022456-e85b-3a9b-9ecb-a09691792d3e",
2336 "description": "Generated description for concept referred to by key \"SimpleCL_CDSRequestCommonHeaderType:0.0.1\""
2340 "key": {
2341 "name": "SimpleCL_CDSSuccessResponseCommonHeaderType",
2342 "version": "0.0.1"
2344 "value": {
2345 "key": {
2346 "name": "SimpleCL_CDSSuccessResponseCommonHeaderType",
2347 "version": "0.0.1"
2349 "UUID": "d6075720-622e-3a0d-827a-aa4580a2f5d7",
2350 "description": "Generated description for concept referred to by key \"SimpleCL_CDSSuccessResponseCommonHeaderType:0.0.1\""
2354 "key": {
2355 "name": "SimpleCL_CDSSuccessResponseStatusType",
2356 "version": "0.0.1"
2358 "value": {
2359 "key": {
2360 "name": "SimpleCL_CDSSuccessResponseStatusType",
2361 "version": "0.0.1"
2363 "UUID": "948359ff-3308-3ac5-a5ec-6e3c1b9cd4d5",
2364 "description": "Generated description for concept referred to by key \"SimpleCL_CDSSuccessResponseStatusType:0.0.1\""
2368 "key": {
2369 "name": "SimpleCL_EventDetailsAlbum",
2370 "version": "0.0.1"
2372 "value": {
2373 "key": {
2374 "name": "SimpleCL_EventDetailsAlbum",
2375 "version": "0.0.1"
2377 "UUID": "63a6fd26-2fd6-3a0e-8a27-49a5d2ea4644",
2378 "description": "Generated description for concept referred to by key \"SimpleCL_EventDetailsAlbum:0.0.1\""
2382 "key": {
2383 "name": "SimpleCL_EventDetailsAlbumType",
2384 "version": "0.0.1"
2386 "value": {
2387 "key": {
2388 "name": "SimpleCL_EventDetailsAlbumType",
2389 "version": "0.0.1"
2391 "UUID": "a0407d0b-5719-38bf-9529-25ad62ace8c4",
2392 "description": "Generated description for concept referred to by key \"SimpleCL_EventDetailsAlbumType:0.0.1\""
2396 "key": {
2397 "name": "SimpleCL_HandleAAIFailureResponseTask",
2398 "version": "0.0.1"
2400 "value": {
2401 "key": {
2402 "name": "SimpleCL_HandleAAIFailureResponseTask",
2403 "version": "0.0.1"
2405 "UUID": "28e894dc-4ab8-3469-aab7-d81bd05bb4c9",
2406 "description": "Generated description for concept referred to by key \"SimpleCL_HandleAAIFailureResponseTask:0.0.1\""
2410 "key": {
2411 "name": "SimpleCL_HandleAAISuccessResponseTask",
2412 "version": "0.0.1"
2414 "value": {
2415 "key": {
2416 "name": "SimpleCL_HandleAAISuccessResponseTask",
2417 "version": "0.0.1"
2419 "UUID": "073f1433-999e-3506-98ad-ef820d2fa7f0",
2420 "description": "Generated description for concept referred to by key \"SimpleCL_HandleAAISuccessResponseTask:0.0.1\""
2424 "key": {
2425 "name": "SimpleCL_HandleVesEventTask",
2426 "version": "0.0.1"
2428 "value": {
2429 "key": {
2430 "name": "SimpleCL_HandleVesEventTask",
2431 "version": "0.0.1"
2433 "UUID": "afc6ed46-6801-3c85-bb4c-0ab5b0dd4a74",
2434 "description": "Generated description for concept referred to by key \"SimpleCL_HandleVesEventTask:0.0.1\""
2438 "key": {
2439 "name": "SimpleCL_LogStatusEvent",
2440 "version": "0.0.1"
2442 "value": {
2443 "key": {
2444 "name": "SimpleCL_LogStatusEvent",
2445 "version": "0.0.1"
2447 "UUID": "98e1ddd7-3bd9-30c1-b877-4b9b4d3bff15",
2448 "description": "Generated description for concept referred to by key \"SimpleCL_LogStatusEvent:0.0.1\""
2452 "key": {
2453 "name": "SimpleCL_VesEvent",
2454 "version": "0.0.1"
2456 "value": {
2457 "key": {
2458 "name": "SimpleCL_VesEvent",
2459 "version": "0.0.1"
2461 "UUID": "0f57665a-f0a9-314e-ad0a-04c1f5758174",
2462 "description": "Generated description for concept referred to by key \"SimpleCL_VesEvent:0.0.1\""
2466 "key": {
2467 "name": "SimpleCL_VesEventHandlerPolicy",
2468 "version": "0.0.1"
2470 "value": {
2471 "key": {
2472 "name": "SimpleCL_VesEventHandlerPolicy",
2473 "version": "0.0.1"
2475 "UUID": "ba5d9a46-8cb4-3fbe-84fd-eabba5b7dd4b",
2476 "description": "Generated description for concept referred to by key \"SimpleCL_VesEventHandlerPolicy:0.0.1\""
2480 "key": {
2481 "name": "SimpleCL_VesEventType",
2482 "version": "0.0.1"
2484 "value": {
2485 "key": {
2486 "name": "SimpleCL_VesEventType",
2487 "version": "0.0.1"
2489 "UUID": "9fd7a967-57d4-36ef-81e9-c3396f3aa8d1",
2490 "description": "Generated description for concept referred to by key \"SimpleCL_VesEventType:0.0.1\""
2494 "key": {
2495 "name": "SimpleLongType",
2496 "version": "0.0.1"
2498 "value": {
2499 "key": {
2500 "name": "SimpleLongType",
2501 "version": "0.0.1"
2503 "UUID": "2dfcd9ec-a6f9-3f9f-958f-9b36cf4ac574",
2504 "description": "Generated description for concept referred to by key \"SimpleLongType:0.0.1\""
2508 "key": {
2509 "name": "SimpleStringType",
2510 "version": "0.0.1"
2512 "value": {
2513 "key": {
2514 "name": "SimpleStringType",
2515 "version": "0.0.1"
2517 "UUID": "8a4957cf-9493-3a76-8c22-a208e23259af",
2518 "description": "Generated description for concept referred to by key \"SimpleStringType:0.0.1\""
2522 "key": {
2523 "name": "onap.policies.apex.Simplecontrolloop",
2524 "version": "0.0.1"
2526 "value": {
2527 "key": {
2528 "name": "onap.policies.apex.Simplecontrolloop",
2529 "version": "0.0.1"
2531 "UUID": "ecc97b87-f30b-344c-a476-d36501bf5cbd",
2532 "description": "Generated description for concept referred to by key \"onap.policies.apex.Simplecontrolloop:0.0.1\""
2536 "key": {
2537 "name": "onap.policies.apex.Simplecontrolloop_Albums",
2538 "version": "0.0.1"
2540 "value": {
2541 "key": {
2542 "name": "onap.policies.apex.Simplecontrolloop_Albums",
2543 "version": "0.0.1"
2545 "UUID": "1469671a-56dd-3a68-bf6c-77a5cf7a9487",
2546 "description": "Generated description for concept referred to by key \"onap.policies.apex.Simplecontrolloop_Albums:0.0.1\""
2550 "key": {
2551 "name": "onap.policies.apex.Simplecontrolloop_Events",
2552 "version": "0.0.1"
2554 "value": {
2555 "key": {
2556 "name": "onap.policies.apex.Simplecontrolloop_Events",
2557 "version": "0.0.1"
2559 "UUID": "23c4eee4-aba5-36f6-96d6-46f40061bfed",
2560 "description": "Generated description for concept referred to by key \"onap.policies.apex.Simplecontrolloop_Events:0.0.1\""
2564 "key": {
2565 "name": "onap.policies.apex.Simplecontrolloop_KeyInfo",
2566 "version": "0.0.1"
2568 "value": {
2569 "key": {
2570 "name": "onap.policies.apex.Simplecontrolloop_KeyInfo",
2571 "version": "0.0.1"
2573 "UUID": "ea9e73ff-483c-3827-896c-6eaa9d69bc6e",
2574 "description": "Generated description for concept referred to by key \"onap.policies.apex.Simplecontrolloop_KeyInfo:0.0.1\""
2578 "key": {
2579 "name": "onap.policies.apex.Simplecontrolloop_Policies",
2580 "version": "0.0.1"
2582 "value": {
2583 "key": {
2584 "name": "onap.policies.apex.Simplecontrolloop_Policies",
2585 "version": "0.0.1"
2587 "UUID": "38c068e5-bb9a-3997-9e50-ec77c66825c8",
2588 "description": "Generated description for concept referred to by key \"onap.policies.apex.Simplecontrolloop_Policies:0.0.1\""
2592 "key": {
2593 "name": "onap.policies.apex.Simplecontrolloop_Schemas",
2594 "version": "0.0.1"
2596 "value": {
2597 "key": {
2598 "name": "onap.policies.apex.Simplecontrolloop_Schemas",
2599 "version": "0.0.1"
2601 "UUID": "38514b27-8b9b-3d06-844a-3aced27deb0a",
2602 "description": "Generated description for concept referred to by key \"onap.policies.apex.Simplecontrolloop_Schemas:0.0.1\""
2606 "key": {
2607 "name": "onap.policies.apex.Simplecontrolloop_Tasks",
2608 "version": "0.0.1"
2610 "value": {
2611 "key": {
2612 "name": "onap.policies.apex.Simplecontrolloop_Tasks",
2613 "version": "0.0.1"
2615 "UUID": "0e0387b5-07fa-30e4-8554-eb51d2e18939",
2616 "description": "Generated description for concept referred to by key \"onap.policies.apex.Simplecontrolloop_Tasks:0.0.1\""
2622 "policies": {
2623 "key": {
2624 "name": "onap.policies.apex.Simplecontrolloop_Policies",
2625 "version": "0.0.1"
2627 "policyMap": {
2628 "entry": [
2630 "key": {
2631 "name": "SimpleCL_AAIFailureResponseHandlerPolicy",
2632 "version": "0.0.1"
2634 "value": {
2635 "policyKey": {
2636 "name": "SimpleCL_AAIFailureResponseHandlerPolicy",
2637 "version": "0.0.1"
2639 "template": "Freestyle",
2640 "state": {
2641 "entry": [
2643 "key": "SimpleCL_ReceiveAAIFailureResponseState",
2644 "value": {
2645 "stateKey": {
2646 "parentKeyName": "SimpleCL_AAIFailureResponseHandlerPolicy",
2647 "parentKeyVersion": "0.0.1",
2648 "parentLocalName": "NULL",
2649 "localName": "SimpleCL_ReceiveAAIFailureResponseState"
2651 "trigger": {
2652 "name": "SimpleCL_AAIFailureResponseEvent",
2653 "version": "0.0.1"
2655 "stateOutputs": {
2656 "entry": [
2658 "key": "AAIFailureStateOutput",
2659 "value": {
2660 "key": {
2661 "parentKeyName": "SimpleCL_AAIFailureResponseHandlerPolicy",
2662 "parentKeyVersion": "0.0.1",
2663 "parentLocalName": "SimpleCL_ReceiveAAIFailureResponseState",
2664 "localName": "AAIFailureStateOutput"
2666 "outgoingEvent": {
2667 "name": "SimpleCL_LogStatusEvent",
2668 "version": "0.0.1"
2670 "nextState": {
2671 "parentKeyName": "NULL",
2672 "parentKeyVersion": "0.0.0",
2673 "parentLocalName": "NULL",
2674 "localName": "NULL"
2680 "contextAlbumReference": [],
2681 "taskSelectionLogic": {
2682 "key": "NULL",
2683 "logicFlavour": "UNDEFINED",
2684 "logic": ""
2686 "stateFinalizerLogicMap": {
2687 "entry": []
2689 "defaultTask": {
2690 "name": "SimpleCL_HandleAAIFailureResponseTask",
2691 "version": "0.0.1"
2693 "taskReferences": {
2694 "entry": [
2696 "key": {
2697 "name": "SimpleCL_HandleAAIFailureResponseTask",
2698 "version": "0.0.1"
2700 "value": {
2701 "key": {
2702 "parentKeyName": "SimpleCL_AAIFailureResponseHandlerPolicy",
2703 "parentKeyVersion": "0.0.1",
2704 "parentLocalName": "SimpleCL_ReceiveAAIFailureResponseState",
2705 "localName": "SimpleCL_AAIFailureResponseHandlerPolicy"
2707 "outputType": "DIRECT",
2708 "output": {
2709 "parentKeyName": "SimpleCL_AAIFailureResponseHandlerPolicy",
2710 "parentKeyVersion": "0.0.1",
2711 "parentLocalName": "SimpleCL_ReceiveAAIFailureResponseState",
2712 "localName": "AAIFailureStateOutput"
2722 "firstState": "SimpleCL_ReceiveAAIFailureResponseState"
2726 "key": {
2727 "name": "SimpleCL_AAISuccessResponseHandlerPolicy",
2728 "version": "0.0.1"
2730 "value": {
2731 "policyKey": {
2732 "name": "SimpleCL_AAISuccessResponseHandlerPolicy",
2733 "version": "0.0.1"
2735 "template": "Freestyle",
2736 "state": {
2737 "entry": [
2739 "key": "SimpleCL_ReceiveAAISuccessResponseState",
2740 "value": {
2741 "stateKey": {
2742 "parentKeyName": "SimpleCL_AAISuccessResponseHandlerPolicy",
2743 "parentKeyVersion": "0.0.1",
2744 "parentLocalName": "NULL",
2745 "localName": "SimpleCL_ReceiveAAISuccessResponseState"
2747 "trigger": {
2748 "name": "SimpleCL_AAISuccessResponseEvent",
2749 "version": "0.0.1"
2751 "stateOutputs": {
2752 "entry": [
2754 "key": "AAISuccessStateOutput",
2755 "value": {
2756 "key": {
2757 "parentKeyName": "SimpleCL_AAISuccessResponseHandlerPolicy",
2758 "parentKeyVersion": "0.0.1",
2759 "parentLocalName": "SimpleCL_ReceiveAAISuccessResponseState",
2760 "localName": "AAISuccessStateOutput"
2762 "outgoingEvent": {
2763 "name": "SimpleCL_CDSConfigModifyRequestEvent",
2764 "version": "0.0.1"
2766 "nextState": {
2767 "parentKeyName": "NULL",
2768 "parentKeyVersion": "0.0.0",
2769 "parentLocalName": "NULL",
2770 "localName": "NULL"
2776 "contextAlbumReference": [],
2777 "taskSelectionLogic": {
2778 "key": "NULL",
2779 "logicFlavour": "UNDEFINED",
2780 "logic": ""
2782 "stateFinalizerLogicMap": {
2783 "entry": []
2785 "defaultTask": {
2786 "name": "SimpleCL_HandleAAISuccessResponseTask",
2787 "version": "0.0.1"
2789 "taskReferences": {
2790 "entry": [
2792 "key": {
2793 "name": "SimpleCL_HandleAAISuccessResponseTask",
2794 "version": "0.0.1"
2796 "value": {
2797 "key": {
2798 "parentKeyName": "SimpleCL_AAISuccessResponseHandlerPolicy",
2799 "parentKeyVersion": "0.0.1",
2800 "parentLocalName": "SimpleCL_ReceiveAAISuccessResponseState",
2801 "localName": "SimpleCL_AAISuccessResponseHandlerPolicy"
2803 "outputType": "DIRECT",
2804 "output": {
2805 "parentKeyName": "SimpleCL_AAISuccessResponseHandlerPolicy",
2806 "parentKeyVersion": "0.0.1",
2807 "parentLocalName": "SimpleCL_ReceiveAAISuccessResponseState",
2808 "localName": "AAISuccessStateOutput"
2818 "firstState": "SimpleCL_ReceiveAAISuccessResponseState"
2822 "key": {
2823 "name": "SimpleCL_CDSConfigModifyFailureResponseHandlerPolicy",
2824 "version": "0.0.1"
2826 "value": {
2827 "policyKey": {
2828 "name": "SimpleCL_CDSConfigModifyFailureResponseHandlerPolicy",
2829 "version": "0.0.1"
2831 "template": "Freestyle",
2832 "state": {
2833 "entry": [
2835 "key": "SimpleCL_CDSConfigModifyFailureResponseState",
2836 "value": {
2837 "stateKey": {
2838 "parentKeyName": "SimpleCL_CDSConfigModifyFailureResponseHandlerPolicy",
2839 "parentKeyVersion": "0.0.1",
2840 "parentLocalName": "NULL",
2841 "localName": "SimpleCL_CDSConfigModifyFailureResponseState"
2843 "trigger": {
2844 "name": "SimpleCL_CDSConfigModifyFailureResponseEvent",
2845 "version": "0.0.1"
2847 "stateOutputs": {
2848 "entry": [
2850 "key": "ConfigModifyFailureResponseOutput",
2851 "value": {
2852 "key": {
2853 "parentKeyName": "SimpleCL_CDSConfigModifyFailureResponseHandlerPolicy",
2854 "parentKeyVersion": "0.0.1",
2855 "parentLocalName": "SimpleCL_CDSConfigModifyFailureResponseState",
2856 "localName": "ConfigModifyFailureResponseOutput"
2858 "outgoingEvent": {
2859 "name": "SimpleCL_LogStatusEvent",
2860 "version": "0.0.1"
2862 "nextState": {
2863 "parentKeyName": "NULL",
2864 "parentKeyVersion": "0.0.0",
2865 "parentLocalName": "NULL",
2866 "localName": "NULL"
2872 "contextAlbumReference": [],
2873 "taskSelectionLogic": {
2874 "key": "NULL",
2875 "logicFlavour": "UNDEFINED",
2876 "logic": ""
2878 "stateFinalizerLogicMap": {
2879 "entry": []
2881 "defaultTask": {
2882 "name": "SimpleCL_CDSConfigModifyFailureResponseTask",
2883 "version": "0.0.1"
2885 "taskReferences": {
2886 "entry": [
2888 "key": {
2889 "name": "SimpleCL_CDSConfigModifyFailureResponseTask",
2890 "version": "0.0.1"
2892 "value": {
2893 "key": {
2894 "parentKeyName": "SimpleCL_CDSConfigModifyFailureResponseHandlerPolicy",
2895 "parentKeyVersion": "0.0.1",
2896 "parentLocalName": "SimpleCL_CDSConfigModifyFailureResponseState",
2897 "localName": "SimpleCL_CDSConfigModifyFailureResponseHandlerPolicy"
2899 "outputType": "DIRECT",
2900 "output": {
2901 "parentKeyName": "SimpleCL_CDSConfigModifyFailureResponseHandlerPolicy",
2902 "parentKeyVersion": "0.0.1",
2903 "parentLocalName": "SimpleCL_CDSConfigModifyFailureResponseState",
2904 "localName": "ConfigModifyFailureResponseOutput"
2914 "firstState": "SimpleCL_CDSConfigModifyFailureResponseState"
2918 "key": {
2919 "name": "SimpleCL_CDSConfigModifySuccessResponseHandlerPolicy",
2920 "version": "0.0.1"
2922 "value": {
2923 "policyKey": {
2924 "name": "SimpleCL_CDSConfigModifySuccessResponseHandlerPolicy",
2925 "version": "0.0.1"
2927 "template": "Freestyle",
2928 "state": {
2929 "entry": [
2931 "key": "SimpleCL_CDSConfigModifySuccessResponseState",
2932 "value": {
2933 "stateKey": {
2934 "parentKeyName": "SimpleCL_CDSConfigModifySuccessResponseHandlerPolicy",
2935 "parentKeyVersion": "0.0.1",
2936 "parentLocalName": "NULL",
2937 "localName": "SimpleCL_CDSConfigModifySuccessResponseState"
2939 "trigger": {
2940 "name": "SimpleCL_CDSConfigModifySuccessResponseEvent",
2941 "version": "0.0.1"
2943 "stateOutputs": {
2944 "entry": [
2946 "key": "ConfigModifySuccessResponseOutput",
2947 "value": {
2948 "key": {
2949 "parentKeyName": "SimpleCL_CDSConfigModifySuccessResponseHandlerPolicy",
2950 "parentKeyVersion": "0.0.1",
2951 "parentLocalName": "SimpleCL_CDSConfigModifySuccessResponseState",
2952 "localName": "ConfigModifySuccessResponseOutput"
2954 "outgoingEvent": {
2955 "name": "SimpleCL_LogStatusEvent",
2956 "version": "0.0.1"
2958 "nextState": {
2959 "parentKeyName": "NULL",
2960 "parentKeyVersion": "0.0.0",
2961 "parentLocalName": "NULL",
2962 "localName": "NULL"
2968 "contextAlbumReference": [],
2969 "taskSelectionLogic": {
2970 "key": "NULL",
2971 "logicFlavour": "UNDEFINED",
2972 "logic": ""
2974 "stateFinalizerLogicMap": {
2975 "entry": []
2977 "defaultTask": {
2978 "name": "SimpleCL_CDSConfigModifySuccessResponseTask",
2979 "version": "0.0.1"
2981 "taskReferences": {
2982 "entry": [
2984 "key": {
2985 "name": "SimpleCL_CDSConfigModifySuccessResponseTask",
2986 "version": "0.0.1"
2988 "value": {
2989 "key": {
2990 "parentKeyName": "SimpleCL_CDSConfigModifySuccessResponseHandlerPolicy",
2991 "parentKeyVersion": "0.0.1",
2992 "parentLocalName": "SimpleCL_CDSConfigModifySuccessResponseState",
2993 "localName": "SimpleCL_CDSConfigModifySuccessResponseHandlerPolicy"
2995 "outputType": "DIRECT",
2996 "output": {
2997 "parentKeyName": "SimpleCL_CDSConfigModifySuccessResponseHandlerPolicy",
2998 "parentKeyVersion": "0.0.1",
2999 "parentLocalName": "SimpleCL_CDSConfigModifySuccessResponseState",
3000 "localName": "ConfigModifySuccessResponseOutput"
3010 "firstState": "SimpleCL_CDSConfigModifySuccessResponseState"
3014 "key": {
3015 "name": "SimpleCL_VesEventHandlerPolicy",
3016 "version": "0.0.1"
3018 "value": {
3019 "policyKey": {
3020 "name": "SimpleCL_VesEventHandlerPolicy",
3021 "version": "0.0.1"
3023 "template": "Freestyle",
3024 "state": {
3025 "entry": [
3027 "key": "SimpleCL_ReceiveVesState",
3028 "value": {
3029 "stateKey": {
3030 "parentKeyName": "SimpleCL_VesEventHandlerPolicy",
3031 "parentKeyVersion": "0.0.1",
3032 "parentLocalName": "NULL",
3033 "localName": "SimpleCL_ReceiveVesState"
3035 "trigger": {
3036 "name": "SimpleCL_VesEvent",
3037 "version": "0.0.1"
3039 "stateOutputs": {
3040 "entry": [
3042 "key": "VesOutput",
3043 "value": {
3044 "key": {
3045 "parentKeyName": "SimpleCL_VesEventHandlerPolicy",
3046 "parentKeyVersion": "0.0.1",
3047 "parentLocalName": "SimpleCL_ReceiveVesState",
3048 "localName": "VesOutput"
3050 "outgoingEvent": {
3051 "name": "SimpleCL_AAIRequestEvent",
3052 "version": "0.0.1"
3054 "nextState": {
3055 "parentKeyName": "NULL",
3056 "parentKeyVersion": "0.0.0",
3057 "parentLocalName": "NULL",
3058 "localName": "NULL"
3064 "contextAlbumReference": [],
3065 "taskSelectionLogic": {
3066 "key": "NULL",
3067 "logicFlavour": "UNDEFINED",
3068 "logic": ""
3070 "stateFinalizerLogicMap": {
3071 "entry": []
3073 "defaultTask": {
3074 "name": "SimpleCL_HandleVesEventTask",
3075 "version": "0.0.1"
3077 "taskReferences": {
3078 "entry": [
3080 "key": {
3081 "name": "SimpleCL_HandleVesEventTask",
3082 "version": "0.0.1"
3084 "value": {
3085 "key": {
3086 "parentKeyName": "SimpleCL_VesEventHandlerPolicy",
3087 "parentKeyVersion": "0.0.1",
3088 "parentLocalName": "SimpleCL_ReceiveVesState",
3089 "localName": "SimpleCL_VesEventHandlerPolicy"
3091 "outputType": "DIRECT",
3092 "output": {
3093 "parentKeyName": "SimpleCL_VesEventHandlerPolicy",
3094 "parentKeyVersion": "0.0.1",
3095 "parentLocalName": "SimpleCL_ReceiveVesState",
3096 "localName": "VesOutput"
3106 "firstState": "SimpleCL_ReceiveVesState"
3112 "tasks": {
3113 "key": {
3114 "name": "onap.policies.apex.Simplecontrolloop_Tasks",
3115 "version": "0.0.1"
3117 "taskMap": {
3118 "entry": [
3120 "key": {
3121 "name": "SimpleCL_CDSConfigModifyFailureResponseTask",
3122 "version": "0.0.1"
3124 "value": {
3125 "key": {
3126 "name": "SimpleCL_CDSConfigModifyFailureResponseTask",
3127 "version": "0.0.1"
3129 "inputFields": {
3130 "entry": [
3132 "key": "actionIdentifiers",
3133 "value": {
3134 "key": "actionIdentifiers",
3135 "fieldSchemaKey": {
3136 "name": "SimpleCL_CDSActionIdentifiersType",
3137 "version": "0.0.1"
3139 "optional": false
3143 "key": "commonHeader",
3144 "value": {
3145 "key": "commonHeader",
3146 "fieldSchemaKey": {
3147 "name": "SimpleCL_CDSFailureResponseCommonHeaderType",
3148 "version": "0.0.1"
3150 "optional": false
3154 "key": "payload",
3155 "value": {
3156 "key": "payload",
3157 "fieldSchemaKey": {
3158 "name": "SimpleCL_CDSConfigModifyRequestPayloadType",
3159 "version": "0.0.1"
3161 "optional": false
3165 "key": "status",
3166 "value": {
3167 "key": "status",
3168 "fieldSchemaKey": {
3169 "name": "SimpleCL_CDSFailureResponseStatusType",
3170 "version": "0.0.1"
3172 "optional": false
3177 "outputFields": {
3178 "entry": [
3180 "key": "message",
3181 "value": {
3182 "key": "message",
3183 "fieldSchemaKey": {
3184 "name": "SimpleStringType",
3185 "version": "0.0.1"
3187 "optional": false
3192 "taskParameters": {
3193 "entry": []
3195 "contextAlbumReference": [
3197 "name": "SimpleCL_EventDetailsAlbum",
3198 "version": "0.0.1"
3201 "taskLogic": {
3202 "key": "TaskLogic",
3203 "logicFlavour": "JAVASCRIPT",
3204 "logic": "var uuidType = java.util.UUID;\nvar longType = java.lang.Long;\nvar HashMapType = java.util.HashMap;\n\nvar cdsResponse = executor.inFields;\nvar albumID = cdsResponse.get(\"commonHeader\").get(\"subRequestId\");\n\nvar eventDetailsAlbum = executor.getContextAlbum(\"SimpleCL_EventDetailsAlbum\").get(albumID.toString());\nvar commonEventHeader = eventDetailsAlbum.get(\"commonEventHeader\");\nvar timestamp = longType(new Date().getTime())\nvar errorMessage = \"CDS operation failed. Error message from CDS - \" + executor.inFields.get(\"status\").get(\"errorMessage\");\nsend(commonEventHeader.get(\"eventId\"), \"PNF\", eventDetailsAlbum.get(\"otherFields\").get(\"hashMap\").get(\"pnfName\"), timestamp, \"FINAL_FAILURE\", \"Failed to process VES event. Reason: \" + errorMessage);\ntrue;\n\nfunction send(id, targetType, targetId, timestamp, status, message) {\n var logData = '{'\n +'\"id\" : \"' + id + '\",'\n +'\"target\" : {'\n +'\"targetType\" : \"' + targetType + '\",'\n +'\"entityInfo\" : {'\n +'\"pnf-name\" : \"' + targetId + '\"'\n +'}'\n +'},'\n +'\"component\" : {'\n +'\"name\" : \"Policy\",'\n +'\"flavour\" : \"Apex-PDP\",'\n +'\"timestamp\" : ' + timestamp + ','\n +'\"status\" : \"' + status + '\",'\n +'\"message\" : \"' + message + '\",'\n +'\"artifacts\" : {'\n +'\"policyName\" : \"onap.policies.apex.Simplecontrolloop\",'\n +'\"policyVersion\" : \"1.0.0\"'\n +'}'\n +'},'\n +'\"otherFields\" : {'\n +'\"useCaseName\" : \"simple-controlloop-usecase\"'\n +'}'\n +'}';\n\n executor.logger.info(\"sending the status to log.\");\n fireLogEvent(logData);\n}\n\nfunction fireLogEvent(logEvent){\n var headers = new HashMapType();\n //headers.put(\"Authorization\" , \"Basic Y2NzZGthcHBzOmNjc2RrYXBwcw==\");\n executor.logger.info(\"LogEvent:\"+logEvent);\n var response = new org.onap.policy.rest.RestManager().post(\n executor.getParameters().get(\"logUrl\"),\n \"\",\n \"\",\n headers,\n \"application/json\",\n logEvent\n );\n executor.logger.info(\"DMaaP Response after sending LogEvent: \" + response);\n return response;\n}"
3209 "key": {
3210 "name": "SimpleCL_CDSConfigModifySuccessResponseTask",
3211 "version": "0.0.1"
3213 "value": {
3214 "key": {
3215 "name": "SimpleCL_CDSConfigModifySuccessResponseTask",
3216 "version": "0.0.1"
3218 "inputFields": {
3219 "entry": [
3221 "key": "actionIdentifiers",
3222 "value": {
3223 "key": "actionIdentifiers",
3224 "fieldSchemaKey": {
3225 "name": "SimpleCL_CDSActionIdentifiersType",
3226 "version": "0.0.1"
3228 "optional": false
3232 "key": "commonHeader",
3233 "value": {
3234 "key": "commonHeader",
3235 "fieldSchemaKey": {
3236 "name": "SimpleCL_CDSSuccessResponseCommonHeaderType",
3237 "version": "0.0.1"
3239 "optional": false
3243 "key": "payload",
3244 "value": {
3245 "key": "payload",
3246 "fieldSchemaKey": {
3247 "name": "SimpleCL_CDSConfigModifyResponsePayloadType",
3248 "version": "0.0.1"
3250 "optional": false
3254 "key": "status",
3255 "value": {
3256 "key": "status",
3257 "fieldSchemaKey": {
3258 "name": "SimpleCL_CDSSuccessResponseStatusType",
3259 "version": "0.0.1"
3261 "optional": false
3266 "outputFields": {
3267 "entry": [
3269 "key": "message",
3270 "value": {
3271 "key": "message",
3272 "fieldSchemaKey": {
3273 "name": "SimpleStringType",
3274 "version": "0.0.1"
3276 "optional": false
3281 "taskParameters": {
3282 "entry": []
3284 "contextAlbumReference": [
3286 "name": "SimpleCL_EventDetailsAlbum",
3287 "version": "0.0.1"
3290 "taskLogic": {
3291 "key": "TaskLogic",
3292 "logicFlavour": "JAVASCRIPT",
3293 "logic": "var uuidType = java.util.UUID;\nvar longType = java.lang.Long;\nvar HashMapType = java.util.HashMap;\n\nvar cdsResponse = executor.inFields;\nvar albumID = cdsResponse.get(\"commonHeader\").get(\"subRequestId\");\nvar eventDetailsAlbum = executor.getContextAlbum(\"SimpleCL_EventDetailsAlbum\").get(albumID.toString());\nvar commonEventHeader = eventDetailsAlbum.get(\"commonEventHeader\");\nvar timestamp = longType(new Date().getTime());\n\nsend(commonEventHeader.get(\"eventId\"), \"PNF\", eventDetailsAlbum.get(\"otherFields\").get(\"hashMap\").get(\"pnfName\"), timestamp, \"FINAL_SUCCESS\", \"Successfully processed the VES event. Hostname is updated.\")\ntrue;\n\nfunction send(id, targetType, targetId, timestamp, status, message) {\n var logData = '{'\n +'\"id\" : \"' + id + '\",'\n +'\"target\" : {'\n +'\"targetType\" : \"' + targetType + '\",'\n +'\"entityInfo\" : {'\n +'\"pnf-name\" : \"' + targetId + '\"'\n +'}'\n +'},'\n +'\"component\" : {'\n +'\"name\" : \"Policy\",'\n +'\"flavour\" : \"Apex-PDP\",'\n +'\"timestamp\" : ' + timestamp + ','\n +'\"status\" : \"' + status + '\",'\n +'\"message\" : \"' + message + '\",'\n +'\"artifacts\" : {'\n +'\"policyName\" : \"onap.policies.apex.Simplecontrolloop\",'\n +'\"policyVersion\" : \"1.0.0\"'\n +'}'\n +'},'\n +'\"otherFields\" : {'\n +'\"useCaseName\" : \"simple-controlloop-usecase\"'\n +'}'\n +'}';\n\n executor.logger.info(\"sending the status to log.\");\n fireLogEvent(logData);\n}\n\nfunction fireLogEvent(logEvent){\n var headers = new HashMapType();\n //headers.put(\"Authorization\" , \"Basic Y2NzZGthcHBzOmNjc2RrYXBwcw==\");\n executor.logger.info(\"LogEvent:\"+logEvent);\n var response = new org.onap.policy.rest.RestManager().post(\n executor.getParameters().get(\"logUrl\"),\n \"\",\n \"\",\n headers,\n \"application/json\",\n logEvent\n );\n executor.logger.info(\"DMaaP Response after sending LogEvent: \" + response);\n return response;\n}"
3298 "key": {
3299 "name": "SimpleCL_HandleAAIFailureResponseTask",
3300 "version": "0.0.1"
3302 "value": {
3303 "key": {
3304 "name": "SimpleCL_HandleAAIFailureResponseTask",
3305 "version": "0.0.1"
3307 "inputFields": {
3308 "entry": [
3310 "key": "requestError",
3311 "value": {
3312 "key": "requestError",
3313 "fieldSchemaKey": {
3314 "name": "SimpleCL_AAIRequestErrorType",
3315 "version": "0.0.1"
3317 "optional": false
3322 "outputFields": {
3323 "entry": [
3325 "key": "message",
3326 "value": {
3327 "key": "message",
3328 "fieldSchemaKey": {
3329 "name": "SimpleStringType",
3330 "version": "0.0.1"
3332 "optional": false
3337 "taskParameters": {
3338 "entry": []
3340 "contextAlbumReference": [
3342 "name": "SimpleCL_EventDetailsAlbum",
3343 "version": "0.0.1"
3346 "taskLogic": {
3347 "key": "TaskLogic",
3348 "logicFlavour": "JAVASCRIPT",
3349 "logic": "var uuidType = java.util.UUID;\nvar longType = java.lang.Long;\nvar HashMapType = java.util.HashMap;\n\nvar aaiErrorMessage = \"AAI operation failed. Error message from AAI - \" + executor.inFields.get(\"requestError\").get(\"serviceException\").get(\"text\");\nvar timestamp = longType(new Date().getTime());\n\n//Sending messageId received from AAI error message since eventId is not available in this task logic\nsend(executor.inFields.get(\"requestError\").get(\"serviceException\").get(\"messageId\"), \"PNF\", \"N/A\", timestamp, \"FINAL_FAILURE\", \"Failed to process VES event. Reason: \" + aaiErrorMessage)\ntrue;\n\nfunction send(id, targetType, targetId, timestamp, status, message) {\n var logData = '{'\n +'\"id\" : \"' + id + '\",'\n +'\"target\" : {'\n +'\"targetType\" : \"' + targetType + '\",'\n +'\"entityInfo\" : {'\n +'\"pnf-name\" : \"' + targetId + '\"'\n +'}'\n +'},'\n +'\"component\" : {'\n +'\"name\" : \"Policy\",'\n +'\"flavour\" : \"Apex-PDP\",'\n +'\"timestamp\" : ' + timestamp + ','\n +'\"status\" : \"' + status + '\",'\n +'\"message\" : \"' + message + '\",'\n +'\"artifacts\" : {'\n +'\"policyName\" : \"onap.policies.apex.Simplecontrolloop\",'\n +'\"policyVersion\" : \"1.0.0\"'\n +'}'\n +'},'\n +'\"otherFields\" : {'\n +'\"useCaseName\" : \"simple-controlloop-usecase\"'\n +'}'\n +'}';\n\n executor.logger.info(\"sending the status to log.\");\n fireLogEvent(logData);\n}\n\nfunction fireLogEvent(logEvent){\n var headers = new HashMapType();\n //headers.put(\"Authorization\" , \"Basic Y2NzZGthcHBzOmNjc2RrYXBwcw==\");\n executor.logger.info(\"LogEvent:\"+logEvent);\n var response = new org.onap.policy.rest.RestManager().post(\n executor.getParameters().get(\"logUrl\"),\n \"\",\n \"\",\n headers,\n \"application/json\",\n logEvent\n );\n executor.logger.info(\"DMaaP Response after sending LogEvent: \" + response);\n return response;\n}"
3354 "key": {
3355 "name": "SimpleCL_HandleAAISuccessResponseTask",
3356 "version": "0.0.1"
3358 "value": {
3359 "key": {
3360 "name": "SimpleCL_HandleAAISuccessResponseTask",
3361 "version": "0.0.1"
3363 "inputFields": {
3364 "entry": [
3366 "key": "equip-model",
3367 "value": {
3368 "key": "equip-model",
3369 "fieldSchemaKey": {
3370 "name": "SimpleStringType",
3371 "version": "0.0.1"
3373 "optional": false
3377 "key": "equip-type",
3378 "value": {
3379 "key": "equip-type",
3380 "fieldSchemaKey": {
3381 "name": "SimpleStringType",
3382 "version": "0.0.1"
3384 "optional": false
3388 "key": "equip-vendor",
3389 "value": {
3390 "key": "equip-vendor",
3391 "fieldSchemaKey": {
3392 "name": "SimpleStringType",
3393 "version": "0.0.1"
3395 "optional": false
3399 "key": "in-maint",
3400 "value": {
3401 "key": "in-maint",
3402 "fieldSchemaKey": {
3403 "name": "SimpleBooleanType",
3404 "version": "0.0.1"
3406 "optional": false
3410 "key": "ipaddress-v4-oam",
3411 "value": {
3412 "key": "ipaddress-v4-oam",
3413 "fieldSchemaKey": {
3414 "name": "SimpleStringType",
3415 "version": "0.0.1"
3417 "optional": false
3421 "key": "ipaddress-v6-oam",
3422 "value": {
3423 "key": "ipaddress-v6-oam",
3424 "fieldSchemaKey": {
3425 "name": "SimpleStringType",
3426 "version": "0.0.1"
3428 "optional": false
3432 "key": "management-option",
3433 "value": {
3434 "key": "management-option",
3435 "fieldSchemaKey": {
3436 "name": "SimpleStringType",
3437 "version": "0.0.1"
3439 "optional": false
3443 "key": "pnf-id",
3444 "value": {
3445 "key": "pnf-id",
3446 "fieldSchemaKey": {
3447 "name": "SimpleStringType",
3448 "version": "0.0.1"
3450 "optional": false
3454 "key": "pnf-name",
3455 "value": {
3456 "key": "pnf-name",
3457 "fieldSchemaKey": {
3458 "name": "SimpleStringType",
3459 "version": "0.0.1"
3461 "optional": false
3465 "key": "pnf-name2",
3466 "value": {
3467 "key": "pnf-name2",
3468 "fieldSchemaKey": {
3469 "name": "SimpleStringType",
3470 "version": "0.0.1"
3472 "optional": false
3476 "key": "resource-version",
3477 "value": {
3478 "key": "resource-version",
3479 "fieldSchemaKey": {
3480 "name": "SimpleStringType",
3481 "version": "0.0.1"
3483 "optional": false
3488 "outputFields": {
3489 "entry": [
3491 "key": "actionIdentifiers",
3492 "value": {
3493 "key": "actionIdentifiers",
3494 "fieldSchemaKey": {
3495 "name": "SimpleCL_CDSActionIdentifiersType",
3496 "version": "0.0.1"
3498 "optional": false
3502 "key": "commonHeader",
3503 "value": {
3504 "key": "commonHeader",
3505 "fieldSchemaKey": {
3506 "name": "SimpleCL_CDSRequestCommonHeaderType",
3507 "version": "0.0.1"
3509 "optional": false
3513 "key": "payload",
3514 "value": {
3515 "key": "payload",
3516 "fieldSchemaKey": {
3517 "name": "SimpleCL_CDSConfigModifyRequestPayloadType",
3518 "version": "0.0.1"
3520 "optional": false
3525 "taskParameters": {
3526 "entry": []
3528 "contextAlbumReference": [
3530 "name": "SimpleCL_EventDetailsAlbum",
3531 "version": "0.0.1"
3534 "taskLogic": {
3535 "key": "TaskLogic",
3536 "logicFlavour": "JAVASCRIPT",
3537 "logic": "var uuidType = java.util.UUID;\nvar HashMapType = java.util.HashMap;\nvar longType = java.lang.Long;\n\nvar pnfDetails = executor.inFields;\nvar albumID = pnfDetails.get(\"pnf-id\");\nvar eventDetailsAlbum = executor.getContextAlbum(\"SimpleCL_EventDetailsAlbum\").get(albumID.toString());\nexecutor.logger.info(\"HandleAAISuccessResponseTask extracted context album - \" + albumID.toString() + \"::\" + eventDetailsAlbum);\n\nvar commonEventHeader = eventDetailsAlbum.get(\"commonEventHeader\");\nvar otherFieldsMap = eventDetailsAlbum.get(\"otherFields\").get(\"hashMap\");\n\nvar targetEntityName = executor.inFields.get(\"pnf-name\")\nvar logMessage = \"\";\nvar existingHostname = executor.inFields.get(\"pnf-name2\");\nvar hostnameInVesEvent = otherFieldsMap.get(\"hostname\");\n\nvar albumSchemaHelper = executor.getContextAlbum(\"SimpleCL_EventDetailsAlbum\").getSchemaHelper();\nvar target = albumSchemaHelper.createNewSubInstance(\"target\");\ntarget.put(\"targetType\", \"PNF\")\nvar entityInfo = albumSchemaHelper.createNewSubInstance(\"entityInfo\");\nentityInfo.put(\"name\",targetEntityName);\ntarget.put(\"entityInfo\", entityInfo);\neventDetailsAlbum.put(\"target\", target);\n\nvar returnVal = true;\nvar timestamp = longType(new Date().getTime());\nif ((String(hostnameInVesEvent) != \"UNDEFINED\") && (String(existingHostname) != String(hostnameInVesEvent))) {\n logMessage = \"Hostname available in AAI does not match with the hostname received in the VES Event.\";\n returnVal = false\n send(commonEventHeader.get(\"eventId\"), \"PNF\", otherFieldsMap.get(\"pnfName\"), timestamp, \"FINAL_FAILURE\", \"Failed to process VES event. Reason: \" + logMessage)\n} else {\n logMessage = \"Received response from AAI successfully. Hostname in AAI matches with the one in Ves event. Going to make the update-config request to CDS.\";\n\n var commonHeader = executor.subject.getOutFieldSchemaHelper(\"commonHeader\").createNewInstance();\n commonHeader.put(\"subRequestId\", albumID.toString());\n commonHeader.put(\"requestId\", commonEventHeader.get(\"eventId\"));\n commonHeader.put(\"originatorId\", \"POLICY\");\n\n var blueprintName = \"pnf-test-cba\";\n var blueprintVersion = \"1.0.0\";\n var newHostname = \"host\" + Math.random().toString(36).substring(7);\n eventDetailsAlbum.put(\"generatedHostname\", newHostname);\n\n var actionIdentifiers = executor.subject.getOutFieldSchemaHelper(\"actionIdentifiers\").createNewInstance();\n actionIdentifiers.put(\"mode\", \"sync\");\n actionIdentifiers.put(\"blueprintName\", blueprintName);\n actionIdentifiers.put(\"blueprintVersion\", blueprintVersion);\n actionIdentifiers.put(\"actionName\", \"update-config\");\n\n var payloadEntry = executor.subject.getOutFieldSchemaHelper(\"payload\").createNewSubInstance(\"CDSConfigModifyRequestPayloadEntry\");\n payloadEntry.put(\"hostname\", newHostname)\n payloadEntry.put(\"IP\", executor.inFields.get(\"ipaddress-v4-oam\"));\n payloadEntry.put(\"pnfName\", otherFieldsMap.get(\"pnfName\"));\n\n var payload = executor.subject.getOutFieldSchemaHelper(\"payload\").createNewInstance();\n payload.put(\"update_DasH_config_DasH_request\", payloadEntry);\n\n executor.outFields.put(\"commonHeader\", commonHeader);\n executor.outFields.put(\"actionIdentifiers\", actionIdentifiers);\n executor.outFields.put(\"payload\", payload);\n\n send(commonEventHeader.get(\"eventId\"), \"PNF\", otherFieldsMap.get(\"pnfName\"), timestamp, \"SUCCESS\", logMessage)\n}\n\nreturnVal;\n\nfunction send(id, targetType, targetId, timestamp, status, message) {\n var logData = '{'\n +'\"id\" : \"' + id + '\",'\n +'\"target\" : {'\n +'\"targetType\" : \"' + targetType + '\",'\n +'\"entityInfo\" : {'\n +'\"pnf-name\" : \"' + targetId + '\"'\n +'}'\n +'},'\n +'\"component\" : {'\n +'\"name\" : \"Policy\",'\n +'\"flavour\" : \"Apex-PDP\",'\n +'\"timestamp\" : ' + timestamp + ','\n +'\"status\" : \"' + status + '\",'\n +'\"message\" : \"' + message + '\",'\n +'\"artifacts\" : {'\n +'\"policyName\" : \"onap.policies.apex.Simplecontrolloop\",'\n +'\"policyVersion\" : \"1.0.0\"'\n +'}'\n +'},'\n +'\"otherFields\" : {'\n +'\"useCaseName\" : \"simple-controlloop-usecase\"'\n +'}'\n +'}';\n\n executor.logger.info(\"sending the status to log.\");\n fireLogEvent(logData);\n}\n\nfunction fireLogEvent(logEvent){\n var headers = new HashMapType();\n //headers.put(\"Authorization\" , \"Basic Y2NzZGthcHBzOmNjc2RrYXBwcw==\");\n executor.logger.info(\"LogEvent:\"+logEvent);\n var response = new org.onap.policy.rest.RestManager().post(\n executor.getParameters().get(\"logUrl\"),\n \"\",\n \"\",\n headers,\n \"application/json\",\n logEvent\n );\n executor.logger.info(\"DMaaP Response after sending LogEvent: \" + response);\n return response;\n}"
3542 "key": {
3543 "name": "SimpleCL_HandleVesEventTask",
3544 "version": "0.0.1"
3546 "value": {
3547 "key": {
3548 "name": "SimpleCL_HandleVesEventTask",
3549 "version": "0.0.1"
3551 "inputFields": {
3552 "entry": [
3554 "key": "event",
3555 "value": {
3556 "key": "event",
3557 "fieldSchemaKey": {
3558 "name": "SimpleCL_VesEventType",
3559 "version": "0.0.1"
3561 "optional": false
3566 "outputFields": {
3567 "entry": [
3569 "key": "aaifield",
3570 "value": {
3571 "key": "aaifield",
3572 "fieldSchemaKey": {
3573 "name": "SimpleStringType",
3574 "version": "0.0.1"
3576 "optional": false
3581 "taskParameters": {
3582 "entry": []
3584 "contextAlbumReference": [
3586 "name": "SimpleCL_EventDetailsAlbum",
3587 "version": "0.0.1"
3590 "taskLogic": {
3591 "key": "TaskLogic",
3592 "logicFlavour": "JAVASCRIPT",
3593 "logic": "var uuidType = java.util.UUID;\nvar HashMapType = java.util.HashMap;\nvar longType = java.lang.Long;\n\nvar eventDetailsAlbum = executor.getContextAlbum(\"SimpleCL_EventDetailsAlbum\").getSchemaHelper().createNewInstance();\nvar returnValue = true;\n\nvar event = executor.inFields.get(\"event\");\nexecutor.logger.info(\"HandleVesEventTask processing VES event - \" + event);\n\nvar commonEventHeader = event.get(\"commonEventHeader\");\nvar otherFields = event.get(\"otherFields\");\n// albumID will be used to fetch info from our album later. Storing event data in album by sourceId / AAI pnf-id, the same will be sent to CDS request payload as subRequestId\nvar albumID = commonEventHeader.get(\"sourceId\");\n// save the event processing start time in apex\ncommonEventHeader.put(\"startEpochMicrosec\", longType(new Date().getTime()));\n//save the incoming event details to album\neventDetailsAlbum.put(\"commonEventHeader\", commonEventHeader);\neventDetailsAlbum.put(\"otherFields\", otherFields);\nexecutor.getContextAlbum(\"SimpleCL_EventDetailsAlbum\").put(albumID.toString(), eventDetailsAlbum);\nexecutor.logger.info(\"HandleVesEventTask storing context album - \" + albumID.toString() + \"::\" + eventDetailsAlbum);\n\nexecutor.getExecutionProperties().setProperty(\"pnfName\", otherFields.get(\"hashMap\").get(\"pnfName\"));\n\nvar timestamp = longType(new Date().getTime());\nsend(eventDetailsAlbum.get(\"commonEventHeader\").get(\"eventId\"), \"PNF\", otherFields.get(\"hashMap\").get(\"pnfName\"), timestamp, \"ACTIVE\", \"VES event has been received. Going to fetch details from AAI.\")\nexecutor.logger.info(executor.outFields);\nreturnValue;\n\nfunction send(id, targetType, targetId, timestamp, status, message) {\n var logData = '{'\n +'\"id\" : \"' + id + '\",'\n +'\"target\" : {'\n +'\"targetType\" : \"' + targetType + '\",'\n +'\"entityInfo\" : {'\n +'\"pnf-name\" : \"' + targetId + '\"'\n +'}'\n +'},'\n +'\"component\" : {'\n +'\"name\" : \"Policy\",'\n +'\"flavour\" : \"Apex-PDP\",'\n +'\"timestamp\" : ' + timestamp + ','\n +'\"status\" : \"' + status + '\",'\n +'\"message\" : \"' + message + '\",'\n +'\"artifacts\" : {'\n +'\"policyName\" : \"onap.policies.apex.Simplecontrolloop\",'\n +'\"policyVersion\" : \"1.0.0\"'\n +'}'\n +'},'\n +'\"otherFields\" : {'\n +'\"useCaseName\" : \"simple-controlloop-usecase\"'\n +'}'\n +'}';\n\n executor.logger.info(\"sending the status to log.\");\n fireLogEvent(logData);\n}\n\nfunction fireLogEvent(logEvent){\n var headers = new HashMapType();\n //headers.put(\"Authorization\" , \"Basic Y2NzZGthcHBzOmNjc2RrYXBwcw==\");\n executor.logger.info(\"LogEvent:\"+logEvent);\n var response = new org.onap.policy.rest.RestManager().post(\n executor.getParameters().get(\"logUrl\"),\n \"\",\n \"\",\n headers,\n \"application/json\",\n logEvent\n );\n executor.logger.info(\"DMaaP Response after sending LogEvent: \" + response);\n return response;\n}"
3600 "events": {
3601 "key": {
3602 "name": "onap.policies.apex.Simplecontrolloop_Events",
3603 "version": "0.0.1"
3605 "eventMap": {
3606 "entry": [
3608 "key": {
3609 "name": "SimpleCL_AAIFailureResponseEvent",
3610 "version": "0.0.1"
3612 "value": {
3613 "key": {
3614 "name": "SimpleCL_AAIFailureResponseEvent",
3615 "version": "0.0.1"
3617 "nameSpace": "org.onap.policy.apex.simplecontrolloop",
3618 "source": "AAI",
3619 "target": "APEX",
3620 "parameter": {
3621 "entry": [
3623 "key": "requestError",
3624 "value": {
3625 "key": "requestError",
3626 "fieldSchemaKey": {
3627 "name": "SimpleCL_AAIRequestErrorType",
3628 "version": "0.0.1"
3630 "optional": false
3635 "toscaPolicyState": "EXIT_FAILURE"
3639 "key": {
3640 "name": "SimpleCL_AAIRequestEvent",
3641 "version": "0.0.1"
3643 "value": {
3644 "key": {
3645 "name": "SimpleCL_AAIRequestEvent",
3646 "version": "0.0.1"
3648 "nameSpace": "org.onap.policy.apex.simplecontrolloop",
3649 "source": "APEX",
3650 "target": "AAI",
3651 "parameter": {
3652 "entry": [
3654 "key": "aaifield",
3655 "value": {
3656 "key": "aaifield",
3657 "fieldSchemaKey": {
3658 "name": "SimpleStringType",
3659 "version": "0.0.1"
3661 "optional": false
3666 "toscaPolicyState": ""
3670 "key": {
3671 "name": "SimpleCL_AAISuccessResponseEvent",
3672 "version": "0.0.1"
3674 "value": {
3675 "key": {
3676 "name": "SimpleCL_AAISuccessResponseEvent",
3677 "version": "0.0.1"
3679 "nameSpace": "org.onap.policy.apex.simplecontrolloop",
3680 "source": "AAI",
3681 "target": "APEX",
3682 "parameter": {
3683 "entry": [
3685 "key": "equip-model",
3686 "value": {
3687 "key": "equip-model",
3688 "fieldSchemaKey": {
3689 "name": "SimpleStringType",
3690 "version": "0.0.1"
3692 "optional": false
3696 "key": "equip-type",
3697 "value": {
3698 "key": "equip-type",
3699 "fieldSchemaKey": {
3700 "name": "SimpleStringType",
3701 "version": "0.0.1"
3703 "optional": false
3707 "key": "equip-vendor",
3708 "value": {
3709 "key": "equip-vendor",
3710 "fieldSchemaKey": {
3711 "name": "SimpleStringType",
3712 "version": "0.0.1"
3714 "optional": false
3718 "key": "in-maint",
3719 "value": {
3720 "key": "in-maint",
3721 "fieldSchemaKey": {
3722 "name": "SimpleBooleanType",
3723 "version": "0.0.1"
3725 "optional": false
3729 "key": "ipaddress-v4-oam",
3730 "value": {
3731 "key": "ipaddress-v4-oam",
3732 "fieldSchemaKey": {
3733 "name": "SimpleStringType",
3734 "version": "0.0.1"
3736 "optional": false
3740 "key": "ipaddress-v6-oam",
3741 "value": {
3742 "key": "ipaddress-v6-oam",
3743 "fieldSchemaKey": {
3744 "name": "SimpleStringType",
3745 "version": "0.0.1"
3747 "optional": false
3751 "key": "management-option",
3752 "value": {
3753 "key": "management-option",
3754 "fieldSchemaKey": {
3755 "name": "SimpleStringType",
3756 "version": "0.0.1"
3758 "optional": false
3762 "key": "pnf-id",
3763 "value": {
3764 "key": "pnf-id",
3765 "fieldSchemaKey": {
3766 "name": "SimpleStringType",
3767 "version": "0.0.1"
3769 "optional": false
3773 "key": "pnf-name",
3774 "value": {
3775 "key": "pnf-name",
3776 "fieldSchemaKey": {
3777 "name": "SimpleStringType",
3778 "version": "0.0.1"
3780 "optional": false
3784 "key": "pnf-name2",
3785 "value": {
3786 "key": "pnf-name2",
3787 "fieldSchemaKey": {
3788 "name": "SimpleStringType",
3789 "version": "0.0.1"
3791 "optional": false
3795 "key": "resource-version",
3796 "value": {
3797 "key": "resource-version",
3798 "fieldSchemaKey": {
3799 "name": "SimpleStringType",
3800 "version": "0.0.1"
3802 "optional": false
3807 "toscaPolicyState": ""
3811 "key": {
3812 "name": "SimpleCL_CDSConfigModifyFailureResponseEvent",
3813 "version": "0.0.1"
3815 "value": {
3816 "key": {
3817 "name": "SimpleCL_CDSConfigModifyFailureResponseEvent",
3818 "version": "0.0.1"
3820 "nameSpace": "org.onap.policy.apex.simplecontrolloop",
3821 "source": "CDS",
3822 "target": "APEX",
3823 "parameter": {
3824 "entry": [
3826 "key": "actionIdentifiers",
3827 "value": {
3828 "key": "actionIdentifiers",
3829 "fieldSchemaKey": {
3830 "name": "SimpleCL_CDSActionIdentifiersType",
3831 "version": "0.0.1"
3833 "optional": false
3837 "key": "commonHeader",
3838 "value": {
3839 "key": "commonHeader",
3840 "fieldSchemaKey": {
3841 "name": "SimpleCL_CDSFailureResponseCommonHeaderType",
3842 "version": "0.0.1"
3844 "optional": false
3848 "key": "payload",
3849 "value": {
3850 "key": "payload",
3851 "fieldSchemaKey": {
3852 "name": "SimpleCL_CDSConfigModifyRequestPayloadType",
3853 "version": "0.0.1"
3855 "optional": false
3859 "key": "status",
3860 "value": {
3861 "key": "status",
3862 "fieldSchemaKey": {
3863 "name": "SimpleCL_CDSFailureResponseStatusType",
3864 "version": "0.0.1"
3866 "optional": false
3871 "toscaPolicyState": "EXIT_FAILURE"
3875 "key": {
3876 "name": "SimpleCL_CDSConfigModifyRequestEvent",
3877 "version": "0.0.1"
3879 "value": {
3880 "key": {
3881 "name": "SimpleCL_CDSConfigModifyRequestEvent",
3882 "version": "0.0.1"
3884 "nameSpace": "org.onap.policy.apex.simplecontrolloop",
3885 "source": "APEX",
3886 "target": "APEX",
3887 "parameter": {
3888 "entry": [
3890 "key": "actionIdentifiers",
3891 "value": {
3892 "key": "actionIdentifiers",
3893 "fieldSchemaKey": {
3894 "name": "SimpleCL_CDSActionIdentifiersType",
3895 "version": "0.0.1"
3897 "optional": false
3901 "key": "commonHeader",
3902 "value": {
3903 "key": "commonHeader",
3904 "fieldSchemaKey": {
3905 "name": "SimpleCL_CDSRequestCommonHeaderType",
3906 "version": "0.0.1"
3908 "optional": false
3912 "key": "payload",
3913 "value": {
3914 "key": "payload",
3915 "fieldSchemaKey": {
3916 "name": "SimpleCL_CDSConfigModifyRequestPayloadType",
3917 "version": "0.0.1"
3919 "optional": false
3924 "toscaPolicyState": ""
3928 "key": {
3929 "name": "SimpleCL_CDSConfigModifySuccessResponseEvent",
3930 "version": "0.0.1"
3932 "value": {
3933 "key": {
3934 "name": "SimpleCL_CDSConfigModifySuccessResponseEvent",
3935 "version": "0.0.1"
3937 "nameSpace": "org.onap.policy.apex.simplecontrolloop",
3938 "source": "CDS",
3939 "target": "APEX",
3940 "parameter": {
3941 "entry": [
3943 "key": "actionIdentifiers",
3944 "value": {
3945 "key": "actionIdentifiers",
3946 "fieldSchemaKey": {
3947 "name": "SimpleCL_CDSActionIdentifiersType",
3948 "version": "0.0.1"
3950 "optional": false
3954 "key": "commonHeader",
3955 "value": {
3956 "key": "commonHeader",
3957 "fieldSchemaKey": {
3958 "name": "SimpleCL_CDSSuccessResponseCommonHeaderType",
3959 "version": "0.0.1"
3961 "optional": false
3965 "key": "payload",
3966 "value": {
3967 "key": "payload",
3968 "fieldSchemaKey": {
3969 "name": "SimpleCL_CDSConfigModifyResponsePayloadType",
3970 "version": "0.0.1"
3972 "optional": false
3976 "key": "status",
3977 "value": {
3978 "key": "status",
3979 "fieldSchemaKey": {
3980 "name": "SimpleCL_CDSSuccessResponseStatusType",
3981 "version": "0.0.1"
3983 "optional": false
3988 "toscaPolicyState": "EXIT_SUCCESS"
3992 "key": {
3993 "name": "SimpleCL_LogStatusEvent",
3994 "version": "0.0.1"
3996 "value": {
3997 "key": {
3998 "name": "SimpleCL_LogStatusEvent",
3999 "version": "0.0.1"
4001 "nameSpace": "org.onap.policy.apex.simplecontrolloop",
4002 "source": "APEX",
4003 "target": "DCAE",
4004 "parameter": {
4005 "entry": [
4007 "key": "message",
4008 "value": {
4009 "key": "message",
4010 "fieldSchemaKey": {
4011 "name": "SimpleStringType",
4012 "version": "0.0.1"
4014 "optional": false
4019 "toscaPolicyState": ""
4023 "key": {
4024 "name": "SimpleCL_VesEvent",
4025 "version": "0.0.1"
4027 "value": {
4028 "key": {
4029 "name": "SimpleCL_VesEvent",
4030 "version": "0.0.1"
4032 "nameSpace": "org.onap.policy.apex.simplecontrolloop",
4033 "source": "DCAE",
4034 "target": "APEX",
4035 "parameter": {
4036 "entry": [
4038 "key": "event",
4039 "value": {
4040 "key": "event",
4041 "fieldSchemaKey": {
4042 "name": "SimpleCL_VesEventType",
4043 "version": "0.0.1"
4045 "optional": false
4050 "toscaPolicyState": "ENTRY"
4056 "albums": {
4057 "key": {
4058 "name": "onap.policies.apex.Simplecontrolloop_Albums",
4059 "version": "0.0.1"
4061 "albums": {
4062 "entry": [
4064 "key": {
4065 "name": "SimpleCL_EventDetailsAlbum",
4066 "version": "0.0.1"
4068 "value": {
4069 "key": {
4070 "name": "SimpleCL_EventDetailsAlbum",
4071 "version": "0.0.1"
4073 "scope": "policy",
4074 "isWritable": true,
4075 "itemSchema": {
4076 "name": "SimpleCL_EventDetailsAlbumType",
4077 "version": "0.0.1"
4084 "schemas": {
4085 "key": {
4086 "name": "onap.policies.apex.Simplecontrolloop_Schemas",
4087 "version": "0.0.1"
4089 "schemas": {
4090 "entry": [
4092 "key": {
4093 "name": "SimpleBooleanType",
4094 "version": "0.0.1"
4096 "value": {
4097 "key": {
4098 "name": "SimpleBooleanType",
4099 "version": "0.0.1"
4101 "schemaFlavour": "Java",
4102 "schemaDefinition": "java.lang.Boolean"
4106 "key": {
4107 "name": "SimpleCL_AAIRequestErrorType",
4108 "version": "0.0.1"
4110 "value": {
4111 "key": {
4112 "name": "SimpleCL_AAIRequestErrorType",
4113 "version": "0.0.1"
4115 "schemaFlavour": "Avro",
4116 "schemaDefinition": "{\n \"name\": \"AAIRequestErrorType\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"serviceException\",\n \"type\": {\n \"name\": \"serviceException\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"messageId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"text\",\n \"type\": \"string\"\n },\n {\n \"name\": \"variables\",\n \"type\": {\n \"type\": \"array\",\n \"items\": \"string\"\n }\n }\n ]\n }\n }\n ]\n}"
4120 "key": {
4121 "name": "SimpleCL_CDSActionIdentifiersType",
4122 "version": "0.0.1"
4124 "value": {
4125 "key": {
4126 "name": "SimpleCL_CDSActionIdentifiersType",
4127 "version": "0.0.1"
4129 "schemaFlavour": "Avro",
4130 "schemaDefinition": "{\n \"type\": \"record\",\n \"name\": \"CDSActionIdentifiers_Type\",\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}"
4134 "key": {
4135 "name": "SimpleCL_CDSConfigModifyRequestPayloadType",
4136 "version": "0.0.1"
4138 "value": {
4139 "key": {
4140 "name": "SimpleCL_CDSConfigModifyRequestPayloadType",
4141 "version": "0.0.1"
4143 "schemaFlavour": "Avro",
4144 "schemaDefinition": "{\n \"type\": \"map\",\n \"values\": {\n \"type\": \"record\",\n \"name\": \"CDSConfigModifyRequestPayloadEntry\",\n \"fields\": [\n {\n \"name\": \"hostname\",\n \"type\": \"string\"\n },\n {\n \"name\": \"IP\",\n \"type\": \"string\"\n },\n {\n \"name\": \"pnfName\",\n \"type\": \"string\"\n }\n ]\n }\n}"
4148 "key": {
4149 "name": "SimpleCL_CDSConfigModifyResponsePayloadType",
4150 "version": "0.0.1"
4152 "value": {
4153 "key": {
4154 "name": "SimpleCL_CDSConfigModifyResponsePayloadType",
4155 "version": "0.0.1"
4157 "schemaFlavour": "Avro",
4158 "schemaDefinition": "{\n \"name\": \"CDSConfigResponsePayloadEntry\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"update_DasH_config_DasH_response\",\n \"type\": {\n \"name\": \"update_DasH_config_DasH_response\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"execute_DasH_command_DasH_logs\",\n \"type\": {\n \"type\": \"array\",\n \"items\": \"string\"\n }\n },\n {\n \"name\": \"prepare_DasH_environment_DasH_logs\",\n \"type\": {\n \"type\": \"array\",\n \"items\": \"string\"\n }\n }\n ]\n }\n }\n ]\n}"
4162 "key": {
4163 "name": "SimpleCL_CDSFailureResponseCommonHeaderType",
4164 "version": "0.0.1"
4166 "value": {
4167 "key": {
4168 "name": "SimpleCL_CDSFailureResponseCommonHeaderType",
4169 "version": "0.0.1"
4171 "schemaFlavour": "Avro",
4172 "schemaDefinition": "{\n \"type\": \"record\",\n \"name\": \"CDSResponseCommonHeader_Type\",\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}"
4176 "key": {
4177 "name": "SimpleCL_CDSFailureResponseStatusType",
4178 "version": "0.0.1"
4180 "value": {
4181 "key": {
4182 "name": "SimpleCL_CDSFailureResponseStatusType",
4183 "version": "0.0.1"
4185 "schemaFlavour": "Avro",
4186 "schemaDefinition": "{\n \"type\": \"record\",\n \"name\": \"CDSResponseStatus_Type\",\n \"fields\": [\n {\n \"name\": \"code\",\n \"type\": \"int\"\n },\n {\n \"name\": \"timestamp\",\n \"type\": \"string\"\n },\n {\n \"name\": \"message\",\n \"type\": \"string\"\n },\n {\n \"name\": \"errorMessage\",\n \"type\": \"string\"\n }\n ]\n}"
4190 "key": {
4191 "name": "SimpleCL_CDSRequestCommonHeaderType",
4192 "version": "0.0.1"
4194 "value": {
4195 "key": {
4196 "name": "SimpleCL_CDSRequestCommonHeaderType",
4197 "version": "0.0.1"
4199 "schemaFlavour": "Avro",
4200 "schemaDefinition": "{\n \"type\": \"record\",\n \"name\": \"CDSRequestCommonHeader_Type\",\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}"
4204 "key": {
4205 "name": "SimpleCL_CDSSuccessResponseCommonHeaderType",
4206 "version": "0.0.1"
4208 "value": {
4209 "key": {
4210 "name": "SimpleCL_CDSSuccessResponseCommonHeaderType",
4211 "version": "0.0.1"
4213 "schemaFlavour": "Avro",
4214 "schemaDefinition": "{\n \"type\": \"record\",\n \"name\": \"CDSResponseCommonHeader_Type\",\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}"
4218 "key": {
4219 "name": "SimpleCL_CDSSuccessResponseStatusType",
4220 "version": "0.0.1"
4222 "value": {
4223 "key": {
4224 "name": "SimpleCL_CDSSuccessResponseStatusType",
4225 "version": "0.0.1"
4227 "schemaFlavour": "Avro",
4228 "schemaDefinition": "{\n \"type\": \"record\",\n \"name\": \"CDSResponseStatus_Type\",\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}"
4232 "key": {
4233 "name": "SimpleCL_EventDetailsAlbumType",
4234 "version": "0.0.1"
4236 "value": {
4237 "key": {
4238 "name": "SimpleCL_EventDetailsAlbumType",
4239 "version": "0.0.1"
4241 "schemaFlavour": "Avro",
4242 "schemaDefinition": "{\n \"name\": \"eventDetails\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"commonEventHeader\",\n \"type\": {\n \"name\": \"commonEventHeader\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"domain\",\n \"type\": \"string\"\n },\n {\n \"name\": \"eventId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"eventName\",\n \"type\": \"string\"\n },\n {\n \"name\": \"lastEpochMicrosec\",\n \"type\": \"long\"\n },\n {\n \"name\": \"priority\",\n \"type\": \"string\"\n },\n {\n \"name\": \"reportingEntityName\",\n \"type\": \"string\"\n },\n {\n \"name\": \"sequence\",\n \"type\": \"int\"\n },\n {\n \"name\": \"sourceId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"sourceName\",\n \"type\": \"string\"\n },\n {\n \"name\": \"startEpochMicrosec\",\n \"type\": \"long\"\n },\n {\n \"name\": \"timeZoneOffset\",\n \"type\": \"string\"\n },\n {\n \"name\": \"version\",\n \"type\": \"string\"\n },\n {\n \"name\": \"internalHeaderFields\",\n \"type\": {\n \"name\": \"internalHeaderFields\",\n \"type\": \"record\",\n \"fields\": []\n }\n },\n {\n \"name\": \"vesEventListenerVersion\",\n \"type\": \"string\"\n }\n ]\n }\n },\n {\n \"name\": \"otherFields\",\n \"type\": {\n \"name\": \"otherFields\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"hashMap\",\n \"type\": {\n \"name\": \"hashMap\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"hostname\",\n \"type\": \"string\"\n },\n {\n \"name\": \"pnfName\",\n \"type\": \"string\"\n },\n {\n \"name\": \"pnfId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"ip\",\n \"type\": \"string\"\n }\n ]\n }\n },\n {\n \"name\": \"otherFieldsVersion\",\n \"type\": \"string\"\n }\n ]\n }\n },\n {\n \"name\": \"target\",\n \"type\": {\n \"name\": \"target\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"targetType\",\n \"type\": \"string\"\n },\n {\n \"name\": \"entityInfo\",\n \"type\": {\n \"name\": \"entityInfo\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"name\",\n \"type\": \"string\"\n }\n ]\n }\n }\n ]\n }\n },\n {\n \"name\": \"generatedHostname\",\n \"type\": \"string\"\n }\n ]\n}"
4246 "key": {
4247 "name": "SimpleCL_VesEventType",
4248 "version": "0.0.1"
4250 "value": {
4251 "key": {
4252 "name": "SimpleCL_VesEventType",
4253 "version": "0.0.1"
4255 "schemaFlavour": "Avro",
4256 "schemaDefinition": "{\n \"name\":\"event\",\n \"type\":\"record\",\n \"fields\":[\n {\n \"name\":\"commonEventHeader\",\n \"type\":{\n \"name\":\"commonEventHeader\",\n \"type\":\"record\",\n \"fields\":[\n {\n \"name\":\"domain\",\n \"type\":\"string\"\n },\n {\n \"name\":\"eventId\",\n \"type\":\"string\"\n },\n {\n \"name\":\"eventName\",\n \"type\":\"string\"\n },\n {\n \"name\":\"lastEpochMicrosec\",\n \"type\":\"long\"\n },\n {\n \"name\":\"priority\",\n \"type\":\"string\"\n },\n {\n \"name\":\"reportingEntityName\",\n \"type\":\"string\"\n },\n {\n \"name\":\"sequence\",\n \"type\":\"int\"\n },\n {\n \"name\":\"sourceId\",\n \"type\":\"string\"\n },\n {\n \"name\":\"sourceName\",\n \"type\":\"string\"\n },\n {\n \"name\":\"startEpochMicrosec\",\n \"type\":\"long\"\n },\n {\n \"name\":\"version\",\n \"type\":\"string\"\n },\n {\n \"name\":\"internalHeaderFields\",\n \"type\":{\n \"name\":\"internalHeaderFields\",\n \"type\":\"record\",\n \"fields\":[\n\n ]\n }\n },\n {\n \"name\":\"vesEventListenerVersion\",\n \"type\":\"string\"\n }\n ]\n }\n },\n {\n \"name\":\"otherFields\",\n \"type\":{\n \"name\":\"otherFields\",\n \"type\":\"record\",\n \"fields\":[\n {\n \"name\":\"hashMap\",\n \"type\":{\n \"name\":\"hashMap\",\n \"type\":\"record\",\n \"fields\":[\n {\n \"name\":\"hostname\",\n \"type\":\"string\"\n },\n {\n \"name\":\"pnfName\",\n \"type\":\"string\"\n },\n {\n \"name\":\"pnfId\",\n \"type\":\"string\"\n },\n {\n \"name\":\"ip\",\n \"type\":\"string\"\n }\n ]\n }\n },\n {\n \"name\":\"otherFieldsVersion\",\n \"type\":\"string\"\n }\n ]\n }\n }\n ]\n}"
4260 "key": {
4261 "name": "SimpleLongType",
4262 "version": "0.0.1"
4264 "value": {
4265 "key": {
4266 "name": "SimpleLongType",
4267 "version": "0.0.1"
4269 "schemaFlavour": "Java",
4270 "schemaDefinition": "java.lang.Long"
4274 "key": {
4275 "name": "SimpleStringType",
4276 "version": "0.0.1"
4278 "value": {
4279 "key": {
4280 "name": "SimpleStringType",
4281 "version": "0.0.1"
4283 "schemaFlavour": "Java",
4284 "schemaDefinition": "java.lang.String"
4296 <stringProp name="Argument.metadata">=</stringProp>
4300 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
4301 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
4302 <stringProp name="HTTPSampler.protocol">https</stringProp>
4303 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
4304 <stringProp name="HTTPSampler.path">/policy/api/v1/nodetemplates</stringProp>
4305 <stringProp name="HTTPSampler.method">POST</stringProp>
4306 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
4307 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
4308 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
4309 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
4310 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
4311 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
4312 <stringProp name="HTTPSampler.response_timeout"></stringProp>
4315 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
4316 <collectionProp name="Asserion.test_strings">
4317 <stringProp name="49586">200</stringProp>
4319 <stringProp name="Assertion.custom_message"></stringProp>
4320 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
4321 <boolProp name="Assertion.assume_success">false</boolProp>
4322 <intProp name="Assertion.test_type">1</intProp>
4323 </ResponseAssertion>
4325 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
4326 <stringProp name="scriptLanguage">groovy</stringProp>
4327 <stringProp name="parameters"></stringProp>
4328 <stringProp name="filename"></stringProp>
4329 <stringProp name="cacheKey">true</stringProp>
4330 <stringProp name="script">import groovy.json.JsonSlurper;
4333 if (prev.getResponseCode() == '200') {
4334 def jsonSlurper = new JsonSlurper();
4335 res = jsonSlurper.parseText(prev.getResponseDataAsString());
4337 assert res instanceof Map;
4338 assert res.node_types instanceof Map;
4339 assert res.topology_template instanceof Map;
4340 assert res.topology_template.node_templates instanceof Map;
4341 assert res.topology_template.node_templates.get("apex.metadata.pnf").version == "6.0.${__threadNum}";
4346 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create Policy Monitoring" enabled="true">
4347 <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
4348 <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
4349 <collectionProp name="Arguments.arguments">
4350 <elementProp name="" elementType="HTTPArgument">
4351 <boolProp name="HTTPArgument.always_encode">false</boolProp>
4352 <stringProp name="Argument.value">{
4353 "tosca_definitions_version": "tosca_simple_yaml_1_1_0",
4354 "topology_template": {
4355 "policies": [
4357 "onap.restart.tca": {
4358 "type": "onap.policies.monitoring.cdap.tca.hi.lo.app",
4359 "type_version": "6.0.${__threadNum}",
4360 "version": "6.0.${__threadNum}",
4361 "metadata": {
4362 "policy-id": "onap.restart.tca"
4364 "properties": {
4365 "tca_policy": {
4366 "domain": "measurementsForVfScaling",
4367 "metricsPerEventName": [
4369 "eventName": "Measurement_vGMUX",
4370 "controlLoopSchemaType": "VNF",
4371 "policyScope": "DCAE",
4372 "policyName": "DCAE.Config_tca-hi-lo",
4373 "policyVersion": "v0.0.1",
4374 "thresholds": [
4376 "closedLoopControlName": "ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e",
4377 "version": "1.0.2",
4378 "fieldPath": "$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value",
4379 "thresholdValue": 0,
4380 "direction": "EQUAL",
4381 "severity": "MAJOR",
4382 "closedLoopEventStatus": "ABATED"
4385 "closedLoopControlName": "ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e",
4386 "version": "1.0.2",
4387 "fieldPath": "$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value",
4388 "thresholdValue": 0,
4389 "direction": "GREATER",
4390 "severity": "CRITICAL",
4391 "closedLoopEventStatus": "ONSET"
4403 <stringProp name="Argument.metadata">=</stringProp>
4407 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
4408 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
4409 <stringProp name="HTTPSampler.protocol">https</stringProp>
4410 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
4411 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/1.0.0/policies</stringProp>
4412 <stringProp name="HTTPSampler.method">POST</stringProp>
4413 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
4414 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
4415 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
4416 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
4417 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
4418 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
4419 <stringProp name="HTTPSampler.response_timeout"></stringProp>
4422 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
4423 <collectionProp name="Asserion.test_strings">
4424 <stringProp name="49586">200</stringProp>
4426 <stringProp name="Assertion.custom_message"></stringProp>
4427 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
4428 <boolProp name="Assertion.assume_success">false</boolProp>
4429 <intProp name="Assertion.test_type">1</intProp>
4430 </ResponseAssertion>
4432 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
4433 <stringProp name="scriptLanguage">groovy</stringProp>
4434 <stringProp name="parameters"></stringProp>
4435 <stringProp name="filename"></stringProp>
4436 <stringProp name="cacheKey">true</stringProp>
4437 <stringProp name="script">import groovy.json.JsonSlurper;
4440 if (prev.getResponseCode() == '200') {
4441 def jsonSlurper = new JsonSlurper();
4442 res = jsonSlurper.parseText(prev.getResponseDataAsString());
4444 assert res instanceof Map;
4445 assert res.topology_template.policies instanceof List;
4446 assert res.topology_template.policies.size == 1;
4447 assert res.topology_template.policies[0] instanceof Map;
4452 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create Policy Monitoring V2" enabled="true">
4453 <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
4454 <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
4455 <collectionProp name="Arguments.arguments">
4456 <elementProp name="" elementType="HTTPArgument">
4457 <boolProp name="HTTPArgument.always_encode">false</boolProp>
4458 <stringProp name="Argument.value">{
4459 "tosca_definitions_version": "tosca_simple_yaml_1_1_0",
4460 "topology_template": {
4461 "policies": [
4463 "onap.restart.tca": {
4464 "type": "onap.policies.monitoring.cdap.tca.hi.lo.app",
4465 "type_version": "7.0.${__threadNum}",
4466 "version": "7.0.${__threadNum}",
4467 "metadata": {
4468 "policy-id": "onap.restart.tca"
4470 "properties": {
4471 "tca_policy": {
4472 "domain": "measurementsForVfScaling",
4473 "metricsPerEventName": [
4475 "eventName": "Measurement_vGMUX",
4476 "controlLoopSchemaType": "VNF",
4477 "policyScope": "DCAE",
4478 "policyName": "DCAE.Config_tca-hi-lo",
4479 "policyVersion": "v0.0.1",
4480 "thresholds": [
4482 "closedLoopControlName": "ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e",
4483 "version": "1.0.2",
4484 "fieldPath": "$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value",
4485 "thresholdValue": 0,
4486 "direction": "EQUAL",
4487 "severity": "MAJOR",
4488 "closedLoopEventStatus": "ABATED"
4491 "closedLoopControlName": "ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e",
4492 "version": "1.0.2",
4493 "fieldPath": "$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value",
4494 "thresholdValue": 0,
4495 "direction": "GREATER",
4496 "severity": "CRITICAL",
4497 "closedLoopEventStatus": "ONSET"
4509 <stringProp name="Argument.metadata">=</stringProp>
4513 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
4514 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
4515 <stringProp name="HTTPSampler.protocol">https</stringProp>
4516 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
4517 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/1.0.0/policies</stringProp>
4518 <stringProp name="HTTPSampler.method">POST</stringProp>
4519 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
4520 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
4521 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
4522 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
4523 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
4524 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
4525 <stringProp name="HTTPSampler.response_timeout"></stringProp>
4528 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
4529 <collectionProp name="Asserion.test_strings">
4530 <stringProp name="49586">200</stringProp>
4532 <stringProp name="Assertion.custom_message"></stringProp>
4533 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
4534 <boolProp name="Assertion.assume_success">false</boolProp>
4535 <intProp name="Assertion.test_type">1</intProp>
4536 </ResponseAssertion>
4538 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
4539 <stringProp name="scriptLanguage">groovy</stringProp>
4540 <stringProp name="parameters"></stringProp>
4541 <stringProp name="filename"></stringProp>
4542 <stringProp name="cacheKey">true</stringProp>
4543 <stringProp name="script">import groovy.json.JsonSlurper;
4546 if (prev.getResponseCode() == '200') {
4547 def jsonSlurper = new JsonSlurper();
4548 res = jsonSlurper.parseText(prev.getResponseDataAsString());
4550 assert res instanceof Map;
4551 assert res.topology_template.policies instanceof List;
4552 assert res.topology_template.policies.size == 1;
4553 assert res.topology_template.policies[0] instanceof Map;
4558 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create Policy Optimization" enabled="true">
4559 <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
4560 <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
4561 <collectionProp name="Arguments.arguments">
4562 <elementProp name="" elementType="HTTPArgument">
4563 <boolProp name="HTTPArgument.always_encode">false</boolProp>
4564 <stringProp name="Argument.value">{
4565 "tosca_definitions_version": "tosca_simple_yaml_1_1_0",
4566 "topology_template": {
4567 "policies": [
4569 "OSDF_CASABLANCA.Affinity_Default": {
4570 "type": "onap.policies.optimization.resource.AffinityPolicy",
4571 "version": "6.0.${__threadNum}",
4572 "type_version": "6.0.${__threadNum}",
4573 "metadata": {
4574 "policy-id": "OSDF_CASABLANCA.Affinity_Default",
4575 "policy-version": 1
4577 "properties": {
4578 "scope": [],
4579 "services": [],
4580 "resources": [],
4581 "geography": [],
4582 "identity": "affinity_vCPE",
4583 "applicableResources": "any",
4584 "affinityProperties": {
4585 "qualifier": "same",
4586 "category": "complex"
4594 <stringProp name="Argument.metadata">=</stringProp>
4598 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
4599 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
4600 <stringProp name="HTTPSampler.protocol">https</stringProp>
4601 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
4602 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.optimization.resource.AffinityPolicy/versions/2.0.0/policies</stringProp>
4603 <stringProp name="HTTPSampler.method">POST</stringProp>
4604 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
4605 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
4606 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
4607 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
4608 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
4609 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
4610 <stringProp name="HTTPSampler.response_timeout"></stringProp>
4613 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
4614 <collectionProp name="Asserion.test_strings">
4615 <stringProp name="49586">200</stringProp>
4617 <stringProp name="Assertion.custom_message"></stringProp>
4618 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
4619 <boolProp name="Assertion.assume_success">false</boolProp>
4620 <intProp name="Assertion.test_type">1</intProp>
4621 </ResponseAssertion>
4623 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
4624 <stringProp name="scriptLanguage">groovy</stringProp>
4625 <stringProp name="parameters"></stringProp>
4626 <stringProp name="filename"></stringProp>
4627 <stringProp name="cacheKey">true</stringProp>
4628 <stringProp name="script">import groovy.json.JsonSlurper;
4631 if (prev.getResponseCode() == '200') {
4632 def jsonSlurper = new JsonSlurper();
4633 res = jsonSlurper.parseText(prev.getResponseDataAsString());
4635 assert res instanceof Map;
4636 assert res.topology_template.policies instanceof List;
4637 assert res.topology_template.policies.size == 1;
4638 assert res.topology_template.policies[0] instanceof Map;
4643 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create Policy Guard" enabled="true">
4644 <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
4645 <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
4646 <collectionProp name="Arguments.arguments">
4647 <elementProp name="" elementType="HTTPArgument">
4648 <boolProp name="HTTPArgument.always_encode">false</boolProp>
4649 <stringProp name="Argument.value">{
4650 "tosca_definitions_version": "tosca_simple_yaml_1_1_0",
4651 "topology_template": {
4652 "policies": [
4654 "guard.blacklist.scaleout": {
4655 "type": "onap.policies.controlloop.guard.common.Blacklist",
4656 "type_version": "6.0.${__threadNum}",
4657 "version": "6.0.${__threadNum}",
4658 "metadata": {
4659 "policy-id": "guard.blacklist.scaleout"
4661 "properties": {
4662 "actor": "SO",
4663 "operation": "VF Module Create",
4664 "id": "ControlLoop-vDNS-6f37f56d-a87d-4b85-b6a9-cc953cf779b3",
4665 "blacklist": [
4666 "the-vfmodule-where-root-is-true",
4667 "another-vfmodule-where-root-is-true"
4675 <stringProp name="Argument.metadata">=</stringProp>
4679 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
4680 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
4681 <stringProp name="HTTPSampler.protocol">https</stringProp>
4682 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
4683 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.controlloop.guard.common.Blacklist/versions/1.0.0/policies</stringProp>
4684 <stringProp name="HTTPSampler.method">POST</stringProp>
4685 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
4686 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
4687 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
4688 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
4689 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
4690 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
4691 <stringProp name="HTTPSampler.response_timeout"></stringProp>
4694 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
4695 <collectionProp name="Asserion.test_strings">
4696 <stringProp name="49586">200</stringProp>
4698 <stringProp name="Assertion.custom_message"></stringProp>
4699 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
4700 <boolProp name="Assertion.assume_success">false</boolProp>
4701 <intProp name="Assertion.test_type">1</intProp>
4702 </ResponseAssertion>
4704 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
4705 <stringProp name="scriptLanguage">groovy</stringProp>
4706 <stringProp name="parameters"></stringProp>
4707 <stringProp name="filename"></stringProp>
4708 <stringProp name="cacheKey">true</stringProp>
4709 <stringProp name="script">import groovy.json.JsonSlurper;
4712 if (prev.getResponseCode() == '200') {
4713 def jsonSlurper = new JsonSlurper();
4714 res = jsonSlurper.parseText(prev.getResponseDataAsString());
4716 assert res instanceof Map;
4717 assert res.topology_template.policies instanceof List;
4718 assert res.topology_template.policies.size == 1;
4719 assert res.topology_template.policies[0] instanceof Map;
4724 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create Policy Native APEX" enabled="true">
4725 <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
4726 <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
4727 <collectionProp name="Arguments.arguments">
4728 <elementProp name="" elementType="HTTPArgument">
4729 <boolProp name="HTTPArgument.always_encode">false</boolProp>
4730 <stringProp name="Argument.value">{
4731 "tosca_definitions_version": "tosca_simple_yaml_1_1_0",
4732 "topology_template": {
4733 "policies": [
4735 "operational.apex.vCPE": {
4736 "type": "onap.policies.native.Apex",
4737 "type_version": "6.0.${__threadNum}",
4738 "derived_from": "tosca.policies.Root",
4739 "name": "operational.apex.vCPE",
4740 "version": "6.0.${__threadNum}",
4741 "properties": {
4742 "engineServiceParameters": {
4743 "name": "MyApexEngine",
4744 "version": "0.0.1",
4745 "id": 45,
4746 "instanceCount": 4,
4747 "deploymentPort": 12561,
4748 "policy_type_impl": {
4750 "engineParameters": {
4751 "executorParameters": {
4752 "JAVASCRIPT": {
4753 "parameterClassName": "org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters"
4756 "contextParameters": {
4757 "parameterClassName": "org.onap.policy.apex.context.parameters.ContextParameters",
4758 "schemaParameters": {
4759 "Avro": {
4760 "parameterClassName": "org.onap.policy.apex.plugins.context.schema.avro.AvroSchemaHelperParameters"
4762 "Java": {
4763 "parameterClassName": "org.onap.policy.apex.context.impl.schema.java.JavaSchemaHelperParameters",
4764 "jsonAdapters": {
4765 "Instant": {
4766 "adaptedClass": "java.time.Instant",
4767 "adaptorClass": "org.onap.policy.controlloop.util.Serialization$GsonInstantAdapter"
4773 "taskParameters": [
4775 "key": "ParameterKey1",
4776 "value": "ParameterValue1"
4779 "taskId": "AAILookupTask:0.0.1",
4780 "key": "SomeKeyForThisTask",
4781 "value": "Value"
4786 "eventInputParameters": {
4787 "GuardRequestorConsumer": {
4788 "carrierTechnologyParameters": {
4789 "carrierTechnology": "RESTREQUESTOR",
4790 "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restrequestor.RestRequestorCarrierTechnologyParameters",
4791 "parameters": {
4792 "url": "http://111.222.333.444:5555/pdp/api/getDecision",
4793 "httpMethod": "POST",
4794 "restRequestTimeout": 2000,
4795 "httpHeader": "Authorization:aaaaaaaaa== ClientAuth:bbbbbbbbb="
4798 "eventProtocolParameters": {
4799 "eventProtocol": "JSON"
4801 "eventName": "GuardResponseEvent",
4802 "eventNameFilter": "GuardResponseEvent",
4803 "requestorMode": true,
4804 "requestorPeer": "GuardRequestorProducer",
4805 "requestorTimeout": 500
4807 "DCAEConsumer": {
4808 "carrierTechnologyParameters": {
4809 "carrierTechnology": "RESTCLIENT",
4810 "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restclient.RestClientCarrierTechnologyParameters",
4811 "parameters": {
4812 "url": "http://message-router:3904/events/unauthenticated.DCAE_CL_OUTPUT/APEX/1?timeout=60000"
4815 "eventProtocolParameters": {
4816 "eventProtocol": "JSON",
4817 "parameters": {
4818 "nameAlias": "closedLoopControlName",
4819 "versionAlias": "version",
4820 "sourceAlias": "from",
4821 "pojoField": "VirtualControlLoopEvent"
4824 "eventName": "ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e"
4826 "APPCConsumer": {
4827 "carrierTechnologyParameters": {
4828 "carrierTechnology": "RESTCLIENT",
4829 "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restclient.RestClientCarrierTechnologyParameters",
4830 "parameters": {
4831 "url": "http://message-router:3904/events/APPC-LCM-WRITE/APEX/1?timeout=60000"
4834 "eventProtocolParameters": {
4835 "eventProtocol": "JSON",
4836 "parameters": {
4837 "versionAlias": "version",
4838 "pojoField": "APPCLCMResponseEvent"
4841 "eventName": "APPCRestartVNFResponseEvent",
4842 "eventNameFilter": "APPCRestartVNFResponseEvent"
4845 "eventOutputParameters": {
4846 "logProducer": {
4847 "carrierTechnologyParameters": {
4848 "carrierTechnology": "FILE",
4849 "parameters": {
4850 "fileName": "/tmp/VCPEEventsOut.json"
4853 "eventProtocolParameters": {
4854 "eventProtocol": "JSON"
4857 "GuardRequestorProducer": {
4858 "carrierTechnologyParameters": {
4859 "carrierTechnology": "RESTREQUESTOR",
4860 "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restrequestor.RestRequestorCarrierTechnologyParameters"
4862 "eventProtocolParameters": {
4863 "eventProtocol": "JSON"
4865 "eventNameFilter": "GuardRequestEvent",
4866 "requestorMode": true,
4867 "requestorPeer": "GuardRequestorConsumer",
4868 "requestorTimeout": 500
4870 "APPCProducer": {
4871 "carrierTechnologyParameters": {
4872 "carrierTechnology": "RESTCLIENT",
4873 "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restclient.RestClientCarrierTechnologyParameters",
4874 "parameters": {
4875 "url": "http://message-router:3904/events/APPC-LCM-READ"
4878 "eventProtocolParameters": {
4879 "eventProtocol": "JSON",
4880 "parameters": {
4881 "versionAlias": "version",
4882 "sourceAlias": "from",
4883 "pojoField": "APPCLCMRequestEvent"
4886 "eventNameFilter": "APPCRestartVNFRequestEvent"
4888 "PolicyLogProducer": {
4889 "carrierTechnologyParameters": {
4890 "carrierTechnology": "RESTCLIENT",
4891 "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restclient.RestClientCarrierTechnologyParameters",
4892 "parameters": {
4893 "url": "http://message-router:3904/events/POLICY-CL-MGT"
4896 "eventProtocolParameters": {
4897 "eventProtocol": "JSON",
4898 "parameters": {
4899 "versionAlias": "version",
4900 "sourceAlias": "from",
4901 "pojoField": "VirtualControlLoopNotification"
4904 "eventNameFilter": "ControlLoopLogEvent"
4913 <stringProp name="Argument.metadata">=</stringProp>
4917 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
4918 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
4919 <stringProp name="HTTPSampler.protocol">https</stringProp>
4920 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
4921 <stringProp name="HTTPSampler.path">/policy/api/v1/policies</stringProp>
4922 <stringProp name="HTTPSampler.method">POST</stringProp>
4923 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
4924 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
4925 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
4926 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
4927 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
4928 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
4929 <stringProp name="HTTPSampler.response_timeout"></stringProp>
4932 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
4933 <collectionProp name="Asserion.test_strings">
4934 <stringProp name="49586">200</stringProp>
4936 <stringProp name="Assertion.custom_message"></stringProp>
4937 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
4938 <boolProp name="Assertion.assume_success">false</boolProp>
4939 <intProp name="Assertion.test_type">1</intProp>
4940 </ResponseAssertion>
4942 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
4943 <stringProp name="scriptLanguage">groovy</stringProp>
4944 <stringProp name="parameters"></stringProp>
4945 <stringProp name="filename"></stringProp>
4946 <stringProp name="cacheKey">true</stringProp>
4947 <stringProp name="script">import groovy.json.JsonSlurper;
4950 if (prev.getResponseCode() == '200') {
4951 def jsonSlurper = new JsonSlurper();
4952 res = jsonSlurper.parseText(prev.getResponseDataAsString());
4954 assert res instanceof Map;
4955 assert res.topology_template.policies instanceof List;
4956 assert res.topology_template.policies.size == 1;
4957 assert res.topology_template.policies[0] instanceof Map;
4962 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create Policy Native Drools" enabled="true">
4963 <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
4964 <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
4965 <collectionProp name="Arguments.arguments">
4966 <elementProp name="" elementType="HTTPArgument">
4967 <boolProp name="HTTPArgument.always_encode">false</boolProp>
4968 <stringProp name="Argument.value">{
4969 "tosca_definitions_version": "tosca_simple_yaml_1_1_0",
4970 "topology_template": {
4971 "policies": [
4973 "usecases.artifacts": {
4974 "type": "onap.policies.native.drools.Artifact",
4975 "type_version": "6.0.${__threadNum}",
4976 "name": "usecases.artifacts",
4977 "version": "6.0.${__threadNum}",
4978 "metadata": {
4979 "policy-id": "usecases.artifacts"
4981 "properties": {
4982 "rulesArtifact": {
4983 "groupId": "org.onap.policy.drools-applications.controlloop.common",
4984 "artifactId": "controller-usecases",
4985 "version": "1.6.1"
4987 "controller": {
4988 "name": "frankfurt"
4996 <stringProp name="Argument.metadata">=</stringProp>
5000 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
5001 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
5002 <stringProp name="HTTPSampler.protocol">https</stringProp>
5003 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
5004 <stringProp name="HTTPSampler.path">/policy/api/v1/policies</stringProp>
5005 <stringProp name="HTTPSampler.method">POST</stringProp>
5006 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
5007 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
5008 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
5009 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
5010 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
5011 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
5012 <stringProp name="HTTPSampler.response_timeout"></stringProp>
5015 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
5016 <collectionProp name="Asserion.test_strings">
5017 <stringProp name="49586">200</stringProp>
5019 <stringProp name="Assertion.custom_message"></stringProp>
5020 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
5021 <boolProp name="Assertion.assume_success">false</boolProp>
5022 <intProp name="Assertion.test_type">1</intProp>
5023 </ResponseAssertion>
5025 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
5026 <stringProp name="scriptLanguage">groovy</stringProp>
5027 <stringProp name="parameters"></stringProp>
5028 <stringProp name="filename"></stringProp>
5029 <stringProp name="cacheKey">true</stringProp>
5030 <stringProp name="script">import groovy.json.JsonSlurper;
5033 if (prev.getResponseCode() == '200') {
5034 def jsonSlurper = new JsonSlurper();
5035 res = jsonSlurper.parseText(prev.getResponseDataAsString());
5037 assert res instanceof Map;
5038 assert res.topology_template.policies instanceof List;
5039 assert res.topology_template.policies.size == 1;
5040 assert res.topology_template.policies[0] instanceof Map;
5045 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create Policy Native XACML" enabled="true">
5046 <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
5047 <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
5048 <collectionProp name="Arguments.arguments">
5049 <elementProp name="" elementType="HTTPArgument">
5050 <boolProp name="HTTPArgument.always_encode">false</boolProp>
5051 <stringProp name="Argument.value">{
5052 "tosca_definitions_version": "tosca_simple_yaml_1_1_0",
5053 "topology_template": {
5054 "policies": [
5056 "onap.policies.native.xacml.NativeXacmlPolicy": {
5057 "type": "onap.policies.native.Xacml",
5058 "type_version": "6.0.${__threadNum}",
5059 "version": "6.0.${__threadNum}",
5060 "metadata": {
5061 "policy-id": "onap.policies.native.xacml.NativeXacmlPolicy"
5063 "properties": {
5064 "tca_policy": {
5065 "domain": "measurementsForVfScaling",
5066 "metricsPerEventName": [
5068 "eventName": "Measurement_vGMUX",
5069 "controlLoopSchemaType": "VNF",
5070 "policyScope": "DCAE",
5071 "policyName": "DCAE.Config_tca-hi-lo",
5072 "policyVersion": "v0.0.1",
5073 "thresholds": [
5075 "closedLoopControlName": "ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e",
5076 "version": "1.0.2",
5077 "fieldPath": "$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value",
5078 "thresholdValue": 0,
5079 "direction": "EQUAL",
5080 "severity": "MAJOR",
5081 "closedLoopEventStatus": "ABATED"
5084 "closedLoopControlName": "ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e",
5085 "version": "1.0.2",
5086 "fieldPath": "$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value",
5087 "thresholdValue": 0,
5088 "direction": "GREATER",
5089 "severity": "CRITICAL",
5090 "closedLoopEventStatus": "ONSET"
5102 <stringProp name="Argument.metadata">=</stringProp>
5106 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
5107 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
5108 <stringProp name="HTTPSampler.protocol">https</stringProp>
5109 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
5110 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/2.0.0/policies</stringProp>
5111 <stringProp name="HTTPSampler.method">POST</stringProp>
5112 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
5113 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
5114 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
5115 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
5116 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
5117 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
5118 <stringProp name="HTTPSampler.response_timeout"></stringProp>
5121 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
5122 <collectionProp name="Asserion.test_strings">
5123 <stringProp name="49586">200</stringProp>
5125 <stringProp name="Assertion.custom_message"></stringProp>
5126 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
5127 <boolProp name="Assertion.assume_success">false</boolProp>
5128 <intProp name="Assertion.test_type">1</intProp>
5129 </ResponseAssertion>
5131 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
5132 <stringProp name="scriptLanguage">groovy</stringProp>
5133 <stringProp name="parameters"></stringProp>
5134 <stringProp name="filename"></stringProp>
5135 <stringProp name="cacheKey">true</stringProp>
5136 <stringProp name="script">import groovy.json.JsonSlurper;
5139 if (prev.getResponseCode() == '200') {
5140 def jsonSlurper = new JsonSlurper();
5141 res = jsonSlurper.parseText(prev.getResponseDataAsString());
5143 assert res instanceof Map;
5144 assert res.topology_template.policies instanceof List;
5145 assert res.topology_template.policies.size == 1;
5146 assert res.topology_template.policies[0] instanceof Map;
5151 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create Policy with Metadata" enabled="true">
5152 <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
5153 <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
5154 <collectionProp name="Arguments.arguments">
5155 <elementProp name="" elementType="HTTPArgument">
5156 <boolProp name="HTTPArgument.always_encode">false</boolProp>
5157 <stringProp name="Argument.value">{
5158 "tosca_definitions_version": "tosca_simple_yaml_1_1_0",
5159 "topology_template": {
5160 "policies": [
5162 "onap.policies.apex.pnf.Example": {
5163 "type": "onap.policies.native.Apex",
5164 "type_version": "6.0.${__threadNum}",
5165 "name": "onap.policies.apex.pnf.Example",
5166 "version": "6.0.${__threadNum}",
5167 "metadata": {
5168 "metadataSetName": "apex.metadata.pnf",
5169 "metadataSetVersion": "6.0.${__threadNum}"
5171 "properties": {
5172 "engineServiceParameters": {
5173 "name": "TestApexEnginePnf",
5174 "version": "0.0.1",
5175 "id": 45,
5176 "instanceCount": 4,
5177 "deploymentPort": 12561,
5178 "engineParameters": {
5179 "executorParameters": {
5180 "JAVASCRIPT": {
5181 "parameterClassName": "org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters"
5184 "contextParameters": {
5185 "parameterClassName": "org.onap.policy.apex.context.parameters.ContextParameters",
5186 "schemaParameters": {
5187 "Avro": {
5188 "parameterClassName": "org.onap.policy.apex.plugins.context.schema.avro.AvroSchemaHelperParameters"
5192 "taskParameters": [
5194 "key": "logUrl",
5195 "value": "http://message-router:3904/events/APEX-CL-MGT"
5200 "eventInputParameters": {
5201 "SimpleCL_DCAEConsumer": {
5202 "carrierTechnologyParameters": {
5203 "carrierTechnology": "RESTCLIENT",
5204 "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restclient.RestClientCarrierTechnologyParameters",
5205 "parameters": {
5206 "url": "http://message-router:3904/events/apex-pnf-input/cl/apex?timeout=30000"
5209 "eventProtocolParameters": {
5210 "eventProtocol": "JSON"
5212 "eventName": "SimpleCL_VesEvent"
5214 "SimpleCL_AAIResponseConsumer": {
5215 "carrierTechnologyParameters": {
5216 "carrierTechnology": "RESTREQUESTOR",
5217 "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restrequestor.RestRequestorCarrierTechnologyParameters",
5218 "parameters": {
5219 "url": "https://aai:8443/aai/v14/network/pnfs/pnf/{pnfName}",
5220 "httpMethod": "GET",
5221 "httpCodeFilter": "[2-5][0-1][0-9]",
5222 "httpHeaders": [
5224 "Accept",
5225 "application/json"
5228 "Content-Type",
5229 "application/json"
5232 "X-FromAppId",
5233 "dcae-curl"
5236 "x-transactionId",
5237 "9998"
5240 "Authorization",
5241 "Basic QUFJOkFBSQ=="
5246 "eventProtocolParameters": {
5247 "eventProtocol": "JSON"
5249 "eventName": "SimpleCL_AAISuccessResponseEvent|SimpleCL_AAIFailureResponseEvent",
5250 "requestorMode": true,
5251 "requestorPeer": "SimpleCL_AAIProducer",
5252 "requestorTimeout": 2000
5254 "SimpleCL_CDSConfigModifyResponseConsumer": {
5255 "carrierTechnologyParameters": {
5256 "carrierTechnology": "GRPC",
5257 "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.grpc.GrpcCarrierTechnologyParameters"
5259 "eventProtocolParameters": {
5260 "eventProtocol": "JSON"
5262 "eventName": "SimpleCL_CDSConfigModifySuccessResponseEvent|SimpleCL_CDSConfigModifyFailureResponseEvent",
5263 "requestorMode": true,
5264 "requestorPeer": "SimpleCL_CDSConfigModifyRequestProducer",
5265 "requestorTimeout": 500
5268 "eventOutputParameters": {
5269 "SimpleCL_AAIProducer": {
5270 "carrierTechnologyParameters": {
5271 "carrierTechnology": "RESTREQUESTOR",
5272 "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restrequestor.RestRequestorCarrierTechnologyParameters"
5274 "eventProtocolParameters": {
5275 "eventProtocol": "JSON"
5277 "eventNameFilter": "SimpleCL_AAIRequestEvent",
5278 "requestorMode": true,
5279 "requestorPeer": "SimpleCL_AAIResponseConsumer",
5280 "requestorTimeout": 2000
5282 "SimpleCL_CDSConfigModifyRequestProducer": {
5283 "carrierTechnologyParameters": {
5284 "carrierTechnology": "GRPC",
5285 "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.grpc.GrpcCarrierTechnologyParameters",
5286 "parameters": {
5287 "host": "cds-blueprints-processor-grpc",
5288 "port": 9111,
5289 "username": "ccsdkapps",
5290 "password": "ccsdkapps",
5291 "timeout": 60
5294 "eventProtocolParameters": {
5295 "eventProtocol": "JSON"
5297 "eventNameFilter": "SimpleCL_CDSConfigModifyRequestEvent",
5298 "requestorMode": true,
5299 "requestorPeer": "SimpleCL_CDSConfigModifyResponseConsumer",
5300 "requestorTimeout": 500
5302 "SimpleCL_logOutputter": {
5303 "carrierTechnologyParameters": {
5304 "carrierTechnology": "FILE",
5305 "parameters": {
5306 "fileName": "outputevents.log"
5309 "eventProtocolParameters": {
5310 "eventProtocol": "JSON"
5320 <stringProp name="Argument.metadata">=</stringProp>
5324 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
5325 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
5326 <stringProp name="HTTPSampler.protocol">https</stringProp>
5327 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
5328 <stringProp name="HTTPSampler.path">/policy/api/v1/policies</stringProp>
5329 <stringProp name="HTTPSampler.method">POST</stringProp>
5330 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
5331 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
5332 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
5333 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
5334 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
5335 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
5336 <stringProp name="HTTPSampler.response_timeout"></stringProp>
5339 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
5340 <collectionProp name="Asserion.test_strings">
5341 <stringProp name="49586">200</stringProp>
5343 <stringProp name="Assertion.custom_message"></stringProp>
5344 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
5345 <boolProp name="Assertion.assume_success">false</boolProp>
5346 <intProp name="Assertion.test_type">1</intProp>
5347 </ResponseAssertion>
5349 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
5350 <stringProp name="scriptLanguage">groovy</stringProp>
5351 <stringProp name="parameters"></stringProp>
5352 <stringProp name="filename"></stringProp>
5353 <stringProp name="cacheKey">true</stringProp>
5354 <stringProp name="script">import groovy.json.JsonSlurper;
5357 if (prev.getResponseCode() == '200') {
5358 def jsonSlurper = new JsonSlurper();
5359 res = jsonSlurper.parseText(prev.getResponseDataAsString());
5361 assert res instanceof Map;
5362 assert res.topology_template.policies instanceof List;
5363 assert res.topology_template.policies.size == 1;
5364 assert res.topology_template.policies[0] instanceof Map;
5369 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get Node Template" enabled="true">
5370 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
5371 <collectionProp name="Arguments.arguments"/>
5373 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
5374 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
5375 <stringProp name="HTTPSampler.protocol">https</stringProp>
5376 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
5377 <stringProp name="HTTPSampler.path">/policy/api/v1/nodetemplates/apex.metadata.pnf/versions/6.0.${__threadNum}</stringProp>
5378 <stringProp name="HTTPSampler.method">GET</stringProp>
5379 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
5380 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
5381 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
5382 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
5383 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
5384 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
5385 <stringProp name="HTTPSampler.response_timeout"></stringProp>
5388 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
5389 <collectionProp name="Asserion.test_strings">
5390 <stringProp name="49586">200</stringProp>
5392 <stringProp name="Assertion.custom_message"></stringProp>
5393 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
5394 <boolProp name="Assertion.assume_success">false</boolProp>
5395 <intProp name="Assertion.test_type">1</intProp>
5396 </ResponseAssertion>
5398 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
5399 <stringProp name="scriptLanguage">groovy</stringProp>
5400 <stringProp name="parameters"></stringProp>
5401 <stringProp name="filename"></stringProp>
5402 <stringProp name="cacheKey">true</stringProp>
5403 <stringProp name="script">import groovy.json.JsonSlurper;
5406 if (prev.getResponseCode() == '200') {
5407 def jsonSlurper = new JsonSlurper();
5408 res = jsonSlurper.parseText(prev.getResponseDataAsString());
5410 assert res instanceof List;
5411 assert res.size == 1;
5412 assert res[0].metadata instanceof Map;
5413 assert res[0].version == "6.0.${__threadNum}";
5418 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get All TCA Policies" enabled="true">
5419 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
5420 <collectionProp name="Arguments.arguments"/>
5422 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
5423 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
5424 <stringProp name="HTTPSampler.protocol">https</stringProp>
5425 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
5426 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/6.0.${__threadNum}/policies</stringProp>
5427 <stringProp name="HTTPSampler.method">GET</stringProp>
5428 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
5429 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
5430 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
5431 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
5432 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
5433 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
5434 <stringProp name="HTTPSampler.response_timeout"></stringProp>
5437 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
5438 <collectionProp name="Asserion.test_strings">
5439 <stringProp name="49586">200</stringProp>
5441 <stringProp name="Assertion.custom_message"></stringProp>
5442 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
5443 <boolProp name="Assertion.assume_success">false</boolProp>
5444 <intProp name="Assertion.test_type">1</intProp>
5445 </ResponseAssertion>
5447 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
5448 <stringProp name="scriptLanguage">groovy</stringProp>
5449 <stringProp name="parameters"></stringProp>
5450 <stringProp name="filename"></stringProp>
5451 <stringProp name="cacheKey">true</stringProp>
5452 <stringProp name="script">import groovy.json.JsonSlurper;
5455 if (prev.getResponseCode() == '200') {
5456 def jsonSlurper = new JsonSlurper();
5457 res = jsonSlurper.parseText(prev.getResponseDataAsString());
5459 assert res instanceof Map;
5460 assert res.topology_template.policies instanceof List;
5461 assert res.topology_template.policies.size > 0 && res.topology_template.policies.size < 10;
5464 for (i=0; i<res.topology_template.policies.size; i++) {
5465 assert res.topology_template.policies[i] instanceof Map;
5471 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get All Versions of Monitoring Policy" enabled="true">
5472 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
5473 <collectionProp name="Arguments.arguments"/>
5475 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
5476 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
5477 <stringProp name="HTTPSampler.protocol">https</stringProp>
5478 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
5479 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/6.0.${__threadNum}/policies</stringProp>
5480 <stringProp name="HTTPSampler.method">GET</stringProp>
5481 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
5482 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
5483 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
5484 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
5485 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
5486 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
5487 <stringProp name="HTTPSampler.response_timeout"></stringProp>
5490 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
5491 <collectionProp name="Asserion.test_strings">
5492 <stringProp name="49586">200</stringProp>
5494 <stringProp name="Assertion.custom_message"></stringProp>
5495 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
5496 <boolProp name="Assertion.assume_success">false</boolProp>
5497 <intProp name="Assertion.test_type">1</intProp>
5498 </ResponseAssertion>
5500 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
5501 <stringProp name="scriptLanguage">groovy</stringProp>
5502 <stringProp name="parameters"></stringProp>
5503 <stringProp name="filename"></stringProp>
5504 <stringProp name="cacheKey">true</stringProp>
5505 <stringProp name="script">import groovy.json.JsonSlurper;
5508 if (prev.getResponseCode() == '200') {
5509 def jsonSlurper = new JsonSlurper();
5510 res = jsonSlurper.parseText(prev.getResponseDataAsString());
5512 assert res instanceof Map;
5513 assert res.topology_template.policies instanceof List;
5514 assert res.topology_template.policies.size > 0 && res.topology_template.policies.size < 6;
5516 for (i=0; i<res.topology_template.policies.size; i++) {
5517 assert res.topology_template.policies[i] instanceof Map;
5518 assert res.topology_template.policies[i].get('onap.restart.tca').version == "6.0.${__threadNum}";
5524 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get Policy Monitoring" enabled="true">
5525 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
5526 <collectionProp name="Arguments.arguments"/>
5528 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
5529 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
5530 <stringProp name="HTTPSampler.protocol">https</stringProp>
5531 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
5532 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/6.0.${__threadNum}/policies/onap.restart.tca/versions/6.0.${__threadNum}</stringProp>
5533 <stringProp name="HTTPSampler.method">GET</stringProp>
5534 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
5535 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
5536 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
5537 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
5538 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
5539 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
5540 <stringProp name="HTTPSampler.response_timeout"></stringProp>
5543 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
5544 <collectionProp name="Asserion.test_strings">
5545 <stringProp name="49586">200</stringProp>
5547 <stringProp name="Assertion.custom_message"></stringProp>
5548 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
5549 <boolProp name="Assertion.assume_success">false</boolProp>
5550 <intProp name="Assertion.test_type">1</intProp>
5551 </ResponseAssertion>
5553 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
5554 <stringProp name="scriptLanguage">groovy</stringProp>
5555 <stringProp name="parameters"></stringProp>
5556 <stringProp name="filename"></stringProp>
5557 <stringProp name="cacheKey">true</stringProp>
5558 <stringProp name="script">import groovy.json.JsonSlurper;
5561 if (prev.getResponseCode() == '200') {
5562 def jsonSlurper = new JsonSlurper();
5563 res = jsonSlurper.parseText(prev.getResponseDataAsString());
5565 assert res instanceof Map;
5566 assert res.topology_template.policies instanceof List;
5567 assert res.topology_template.policies.size == 1;
5569 assert res.topology_template.policies[0] instanceof Map;
5570 assert res.topology_template.policies [0].get('onap.restart.tca').version == "6.0.${__threadNum}";
5575 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get Policy Optimization" enabled="true">
5576 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
5577 <collectionProp name="Arguments.arguments"/>
5579 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
5580 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
5581 <stringProp name="HTTPSampler.protocol">https</stringProp>
5582 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
5583 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.optimization.resource.AffinityPolicy/versions/6.0.${__threadNum}/policies/OSDF_CASABLANCA.Affinity_Default/versions/6.0.${__threadNum}</stringProp>
5584 <stringProp name="HTTPSampler.method">GET</stringProp>
5585 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
5586 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
5587 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
5588 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
5589 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
5590 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
5591 <stringProp name="HTTPSampler.response_timeout"></stringProp>
5594 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
5595 <collectionProp name="Asserion.test_strings">
5596 <stringProp name="49586">200</stringProp>
5598 <stringProp name="Assertion.custom_message"></stringProp>
5599 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
5600 <boolProp name="Assertion.assume_success">false</boolProp>
5601 <intProp name="Assertion.test_type">1</intProp>
5602 </ResponseAssertion>
5604 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
5605 <stringProp name="scriptLanguage">groovy</stringProp>
5606 <stringProp name="parameters"></stringProp>
5607 <stringProp name="filename"></stringProp>
5608 <stringProp name="cacheKey">true</stringProp>
5609 <stringProp name="script">import groovy.json.JsonSlurper;
5612 if (prev.getResponseCode() == '200') {
5613 def jsonSlurper = new JsonSlurper();
5614 res = jsonSlurper.parseText(prev.getResponseDataAsString());
5616 assert res instanceof Map;
5617 assert res.topology_template.policies instanceof List;
5618 assert res.topology_template.policies.size == 1;
5620 assert res.topology_template.policies[0] instanceof Map;
5621 assert res.topology_template.policies [0].get('OSDF_CASABLANCA.Affinity_Default').version == "6.0.${__threadNum}";
5626 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get Policy Guard" enabled="true">
5627 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
5628 <collectionProp name="Arguments.arguments"/>
5630 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
5631 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
5632 <stringProp name="HTTPSampler.protocol">https</stringProp>
5633 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
5634 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.controlloop.guard.common.Blacklist/versions/6.0.${__threadNum}/policies/guard.blacklist.scaleout/versions/6.0.${__threadNum}</stringProp>
5635 <stringProp name="HTTPSampler.method">GET</stringProp>
5636 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
5637 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
5638 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
5639 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
5640 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
5641 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
5642 <stringProp name="HTTPSampler.response_timeout"></stringProp>
5645 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
5646 <collectionProp name="Asserion.test_strings">
5647 <stringProp name="49586">200</stringProp>
5649 <stringProp name="Assertion.custom_message"></stringProp>
5650 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
5651 <boolProp name="Assertion.assume_success">false</boolProp>
5652 <intProp name="Assertion.test_type">1</intProp>
5653 </ResponseAssertion>
5655 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
5656 <stringProp name="scriptLanguage">groovy</stringProp>
5657 <stringProp name="parameters"></stringProp>
5658 <stringProp name="filename"></stringProp>
5659 <stringProp name="cacheKey">true</stringProp>
5660 <stringProp name="script">import groovy.json.JsonSlurper;
5663 if (prev.getResponseCode() == '200') {
5664 def jsonSlurper = new JsonSlurper();
5665 res = jsonSlurper.parseText(prev.getResponseDataAsString());
5667 assert res instanceof Map;
5668 assert res.topology_template.policies instanceof List;
5669 assert res.topology_template.policies.size == 1;
5671 assert res.topology_template.policies[0] instanceof Map;
5672 assert res.topology_template.policies [0].get('guard.blacklist.scaleout').version == "6.0.${__threadNum}";
5677 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get Policy Native APEX" enabled="true">
5678 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
5679 <collectionProp name="Arguments.arguments"/>
5681 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
5682 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
5683 <stringProp name="HTTPSampler.protocol">https</stringProp>
5684 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
5685 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.native.Apex/versions/6.0.${__threadNum}/policies/operational.apex.vCPE/versions/6.0.${__threadNum}</stringProp>
5686 <stringProp name="HTTPSampler.method">GET</stringProp>
5687 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
5688 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
5689 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
5690 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
5691 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
5692 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
5693 <stringProp name="HTTPSampler.response_timeout"></stringProp>
5696 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
5697 <collectionProp name="Asserion.test_strings">
5698 <stringProp name="49586">200</stringProp>
5700 <stringProp name="Assertion.custom_message"></stringProp>
5701 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
5702 <boolProp name="Assertion.assume_success">false</boolProp>
5703 <intProp name="Assertion.test_type">1</intProp>
5704 </ResponseAssertion>
5706 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
5707 <stringProp name="scriptLanguage">groovy</stringProp>
5708 <stringProp name="parameters"></stringProp>
5709 <stringProp name="filename"></stringProp>
5710 <stringProp name="cacheKey">true</stringProp>
5711 <stringProp name="script">import groovy.json.JsonSlurper;
5714 if (prev.getResponseCode() == '200') {
5715 def jsonSlurper = new JsonSlurper();
5716 res = jsonSlurper.parseText(prev.getResponseDataAsString());
5718 assert res instanceof Map;
5719 assert res.topology_template.policies instanceof List;
5720 assert res.topology_template.policies.size == 1;
5722 assert res.topology_template.policies[0] instanceof Map;
5723 assert res.topology_template.policies [0].get('operational.apex.vCPE').version == "6.0.${__threadNum}";
5728 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get Policy Native Drools" enabled="true">
5729 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
5730 <collectionProp name="Arguments.arguments"/>
5732 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
5733 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
5734 <stringProp name="HTTPSampler.protocol">https</stringProp>
5735 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
5736 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.native.drools.Artifact/versions/6.0.${__threadNum}/policies/usecases.artifacts/versions/6.0.${__threadNum}</stringProp>
5737 <stringProp name="HTTPSampler.method">GET</stringProp>
5738 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
5739 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
5740 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
5741 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
5742 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
5743 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
5744 <stringProp name="HTTPSampler.response_timeout"></stringProp>
5747 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
5748 <collectionProp name="Asserion.test_strings">
5749 <stringProp name="49586">200</stringProp>
5751 <stringProp name="Assertion.custom_message"></stringProp>
5752 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
5753 <boolProp name="Assertion.assume_success">false</boolProp>
5754 <intProp name="Assertion.test_type">1</intProp>
5755 </ResponseAssertion>
5757 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
5758 <stringProp name="scriptLanguage">groovy</stringProp>
5759 <stringProp name="parameters"></stringProp>
5760 <stringProp name="filename"></stringProp>
5761 <stringProp name="cacheKey">true</stringProp>
5762 <stringProp name="script">import groovy.json.JsonSlurper;
5765 if (prev.getResponseCode() == '200') {
5766 def jsonSlurper = new JsonSlurper();
5767 res = jsonSlurper.parseText(prev.getResponseDataAsString());
5769 assert res instanceof Map;
5770 assert res.topology_template.policies instanceof List;
5771 assert res.topology_template.policies.size == 1;
5773 assert res.topology_template.policies[0] instanceof Map;
5774 assert res.topology_template.policies [0].get('usecases.artifacts').version == "6.0.${__threadNum}";
5779 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get Policy Native XACML" enabled="true">
5780 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
5781 <collectionProp name="Arguments.arguments"/>
5783 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
5784 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
5785 <stringProp name="HTTPSampler.protocol">https</stringProp>
5786 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
5787 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.native.Xacml/versions/6.0.${__threadNum}/policies/onap.policies.native.xacml.NativeXacmlPolicy/versions/6.0.${__threadNum}</stringProp>
5788 <stringProp name="HTTPSampler.method">GET</stringProp>
5789 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
5790 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
5791 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
5792 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
5793 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
5794 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
5795 <stringProp name="HTTPSampler.response_timeout"></stringProp>
5798 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
5799 <collectionProp name="Asserion.test_strings">
5800 <stringProp name="49586">200</stringProp>
5802 <stringProp name="Assertion.custom_message"></stringProp>
5803 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
5804 <boolProp name="Assertion.assume_success">false</boolProp>
5805 <intProp name="Assertion.test_type">1</intProp>
5806 </ResponseAssertion>
5808 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
5809 <stringProp name="scriptLanguage">groovy</stringProp>
5810 <stringProp name="parameters"></stringProp>
5811 <stringProp name="filename"></stringProp>
5812 <stringProp name="cacheKey">true</stringProp>
5813 <stringProp name="script">import groovy.json.JsonSlurper;
5816 if (prev.getResponseCode() == '200') {
5817 def jsonSlurper = new JsonSlurper();
5818 res = jsonSlurper.parseText(prev.getResponseDataAsString());
5820 assert res instanceof Map;
5821 assert res.topology_template.policies instanceof List;
5822 assert res.topology_template.policies.size == 1;
5824 assert res.topology_template.policies[0] instanceof Map;
5825 assert res.topology_template.policies [0].get('onap.policies.native.xacml.NativeXacmlPolicy').version == "6.0.${__threadNum}";
5830 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get latest Monitoring Policy" enabled="true">
5831 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
5832 <collectionProp name="Arguments.arguments"/>
5834 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
5835 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
5836 <stringProp name="HTTPSampler.protocol">https</stringProp>
5837 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
5838 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/6.0.${__threadNum}/policies/onap.restart.tca/versions/latest</stringProp>
5839 <stringProp name="HTTPSampler.method">GET</stringProp>
5840 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
5841 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
5842 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
5843 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
5844 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
5845 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
5846 <stringProp name="HTTPSampler.response_timeout"></stringProp>
5849 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
5850 <collectionProp name="Asserion.test_strings">
5851 <stringProp name="49586">200</stringProp>
5853 <stringProp name="Assertion.custom_message"></stringProp>
5854 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
5855 <boolProp name="Assertion.assume_success">false</boolProp>
5856 <intProp name="Assertion.test_type">1</intProp>
5857 </ResponseAssertion>
5859 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
5860 <stringProp name="scriptLanguage">groovy</stringProp>
5861 <stringProp name="parameters"></stringProp>
5862 <stringProp name="filename"></stringProp>
5863 <stringProp name="cacheKey">true</stringProp>
5864 <stringProp name="script">import groovy.json.JsonSlurper;
5867 if (prev.getResponseCode() == '200') {
5868 def jsonSlurper = new JsonSlurper();
5869 res = jsonSlurper.parseText(prev.getResponseDataAsString());
5871 assert res instanceof Map;
5872 assert res.topology_template.policies instanceof List;
5873 assert res.topology_template.policies.size == 1;
5875 assert res.topology_template.policies[0] instanceof Map;
5876 assert res.topology_template.policies [0].get('onap.restart.tca').version ==~ /6.0.\d+/;
5881 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete Policy Monitoring" enabled="true">
5882 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
5883 <collectionProp name="Arguments.arguments"/>
5885 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
5886 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
5887 <stringProp name="HTTPSampler.protocol">https</stringProp>
5888 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
5889 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/6.0.${__threadNum}/policies/onap.restart.tca/versions/6.0.${__threadNum}</stringProp>
5890 <stringProp name="HTTPSampler.method">DELETE</stringProp>
5891 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
5892 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
5893 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
5894 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
5895 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
5896 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
5897 <stringProp name="HTTPSampler.response_timeout"></stringProp>
5900 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
5901 <collectionProp name="Asserion.test_strings">
5902 <stringProp name="49586">200</stringProp>
5904 <stringProp name="Assertion.custom_message"></stringProp>
5905 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
5906 <boolProp name="Assertion.assume_success">false</boolProp>
5907 <intProp name="Assertion.test_type">1</intProp>
5908 </ResponseAssertion>
5910 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
5911 <stringProp name="scriptLanguage">groovy</stringProp>
5912 <stringProp name="parameters"></stringProp>
5913 <stringProp name="filename"></stringProp>
5914 <stringProp name="cacheKey">true</stringProp>
5915 <stringProp name="script">import groovy.json.JsonSlurper;
5918 if (prev.getResponseCode() == '200') {
5919 def jsonSlurper = new JsonSlurper();
5920 res = jsonSlurper.parseText(prev.getResponseDataAsString());
5922 assert res instanceof Map;
5923 assert res.topology_template.policies instanceof List;
5924 assert res.topology_template.policies.size == 1;
5925 assert res.topology_template.policies[0] instanceof Map;
5926 assert res.topology_template.policies[0].get('onap.restart.tca').version == "6.0.${__threadNum}";
5931 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete Policy Monitoring V2" enabled="true">
5932 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
5933 <collectionProp name="Arguments.arguments"/>
5935 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
5936 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
5937 <stringProp name="HTTPSampler.protocol">https</stringProp>
5938 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
5939 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/6.0.${__threadNum}/policies/onap.restart.tca/versions/7.0.${__threadNum}</stringProp>
5940 <stringProp name="HTTPSampler.method">DELETE</stringProp>
5941 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
5942 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
5943 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
5944 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
5945 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
5946 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
5947 <stringProp name="HTTPSampler.response_timeout"></stringProp>
5950 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
5951 <collectionProp name="Asserion.test_strings">
5952 <stringProp name="49586">200</stringProp>
5954 <stringProp name="Assertion.custom_message"></stringProp>
5955 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
5956 <boolProp name="Assertion.assume_success">false</boolProp>
5957 <intProp name="Assertion.test_type">1</intProp>
5958 </ResponseAssertion>
5960 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
5961 <stringProp name="scriptLanguage">groovy</stringProp>
5962 <stringProp name="parameters"></stringProp>
5963 <stringProp name="filename"></stringProp>
5964 <stringProp name="cacheKey">true</stringProp>
5965 <stringProp name="script">import groovy.json.JsonSlurper;
5968 if (prev.getResponseCode() == '200') {
5969 def jsonSlurper = new JsonSlurper();
5970 res = jsonSlurper.parseText(prev.getResponseDataAsString());
5972 assert res instanceof Map;
5973 assert res.topology_template.policies instanceof List;
5974 assert res.topology_template.policies.size == 1;
5975 assert res.topology_template.policies[0] instanceof Map;
5976 assert res.topology_template.policies[0].get('onap.restart.tca').version == "7.0.${__threadNum}";
5981 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete Policy Optimization" enabled="true">
5982 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
5983 <collectionProp name="Arguments.arguments"/>
5985 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
5986 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
5987 <stringProp name="HTTPSampler.protocol">https</stringProp>
5988 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
5989 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.optimization.resource.AffinityPolicy/versions/6.0.${__threadNum}/policies/OSDF_CASABLANCA.Affinity_Default/versions/6.0.${__threadNum}</stringProp>
5990 <stringProp name="HTTPSampler.method">DELETE</stringProp>
5991 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
5992 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
5993 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
5994 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
5995 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
5996 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
5997 <stringProp name="HTTPSampler.response_timeout"></stringProp>
6000 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
6001 <collectionProp name="Asserion.test_strings">
6002 <stringProp name="49586">200</stringProp>
6004 <stringProp name="Assertion.custom_message"></stringProp>
6005 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
6006 <boolProp name="Assertion.assume_success">false</boolProp>
6007 <intProp name="Assertion.test_type">1</intProp>
6008 </ResponseAssertion>
6010 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
6011 <stringProp name="scriptLanguage">groovy</stringProp>
6012 <stringProp name="parameters"></stringProp>
6013 <stringProp name="filename"></stringProp>
6014 <stringProp name="cacheKey">true</stringProp>
6015 <stringProp name="script">import groovy.json.JsonSlurper;
6018 if (prev.getResponseCode() == '200') {
6019 def jsonSlurper = new JsonSlurper();
6020 res = jsonSlurper.parseText(prev.getResponseDataAsString());
6022 assert res instanceof Map;
6023 assert res.topology_template.policies instanceof List;
6024 assert res.topology_template.policies.size == 1;
6025 assert res.topology_template.policies[0] instanceof Map;
6026 assert res.topology_template.policies[0].get('OSDF_CASABLANCA.Affinity_Default').version == "6.0.${__threadNum}";
6031 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete Policy Guard" enabled="true">
6032 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
6033 <collectionProp name="Arguments.arguments"/>
6035 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
6036 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
6037 <stringProp name="HTTPSampler.protocol">https</stringProp>
6038 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
6039 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.controlloop.guard.common.Blacklist/versions/6.0.${__threadNum}/policies/guard.blacklist.scaleout/versions/6.0.${__threadNum}</stringProp>
6040 <stringProp name="HTTPSampler.method">DELETE</stringProp>
6041 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
6042 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
6043 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
6044 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
6045 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
6046 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
6047 <stringProp name="HTTPSampler.response_timeout"></stringProp>
6050 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
6051 <collectionProp name="Asserion.test_strings">
6052 <stringProp name="49586">200</stringProp>
6054 <stringProp name="Assertion.custom_message"></stringProp>
6055 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
6056 <boolProp name="Assertion.assume_success">false</boolProp>
6057 <intProp name="Assertion.test_type">1</intProp>
6058 </ResponseAssertion>
6060 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
6061 <stringProp name="scriptLanguage">groovy</stringProp>
6062 <stringProp name="parameters"></stringProp>
6063 <stringProp name="filename"></stringProp>
6064 <stringProp name="cacheKey">true</stringProp>
6065 <stringProp name="script">import groovy.json.JsonSlurper;
6068 if (prev.getResponseCode() == '200') {
6069 def jsonSlurper = new JsonSlurper();
6070 res = jsonSlurper.parseText(prev.getResponseDataAsString());
6072 assert res instanceof Map;
6073 assert res.topology_template.policies instanceof List;
6074 assert res.topology_template.policies.size == 1;
6075 assert res.topology_template.policies[0] instanceof Map;
6076 assert res.topology_template.policies[0].get('guard.blacklist.scaleout').version == "6.0.${__threadNum}";
6081 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete Policy Native APEX" enabled="true">
6082 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
6083 <collectionProp name="Arguments.arguments"/>
6085 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
6086 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
6087 <stringProp name="HTTPSampler.protocol">https</stringProp>
6088 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
6089 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.native.Apex/versions/6.0.${__threadNum}/policies/operational.apex.vCPE/versions/6.0.${__threadNum}</stringProp>
6090 <stringProp name="HTTPSampler.method">DELETE</stringProp>
6091 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
6092 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
6093 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
6094 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
6095 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
6096 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
6097 <stringProp name="HTTPSampler.response_timeout"></stringProp>
6100 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
6101 <collectionProp name="Asserion.test_strings">
6102 <stringProp name="49586">200</stringProp>
6104 <stringProp name="Assertion.custom_message"></stringProp>
6105 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
6106 <boolProp name="Assertion.assume_success">false</boolProp>
6107 <intProp name="Assertion.test_type">1</intProp>
6108 </ResponseAssertion>
6110 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
6111 <stringProp name="scriptLanguage">groovy</stringProp>
6112 <stringProp name="parameters"></stringProp>
6113 <stringProp name="filename"></stringProp>
6114 <stringProp name="cacheKey">true</stringProp>
6115 <stringProp name="script">import groovy.json.JsonSlurper;
6118 if (prev.getResponseCode() == '200') {
6119 def jsonSlurper = new JsonSlurper();
6120 res = jsonSlurper.parseText(prev.getResponseDataAsString());
6122 assert res instanceof Map;
6123 assert res.topology_template.policies instanceof List;
6124 assert res.topology_template.policies.size == 1;
6125 assert res.topology_template.policies[0] instanceof Map;
6126 assert res.topology_template.policies[0].get('operational.apex.vCPE').version == "6.0.${__threadNum}";
6131 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete Policy (having metadata)" enabled="true">
6132 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
6133 <collectionProp name="Arguments.arguments"/>
6135 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
6136 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
6137 <stringProp name="HTTPSampler.protocol">https</stringProp>
6138 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
6139 <stringProp name="HTTPSampler.path">/policy/api/v1/policies/onap.policies.apex.pnf.Example/versions/6.0.${__threadNum}</stringProp>
6140 <stringProp name="HTTPSampler.method">DELETE</stringProp>
6141 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
6142 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
6143 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
6144 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
6145 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
6146 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
6147 <stringProp name="HTTPSampler.response_timeout"></stringProp>
6150 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
6151 <collectionProp name="Asserion.test_strings">
6152 <stringProp name="49586">200</stringProp>
6154 <stringProp name="Assertion.custom_message"></stringProp>
6155 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
6156 <boolProp name="Assertion.assume_success">false</boolProp>
6157 <intProp name="Assertion.test_type">1</intProp>
6158 </ResponseAssertion>
6160 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
6161 <stringProp name="scriptLanguage">groovy</stringProp>
6162 <stringProp name="parameters"></stringProp>
6163 <stringProp name="filename"></stringProp>
6164 <stringProp name="cacheKey">true</stringProp>
6165 <stringProp name="script">import groovy.json.JsonSlurper;
6168 if (prev.getResponseCode() == '200') {
6169 def jsonSlurper = new JsonSlurper();
6170 res = jsonSlurper.parseText(prev.getResponseDataAsString());
6172 assert res instanceof Map;
6173 assert res.topology_template.policies instanceof List;
6174 assert res.topology_template.policies.size == 1;
6175 assert res.topology_template.policies[0] instanceof Map;
6176 assert res.topology_template.policies[0].get('onap.policies.apex.pnf.Example').version == "6.0.${__threadNum}";
6181 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete Policy Native Drools" enabled="true">
6182 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
6183 <collectionProp name="Arguments.arguments"/>
6185 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
6186 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
6187 <stringProp name="HTTPSampler.protocol">https</stringProp>
6188 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
6189 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.native.drools.Artifact/versions/6.0.${__threadNum}/policies/usecases.artifacts/versions/6.0.${__threadNum}</stringProp>
6190 <stringProp name="HTTPSampler.method">DELETE</stringProp>
6191 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
6192 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
6193 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
6194 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
6195 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
6196 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
6197 <stringProp name="HTTPSampler.response_timeout"></stringProp>
6200 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
6201 <collectionProp name="Asserion.test_strings">
6202 <stringProp name="49586">200</stringProp>
6204 <stringProp name="Assertion.custom_message"></stringProp>
6205 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
6206 <boolProp name="Assertion.assume_success">false</boolProp>
6207 <intProp name="Assertion.test_type">1</intProp>
6208 </ResponseAssertion>
6210 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
6211 <stringProp name="scriptLanguage">groovy</stringProp>
6212 <stringProp name="parameters"></stringProp>
6213 <stringProp name="filename"></stringProp>
6214 <stringProp name="cacheKey">true</stringProp>
6215 <stringProp name="script">import groovy.json.JsonSlurper;
6218 if (prev.getResponseCode() == '200') {
6219 def jsonSlurper = new JsonSlurper();
6220 res = jsonSlurper.parseText(prev.getResponseDataAsString());
6222 assert res instanceof Map;
6223 assert res.topology_template.policies instanceof List;
6224 assert res.topology_template.policies.size == 1;
6225 assert res.topology_template.policies[0] instanceof Map;
6226 assert res.topology_template.policies[0].get('usecases.artifacts').version == "6.0.${__threadNum}";
6231 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete Policy Native XACML" enabled="true">
6232 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
6233 <collectionProp name="Arguments.arguments"/>
6235 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
6236 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
6237 <stringProp name="HTTPSampler.protocol">https</stringProp>
6238 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
6239 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.native.Xacml/versions/6.0.${__threadNum}/policies/onap.policies.native.xacml.NativeXacmlPolicy/versions/6.0.${__threadNum}</stringProp>
6240 <stringProp name="HTTPSampler.method">DELETE</stringProp>
6241 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
6242 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
6243 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
6244 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
6245 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
6246 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
6247 <stringProp name="HTTPSampler.response_timeout"></stringProp>
6250 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
6251 <collectionProp name="Asserion.test_strings">
6252 <stringProp name="49586">200</stringProp>
6254 <stringProp name="Assertion.custom_message"></stringProp>
6255 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
6256 <boolProp name="Assertion.assume_success">false</boolProp>
6257 <intProp name="Assertion.test_type">1</intProp>
6258 </ResponseAssertion>
6260 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
6261 <stringProp name="scriptLanguage">groovy</stringProp>
6262 <stringProp name="parameters"></stringProp>
6263 <stringProp name="filename"></stringProp>
6264 <stringProp name="cacheKey">true</stringProp>
6265 <stringProp name="script">import groovy.json.JsonSlurper;
6268 if (prev.getResponseCode() == '200') {
6269 def jsonSlurper = new JsonSlurper();
6270 res = jsonSlurper.parseText(prev.getResponseDataAsString());
6272 assert res instanceof Map;
6273 assert res.topology_template.policies instanceof List;
6274 assert res.topology_template.policies.size == 1;
6275 assert res.topology_template.policies[0] instanceof Map;
6276 assert res.topology_template.policies[0].get('onap.policies.native.xacml.NativeXacmlPolicy').version == "6.0.${__threadNum}";
6281 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete Policy Type Monitoring" enabled="true">
6282 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
6283 <collectionProp name="Arguments.arguments"/>
6285 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
6286 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
6287 <stringProp name="HTTPSampler.protocol">https</stringProp>
6288 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
6289 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/6.0.${__threadNum}</stringProp>
6290 <stringProp name="HTTPSampler.method">DELETE</stringProp>
6291 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
6292 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
6293 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
6294 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
6295 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
6296 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
6297 <stringProp name="HTTPSampler.response_timeout"></stringProp>
6300 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="false">
6301 <collectionProp name="Asserion.test_strings">
6302 <stringProp name="49586">200</stringProp>
6304 <stringProp name="Assertion.custom_message"></stringProp>
6305 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
6306 <boolProp name="Assertion.assume_success">false</boolProp>
6307 <intProp name="Assertion.test_type">1</intProp>
6308 </ResponseAssertion>
6310 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="false">
6311 <stringProp name="scriptLanguage">groovy</stringProp>
6312 <stringProp name="parameters"></stringProp>
6313 <stringProp name="filename"></stringProp>
6314 <stringProp name="cacheKey">true</stringProp>
6315 <stringProp name="script">import groovy.json.JsonSlurper;
6318 if (prev.getResponseCode() == '409') {
6319 def jsonSlurper = new JsonSlurper();
6320 res = jsonSlurper.parseText(prev.getResponseDataAsString());
6322 assert res instanceof Map;
6323 assert res.policy_types instanceof List;
6324 assert res.policy_types.size == 1;
6325 assert res.policy_types[0] instanceof Map;
6326 assert res.policy_types[0].get('onap.policies.monitoring.cdap.tca.hi.lo.app').version == "6.0.${__threadNum}";
6331 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete Policy Type Monitoring V2" enabled="true">
6332 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
6333 <collectionProp name="Arguments.arguments"/>
6335 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
6336 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
6337 <stringProp name="HTTPSampler.protocol">https</stringProp>
6338 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
6339 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/7.0.${__threadNum}</stringProp>
6340 <stringProp name="HTTPSampler.method">DELETE</stringProp>
6341 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
6342 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
6343 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
6344 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
6345 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
6346 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
6347 <stringProp name="HTTPSampler.response_timeout"></stringProp>
6350 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="false">
6351 <collectionProp name="Asserion.test_strings">
6352 <stringProp name="49586">200</stringProp>
6354 <stringProp name="Assertion.custom_message"></stringProp>
6355 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
6356 <boolProp name="Assertion.assume_success">false</boolProp>
6357 <intProp name="Assertion.test_type">1</intProp>
6358 </ResponseAssertion>
6360 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="false">
6361 <stringProp name="scriptLanguage">groovy</stringProp>
6362 <stringProp name="parameters"></stringProp>
6363 <stringProp name="filename"></stringProp>
6364 <stringProp name="cacheKey">true</stringProp>
6365 <stringProp name="script">import groovy.json.JsonSlurper;
6368 if (prev.getResponseCode() == '409') {
6369 def jsonSlurper = new JsonSlurper();
6370 res = jsonSlurper.parseText(prev.getResponseDataAsString());
6372 assert res instanceof Map;
6373 assert res.policy_types instanceof List;
6374 assert res.policy_types.size == 1;
6375 assert res.policy_types[0] instanceof Map;
6376 assert res.policy_types[0].get('onap.policies.monitoring.cdap.tca.hi.lo.app').version == "7.0.${__threadNum}";
6381 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete Policy Type Optimization" enabled="true">
6382 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
6383 <collectionProp name="Arguments.arguments"/>
6385 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
6386 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
6387 <stringProp name="HTTPSampler.protocol">https</stringProp>
6388 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
6389 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.optimization.resource.AffinityPolicy/versions/6.0.${__threadNum}</stringProp>
6390 <stringProp name="HTTPSampler.method">DELETE</stringProp>
6391 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
6392 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
6393 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
6394 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
6395 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
6396 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
6397 <stringProp name="HTTPSampler.response_timeout"></stringProp>
6400 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
6401 <collectionProp name="Asserion.test_strings">
6402 <stringProp name="49586">200</stringProp>
6404 <stringProp name="Assertion.custom_message"></stringProp>
6405 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
6406 <boolProp name="Assertion.assume_success">false</boolProp>
6407 <intProp name="Assertion.test_type">1</intProp>
6408 </ResponseAssertion>
6410 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
6411 <stringProp name="scriptLanguage">groovy</stringProp>
6412 <stringProp name="parameters"></stringProp>
6413 <stringProp name="filename"></stringProp>
6414 <stringProp name="cacheKey">true</stringProp>
6415 <stringProp name="script">import groovy.json.JsonSlurper;
6418 if (prev.getResponseCode() == '409') {
6419 def jsonSlurper = new JsonSlurper();
6420 res = jsonSlurper.parseText(prev.getResponseDataAsString());
6422 assert res instanceof Map;
6423 assert res.policy_types instanceof List;
6424 assert res.policy_types.size == 1;
6425 assert res.policy_types[0] instanceof Map;
6426 assert res.policy_types[0].get('onap.policies.optimization.resource.AffinityPolicy').version == "6.0.${__threadNum}";
6431 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete Policy Type Guard" enabled="true">
6432 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
6433 <collectionProp name="Arguments.arguments"/>
6435 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
6436 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
6437 <stringProp name="HTTPSampler.protocol">https</stringProp>
6438 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
6439 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.controlloop.guard.common.Blacklist/versions/6.0.${__threadNum}</stringProp>
6440 <stringProp name="HTTPSampler.method">DELETE</stringProp>
6441 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
6442 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
6443 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
6444 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
6445 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
6446 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
6447 <stringProp name="HTTPSampler.response_timeout"></stringProp>
6450 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
6451 <collectionProp name="Asserion.test_strings">
6452 <stringProp name="49586">200</stringProp>
6454 <stringProp name="Assertion.custom_message"></stringProp>
6455 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
6456 <boolProp name="Assertion.assume_success">false</boolProp>
6457 <intProp name="Assertion.test_type">1</intProp>
6458 </ResponseAssertion>
6460 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
6461 <stringProp name="scriptLanguage">groovy</stringProp>
6462 <stringProp name="parameters"></stringProp>
6463 <stringProp name="filename"></stringProp>
6464 <stringProp name="cacheKey">true</stringProp>
6465 <stringProp name="script">import groovy.json.JsonSlurper;
6468 if (prev.getResponseCode() == '200') {
6469 def jsonSlurper = new JsonSlurper();
6470 res = jsonSlurper.parseText(prev.getResponseDataAsString());
6472 assert res instanceof Map;
6473 assert res.policy_types instanceof Map;
6474 assert res.policy_types.get('onap.policies.controlloop.guard.common.Blacklist').version == "6.0.${__threadNum}";
6479 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete Policy Type Native APEX" enabled="true">
6480 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
6481 <collectionProp name="Arguments.arguments"/>
6483 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
6484 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
6485 <stringProp name="HTTPSampler.protocol">https</stringProp>
6486 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
6487 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.native.Apex/versions/6.0.${__threadNum}</stringProp>
6488 <stringProp name="HTTPSampler.method">DELETE</stringProp>
6489 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
6490 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
6491 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
6492 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
6493 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
6494 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
6495 <stringProp name="HTTPSampler.response_timeout"></stringProp>
6498 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
6499 <collectionProp name="Asserion.test_strings">
6500 <stringProp name="49586">200</stringProp>
6502 <stringProp name="Assertion.custom_message"></stringProp>
6503 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
6504 <boolProp name="Assertion.assume_success">false</boolProp>
6505 <intProp name="Assertion.test_type">1</intProp>
6506 </ResponseAssertion>
6508 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
6509 <stringProp name="scriptLanguage">groovy</stringProp>
6510 <stringProp name="parameters"></stringProp>
6511 <stringProp name="filename"></stringProp>
6512 <stringProp name="cacheKey">true</stringProp>
6513 <stringProp name="script">import groovy.json.JsonSlurper;
6516 if (prev.getResponseCode() == '200') {
6517 def jsonSlurper = new JsonSlurper();
6518 res = jsonSlurper.parseText(prev.getResponseDataAsString());
6520 assert res instanceof Map;
6521 assert res.policy_types instanceof Map;
6522 assert res.policy_types.get('onap.policies.native.Apex').version == "6.0.${__threadNum}";
6527 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete Policy Type Native Drools Controller" enabled="true">
6528 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
6529 <collectionProp name="Arguments.arguments"/>
6531 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
6532 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
6533 <stringProp name="HTTPSampler.protocol">https</stringProp>
6534 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
6535 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.native.drools.Controller/versions/6.0.${__threadNum}</stringProp>
6536 <stringProp name="HTTPSampler.method">DELETE</stringProp>
6537 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
6538 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
6539 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
6540 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
6541 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
6542 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
6543 <stringProp name="HTTPSampler.response_timeout"></stringProp>
6546 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
6547 <collectionProp name="Asserion.test_strings">
6548 <stringProp name="49586">200</stringProp>
6550 <stringProp name="Assertion.custom_message"></stringProp>
6551 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
6552 <boolProp name="Assertion.assume_success">false</boolProp>
6553 <intProp name="Assertion.test_type">1</intProp>
6554 </ResponseAssertion>
6556 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
6557 <stringProp name="scriptLanguage">groovy</stringProp>
6558 <stringProp name="parameters"></stringProp>
6559 <stringProp name="filename"></stringProp>
6560 <stringProp name="cacheKey">true</stringProp>
6561 <stringProp name="script">import groovy.json.JsonSlurper;
6564 if (prev.getResponseCode() == '200') {
6565 def jsonSlurper = new JsonSlurper();
6566 res = jsonSlurper.parseText(prev.getResponseDataAsString());
6568 assert res instanceof Map;
6569 assert res.policy_types instanceof Map;
6570 assert res.policy_types.get('onap.policies.native.drools.Controller').version == "6.0.${__threadNum}";
6575 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete Policy Type Native Drools Artifact" enabled="true">
6576 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
6577 <collectionProp name="Arguments.arguments"/>
6579 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
6580 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
6581 <stringProp name="HTTPSampler.protocol">https</stringProp>
6582 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
6583 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.native.drools.Artifact/versions/6.0.${__threadNum}</stringProp>
6584 <stringProp name="HTTPSampler.method">DELETE</stringProp>
6585 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
6586 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
6587 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
6588 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
6589 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
6590 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
6591 <stringProp name="HTTPSampler.response_timeout"></stringProp>
6594 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
6595 <collectionProp name="Asserion.test_strings">
6596 <stringProp name="49586">200</stringProp>
6598 <stringProp name="Assertion.custom_message"></stringProp>
6599 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
6600 <boolProp name="Assertion.assume_success">false</boolProp>
6601 <intProp name="Assertion.test_type">1</intProp>
6602 </ResponseAssertion>
6604 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
6605 <stringProp name="scriptLanguage">groovy</stringProp>
6606 <stringProp name="parameters"></stringProp>
6607 <stringProp name="filename"></stringProp>
6608 <stringProp name="cacheKey">true</stringProp>
6609 <stringProp name="script">import groovy.json.JsonSlurper;
6612 if (prev.getResponseCode() == '200') {
6613 def jsonSlurper = new JsonSlurper();
6614 res = jsonSlurper.parseText(prev.getResponseDataAsString());
6616 assert res instanceof Map;
6617 assert res.policy_types instanceof Map;
6618 assert res.policy_types.get('onap.policies.native.drools.Artifact').version == "6.0.${__threadNum}";
6623 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete Policy Type Native XACML" enabled="true">
6624 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
6625 <collectionProp name="Arguments.arguments"/>
6627 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
6628 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
6629 <stringProp name="HTTPSampler.protocol">https</stringProp>
6630 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
6631 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.native.Xacml/versions/6.0.${__threadNum}</stringProp>
6632 <stringProp name="HTTPSampler.method">DELETE</stringProp>
6633 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
6634 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
6635 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
6636 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
6637 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
6638 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
6639 <stringProp name="HTTPSampler.response_timeout"></stringProp>
6642 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
6643 <collectionProp name="Asserion.test_strings">
6644 <stringProp name="49586">200</stringProp>
6646 <stringProp name="Assertion.custom_message"></stringProp>
6647 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
6648 <boolProp name="Assertion.assume_success">false</boolProp>
6649 <intProp name="Assertion.test_type">1</intProp>
6650 </ResponseAssertion>
6652 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
6653 <stringProp name="scriptLanguage">groovy</stringProp>
6654 <stringProp name="parameters"></stringProp>
6655 <stringProp name="filename"></stringProp>
6656 <stringProp name="cacheKey">true</stringProp>
6657 <stringProp name="script">import groovy.json.JsonSlurper;
6660 if (prev.getResponseCode() == '200') {
6661 def jsonSlurper = new JsonSlurper();
6662 res = jsonSlurper.parseText(prev.getResponseDataAsString());
6664 assert res instanceof Map;
6665 assert res.policy_types instanceof Map;
6666 assert res.policy_types.get('onap.policies.native.Xacml').version == "6.0.${__threadNum}";
6671 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete Node Template" enabled="true">
6672 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
6673 <collectionProp name="Arguments.arguments"/>
6675 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
6676 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
6677 <stringProp name="HTTPSampler.protocol">https</stringProp>
6678 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
6679 <stringProp name="HTTPSampler.path">/policy/api/v1/nodetemplates/apex.metadata.pnf/versions/6.0.${__threadNum}</stringProp>
6680 <stringProp name="HTTPSampler.method">DELETE</stringProp>
6681 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
6682 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
6683 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
6684 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
6685 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
6686 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
6687 <stringProp name="HTTPSampler.response_timeout"></stringProp>
6690 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
6691 <collectionProp name="Asserion.test_strings">
6692 <stringProp name="49586">200</stringProp>
6694 <stringProp name="Assertion.custom_message"></stringProp>
6695 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
6696 <boolProp name="Assertion.assume_success">false</boolProp>
6697 <intProp name="Assertion.test_type">1</intProp>
6698 </ResponseAssertion>
6700 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
6701 <stringProp name="scriptLanguage">groovy</stringProp>
6702 <stringProp name="parameters"></stringProp>
6703 <stringProp name="filename"></stringProp>
6704 <stringProp name="cacheKey">true</stringProp>
6705 <stringProp name="script">import groovy.json.JsonSlurper;
6708 if (prev.getResponseCode() == '200') {
6709 def jsonSlurper = new JsonSlurper();
6710 res = jsonSlurper.parseText(prev.getResponseDataAsString());
6712 assert res instanceof Map;
6713 assert res.topology_template instanceof Map;
6714 assert res.topology_template.node_templates instanceof Map;
6715 assert res.topology_template.node_templates.get("apex.metadata.pnf").version == "6.0.${__threadNum}";
6720 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get Policy Metrics" enabled="true">
6721 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
6722 <collectionProp name="Arguments.arguments"/>
6724 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
6725 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
6726 <stringProp name="HTTPSampler.protocol">https</stringProp>
6727 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
6728 <stringProp name="HTTPSampler.path">/metrics</stringProp>
6729 <stringProp name="HTTPSampler.method">GET</stringProp>
6730 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
6731 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
6732 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
6733 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
6734 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
6735 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
6736 <stringProp name="HTTPSampler.response_timeout"></stringProp>
6739 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
6740 <collectionProp name="Asserion.test_strings">
6741 <stringProp name="49586">200</stringProp>
6743 <stringProp name="Assertion.custom_message"></stringProp>
6744 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
6745 <boolProp name="Assertion.assume_success">false</boolProp>
6746 <intProp name="Assertion.test_type">1</intProp>
6747 </ResponseAssertion>
6749 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
6750 <stringProp name="scriptLanguage">groovy</stringProp>
6751 <stringProp name="parameters"></stringProp>
6752 <stringProp name="filename"></stringProp>
6753 <stringProp name="cacheKey">true</stringProp>
6754 <stringProp name="script">def res = [];
6755 if (prev.getResponseCode() == '200') {
6756 res = prev.getResponseDataAsString();
6758 assert res.contains("http_server_requests_seconds_sum")
6759 assert res.contains("http_server_requests_seconds_max")
6760 assert res.contains("spring_data_repository_invocations_seconds_count")
6761 assert res.contains("spring_data_repository_invocations_seconds_sum")
6762 assert res.contains("spring_data_repository_invocations_seconds_max")
6763 assert res.contains("jvm_threads_live_threads")
6764 assert res.contains("http_server_requests_seconds_count{exception=\"None\",method=\"POST\",outcome=\"SUCCESS\",status=\"200\",uri=\"/policy/api/v1/policytypes\",}")
6765 assert res.contains("http_server_requests_seconds_count{exception=\"None\",method=\"GET\",outcome=\"SUCCESS\",status=\"200\",uri=\"/metrics\",}")
6766 assert res.contains("http_server_requests_seconds_count{exception=\"None\",method=\"GET\",outcome=\"SUCCESS\",status=\"200\",uri=\"/policy/api/v1/policytypes/{policyTypeId}/versions/{policyTypeVersion}/policies/{policyId}\",}")
6767 assert res.contains("http_server_requests_seconds_count{exception=\"None\",method=\"DELETE\",outcome=\"SUCCESS\",status=\"200\",uri=\"/policy/api/v1/nodetemplates/{name}/versions/{version}\",}")
6768 assert res.contains("http_server_requests_seconds_count{exception=\"None\",method=\"GET\",outcome=\"SUCCESS\",status=\"200\",uri=\"/policy/api/v1/healthcheck\",}")
6769 assert res.contains("http_server_requests_seconds_count{exception=\"None\",method=\"GET\",outcome=\"SUCCESS\",status=\"200\",uri=\"/policy/api/v1/policytypes/{policyTypeId}/versions/{policyTypeVersion}/policies/{policyId}/versions/{policyVersion}\",}")
6770 assert res.contains("http_server_requests_seconds_count{exception=\"None\",method=\"GET\",outcome=\"SUCCESS\",status=\"200\",uri=\"/policy/api/v1/nodetemplates/{name}/versions/{version}\",}")
6771 assert res.contains("http_server_requests_seconds_count{exception=\"None\",method=\"DELETE\",outcome=\"SUCCESS\",status=\"200\",uri=\"/policy/api/v1/policytypes/{policyTypeId}/versions/{versionId}\",}")
6772 assert res.contains("http_server_requests_seconds_count{exception=\"None\",method=\"GET\",outcome=\"SUCCESS\",status=\"200\",uri=\"/policy/api/v1/statistics\",}")
6773 assert res.contains("http_server_requests_seconds_count{exception=\"None\",method=\"DELETE\",outcome=\"SUCCESS\",status=\"200\",uri=\"/policy/api/v1/policytypes/{policyTypeId}/versions/{policyTypeVersion}/policies/{policyId}/versions/{policyVersion}\",}")
6774 assert res.contains("http_server_requests_seconds_count{exception=\"None\",method=\"GET\",outcome=\"SUCCESS\",status=\"200\",uri=\"/policy/api/v1/policytypes/{policyTypeId}\",}")
6775 assert res.contains("http_server_requests_seconds_count{exception=\"None\",method=\"GET\",outcome=\"SUCCESS\",status=\"200\",uri=\"/policy/api/v1/policytypes/{policyTypeId}/versions/{versionId}\",}")
6776 assert res.contains("http_server_requests_seconds_count{exception=\"None\",method=\"POST\",outcome=\"SUCCESS\",status=\"200\",uri=\"/policy/api/v1/nodetemplates\",}")
6777 assert res.contains("http_server_requests_seconds_count{exception=\"None\",method=\"POST\",outcome=\"SUCCESS\",status=\"200\",uri=\"/policy/api/v1/policytypes/{policyTypeId}/versions/{policyTypeVersion}/policies\",}")
6778 assert res.contains("http_server_requests_seconds_count{exception=\"None\",method=\"POST\",outcome=\"SUCCESS\",status=\"200\",uri=\"/policy/api/v1/policies\",}")
6779 assert res.contains("http_server_requests_seconds_count{exception=\"None\",method=\"GET\",outcome=\"SUCCESS\",status=\"200\",uri=\"/policy/api/v1/policytypes/{policyTypeId}/versions/{policyTypeVersion}/policies\",}")
6780 assert res.contains("http_server_requests_seconds_count{exception=\"None\",method=\"GET\",outcome=\"SUCCESS\",status=\"200\",uri=\"/policy/api/v1/policytypes/{policyTypeId}/versions/{policyTypeVersion}/policies/{policyId}/versions/latest\",}")
6781 assert res.contains("http_server_requests_seconds_count{exception=\"None\",method=\"DELETE\",outcome=\"SUCCESS\",status=\"200\",uri=\"/policy/api/v1/policies/{policyId}/versions/{policyVersion}\",}")
6785 <HeaderManager guiclass="HeaderPanel" testclass="HeaderManager" testname="HTTP Header Manager" enabled="true">
6786 <collectionProp name="HeaderManager.headers">
6787 <elementProp name="" elementType="Header">
6788 <stringProp name="Header.name"></stringProp>
6789 <stringProp name="Header.value"></stringProp>
6791 <elementProp name="" elementType="Header">
6792 <stringProp name="Header.name">Accept</stringProp>
6793 <stringProp name="Header.value">text/plain</stringProp>
6800 <PostThreadGroup guiclass="PostThreadGroupGui" testclass="PostThreadGroup" testname="tearDown Thread Group" enabled="true">
6801 <stringProp name="ThreadGroup.on_sample_error">stoptest</stringProp>
6802 <elementProp name="ThreadGroup.main_controller" elementType="LoopController" guiclass="LoopControlPanel" testclass="LoopController" testname="Loop Controller" enabled="true">
6803 <boolProp name="LoopController.continue_forever">false</boolProp>
6804 <stringProp name="LoopController.loops">1</stringProp>
6806 <stringProp name="ThreadGroup.num_threads">1</stringProp>
6807 <stringProp name="ThreadGroup.ramp_time">1</stringProp>
6808 <boolProp name="ThreadGroup.scheduler">false</boolProp>
6809 <stringProp name="ThreadGroup.duration"></stringProp>
6810 <stringProp name="ThreadGroup.delay"></stringProp>
6811 <boolProp name="ThreadGroup.same_user_on_next_iteration">true</boolProp>
6814 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get Healthcheck" enabled="true">
6815 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
6816 <collectionProp name="Arguments.arguments"/>
6818 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
6819 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
6820 <stringProp name="HTTPSampler.protocol">https</stringProp>
6821 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
6822 <stringProp name="HTTPSampler.path">/policy/api/v1/healthcheck</stringProp>
6823 <stringProp name="HTTPSampler.method">GET</stringProp>
6824 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
6825 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
6826 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
6827 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
6828 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
6829 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
6830 <stringProp name="HTTPSampler.response_timeout"></stringProp>
6833 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
6834 <collectionProp name="Asserion.test_strings">
6835 <stringProp name="49586">200</stringProp>
6837 <stringProp name="Assertion.custom_message"></stringProp>
6838 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
6839 <boolProp name="Assertion.assume_success">false</boolProp>
6840 <intProp name="Assertion.test_type">1</intProp>
6841 </ResponseAssertion>
6843 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
6844 <stringProp name="cacheKey">true</stringProp>
6845 <stringProp name="filename"></stringProp>
6846 <stringProp name="parameters"></stringProp>
6847 <stringProp name="script">import groovy.json.JsonSlurper;
6850 if (prev.getResponseCode() == '200') {
6851 def jsonSlurper = new JsonSlurper();
6852 res = jsonSlurper.parseText(prev.getResponseDataAsString());
6854 assert res instanceof Map;
6855 assert res.code == 200;
6856 assert res.name == "Policy API";
6857 assert res.healthy==true;
6858 assert res.message=="alive";
6860 <stringProp name="scriptLanguage">groovy</stringProp>
6864 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get Preloaded Policy Types" enabled="true">
6865 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
6866 <collectionProp name="Arguments.arguments"/>
6868 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
6869 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
6870 <stringProp name="HTTPSampler.protocol">https</stringProp>
6871 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
6872 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes</stringProp>
6873 <stringProp name="HTTPSampler.method">GET</stringProp>
6874 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
6875 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
6876 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
6877 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
6878 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
6879 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
6880 <stringProp name="HTTPSampler.response_timeout"></stringProp>
6883 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
6884 <collectionProp name="Asserion.test_strings">
6885 <stringProp name="49586">200</stringProp>
6887 <stringProp name="Assertion.custom_message"></stringProp>
6888 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
6889 <boolProp name="Assertion.assume_success">false</boolProp>
6890 <intProp name="Assertion.test_type">1</intProp>
6891 </ResponseAssertion>
6893 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
6894 <stringProp name="scriptLanguage">groovy</stringProp>
6895 <stringProp name="parameters"></stringProp>
6896 <stringProp name="filename"></stringProp>
6897 <stringProp name="cacheKey">true</stringProp>
6898 <stringProp name="script">import groovy.json.JsonSlurper;
6901 if (prev.getResponseCode() == '200') {
6902 def jsonSlurper = new JsonSlurper();
6903 res = jsonSlurper.parseText(prev.getResponseDataAsString());
6905 assert res instanceof Map;
6906 assert res.policy_types instanceof Map;
6907 assert res.policy_types.size() == 38;
6913 <ResultCollector guiclass="SummaryReport" testclass="ResultCollector" testname="Summary Report" enabled="true">
6914 <boolProp name="ResultCollector.error_logging">false</boolProp>
6916 <name>saveConfig</name>
6917 <value class="SampleSaveConfiguration">
6919 <latency>true</latency>
6920 <timestamp>true</timestamp>
6921 <success>true</success>
6924 <message>true</message>
6925 <threadName>true</threadName>
6926 <dataType>true</dataType>
6927 <encoding>false</encoding>
6928 <assertions>true</assertions>
6929 <subresults>true</subresults>
6930 <responseData>false</responseData>
6931 <samplerData>false</samplerData>
6933 <fieldNames>true</fieldNames>
6934 <responseHeaders>false</responseHeaders>
6935 <requestHeaders>false</requestHeaders>
6936 <responseDataOnError>false</responseDataOnError>
6937 <saveAssertionResultsFailureMessage>true</saveAssertionResultsFailureMessage>
6938 <assertionsResultsToSave>0</assertionsResultsToSave>
6940 <sentBytes>true</sentBytes>
6942 <threadCounts>true</threadCounts>
6943 <idleTime>true</idleTime>
6944 <connectTime>true</connectTime>
6947 <stringProp name="filename">/home/liam/work/WIndriver/summary.log</stringProp>
6950 <ResultCollector guiclass="ViewResultsFullVisualizer" testclass="ResultCollector" testname="View Results Tree" enabled="true">
6951 <boolProp name="ResultCollector.error_logging">false</boolProp>
6953 <name>saveConfig</name>
6954 <value class="SampleSaveConfiguration">
6956 <latency>true</latency>
6957 <timestamp>true</timestamp>
6958 <success>true</success>
6961 <message>true</message>
6962 <threadName>true</threadName>
6963 <dataType>true</dataType>
6964 <encoding>false</encoding>
6965 <assertions>true</assertions>
6966 <subresults>true</subresults>
6967 <responseData>false</responseData>
6968 <samplerData>false</samplerData>
6970 <fieldNames>true</fieldNames>
6971 <responseHeaders>false</responseHeaders>
6972 <requestHeaders>false</requestHeaders>
6973 <responseDataOnError>false</responseDataOnError>
6974 <saveAssertionResultsFailureMessage>true</saveAssertionResultsFailureMessage>
6975 <assertionsResultsToSave>0</assertionsResultsToSave>
6977 <sentBytes>true</sentBytes>
6979 <threadCounts>true</threadCounts>
6980 <idleTime>true</idleTime>
6981 <connectTime>true</connectTime>
6984 <stringProp name="filename">/Users/prakhapa/Downloads/stabilityTestResultsPolicyApi.jtl</stringProp>
6987 <ResultCollector guiclass="TableVisualizer" testclass="ResultCollector" testname="View Results in Table" enabled="true">
6988 <boolProp name="ResultCollector.error_logging">false</boolProp>
6990 <name>saveConfig</name>
6991 <value class="SampleSaveConfiguration">
6993 <latency>true</latency>
6994 <timestamp>true</timestamp>
6995 <success>true</success>
6998 <message>true</message>
6999 <threadName>true</threadName>
7000 <dataType>true</dataType>
7001 <encoding>false</encoding>
7002 <assertions>true</assertions>
7003 <subresults>true</subresults>
7004 <responseData>false</responseData>
7005 <samplerData>false</samplerData>
7007 <fieldNames>true</fieldNames>
7008 <responseHeaders>false</responseHeaders>
7009 <requestHeaders>false</requestHeaders>
7010 <responseDataOnError>false</responseDataOnError>
7011 <saveAssertionResultsFailureMessage>true</saveAssertionResultsFailureMessage>
7012 <assertionsResultsToSave>0</assertionsResultsToSave>
7014 <sentBytes>true</sentBytes>
7016 <threadCounts>true</threadCounts>
7017 <idleTime>true</idleTime>
7018 <connectTime>true</connectTime>
7021 <stringProp name="filename">/Users/prakhapa/Downloads/stabilityTestResultsPolicyApi.jtl</stringProp>