1 <?xml version="1.0" encoding="UTF-8"?>
2 <jmeterTestPlan version="1.2" properties="5.0" jmeter="5.2.1">
4 <TestPlan guiclass="TestPlanGui" testclass="TestPlan" testname="Policy API Performance" 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.12.5.193</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">30709</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}/policy/api/v1</stringProp>
30 <stringProp name="Authorization.username">healthcheck</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 Statistics" 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/statistics</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="scriptLanguage">groovy</stringProp>
98 <stringProp name="parameters"></stringProp>
99 <stringProp name="filename"></stringProp>
100 <stringProp name="cacheKey">true</stringProp>
101 <stringProp name="script">import groovy.json.JsonSlurper;
104 if (prev.getResponseCode() == '200') {
105 def jsonSlurper = new JsonSlurper();
106 res = jsonSlurper.parseText(prev.getResponseDataAsString());
108 assert res instanceof Map;
109 assert res.code == 200;
114 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get Preloaded Policy Types" enabled="true">
115 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
116 <collectionProp name="Arguments.arguments"/>
118 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
119 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
120 <stringProp name="HTTPSampler.protocol">https</stringProp>
121 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
122 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes</stringProp>
123 <stringProp name="HTTPSampler.method">GET</stringProp>
124 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
125 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
126 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
127 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
128 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
129 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
130 <stringProp name="HTTPSampler.response_timeout"></stringProp>
133 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
134 <collectionProp name="Asserion.test_strings">
135 <stringProp name="49586">200</stringProp>
137 <stringProp name="Assertion.custom_message"></stringProp>
138 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
139 <boolProp name="Assertion.assume_success">false</boolProp>
140 <intProp name="Assertion.test_type">1</intProp>
143 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
144 <stringProp name="scriptLanguage">groovy</stringProp>
145 <stringProp name="parameters"></stringProp>
146 <stringProp name="filename"></stringProp>
147 <stringProp name="cacheKey">true</stringProp>
148 <stringProp name="script">import groovy.json.JsonSlurper;
151 if (prev.getResponseCode() == '200') {
152 def jsonSlurper = new JsonSlurper();
153 res = jsonSlurper.parseText(prev.getResponseDataAsString());
155 assert res instanceof Map;
156 assert res.policy_types instanceof Map;
157 assert res.policy_types.size() == 33;
163 <ThreadGroup guiclass="ThreadGroupGui" testclass="ThreadGroup" testname="API Test Flow" enabled="true">
164 <stringProp name="ThreadGroup.on_sample_error">continue</stringProp>
165 <elementProp name="ThreadGroup.main_controller" elementType="LoopController" guiclass="LoopControlPanel" testclass="LoopController" testname="Loop Controller" enabled="true">
166 <boolProp name="LoopController.continue_forever">false</boolProp>
167 <intProp name="LoopController.loops">-1</intProp>
169 <stringProp name="ThreadGroup.num_threads">5</stringProp>
170 <stringProp name="ThreadGroup.ramp_time">5</stringProp>
171 <boolProp name="ThreadGroup.scheduler">true</boolProp>
172 <stringProp name="ThreadGroup.duration">259200</stringProp>
173 <stringProp name="ThreadGroup.delay">5</stringProp>
174 <boolProp name="ThreadGroup.same_user_on_next_iteration">true</boolProp>
177 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create Policy Type Monitoring" enabled="true">
178 <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
179 <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
180 <collectionProp name="Arguments.arguments">
181 <elementProp name="" elementType="HTTPArgument">
182 <boolProp name="HTTPArgument.always_encode">false</boolProp>
183 <stringProp name="Argument.value">{
184 "tosca_definitions_version": "tosca_simple_yaml_1_1_0",
185 "policy_types": {
186 "onap.policies.Monitoring": {
187 "derived_from": "tosca.policies.Root",
188 "version": "6.0.0",
189 "description": "a base policy type for all policies that govern monitoring provisioning"
191 "onap.policies.monitoring.cdap.tca.hi.lo.app": {
192 "derived_from": "onap.policies.Monitoring",
193 "version": "6.0.${__threadNum}",
194 "properties": {
195 "tca_policy": {
196 "type": "onap.datatypes.monitoring.tca_policy",
197 "description": "TCA Policy JSON",
198 "required": true
203 "data_types": {
204 "onap.datatypes.monitoring.metricsPerEventName": {
205 "derived_from": "tosca.datatypes.Root",
206 "properties": {
207 "controlLoopSchemaType": {
208 "type": "string",
209 "required": true,
210 "description": "Specifies Control Loop Schema Type for the event Name e.g. VNF, VM",
211 "constraints": [
213 "valid_values": [
220 "eventName": {
221 "type": "string",
222 "required": true,
223 "description": "Event name to which thresholds need to be applied"
225 "policyName": {
226 "type": "string",
227 "required": true,
228 "description": "TCA Policy Scope Name"
230 "policyScope": {
231 "type": "string",
232 "required": true,
233 "description": "TCA Policy Scope"
235 "policyVersion": {
236 "type": "string",
237 "required": true,
238 "description": "TCA Policy Scope Version"
240 "thresholds": {
241 "type": "list",
242 "required": true,
243 "description": "Thresholds associated with eventName",
244 "entry_schema": {
245 "type": "onap.datatypes.monitoring.thresholds"
250 "onap.datatypes.monitoring.tca_policy": {
251 "derived_from": "tosca.datatypes.Root",
252 "properties": {
253 "domain": {
254 "type": "string",
255 "required": true,
256 "description": "Domain name to which TCA needs to be applied",
257 "default": "measurementsForVfScaling",
258 "constraints": [
260 "equal": "measurementsForVfScaling"
264 "metricsPerEventName": {
265 "type": "list",
266 "required": true,
267 "description": "Contains eventName and threshold details that need to be applied to given eventName",
268 "entry_schema": {
269 "type": "onap.datatypes.monitoring.metricsPerEventName"
274 "onap.datatypes.monitoring.thresholds": {
275 "derived_from": "tosca.datatypes.Root",
276 "properties": {
277 "closedLoopControlName": {
278 "type": "string",
279 "required": true,
280 "description": "Closed Loop Control Name associated with the threshold"
282 "closedLoopEventStatus": {
283 "type": "string",
284 "required": true,
285 "description": "Closed Loop Event Status of the threshold",
286 "constraints": [
288 "valid_values": [
289 "ONSET",
290 "ABATED"
295 "direction": {
296 "type": "string",
297 "required": true,
298 "description": "Direction of the threshold",
299 "constraints": [
301 "valid_values": [
302 "LESS",
303 "LESS_OR_EQUAL",
304 "GREATER",
305 "GREATER_OR_EQUAL",
306 "EQUAL"
311 "fieldPath": {
312 "type": "string",
313 "required": true,
314 "description": "Json field Path as per CEF message which needs to be analyzed for TCA",
315 "constraints": [
317 "valid_values": [
318 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsDelta",
319 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedOctetsDelta",
320 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedUnicastPacketsDelta",
321 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedMulticastPacketsDelta",
322 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsDelta",
323 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedDiscardedPacketsDelta",
324 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedErrorPacketsDelta",
325 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsAccumulated",
326 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedOctetsAccumulated",
327 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedUnicastPacketsAccumulated",
328 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedMulticastPacketsAccumulated",
329 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsAccumulated",
330 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedDiscardedPacketsAccumulated",
331 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedErrorPacketsAccumulated",
332 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedTotalPacketsDelta",
333 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedOctetsDelta",
334 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedUnicastPacketsDelta",
335 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedMulticastPacketsDelta",
336 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedBroadcastPacketsDelta",
337 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedDiscardedPacketsDelta",
338 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedErrorPacketsDelta",
339 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedTotalPacketsAccumulated",
340 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedOctetsAccumulated",
341 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedUnicastPacketsAccumulated",
342 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedMulticastPacketsAccumulated",
343 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedBroadcastPacketsAccumulated",
344 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedDiscardedPacketsAccumulated",
345 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedErrorPacketsAccumulated",
346 "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuIdle",
347 "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageInterrupt",
348 "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageNice",
349 "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSoftIrq",
350 "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSteal",
351 "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSystem",
352 "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuWait",
353 "$.event.measurementsForVfScalingFields.cpuUsageArray[*].percentUsage",
354 "$.event.measurementsForVfScalingFields.meanRequestLatency",
355 "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryBuffered",
356 "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryCached",
357 "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryConfigured",
358 "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryFree",
359 "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryUsed",
360 "$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value"
365 "severity": {
366 "type": "string",
367 "required": true,
368 "description": "Threshold Event Severity",
369 "constraints": [
371 "valid_values": [
372 "CRITICAL",
373 "MAJOR",
374 "MINOR",
375 "WARNING",
376 "NORMAL"
381 "thresholdValue": {
382 "type": "integer",
383 "required": true,
384 "description": "Threshold value for the field Path inside CEF message"
386 "version": {
387 "type": "string",
388 "required": true,
389 "description": "Version number associated with the threshold"
395 <stringProp name="Argument.metadata">=</stringProp>
399 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
400 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
401 <stringProp name="HTTPSampler.protocol">https</stringProp>
402 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
403 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes</stringProp>
404 <stringProp name="HTTPSampler.method">POST</stringProp>
405 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
406 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
407 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
408 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
409 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
410 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
411 <stringProp name="HTTPSampler.response_timeout"></stringProp>
414 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
415 <collectionProp name="Asserion.test_strings">
416 <stringProp name="49586">200</stringProp>
418 <stringProp name="Assertion.custom_message"></stringProp>
419 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
420 <boolProp name="Assertion.assume_success">false</boolProp>
421 <intProp name="Assertion.test_type">1</intProp>
424 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
425 <stringProp name="scriptLanguage">groovy</stringProp>
426 <stringProp name="parameters"></stringProp>
427 <stringProp name="filename"></stringProp>
428 <stringProp name="cacheKey">true</stringProp>
429 <stringProp name="script">import groovy.json.JsonSlurper;
432 if (prev.getResponseCode() == '200') {
433 def jsonSlurper = new JsonSlurper();
434 res = jsonSlurper.parseText(prev.getResponseDataAsString());
436 assert res instanceof Map;
437 assert res.policy_types instanceof Map;
438 assert res.policy_types.size() == 2;
439 assert res.policy_types.values()[0] instanceof Map;
440 assert res.policy_types.values()[1] instanceof Map;
445 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create Policy Type Monitoring V7" enabled="true">
446 <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
447 <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
448 <collectionProp name="Arguments.arguments">
449 <elementProp name="" elementType="HTTPArgument">
450 <boolProp name="HTTPArgument.always_encode">false</boolProp>
451 <stringProp name="Argument.value">{
452 "tosca_definitions_version": "tosca_simple_yaml_1_1_0",
453 "policy_types": {
454 "onap.policies.Monitoring": {
455 "derived_from": "tosca.policies.Root",
456 "version": "1.0.0",
457 "description": "a base policy type for all policies that govern monitoring provisioning"
459 "onap.policies.monitoring.cdap.tca.hi.lo.app": {
460 "derived_from": "onap.policies.Monitoring",
461 "version": "7.0.${__threadNum}",
462 "properties": {
463 "tca_policy": {
464 "type": "onap.datatypes.monitoring.tca_policy",
465 "description": "TCA Policy JSON",
466 "required": true
471 "data_types": {
472 "onap.datatypes.monitoring.metricsPerEventName": {
473 "derived_from": "tosca.datatypes.Root",
474 "properties": {
475 "controlLoopSchemaType": {
476 "type": "string",
477 "required": true,
478 "description": "Specifies Control Loop Schema Type for the event Name e.g. VNF, VM",
479 "constraints": [
481 "valid_values": [
488 "eventName": {
489 "type": "string",
490 "required": true,
491 "description": "Event name to which thresholds need to be applied"
493 "policyName": {
494 "type": "string",
495 "required": true,
496 "description": "TCA Policy Scope Name"
498 "policyScope": {
499 "type": "string",
500 "required": true,
501 "description": "TCA Policy Scope"
503 "policyVersion": {
504 "type": "string",
505 "required": true,
506 "description": "TCA Policy Scope Version"
508 "thresholds": {
509 "type": "list",
510 "required": true,
511 "description": "Thresholds associated with eventName",
512 "entry_schema": {
513 "type": "onap.datatypes.monitoring.thresholds"
518 "onap.datatypes.monitoring.tca_policy": {
519 "derived_from": "tosca.datatypes.Root",
520 "properties": {
521 "domain": {
522 "type": "string",
523 "required": true,
524 "description": "Domain name to which TCA needs to be applied",
525 "default": "measurementsForVfScaling",
526 "constraints": [
528 "equal": "measurementsForVfScaling"
532 "metricsPerEventName": {
533 "type": "list",
534 "required": true,
535 "description": "Contains eventName and threshold details that need to be applied to given eventName",
536 "entry_schema": {
537 "type": "onap.datatypes.monitoring.metricsPerEventName"
542 "onap.datatypes.monitoring.thresholds": {
543 "derived_from": "tosca.datatypes.Root",
544 "properties": {
545 "closedLoopControlName": {
546 "type": "string",
547 "required": true,
548 "description": "Closed Loop Control Name associated with the threshold"
550 "closedLoopEventStatus": {
551 "type": "string",
552 "required": true,
553 "description": "Closed Loop Event Status of the threshold",
554 "constraints": [
556 "valid_values": [
557 "ONSET",
558 "ABATED"
563 "direction": {
564 "type": "string",
565 "required": true,
566 "description": "Direction of the threshold",
567 "constraints": [
569 "valid_values": [
570 "LESS",
571 "LESS_OR_EQUAL",
572 "GREATER",
573 "GREATER_OR_EQUAL",
574 "EQUAL"
579 "fieldPath": {
580 "type": "string",
581 "required": true,
582 "description": "Json field Path as per CEF message which needs to be analyzed for TCA",
583 "constraints": [
585 "valid_values": [
586 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsDelta",
587 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedOctetsDelta",
588 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedUnicastPacketsDelta",
589 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedMulticastPacketsDelta",
590 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsDelta",
591 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedDiscardedPacketsDelta",
592 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedErrorPacketsDelta",
593 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsAccumulated",
594 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedOctetsAccumulated",
595 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedUnicastPacketsAccumulated",
596 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedMulticastPacketsAccumulated",
597 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsAccumulated",
598 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedDiscardedPacketsAccumulated",
599 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedErrorPacketsAccumulated",
600 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedTotalPacketsDelta",
601 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedOctetsDelta",
602 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedUnicastPacketsDelta",
603 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedMulticastPacketsDelta",
604 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedBroadcastPacketsDelta",
605 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedDiscardedPacketsDelta",
606 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedErrorPacketsDelta",
607 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedTotalPacketsAccumulated",
608 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedOctetsAccumulated",
609 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedUnicastPacketsAccumulated",
610 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedMulticastPacketsAccumulated",
611 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedBroadcastPacketsAccumulated",
612 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedDiscardedPacketsAccumulated",
613 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedErrorPacketsAccumulated",
614 "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuIdle",
615 "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageInterrupt",
616 "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageNice",
617 "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSoftIrq",
618 "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSteal",
619 "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSystem",
620 "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuWait",
621 "$.event.measurementsForVfScalingFields.cpuUsageArray[*].percentUsage",
622 "$.event.measurementsForVfScalingFields.meanRequestLatency",
623 "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryBuffered",
624 "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryCached",
625 "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryConfigured",
626 "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryFree",
627 "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryUsed",
628 "$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value"
633 "severity": {
634 "type": "string",
635 "required": true,
636 "description": "Threshold Event Severity",
637 "constraints": [
639 "valid_values": [
640 "CRITICAL",
641 "MAJOR",
642 "MINOR",
643 "WARNING",
644 "NORMAL"
649 "thresholdValue": {
650 "type": "integer",
651 "required": true,
652 "description": "Threshold value for the field Path inside CEF message"
654 "version": {
655 "type": "string",
656 "required": true,
657 "description": "Version number associated with the threshold"
663 <stringProp name="Argument.metadata">=</stringProp>
667 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
668 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
669 <stringProp name="HTTPSampler.protocol">https</stringProp>
670 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
671 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes</stringProp>
672 <stringProp name="HTTPSampler.method">POST</stringProp>
673 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
674 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
675 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
676 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
677 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
678 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
679 <stringProp name="HTTPSampler.response_timeout"></stringProp>
682 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
683 <collectionProp name="Asserion.test_strings">
684 <stringProp name="49586">200</stringProp>
686 <stringProp name="Assertion.custom_message"></stringProp>
687 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
688 <boolProp name="Assertion.assume_success">false</boolProp>
689 <intProp name="Assertion.test_type">1</intProp>
692 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
693 <stringProp name="scriptLanguage">groovy</stringProp>
694 <stringProp name="parameters"></stringProp>
695 <stringProp name="filename"></stringProp>
696 <stringProp name="cacheKey">true</stringProp>
697 <stringProp name="script">import groovy.json.JsonSlurper;
700 if (prev.getResponseCode() == '200') {
701 def jsonSlurper = new JsonSlurper();
702 res = jsonSlurper.parseText(prev.getResponseDataAsString());
704 assert res instanceof Map;
705 assert res.policy_types instanceof Map;
706 assert res.policy_types.size() == 2;
707 assert res.policy_types.values()[0] instanceof Map;
708 assert res.policy_types.values()[1] instanceof Map;
713 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create Policy Type Optimization" enabled="true">
714 <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
715 <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
716 <collectionProp name="Arguments.arguments">
717 <elementProp name="" elementType="HTTPArgument">
718 <boolProp name="HTTPArgument.always_encode">false</boolProp>
719 <stringProp name="Argument.value">{
720 "tosca_definitions_version": "tosca_simple_yaml_1_1_0",
721 "policy_types": {
722 "onap.policies.optimization.resource.AffinityPolicy": {
723 "derived_from": "onap.policies.optimization.Resource",
724 "version": "6.0.${__threadNum}",
725 "properties": {
726 "applicableResources": {
727 "type": "list",
728 "required": true,
729 "entry_schema": {
730 "type": "string",
731 "constraints": [
733 "valid_values": [
734 "any",
741 "affinityProperties": {
742 "type": "policy.data.affinityProperties_properties",
743 "required": true
748 "data_types": {
749 "policy.data.affinityProperties_properties": {
750 "derived_from": "tosca.nodes.Root",
751 "properties": {
752 "qualifier": {
753 "type": "string",
754 "constraints": [
756 "valid_values": [
757 "same",
758 "different"
763 "category": {
764 "type": "string",
765 "required": true
771 <stringProp name="Argument.metadata">=</stringProp>
775 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
776 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
777 <stringProp name="HTTPSampler.protocol">https</stringProp>
778 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
779 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes</stringProp>
780 <stringProp name="HTTPSampler.method">POST</stringProp>
781 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
782 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
783 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
784 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
785 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
786 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
787 <stringProp name="HTTPSampler.response_timeout"></stringProp>
790 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
791 <collectionProp name="Asserion.test_strings">
792 <stringProp name="49586">200</stringProp>
794 <stringProp name="Assertion.custom_message"></stringProp>
795 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
796 <boolProp name="Assertion.assume_success">false</boolProp>
797 <intProp name="Assertion.test_type">1</intProp>
800 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
801 <stringProp name="scriptLanguage">groovy</stringProp>
802 <stringProp name="parameters"></stringProp>
803 <stringProp name="filename"></stringProp>
804 <stringProp name="cacheKey">true</stringProp>
805 <stringProp name="script">import groovy.json.JsonSlurper;
808 if (prev.getResponseCode() == '200') {
809 def jsonSlurper = new JsonSlurper();
810 res = jsonSlurper.parseText(prev.getResponseDataAsString());
812 assert res instanceof Map;
813 assert res.policy_types instanceof Map;
814 assert res.policy_types.size() == 1;
815 assert res.policy_types.values()[0] instanceof Map;
816 // assert res.policy_types.values()[1] instanceof Map;
821 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create Policy Type Guard" enabled="true">
822 <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
823 <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
824 <collectionProp name="Arguments.arguments">
825 <elementProp name="" elementType="HTTPArgument">
826 <boolProp name="HTTPArgument.always_encode">false</boolProp>
827 <stringProp name="Argument.value">{
828 "tosca_definitions_version": "tosca_simple_yaml_1_1_0",
829 "policy_types": {
830 "onap.policies.controlloop.guard.common.Blacklist": {
831 "derived_from": "onap.policies.controlloop.guard.Common",
832 "type_version": "1.0.0",
833 "version": "6.0.${__threadNum}",
834 "description": "Supports blacklist of entity id's from performing control loop actions on.",
835 "properties": {
836 "blacklist": {
837 "type": "list",
838 "description": "List of entity id's not allowed to have control loop operations on.",
839 "required": true,
840 "entry_schema": {
841 "type": "string"
848 <stringProp name="Argument.metadata">=</stringProp>
852 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
853 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
854 <stringProp name="HTTPSampler.protocol">https</stringProp>
855 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
856 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes</stringProp>
857 <stringProp name="HTTPSampler.method">POST</stringProp>
858 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
859 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
860 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
861 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
862 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
863 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
864 <stringProp name="HTTPSampler.response_timeout"></stringProp>
867 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
868 <collectionProp name="Asserion.test_strings">
869 <stringProp name="49586">200</stringProp>
871 <stringProp name="Assertion.custom_message"></stringProp>
872 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
873 <boolProp name="Assertion.assume_success">false</boolProp>
874 <intProp name="Assertion.test_type">1</intProp>
877 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
878 <stringProp name="scriptLanguage">groovy</stringProp>
879 <stringProp name="parameters"></stringProp>
880 <stringProp name="filename"></stringProp>
881 <stringProp name="cacheKey">true</stringProp>
882 <stringProp name="script">import groovy.json.JsonSlurper;
885 if (prev.getResponseCode() == '200') {
886 def jsonSlurper = new JsonSlurper();
887 res = jsonSlurper.parseText(prev.getResponseDataAsString());
889 assert res instanceof Map;
890 assert res.policy_types instanceof Map;
891 assert res.policy_types.size() == 1;
892 assert res.policy_types.values()[0] instanceof Map;
897 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create Policy Type Native APEX" enabled="true">
898 <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
899 <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
900 <collectionProp name="Arguments.arguments">
901 <elementProp name="" elementType="HTTPArgument">
902 <boolProp name="HTTPArgument.always_encode">false</boolProp>
903 <stringProp name="Argument.value">{
904 "tosca_definitions_version": "tosca_simple_yaml_1_1_0",
905 "policy_types": {
906 "onap.policies.Native": {
907 "derived_from": "tosca.policies.Root",
908 "description": "a base policy type for all native PDP policies",
909 "version": "1.0.0"
911 "onap.policies.native.Apex": {
912 "derived_from": "onap.policies.Native",
913 "description": "a policy type for native apex policies",
914 "version": "6.0.${__threadNum}",
915 "properties": {
916 "engine_service": {
917 "type": "onap.datatypes.native.apex.EngineService",
918 "description": "APEX Engine Service Parameters"
920 "inputs": {
921 "type": "map",
922 "description": "Inputs for handling events coming into the APEX engine",
923 "entry_schema": {
924 "type": "onap.datatypes.native.apex.EventHandler"
927 "outputs": {
928 "type": "map",
929 "description": "Outputs for handling events going out of the APEX engine",
930 "entry_schema": {
931 "type": "onap.datatypes.native.apex.EventHandler"
934 "environment": {
935 "type": "list",
936 "description": "Envioronmental parameters for the APEX engine",
937 "entry_schema": {
938 "type": "onap.datatypes.native.apex.Environment"
944 "data_types": {
945 "onap.datatypes.native.apex.EngineService": {
946 "derived_from": "tosca.datatypes.Root",
947 "properties": {
948 "name": {
949 "type": "string",
950 "description": "Specifies the engine name",
951 "required": false,
952 "default": "ApexEngineService"
954 "version": {
955 "type": "string",
956 "description": "Specifies the engine version in double dotted format",
957 "required": false,
958 "default": "1.0.0"
960 "id": {
961 "type": "integer",
962 "description": "Specifies the engine id",
963 "required": true
965 "instance_count": {
966 "type": "integer",
967 "description": "Specifies the number of engine threads that should be run",
968 "required": true
970 "deployment_port": {
971 "type": "integer",
972 "description": "Specifies the port to connect to for engine administration",
973 "required": false,
974 "default": 1
976 "policy_model_file_name": {
977 "type": "string",
978 "description": "The name of the file from which to read the APEX policy model",
979 "required": false
981 "policy_type_impl": {
982 "type": "string",
983 "description": "The policy type implementation from which to read the APEX policy model",
984 "required": false
986 "periodic_event_period": {
987 "type": "string",
988 "description": "The time interval in milliseconds for the periodic scanning event, 0 means don't scan",
989 "required": false
991 "engine": {
992 "type": "onap.datatypes.native.apex.engineservice.Engine",
993 "description": "The parameters for all engines in the APEX engine service",
994 "required": true
998 "onap.datatypes.native.apex.EventHandler": {
999 "derived_from": "tosca.datatypes.Root",
1000 "properties": {
1001 "name": {
1002 "type": "string",
1003 "description": "Specifies the event handler name, if not specified this is set to the key name",
1004 "required": false
1006 "carrier_technology": {
1007 "type": "onap.datatypes.native.apex.CarrierTechnology",
1008 "description": "Specifies the carrier technology of the event handler (such as REST/Web Socket/Kafka)",
1009 "required": true
1011 "event_protocol": {
1012 "type": "onap.datatypes.native.apex.EventProtocol",
1013 "description": "Specifies the event protocol of events for the event handler (such as Yaml/JSON/XML/POJO)",
1014 "required": true
1016 "event_name": {
1017 "type": "string",
1018 "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",
1019 "required": false
1021 "event_name_filter": {
1022 "type": "string",
1023 "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",
1024 "required": false
1026 "synchronous_mode": {
1027 "type": "boolean",
1028 "description": "Specifies the event handler is syncronous (receive event and send response)",
1029 "required": false,
1030 "default": false
1032 "synchronous_peer": {
1033 "type": "string",
1034 "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",
1035 "required": false
1037 "synchronous_timeout": {
1038 "type": "integer",
1039 "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",
1040 "required": false
1042 "requestor_mode": {
1043 "type": "boolean",
1044 "description": "Specifies the event handler is in requestor mode (send event and wait for response mode)",
1045 "required": false,
1046 "default": false
1048 "requestor_peer": {
1049 "type": "string",
1050 "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",
1051 "required": false
1053 "requestor_timeout": {
1054 "type": "integer",
1055 "description": "The timeout in milliseconds for wait for responses to requests, this parameter is mandatory if the event handler is in requestor mode",
1056 "required": false
1060 "onap.datatypes.native.apex.CarrierTechnology": {
1061 "derived_from": "tosca.datatypes.Root",
1062 "properties": {
1063 "label": {
1064 "type": "string",
1065 "description": "The label (name) of the carrier technology (such as REST, Kafka, WebSocket)",
1066 "required": true
1068 "plugin_parameter_class_name": {
1069 "type": "string",
1070 "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",
1071 "required": false
1075 "onap.datatypes.native.apex.EventProtocol": {
1076 "derived_from": "tosca.datatypes.Root",
1077 "properties": {
1078 "label": {
1079 "type": "string",
1080 "description": "The label (name) of the event protocol (such as Yaml, JSON, XML, or POJO)",
1081 "required": true
1083 "event_protocol_plugin_class": {
1084 "type": "string",
1085 "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",
1086 "required": false
1090 "onap.datatypes.native.apex.Environment": {
1091 "derived_from": "tosca.datatypes.Root",
1092 "properties": {
1093 "name": {
1094 "type": "string",
1095 "description": "The name of the environment variable",
1096 "required": true
1098 "value": {
1099 "type": "string",
1100 "description": "The value of the environment variable",
1101 "required": true
1105 "onap.datatypes.native.apex.engineservice.Engine": {
1106 "derived_from": "tosca.datatypes.Root",
1107 "properties": {
1108 "context": {
1109 "type": "onap.datatypes.native.apex.engineservice.engine.Context",
1110 "description": "The properties for handling context in APEX engines, defaults to using Java maps for context",
1111 "required": false
1113 "executors": {
1114 "type": "map",
1115 "description": "The plugins for policy executors used in engines such as javascript, MVEL, Jython",
1116 "required": true,
1117 "entry_schema": {
1118 "description": "The plugin class path for this policy executor",
1119 "type": "string"
1124 "onap.datatypes.native.apex.engineservice.engine.Context": {
1125 "derived_from": "tosca.datatypes.Root",
1126 "properties": {
1127 "distributor": {
1128 "type": "onap.datatypes.native.apex.Plugin",
1129 "description": "The plugin to be used for distributing context between APEX PDPs at runtime",
1130 "required": false
1132 "schemas": {
1133 "type": "map",
1134 "description": "The plugins for context schemas available in APEX PDPs such as Java and Avro",
1135 "required": false,
1136 "entry_schema": {
1137 "type": "onap.datatypes.native.apex.Plugin"
1140 "locking": {
1141 "type": "onap.datatypes.native.apex.Plugin",
1142 "description": "The plugin to be used for locking context in and between APEX PDPs at runtime",
1143 "required": false
1145 "persistence": {
1146 "type": "onap.datatypes.native.apex.Plugin",
1147 "description": "The plugin to be used for persisting context for APEX PDPs at runtime",
1148 "required": false
1152 "onap.datatypes.native.apex.Plugin": {
1153 "derived_from": "tosca.datatypes.Root",
1154 "properties": {
1155 "name": {
1156 "type": "string",
1157 "description": "The name of the executor such as Javascript, Jython or MVEL",
1158 "required": true
1160 "plugin_class_name": {
1161 "type": "string",
1162 "description": "The class path of the plugin class for this executor"
1168 <stringProp name="Argument.metadata">=</stringProp>
1172 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
1173 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
1174 <stringProp name="HTTPSampler.protocol">https</stringProp>
1175 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
1176 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes</stringProp>
1177 <stringProp name="HTTPSampler.method">POST</stringProp>
1178 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
1179 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
1180 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
1181 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
1182 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
1183 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
1184 <stringProp name="HTTPSampler.response_timeout"></stringProp>
1187 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
1188 <collectionProp name="Asserion.test_strings">
1189 <stringProp name="49586">200</stringProp>
1191 <stringProp name="Assertion.custom_message"></stringProp>
1192 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
1193 <boolProp name="Assertion.assume_success">false</boolProp>
1194 <intProp name="Assertion.test_type">1</intProp>
1195 </ResponseAssertion>
1197 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
1198 <stringProp name="scriptLanguage">groovy</stringProp>
1199 <stringProp name="parameters"></stringProp>
1200 <stringProp name="filename"></stringProp>
1201 <stringProp name="cacheKey">true</stringProp>
1202 <stringProp name="script">import groovy.json.JsonSlurper;
1205 if (prev.getResponseCode() == '200') {
1206 def jsonSlurper = new JsonSlurper();
1207 res = jsonSlurper.parseText(prev.getResponseDataAsString());
1209 assert res instanceof Map;
1210 assert res.policy_types instanceof Map;
1211 assert res.policy_types.size() == 2;
1212 assert res.policy_types.values()[0] instanceof Map;
1213 assert res.policy_types.values()[1] instanceof Map;
1218 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create Policy Type Native Drools" enabled="true">
1219 <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
1220 <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
1221 <collectionProp name="Arguments.arguments">
1222 <elementProp name="" elementType="HTTPArgument">
1223 <boolProp name="HTTPArgument.always_encode">false</boolProp>
1224 <stringProp name="Argument.value">{
1225 "tosca_definitions_version": "tosca_simple_yaml_1_1_0",
1226 "policy_types": {
1227 "onap.policies.Native": {
1228 "derived_from": "tosca.policies.Root",
1229 "description": "a base policy type for all native PDP policies",
1230 "version": "1.0.0"
1232 "onap.policies.native.Drools": {
1233 "derived_from": "onap.policies.Native",
1234 "description": "a base policy type for all native PDP policies",
1235 "version": "1.0.0"
1237 "onap.policies.native.drools.Controller": {
1238 "derived_from": "onap.policies.native.Drools",
1239 "description": "a policy type for a drools controller configuration",
1240 "version": "6.0.${__threadNum}",
1241 "properties": {
1242 "controllerName": {
1243 "type": "string",
1244 "required": true,
1245 "description": "the drools controller name"
1247 "sourceTopics": {
1248 "type": "list",
1249 "required": false,
1250 "description": "source topics and applicable events",
1251 "entry_schema": {
1252 "type": "onap.datatypes.dmaap.topic"
1255 "sinkTopics": {
1256 "type": "list",
1257 "required": false,
1258 "description": "sink topics and applicable events",
1259 "entry_schema": {
1260 "type": "onap.datatypes.dmaap.topic"
1263 "customConfig": {
1264 "type": "map",
1265 "required": false,
1266 "description": "any use case specific configurations relevant to the drools controller",
1267 "entry_schema": {
1268 "type": "string"
1273 "onap.policies.native.drools.Artifact": {
1274 "derived_from": "onap.policies.native.Drools",
1275 "description": "a policy type for native drools artifact policies",
1276 "version": "6.0.${__threadNum}",
1277 "properties": {
1278 "rulesArtifact": {
1279 "type": "onap.datatypes.native.rules_artifact",
1280 "required": true,
1281 "description": "the GAV information of the maven artifact"
1283 "controller": {
1284 "type": "onap.datatypes.drools.controller.relation",
1285 "required": true,
1286 "description": "the drools controller to which the current native policy is assigned"
1291 "data_types": {
1292 "onap.datatypes.dmaap.topic": {
1293 "derived_from": "tosca.datatypes.Root",
1294 "properties": {
1295 "topicName": {
1296 "type": "string",
1297 "required": true,
1298 "description": "the dmaap topic name"
1300 "events": {
1301 "type": "list",
1302 "required": true,
1303 "description": "events used by this topic",
1304 "entry_schema": {
1305 "type": "onap.datatypes.dmaap.events"
1310 "onap.datatypes.dmaap.events": {
1311 "derived_from": "tosca.datatypes.Root",
1312 "properties": {
1313 "eventClass": {
1314 "type": "string",
1315 "required": true,
1316 "description": "the event canonical class for serialization"
1318 "eventFilter": {
1319 "type": "string",
1320 "required": false,
1321 "description": "the JSONPath based condition to filter out the events to serialize"
1323 "customSerialization": {
1324 "type": "onap.datatypes.dmaap.custom_serialization",
1325 "required": false,
1326 "description": "overrides the default serialization/deserialization mechanisms with custom ones"
1330 "onap.datatypes.dmaap.custom_serialization": {
1331 "derived_from": "tosca.datatypes.Root",
1332 "properties": {
1333 "customSerializerClass": {
1334 "type": "string",
1335 "required": true,
1336 "description": "the class that contains the JSON parser serializer/deserializer."
1338 "jsonParser": {
1339 "type": "string",
1340 "required": true,
1341 "description": "static field in customSerialized class with the json parser (currently only gson supported)"
1345 "onap.datatypes.native.rules_artifact": {
1346 "derived_from": "tosca.datatypes.Root",
1347 "properties": {
1348 "groupId": {
1349 "type": "string",
1350 "required": true,
1351 "description": "the groupId of the maven artifact"
1353 "artifactId": {
1354 "type": "string",
1355 "required": true,
1356 "description": "the artifactId of the maven artifact"
1358 "version": {
1359 "type": "string",
1360 "required": true,
1361 "description": "the version of the maven artifact"
1365 "onap.datatypes.drools.controller.relation": {
1366 "derived_from": "tosca.datatypes.Root",
1367 "properties": {
1368 "controllerName": {
1369 "type": "string",
1370 "required": true,
1371 "description": "the name of drools controller policy"
1377 <stringProp name="Argument.metadata">=</stringProp>
1381 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
1382 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
1383 <stringProp name="HTTPSampler.protocol">https</stringProp>
1384 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
1385 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes</stringProp>
1386 <stringProp name="HTTPSampler.method">POST</stringProp>
1387 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
1388 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
1389 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
1390 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
1391 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
1392 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
1393 <stringProp name="HTTPSampler.response_timeout"></stringProp>
1396 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
1397 <collectionProp name="Asserion.test_strings">
1398 <stringProp name="49586">200</stringProp>
1400 <stringProp name="Assertion.custom_message"></stringProp>
1401 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
1402 <boolProp name="Assertion.assume_success">false</boolProp>
1403 <intProp name="Assertion.test_type">1</intProp>
1404 </ResponseAssertion>
1406 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
1407 <stringProp name="scriptLanguage">groovy</stringProp>
1408 <stringProp name="parameters"></stringProp>
1409 <stringProp name="filename"></stringProp>
1410 <stringProp name="cacheKey">true</stringProp>
1411 <stringProp name="script">import groovy.json.JsonSlurper;
1414 if (prev.getResponseCode() == '200') {
1415 def jsonSlurper = new JsonSlurper();
1416 res = jsonSlurper.parseText(prev.getResponseDataAsString());
1418 assert res instanceof Map;
1419 assert res.policy_types instanceof Map;
1420 assert res.policy_types.size() == 4;
1421 assert res.policy_types.values()[0] instanceof Map;
1422 assert res.policy_types.values()[1] instanceof Map;
1423 assert res.policy_types.values()[2] instanceof Map;
1424 assert res.policy_types.values()[3] instanceof Map;
1429 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create Policy Type Native XACML" enabled="true">
1430 <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
1431 <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
1432 <collectionProp name="Arguments.arguments">
1433 <elementProp name="" elementType="HTTPArgument">
1434 <boolProp name="HTTPArgument.always_encode">false</boolProp>
1435 <stringProp name="Argument.value">{
1436 "tosca_definitions_version": "tosca_simple_yaml_1_1_0",
1437 "policy_types": {
1438 "onap.policies.Native": {
1439 "derived_from": "tosca.policies.Root",
1440 "description": "a base policy type for all native PDP policies",
1441 "version": "1.0.0"
1443 "onap.policies.native.Xacml": {
1444 "derived_from": "onap.policies.Native",
1445 "description": "a policy type for native xacml policies",
1446 "version": "6.0.${__threadNum}",
1447 "properties": {
1448 "policy": {
1449 "type": "string",
1450 "required": true,
1451 "description": "The XML XACML 3.0 PolicySet or Policy",
1452 "metadata": {
1453 "encoding": "Base64"
1460 <stringProp name="Argument.metadata">=</stringProp>
1464 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
1465 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
1466 <stringProp name="HTTPSampler.protocol">https</stringProp>
1467 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
1468 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes</stringProp>
1469 <stringProp name="HTTPSampler.method">POST</stringProp>
1470 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
1471 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
1472 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
1473 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
1474 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
1475 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
1476 <stringProp name="HTTPSampler.response_timeout"></stringProp>
1479 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
1480 <collectionProp name="Asserion.test_strings">
1481 <stringProp name="49586">200</stringProp>
1483 <stringProp name="Assertion.custom_message"></stringProp>
1484 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
1485 <boolProp name="Assertion.assume_success">false</boolProp>
1486 <intProp name="Assertion.test_type">1</intProp>
1487 </ResponseAssertion>
1489 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
1490 <stringProp name="scriptLanguage">groovy</stringProp>
1491 <stringProp name="parameters"></stringProp>
1492 <stringProp name="filename"></stringProp>
1493 <stringProp name="cacheKey">true</stringProp>
1494 <stringProp name="script">import groovy.json.JsonSlurper;
1497 if (prev.getResponseCode() == '200') {
1498 def jsonSlurper = new JsonSlurper();
1499 res = jsonSlurper.parseText(prev.getResponseDataAsString());
1501 assert res instanceof Map;
1502 assert res.policy_types instanceof Map;
1503 assert res.policy_types.size() == 2;
1504 assert res.policy_types.values()[0] instanceof Map;
1505 assert res.policy_types.values()[1] instanceof Map;
1510 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get All Policy Types" enabled="true">
1511 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
1512 <collectionProp name="Arguments.arguments"/>
1514 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
1515 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
1516 <stringProp name="HTTPSampler.protocol">https</stringProp>
1517 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
1518 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes</stringProp>
1519 <stringProp name="HTTPSampler.method">GET</stringProp>
1520 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
1521 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
1522 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
1523 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
1524 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
1525 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
1526 <stringProp name="HTTPSampler.response_timeout"></stringProp>
1529 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
1530 <collectionProp name="Asserion.test_strings">
1531 <stringProp name="49586">200</stringProp>
1533 <stringProp name="Assertion.custom_message"></stringProp>
1534 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
1535 <boolProp name="Assertion.assume_success">false</boolProp>
1536 <intProp name="Assertion.test_type">1</intProp>
1537 </ResponseAssertion>
1539 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
1540 <stringProp name="scriptLanguage">groovy</stringProp>
1541 <stringProp name="parameters"></stringProp>
1542 <stringProp name="filename"></stringProp>
1543 <stringProp name="cacheKey">true</stringProp>
1544 <stringProp name="script">import groovy.json.JsonSlurper;
1547 if (prev.getResponseCode() == '200') {
1548 def jsonSlurper = new JsonSlurper();
1549 res = jsonSlurper.parseText(prev.getResponseDataAsString());
1551 assert res instanceof Map;
1552 assert res.policy_types instanceof Map;
1553 assert res.policy_types.size() == 33;
1556 for (i=0; i<n; i++) {
1557 assert res.policy_types.values()[i] instanceof Map;
1563 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get All Versions of TCA Policy Type" enabled="true">
1564 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
1565 <collectionProp name="Arguments.arguments"/>
1567 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
1568 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
1569 <stringProp name="HTTPSampler.protocol">https</stringProp>
1570 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
1571 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app</stringProp>
1572 <stringProp name="HTTPSampler.method">GET</stringProp>
1573 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
1574 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
1575 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
1576 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
1577 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
1578 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
1579 <stringProp name="HTTPSampler.response_timeout"></stringProp>
1580 <stringProp name="TestPlan.comments">This is not working in Frankfurt and hence disabled.</stringProp>
1583 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
1584 <collectionProp name="Asserion.test_strings">
1585 <stringProp name="49586">200</stringProp>
1587 <stringProp name="Assertion.custom_message"></stringProp>
1588 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
1589 <boolProp name="Assertion.assume_success">false</boolProp>
1590 <intProp name="Assertion.test_type">1</intProp>
1591 </ResponseAssertion>
1593 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
1594 <stringProp name="scriptLanguage">groovy</stringProp>
1595 <stringProp name="parameters"></stringProp>
1596 <stringProp name="filename"></stringProp>
1597 <stringProp name="cacheKey">true</stringProp>
1598 <stringProp name="script">import groovy.json.JsonSlurper;
1601 if (prev.getResponseCode() == '200') {
1602 def jsonSlurper = new JsonSlurper();
1603 res = jsonSlurper.parseText(prev.getResponseDataAsString());
1605 assert res instanceof Map;
1606 assert res.policy_types instanceof Map;
1607 assert res.policy_types.size() > 0 && res.policy_types.size() < 10;
1609 for (i=0; i<res.policy_types.size(); i++) {
1610 assert res.policy_types.values()[i] instanceof Map;
1616 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get Policy Type Monitoring" enabled="true">
1617 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
1618 <collectionProp name="Arguments.arguments"/>
1620 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
1621 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
1622 <stringProp name="HTTPSampler.protocol">https</stringProp>
1623 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
1624 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/6.0.${__threadNum}</stringProp>
1625 <stringProp name="HTTPSampler.method">GET</stringProp>
1626 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
1627 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
1628 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
1629 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
1630 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
1631 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
1632 <stringProp name="HTTPSampler.response_timeout"></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() == 2;
1661 assert res.policy_types.get('onap.policies.monitoring.cdap.tca.hi.lo.app') instanceof Map;
1662 assert res.policy_types.get('onap.policies.monitoring.cdap.tca.hi.lo.app').version == "6.0.${__threadNum}";
1667 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get Policy Type Optimization" enabled="true">
1668 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
1669 <collectionProp name="Arguments.arguments"/>
1671 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
1672 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
1673 <stringProp name="HTTPSampler.protocol">https</stringProp>
1674 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
1675 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.optimization.resource.AffinityPolicy/versions/6.0.${__threadNum}</stringProp>
1676 <stringProp name="HTTPSampler.method">GET</stringProp>
1677 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
1678 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
1679 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
1680 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
1681 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
1682 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
1683 <stringProp name="HTTPSampler.response_timeout"></stringProp>
1686 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
1687 <collectionProp name="Asserion.test_strings">
1688 <stringProp name="49586">200</stringProp>
1690 <stringProp name="Assertion.custom_message"></stringProp>
1691 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
1692 <boolProp name="Assertion.assume_success">false</boolProp>
1693 <intProp name="Assertion.test_type">1</intProp>
1694 </ResponseAssertion>
1696 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
1697 <stringProp name="scriptLanguage">groovy</stringProp>
1698 <stringProp name="parameters"></stringProp>
1699 <stringProp name="filename"></stringProp>
1700 <stringProp name="cacheKey">true</stringProp>
1701 <stringProp name="script">import groovy.json.JsonSlurper;
1704 if (prev.getResponseCode() == '200') {
1705 def jsonSlurper = new JsonSlurper();
1706 res = jsonSlurper.parseText(prev.getResponseDataAsString());
1708 assert res instanceof Map;
1709 assert res.policy_types instanceof Map;
1710 assert res.policy_types.size() == 3;
1712 assert res.policy_types.get('onap.policies.optimization.resource.AffinityPolicy') instanceof Map;
1713 assert res.policy_types.get('onap.policies.optimization.resource.AffinityPolicy').version == "6.0.${__threadNum}";
1718 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get Policy Type Guard" enabled="true">
1719 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
1720 <collectionProp name="Arguments.arguments"/>
1722 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
1723 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
1724 <stringProp name="HTTPSampler.protocol">https</stringProp>
1725 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
1726 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.controlloop.guard.common.Blacklist/versions/6.0.${__threadNum}</stringProp>
1727 <stringProp name="HTTPSampler.method">GET</stringProp>
1728 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
1729 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
1730 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
1731 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
1732 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
1733 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
1734 <stringProp name="HTTPSampler.response_timeout"></stringProp>
1737 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
1738 <collectionProp name="Asserion.test_strings">
1739 <stringProp name="49586">200</stringProp>
1741 <stringProp name="Assertion.custom_message"></stringProp>
1742 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
1743 <boolProp name="Assertion.assume_success">false</boolProp>
1744 <intProp name="Assertion.test_type">1</intProp>
1745 </ResponseAssertion>
1747 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
1748 <stringProp name="scriptLanguage">groovy</stringProp>
1749 <stringProp name="parameters"></stringProp>
1750 <stringProp name="filename"></stringProp>
1751 <stringProp name="cacheKey">true</stringProp>
1752 <stringProp name="script">import groovy.json.JsonSlurper;
1755 if (prev.getResponseCode() == '200') {
1756 def jsonSlurper = new JsonSlurper();
1757 res = jsonSlurper.parseText(prev.getResponseDataAsString());
1759 assert res instanceof Map;
1760 assert res.policy_types instanceof Map;
1761 assert res.policy_types.size() == 2;
1763 assert res.policy_types.get('onap.policies.controlloop.guard.common.Blacklist') instanceof Map;
1764 assert res.policy_types.get('onap.policies.controlloop.guard.common.Blacklist').version == "6.0.${__threadNum}";
1769 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get Policy Type Native APEX" enabled="true">
1770 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
1771 <collectionProp name="Arguments.arguments"/>
1773 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
1774 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
1775 <stringProp name="HTTPSampler.protocol">https</stringProp>
1776 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
1777 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.native.Apex/versions/6.0.${__threadNum}</stringProp>
1778 <stringProp name="HTTPSampler.method">GET</stringProp>
1779 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
1780 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
1781 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
1782 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
1783 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
1784 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
1785 <stringProp name="HTTPSampler.response_timeout"></stringProp>
1788 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
1789 <collectionProp name="Asserion.test_strings">
1790 <stringProp name="49586">200</stringProp>
1792 <stringProp name="Assertion.custom_message"></stringProp>
1793 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
1794 <boolProp name="Assertion.assume_success">false</boolProp>
1795 <intProp name="Assertion.test_type">1</intProp>
1796 </ResponseAssertion>
1798 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
1799 <stringProp name="scriptLanguage">groovy</stringProp>
1800 <stringProp name="parameters"></stringProp>
1801 <stringProp name="filename"></stringProp>
1802 <stringProp name="cacheKey">true</stringProp>
1803 <stringProp name="script">import groovy.json.JsonSlurper;
1806 if (prev.getResponseCode() == '200') {
1807 def jsonSlurper = new JsonSlurper();
1808 res = jsonSlurper.parseText(prev.getResponseDataAsString());
1810 assert res instanceof Map;
1811 assert res.policy_types instanceof Map;
1812 assert res.policy_types.size() == 2;
1814 assert res.policy_types.get('onap.policies.native.Apex') instanceof Map;
1815 assert res.policy_types.get('onap.policies.native.Apex').version == "6.0.${__threadNum}";
1820 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get Policy Type Native Drools" enabled="true">
1821 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
1822 <collectionProp name="Arguments.arguments"/>
1824 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
1825 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
1826 <stringProp name="HTTPSampler.protocol">https</stringProp>
1827 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
1828 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.native.drools.Controller/versions/6.0.${__threadNum}</stringProp>
1829 <stringProp name="HTTPSampler.method">GET</stringProp>
1830 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
1831 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
1832 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
1833 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
1834 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
1835 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
1836 <stringProp name="HTTPSampler.response_timeout"></stringProp>
1839 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
1840 <collectionProp name="Asserion.test_strings">
1841 <stringProp name="49586">200</stringProp>
1843 <stringProp name="Assertion.custom_message"></stringProp>
1844 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
1845 <boolProp name="Assertion.assume_success">false</boolProp>
1846 <intProp name="Assertion.test_type">1</intProp>
1847 </ResponseAssertion>
1849 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
1850 <stringProp name="scriptLanguage">groovy</stringProp>
1851 <stringProp name="parameters"></stringProp>
1852 <stringProp name="filename"></stringProp>
1853 <stringProp name="cacheKey">true</stringProp>
1854 <stringProp name="script">import groovy.json.JsonSlurper;
1857 if (prev.getResponseCode() == '200') {
1858 def jsonSlurper = new JsonSlurper();
1859 res = jsonSlurper.parseText(prev.getResponseDataAsString());
1861 assert res instanceof Map;
1862 assert res.policy_types instanceof Map;
1863 assert res.policy_types.size() == 3;
1865 assert res.policy_types.get('onap.policies.native.drools.Controller') instanceof Map;
1866 assert res.policy_types.get('onap.policies.native.drools.Controller').version == "6.0.${__threadNum}";
1871 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get Policy Type Native XACML" enabled="true">
1872 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
1873 <collectionProp name="Arguments.arguments"/>
1875 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
1876 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
1877 <stringProp name="HTTPSampler.protocol">https</stringProp>
1878 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
1879 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.native.Xacml/versions/6.0.${__threadNum}</stringProp>
1880 <stringProp name="HTTPSampler.method">GET</stringProp>
1881 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
1882 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
1883 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
1884 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
1885 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
1886 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
1887 <stringProp name="HTTPSampler.response_timeout"></stringProp>
1890 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
1891 <collectionProp name="Asserion.test_strings">
1892 <stringProp name="49586">200</stringProp>
1894 <stringProp name="Assertion.custom_message"></stringProp>
1895 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
1896 <boolProp name="Assertion.assume_success">false</boolProp>
1897 <intProp name="Assertion.test_type">1</intProp>
1898 </ResponseAssertion>
1900 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
1901 <stringProp name="scriptLanguage">groovy</stringProp>
1902 <stringProp name="parameters"></stringProp>
1903 <stringProp name="filename"></stringProp>
1904 <stringProp name="cacheKey">true</stringProp>
1905 <stringProp name="script">import groovy.json.JsonSlurper;
1908 if (prev.getResponseCode() == '200') {
1909 def jsonSlurper = new JsonSlurper();
1910 res = jsonSlurper.parseText(prev.getResponseDataAsString());
1912 assert res instanceof Map;
1913 assert res.policy_types instanceof Map;
1914 assert res.policy_types.size() == 2;
1916 assert res.policy_types.get('onap.policies.native.Xacml') instanceof Map;
1917 assert res.policy_types.get('onap.policies.native.Xacml').version == "6.0.${__threadNum}";
1922 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get Latest Monitoring Policy Type" enabled="true">
1923 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
1924 <collectionProp name="Arguments.arguments"/>
1926 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
1927 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
1928 <stringProp name="HTTPSampler.protocol">https</stringProp>
1929 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
1930 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/latest</stringProp>
1931 <stringProp name="HTTPSampler.method">GET</stringProp>
1932 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
1933 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
1934 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
1935 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
1936 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
1937 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
1938 <stringProp name="HTTPSampler.response_timeout"></stringProp>
1941 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
1942 <collectionProp name="Asserion.test_strings">
1943 <stringProp name="49586">200</stringProp>
1945 <stringProp name="Assertion.custom_message"></stringProp>
1946 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
1947 <boolProp name="Assertion.assume_success">false</boolProp>
1948 <intProp name="Assertion.test_type">1</intProp>
1949 </ResponseAssertion>
1951 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
1952 <stringProp name="scriptLanguage">groovy</stringProp>
1953 <stringProp name="parameters"></stringProp>
1954 <stringProp name="filename"></stringProp>
1955 <stringProp name="cacheKey">true</stringProp>
1956 <stringProp name="script">import groovy.json.JsonSlurper;
1959 if (prev.getResponseCode() == '200') {
1960 def jsonSlurper = new JsonSlurper();
1961 res = jsonSlurper.parseText(prev.getResponseDataAsString());
1963 assert res instanceof Map;
1964 assert res.policy_types instanceof Map;
1965 assert res.policy_types.size() > 0 && res.policy_types.size() < 10;
1967 assert res.policy_types.get('onap.policies.monitoring.cdap.tca.hi.lo.app') instanceof Map;
1968 assert res.policy_types.get('onap.policies.monitoring.cdap.tca.hi.lo.app').version ==~ /7.0.\d+/;
1973 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create Policy Monitoring" enabled="true">
1974 <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
1975 <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
1976 <collectionProp name="Arguments.arguments">
1977 <elementProp name="" elementType="HTTPArgument">
1978 <boolProp name="HTTPArgument.always_encode">false</boolProp>
1979 <stringProp name="Argument.value">{
1980 "tosca_definitions_version": "tosca_simple_yaml_1_1_0",
1981 "topology_template": {
1982 "policies": [
1984 "onap.restart.tca": {
1985 "type": "onap.policies.monitoring.cdap.tca.hi.lo.app",
1986 "type_version": "6.0.${__threadNum}",
1987 "version": "6.0.${__threadNum}",
1988 "metadata": {
1989 "policy-id": "onap.restart.tca"
1991 "properties": {
1992 "tca_policy": {
1993 "domain": "measurementsForVfScaling",
1994 "metricsPerEventName": [
1996 "eventName": "Measurement_vGMUX",
1997 "controlLoopSchemaType": "VNF",
1998 "policyScope": "DCAE",
1999 "policyName": "DCAE.Config_tca-hi-lo",
2000 "policyVersion": "v0.0.1",
2001 "thresholds": [
2003 "closedLoopControlName": "ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e",
2004 "version": "1.0.2",
2005 "fieldPath": "$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value",
2006 "thresholdValue": 0,
2007 "direction": "EQUAL",
2008 "severity": "MAJOR",
2009 "closedLoopEventStatus": "ABATED"
2012 "closedLoopControlName": "ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e",
2013 "version": "1.0.2",
2014 "fieldPath": "$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value",
2015 "thresholdValue": 0,
2016 "direction": "GREATER",
2017 "severity": "CRITICAL",
2018 "closedLoopEventStatus": "ONSET"
2030 <stringProp name="Argument.metadata">=</stringProp>
2034 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
2035 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
2036 <stringProp name="HTTPSampler.protocol">https</stringProp>
2037 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
2038 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/1.0.0/policies</stringProp>
2039 <stringProp name="HTTPSampler.method">POST</stringProp>
2040 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
2041 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
2042 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
2043 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
2044 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
2045 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
2046 <stringProp name="HTTPSampler.response_timeout"></stringProp>
2049 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
2050 <collectionProp name="Asserion.test_strings">
2051 <stringProp name="49586">200</stringProp>
2053 <stringProp name="Assertion.custom_message"></stringProp>
2054 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
2055 <boolProp name="Assertion.assume_success">false</boolProp>
2056 <intProp name="Assertion.test_type">1</intProp>
2057 </ResponseAssertion>
2059 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
2060 <stringProp name="scriptLanguage">groovy</stringProp>
2061 <stringProp name="parameters"></stringProp>
2062 <stringProp name="filename"></stringProp>
2063 <stringProp name="cacheKey">true</stringProp>
2064 <stringProp name="script">import groovy.json.JsonSlurper;
2067 if (prev.getResponseCode() == '200') {
2068 def jsonSlurper = new JsonSlurper();
2069 res = jsonSlurper.parseText(prev.getResponseDataAsString());
2071 assert res instanceof Map;
2072 assert res.topology_template.policies instanceof List;
2073 assert res.topology_template.policies.size == 1;
2074 assert res.topology_template.policies[0] instanceof Map;
2079 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create Policy Monitoring V2" enabled="true">
2080 <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
2081 <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
2082 <collectionProp name="Arguments.arguments">
2083 <elementProp name="" elementType="HTTPArgument">
2084 <boolProp name="HTTPArgument.always_encode">false</boolProp>
2085 <stringProp name="Argument.value">{
2086 "tosca_definitions_version": "tosca_simple_yaml_1_1_0",
2087 "topology_template": {
2088 "policies": [
2090 "onap.restart.tca": {
2091 "type": "onap.policies.monitoring.cdap.tca.hi.lo.app",
2092 "type_version": "7.0.${__threadNum}",
2093 "version": "7.0.${__threadNum}",
2094 "metadata": {
2095 "policy-id": "onap.restart.tca"
2097 "properties": {
2098 "tca_policy": {
2099 "domain": "measurementsForVfScaling",
2100 "metricsPerEventName": [
2102 "eventName": "Measurement_vGMUX",
2103 "controlLoopSchemaType": "VNF",
2104 "policyScope": "DCAE",
2105 "policyName": "DCAE.Config_tca-hi-lo",
2106 "policyVersion": "v0.0.1",
2107 "thresholds": [
2109 "closedLoopControlName": "ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e",
2110 "version": "1.0.2",
2111 "fieldPath": "$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value",
2112 "thresholdValue": 0,
2113 "direction": "EQUAL",
2114 "severity": "MAJOR",
2115 "closedLoopEventStatus": "ABATED"
2118 "closedLoopControlName": "ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e",
2119 "version": "1.0.2",
2120 "fieldPath": "$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value",
2121 "thresholdValue": 0,
2122 "direction": "GREATER",
2123 "severity": "CRITICAL",
2124 "closedLoopEventStatus": "ONSET"
2136 <stringProp name="Argument.metadata">=</stringProp>
2140 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
2141 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
2142 <stringProp name="HTTPSampler.protocol">https</stringProp>
2143 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
2144 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/1.0.0/policies</stringProp>
2145 <stringProp name="HTTPSampler.method">POST</stringProp>
2146 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
2147 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
2148 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
2149 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
2150 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
2151 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
2152 <stringProp name="HTTPSampler.response_timeout"></stringProp>
2155 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
2156 <collectionProp name="Asserion.test_strings">
2157 <stringProp name="49586">200</stringProp>
2159 <stringProp name="Assertion.custom_message"></stringProp>
2160 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
2161 <boolProp name="Assertion.assume_success">false</boolProp>
2162 <intProp name="Assertion.test_type">1</intProp>
2163 </ResponseAssertion>
2165 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
2166 <stringProp name="scriptLanguage">groovy</stringProp>
2167 <stringProp name="parameters"></stringProp>
2168 <stringProp name="filename"></stringProp>
2169 <stringProp name="cacheKey">true</stringProp>
2170 <stringProp name="script">import groovy.json.JsonSlurper;
2173 if (prev.getResponseCode() == '200') {
2174 def jsonSlurper = new JsonSlurper();
2175 res = jsonSlurper.parseText(prev.getResponseDataAsString());
2177 assert res instanceof Map;
2178 assert res.topology_template.policies instanceof List;
2179 assert res.topology_template.policies.size == 1;
2180 assert res.topology_template.policies[0] instanceof Map;
2185 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create Policy Optimization" enabled="true">
2186 <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
2187 <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
2188 <collectionProp name="Arguments.arguments">
2189 <elementProp name="" elementType="HTTPArgument">
2190 <boolProp name="HTTPArgument.always_encode">false</boolProp>
2191 <stringProp name="Argument.value">{
2192 "tosca_definitions_version": "tosca_simple_yaml_1_1_0",
2193 "topology_template": {
2194 "policies": [
2196 "OSDF_CASABLANCA.Affinity_Default": {
2197 "type": "onap.policies.optimization.resource.AffinityPolicy",
2198 "version": "6.0.${__threadNum}",
2199 "type_version": "6.0.${__threadNum}",
2200 "metadata": {
2201 "policy-id": "OSDF_CASABLANCA.Affinity_Default",
2202 "policy-version": 1
2204 "properties": {
2205 "scope": [],
2206 "services": [],
2207 "resources": [],
2208 "geography": [],
2209 "identity": "affinity_vCPE",
2210 "applicableResources": "any",
2211 "affinityProperties": {
2212 "qualifier": "same",
2213 "category": "complex"
2221 <stringProp name="Argument.metadata">=</stringProp>
2225 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
2226 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
2227 <stringProp name="HTTPSampler.protocol">https</stringProp>
2228 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
2229 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.optimization.resource.AffinityPolicy/versions/2.0.0/policies</stringProp>
2230 <stringProp name="HTTPSampler.method">POST</stringProp>
2231 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
2232 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
2233 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
2234 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
2235 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
2236 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
2237 <stringProp name="HTTPSampler.response_timeout"></stringProp>
2240 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
2241 <collectionProp name="Asserion.test_strings">
2242 <stringProp name="49586">200</stringProp>
2244 <stringProp name="Assertion.custom_message"></stringProp>
2245 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
2246 <boolProp name="Assertion.assume_success">false</boolProp>
2247 <intProp name="Assertion.test_type">1</intProp>
2248 </ResponseAssertion>
2250 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
2251 <stringProp name="scriptLanguage">groovy</stringProp>
2252 <stringProp name="parameters"></stringProp>
2253 <stringProp name="filename"></stringProp>
2254 <stringProp name="cacheKey">true</stringProp>
2255 <stringProp name="script">import groovy.json.JsonSlurper;
2258 if (prev.getResponseCode() == '200') {
2259 def jsonSlurper = new JsonSlurper();
2260 res = jsonSlurper.parseText(prev.getResponseDataAsString());
2262 assert res instanceof Map;
2263 assert res.topology_template.policies instanceof List;
2264 assert res.topology_template.policies.size == 1;
2265 assert res.topology_template.policies[0] instanceof Map;
2270 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create Policy Guard" enabled="true">
2271 <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
2272 <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
2273 <collectionProp name="Arguments.arguments">
2274 <elementProp name="" elementType="HTTPArgument">
2275 <boolProp name="HTTPArgument.always_encode">false</boolProp>
2276 <stringProp name="Argument.value">{
2277 "tosca_definitions_version": "tosca_simple_yaml_1_1_0",
2278 "topology_template": {
2279 "policies": [
2281 "guard.blacklist.scaleout": {
2282 "type": "onap.policies.controlloop.guard.common.Blacklist",
2283 "type_version": "6.0.${__threadNum}",
2284 "version": "6.0.${__threadNum}",
2285 "metadata": {
2286 "policy-id": "guard.blacklist.scaleout"
2288 "properties": {
2289 "actor": "SO",
2290 "operation": "VF Module Create",
2291 "id": "ControlLoop-vDNS-6f37f56d-a87d-4b85-b6a9-cc953cf779b3",
2292 "blacklist": [
2293 "the-vfmodule-where-root-is-true",
2294 "another-vfmodule-where-root-is-true"
2302 <stringProp name="Argument.metadata">=</stringProp>
2306 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
2307 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
2308 <stringProp name="HTTPSampler.protocol">https</stringProp>
2309 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
2310 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.controlloop.guard.common.Blacklist/versions/1.0.0/policies</stringProp>
2311 <stringProp name="HTTPSampler.method">POST</stringProp>
2312 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
2313 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
2314 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
2315 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
2316 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
2317 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
2318 <stringProp name="HTTPSampler.response_timeout"></stringProp>
2321 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
2322 <collectionProp name="Asserion.test_strings">
2323 <stringProp name="49586">200</stringProp>
2325 <stringProp name="Assertion.custom_message"></stringProp>
2326 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
2327 <boolProp name="Assertion.assume_success">false</boolProp>
2328 <intProp name="Assertion.test_type">1</intProp>
2329 </ResponseAssertion>
2331 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
2332 <stringProp name="scriptLanguage">groovy</stringProp>
2333 <stringProp name="parameters"></stringProp>
2334 <stringProp name="filename"></stringProp>
2335 <stringProp name="cacheKey">true</stringProp>
2336 <stringProp name="script">import groovy.json.JsonSlurper;
2339 if (prev.getResponseCode() == '200') {
2340 def jsonSlurper = new JsonSlurper();
2341 res = jsonSlurper.parseText(prev.getResponseDataAsString());
2343 assert res instanceof Map;
2344 assert res.topology_template.policies instanceof List;
2345 assert res.topology_template.policies.size == 1;
2346 assert res.topology_template.policies[0] instanceof Map;
2351 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create Policy Native APEX" enabled="true">
2352 <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
2353 <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
2354 <collectionProp name="Arguments.arguments">
2355 <elementProp name="" elementType="HTTPArgument">
2356 <boolProp name="HTTPArgument.always_encode">false</boolProp>
2357 <stringProp name="Argument.value">{
2358 "tosca_definitions_version": "tosca_simple_yaml_1_1_0",
2359 "topology_template": {
2360 "policies": [
2362 "operational.apex.vCPE": {
2363 "type": "onap.policies.native.Apex",
2364 "type_version": "6.0.${__threadNum}",
2365 "derived_from": "tosca.policies.Root",
2366 "name": "operational.apex.vCPE",
2367 "version": "6.0.${__threadNum}",
2368 "properties": {
2369 "engineServiceParameters": {
2370 "name": "MyApexEngine",
2371 "version": "0.0.1",
2372 "id": 45,
2373 "instanceCount": 4,
2374 "deploymentPort": 12561,
2375 "policy_type_impl": {
2377 "engineParameters": {
2378 "executorParameters": {
2379 "JAVASCRIPT": {
2380 "parameterClassName": "org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters"
2383 "contextParameters": {
2384 "parameterClassName": "org.onap.policy.apex.context.parameters.ContextParameters",
2385 "schemaParameters": {
2386 "Avro": {
2387 "parameterClassName": "org.onap.policy.apex.plugins.context.schema.avro.AvroSchemaHelperParameters"
2389 "Java": {
2390 "parameterClassName": "org.onap.policy.apex.context.impl.schema.java.JavaSchemaHelperParameters",
2391 "jsonAdapters": {
2392 "Instant": {
2393 "adaptedClass": "java.time.Instant",
2394 "adaptorClass": "org.onap.policy.controlloop.util.Serialization$GsonInstantAdapter"
2400 "taskParameters": [
2402 "key": "ParameterKey1",
2403 "value": "ParameterValue1"
2406 "taskId": "AAILookupTask:0.0.1",
2407 "key": "SomeKeyForThisTask",
2408 "value": "Value"
2413 "eventInputParameters": {
2414 "GuardRequestorConsumer": {
2415 "carrierTechnologyParameters": {
2416 "carrierTechnology": "RESTREQUESTOR",
2417 "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restrequestor.RestRequestorCarrierTechnologyParameters",
2418 "parameters": {
2419 "url": "http://111.222.333.444:5555/pdp/api/getDecision",
2420 "httpMethod": "POST",
2421 "restRequestTimeout": 2000,
2422 "httpHeader": "Authorization:aaaaaaaaa== ClientAuth:bbbbbbbbb="
2425 "eventProtocolParameters": {
2426 "eventProtocol": "JSON"
2428 "eventName": "GuardResponseEvent",
2429 "eventNameFilter": "GuardResponseEvent",
2430 "requestorMode": true,
2431 "requestorPeer": "GuardRequestorProducer",
2432 "requestorTimeout": 500
2434 "DCAEConsumer": {
2435 "carrierTechnologyParameters": {
2436 "carrierTechnology": "RESTCLIENT",
2437 "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restclient.RestClientCarrierTechnologyParameters",
2438 "parameters": {
2439 "url": "http://message-router:3904/events/unauthenticated.DCAE_CL_OUTPUT/APEX/1?timeout=60000"
2442 "eventProtocolParameters": {
2443 "eventProtocol": "JSON",
2444 "parameters": {
2445 "nameAlias": "closedLoopControlName",
2446 "versionAlias": "version",
2447 "sourceAlias": "from",
2448 "pojoField": "VirtualControlLoopEvent"
2451 "eventName": "ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e"
2453 "APPCConsumer": {
2454 "carrierTechnologyParameters": {
2455 "carrierTechnology": "RESTCLIENT",
2456 "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restclient.RestClientCarrierTechnologyParameters",
2457 "parameters": {
2458 "url": "http://message-router:3904/events/APPC-LCM-WRITE/APEX/1?timeout=60000"
2461 "eventProtocolParameters": {
2462 "eventProtocol": "JSON",
2463 "parameters": {
2464 "versionAlias": "version",
2465 "pojoField": "APPCLCMResponseEvent"
2468 "eventName": "APPCRestartVNFResponseEvent",
2469 "eventNameFilter": "APPCRestartVNFResponseEvent"
2472 "eventOutputParameters": {
2473 "logProducer": {
2474 "carrierTechnologyParameters": {
2475 "carrierTechnology": "FILE",
2476 "parameters": {
2477 "fileName": "/tmp/VCPEEventsOut.json"
2480 "eventProtocolParameters": {
2481 "eventProtocol": "JSON"
2484 "GuardRequestorProducer": {
2485 "carrierTechnologyParameters": {
2486 "carrierTechnology": "RESTREQUESTOR",
2487 "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restrequestor.RestRequestorCarrierTechnologyParameters"
2489 "eventProtocolParameters": {
2490 "eventProtocol": "JSON"
2492 "eventNameFilter": "GuardRequestEvent",
2493 "requestorMode": true,
2494 "requestorPeer": "GuardRequestorConsumer",
2495 "requestorTimeout": 500
2497 "APPCProducer": {
2498 "carrierTechnologyParameters": {
2499 "carrierTechnology": "RESTCLIENT",
2500 "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restclient.RestClientCarrierTechnologyParameters",
2501 "parameters": {
2502 "url": "http://message-router:3904/events/APPC-LCM-READ"
2505 "eventProtocolParameters": {
2506 "eventProtocol": "JSON",
2507 "parameters": {
2508 "versionAlias": "version",
2509 "sourceAlias": "from",
2510 "pojoField": "APPCLCMRequestEvent"
2513 "eventNameFilter": "APPCRestartVNFRequestEvent"
2515 "PolicyLogProducer": {
2516 "carrierTechnologyParameters": {
2517 "carrierTechnology": "RESTCLIENT",
2518 "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restclient.RestClientCarrierTechnologyParameters",
2519 "parameters": {
2520 "url": "http://message-router:3904/events/POLICY-CL-MGT"
2523 "eventProtocolParameters": {
2524 "eventProtocol": "JSON",
2525 "parameters": {
2526 "versionAlias": "version",
2527 "sourceAlias": "from",
2528 "pojoField": "VirtualControlLoopNotification"
2531 "eventNameFilter": "ControlLoopLogEvent"
2540 <stringProp name="Argument.metadata">=</stringProp>
2544 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
2545 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
2546 <stringProp name="HTTPSampler.protocol">https</stringProp>
2547 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
2548 <stringProp name="HTTPSampler.path">/policy/api/v1/policies</stringProp>
2549 <stringProp name="HTTPSampler.method">POST</stringProp>
2550 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
2551 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
2552 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
2553 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
2554 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
2555 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
2556 <stringProp name="HTTPSampler.response_timeout"></stringProp>
2559 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
2560 <collectionProp name="Asserion.test_strings">
2561 <stringProp name="49586">200</stringProp>
2563 <stringProp name="Assertion.custom_message"></stringProp>
2564 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
2565 <boolProp name="Assertion.assume_success">false</boolProp>
2566 <intProp name="Assertion.test_type">1</intProp>
2567 </ResponseAssertion>
2569 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
2570 <stringProp name="scriptLanguage">groovy</stringProp>
2571 <stringProp name="parameters"></stringProp>
2572 <stringProp name="filename"></stringProp>
2573 <stringProp name="cacheKey">true</stringProp>
2574 <stringProp name="script">import groovy.json.JsonSlurper;
2577 if (prev.getResponseCode() == '200') {
2578 def jsonSlurper = new JsonSlurper();
2579 res = jsonSlurper.parseText(prev.getResponseDataAsString());
2581 assert res instanceof Map;
2582 assert res.topology_template.policies instanceof List;
2583 assert res.topology_template.policies.size == 1;
2584 assert res.topology_template.policies[0] instanceof Map;
2589 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create Policy Native Drools" enabled="true">
2590 <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
2591 <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
2592 <collectionProp name="Arguments.arguments">
2593 <elementProp name="" elementType="HTTPArgument">
2594 <boolProp name="HTTPArgument.always_encode">false</boolProp>
2595 <stringProp name="Argument.value">{
2596 "tosca_definitions_version": "tosca_simple_yaml_1_1_0",
2597 "topology_template": {
2598 "policies": [
2600 "usecases.artifacts": {
2601 "type": "onap.policies.native.drools.Artifact",
2602 "type_version": "6.0.${__threadNum}",
2603 "name": "usecases.artifacts",
2604 "version": "6.0.${__threadNum}",
2605 "metadata": {
2606 "policy-id": "usecases.artifacts"
2608 "properties": {
2609 "rulesArtifact": {
2610 "groupId": "org.onap.policy.drools-applications.controlloop.common",
2611 "artifactId": "controller-usecases",
2612 "version": "1.6.1"
2614 "controller": {
2615 "name": "frankfurt"
2623 <stringProp name="Argument.metadata">=</stringProp>
2627 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
2628 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
2629 <stringProp name="HTTPSampler.protocol">https</stringProp>
2630 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
2631 <stringProp name="HTTPSampler.path">/policy/api/v1/policies</stringProp>
2632 <stringProp name="HTTPSampler.method">POST</stringProp>
2633 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
2634 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
2635 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
2636 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
2637 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
2638 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
2639 <stringProp name="HTTPSampler.response_timeout"></stringProp>
2642 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
2643 <collectionProp name="Asserion.test_strings">
2644 <stringProp name="49586">200</stringProp>
2646 <stringProp name="Assertion.custom_message"></stringProp>
2647 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
2648 <boolProp name="Assertion.assume_success">false</boolProp>
2649 <intProp name="Assertion.test_type">1</intProp>
2650 </ResponseAssertion>
2652 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
2653 <stringProp name="scriptLanguage">groovy</stringProp>
2654 <stringProp name="parameters"></stringProp>
2655 <stringProp name="filename"></stringProp>
2656 <stringProp name="cacheKey">true</stringProp>
2657 <stringProp name="script">import groovy.json.JsonSlurper;
2660 if (prev.getResponseCode() == '200') {
2661 def jsonSlurper = new JsonSlurper();
2662 res = jsonSlurper.parseText(prev.getResponseDataAsString());
2664 assert res instanceof Map;
2665 assert res.topology_template.policies instanceof List;
2666 assert res.topology_template.policies.size == 1;
2667 assert res.topology_template.policies[0] instanceof Map;
2672 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create Policy Native XACML" enabled="true">
2673 <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
2674 <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
2675 <collectionProp name="Arguments.arguments">
2676 <elementProp name="" elementType="HTTPArgument">
2677 <boolProp name="HTTPArgument.always_encode">false</boolProp>
2678 <stringProp name="Argument.value">{
2679 "tosca_definitions_version": "tosca_simple_yaml_1_1_0",
2680 "topology_template": {
2681 "policies": [
2683 "onap.policies.native.xacml.NativeXacmlPolicy": {
2684 "type": "onap.policies.native.Xacml",
2685 "type_version": "6.0.${__threadNum}",
2686 "version": "6.0.${__threadNum}",
2687 "metadata": {
2688 "policy-id": "onap.policies.native.xacml.NativeXacmlPolicy"
2690 "properties": {
2691 "tca_policy": {
2692 "domain": "measurementsForVfScaling",
2693 "metricsPerEventName": [
2695 "eventName": "Measurement_vGMUX",
2696 "controlLoopSchemaType": "VNF",
2697 "policyScope": "DCAE",
2698 "policyName": "DCAE.Config_tca-hi-lo",
2699 "policyVersion": "v0.0.1",
2700 "thresholds": [
2702 "closedLoopControlName": "ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e",
2703 "version": "1.0.2",
2704 "fieldPath": "$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value",
2705 "thresholdValue": 0,
2706 "direction": "EQUAL",
2707 "severity": "MAJOR",
2708 "closedLoopEventStatus": "ABATED"
2711 "closedLoopControlName": "ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e",
2712 "version": "1.0.2",
2713 "fieldPath": "$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value",
2714 "thresholdValue": 0,
2715 "direction": "GREATER",
2716 "severity": "CRITICAL",
2717 "closedLoopEventStatus": "ONSET"
2729 <stringProp name="Argument.metadata">=</stringProp>
2733 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
2734 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
2735 <stringProp name="HTTPSampler.protocol">https</stringProp>
2736 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
2737 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/2.0.0/policies</stringProp>
2738 <stringProp name="HTTPSampler.method">POST</stringProp>
2739 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
2740 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
2741 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
2742 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
2743 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
2744 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
2745 <stringProp name="HTTPSampler.response_timeout"></stringProp>
2748 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
2749 <collectionProp name="Asserion.test_strings">
2750 <stringProp name="49586">200</stringProp>
2752 <stringProp name="Assertion.custom_message"></stringProp>
2753 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
2754 <boolProp name="Assertion.assume_success">false</boolProp>
2755 <intProp name="Assertion.test_type">1</intProp>
2756 </ResponseAssertion>
2758 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
2759 <stringProp name="scriptLanguage">groovy</stringProp>
2760 <stringProp name="parameters"></stringProp>
2761 <stringProp name="filename"></stringProp>
2762 <stringProp name="cacheKey">true</stringProp>
2763 <stringProp name="script">import groovy.json.JsonSlurper;
2766 if (prev.getResponseCode() == '200') {
2767 def jsonSlurper = new JsonSlurper();
2768 res = jsonSlurper.parseText(prev.getResponseDataAsString());
2770 assert res instanceof Map;
2771 assert res.topology_template.policies instanceof List;
2772 assert res.topology_template.policies.size == 1;
2773 assert res.topology_template.policies[0] instanceof Map;
2778 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get All TCA Policies" enabled="true">
2779 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
2780 <collectionProp name="Arguments.arguments"/>
2782 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
2783 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
2784 <stringProp name="HTTPSampler.protocol">https</stringProp>
2785 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
2786 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/6.0.${__threadNum}/policies</stringProp>
2787 <stringProp name="HTTPSampler.method">GET</stringProp>
2788 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
2789 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
2790 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
2791 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
2792 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
2793 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
2794 <stringProp name="HTTPSampler.response_timeout"></stringProp>
2797 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
2798 <collectionProp name="Asserion.test_strings">
2799 <stringProp name="49586">200</stringProp>
2801 <stringProp name="Assertion.custom_message"></stringProp>
2802 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
2803 <boolProp name="Assertion.assume_success">false</boolProp>
2804 <intProp name="Assertion.test_type">1</intProp>
2805 </ResponseAssertion>
2807 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
2808 <stringProp name="scriptLanguage">groovy</stringProp>
2809 <stringProp name="parameters"></stringProp>
2810 <stringProp name="filename"></stringProp>
2811 <stringProp name="cacheKey">true</stringProp>
2812 <stringProp name="script">import groovy.json.JsonSlurper;
2815 if (prev.getResponseCode() == '200') {
2816 def jsonSlurper = new JsonSlurper();
2817 res = jsonSlurper.parseText(prev.getResponseDataAsString());
2819 assert res instanceof Map;
2820 assert res.topology_template.policies instanceof List;
2821 assert res.topology_template.policies.size > 0 && res.topology_template.policies.size < 10;
2824 for (i=0; i<res.topology_template.policies.size; i++) {
2825 assert res.topology_template.policies[i] instanceof Map;
2831 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get All Versions of Monitoring Policy" enabled="true">
2832 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
2833 <collectionProp name="Arguments.arguments"/>
2835 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
2836 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
2837 <stringProp name="HTTPSampler.protocol">https</stringProp>
2838 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
2839 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/6.0.${__threadNum}/policies</stringProp>
2840 <stringProp name="HTTPSampler.method">GET</stringProp>
2841 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
2842 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
2843 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
2844 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
2845 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
2846 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
2847 <stringProp name="HTTPSampler.response_timeout"></stringProp>
2850 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
2851 <collectionProp name="Asserion.test_strings">
2852 <stringProp name="49586">200</stringProp>
2854 <stringProp name="Assertion.custom_message"></stringProp>
2855 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
2856 <boolProp name="Assertion.assume_success">false</boolProp>
2857 <intProp name="Assertion.test_type">1</intProp>
2858 </ResponseAssertion>
2860 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
2861 <stringProp name="scriptLanguage">groovy</stringProp>
2862 <stringProp name="parameters"></stringProp>
2863 <stringProp name="filename"></stringProp>
2864 <stringProp name="cacheKey">true</stringProp>
2865 <stringProp name="script">import groovy.json.JsonSlurper;
2868 if (prev.getResponseCode() == '200') {
2869 def jsonSlurper = new JsonSlurper();
2870 res = jsonSlurper.parseText(prev.getResponseDataAsString());
2872 assert res instanceof Map;
2873 assert res.topology_template.policies instanceof List;
2874 assert res.topology_template.policies.size > 0 && res.topology_template.policies.size < 6;
2876 for (i=0; i<res.topology_template.policies.size; i++) {
2877 assert res.topology_template.policies[i] instanceof Map;
2878 assert res.topology_template.policies[i].get('onap.restart.tca').version == "6.0.${__threadNum}";
2884 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get Policy Monitoring" enabled="true">
2885 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
2886 <collectionProp name="Arguments.arguments"/>
2888 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
2889 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
2890 <stringProp name="HTTPSampler.protocol">https</stringProp>
2891 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
2892 <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>
2893 <stringProp name="HTTPSampler.method">GET</stringProp>
2894 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
2895 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
2896 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
2897 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
2898 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
2899 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
2900 <stringProp name="HTTPSampler.response_timeout"></stringProp>
2903 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
2904 <collectionProp name="Asserion.test_strings">
2905 <stringProp name="49586">200</stringProp>
2907 <stringProp name="Assertion.custom_message"></stringProp>
2908 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
2909 <boolProp name="Assertion.assume_success">false</boolProp>
2910 <intProp name="Assertion.test_type">1</intProp>
2911 </ResponseAssertion>
2913 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
2914 <stringProp name="scriptLanguage">groovy</stringProp>
2915 <stringProp name="parameters"></stringProp>
2916 <stringProp name="filename"></stringProp>
2917 <stringProp name="cacheKey">true</stringProp>
2918 <stringProp name="script">import groovy.json.JsonSlurper;
2921 if (prev.getResponseCode() == '200') {
2922 def jsonSlurper = new JsonSlurper();
2923 res = jsonSlurper.parseText(prev.getResponseDataAsString());
2925 assert res instanceof Map;
2926 assert res.topology_template.policies instanceof List;
2927 assert res.topology_template.policies.size == 1;
2929 assert res.topology_template.policies[0] instanceof Map;
2930 assert res.topology_template.policies [0].get('onap.restart.tca').version == "6.0.${__threadNum}";
2935 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get Policy Optimization" enabled="true">
2936 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
2937 <collectionProp name="Arguments.arguments"/>
2939 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
2940 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
2941 <stringProp name="HTTPSampler.protocol">https</stringProp>
2942 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
2943 <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>
2944 <stringProp name="HTTPSampler.method">GET</stringProp>
2945 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
2946 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
2947 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
2948 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
2949 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
2950 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
2951 <stringProp name="HTTPSampler.response_timeout"></stringProp>
2954 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
2955 <collectionProp name="Asserion.test_strings">
2956 <stringProp name="49586">200</stringProp>
2958 <stringProp name="Assertion.custom_message"></stringProp>
2959 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
2960 <boolProp name="Assertion.assume_success">false</boolProp>
2961 <intProp name="Assertion.test_type">1</intProp>
2962 </ResponseAssertion>
2964 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
2965 <stringProp name="scriptLanguage">groovy</stringProp>
2966 <stringProp name="parameters"></stringProp>
2967 <stringProp name="filename"></stringProp>
2968 <stringProp name="cacheKey">true</stringProp>
2969 <stringProp name="script">import groovy.json.JsonSlurper;
2972 if (prev.getResponseCode() == '200') {
2973 def jsonSlurper = new JsonSlurper();
2974 res = jsonSlurper.parseText(prev.getResponseDataAsString());
2976 assert res instanceof Map;
2977 assert res.topology_template.policies instanceof List;
2978 assert res.topology_template.policies.size == 1;
2980 assert res.topology_template.policies[0] instanceof Map;
2981 assert res.topology_template.policies [0].get('OSDF_CASABLANCA.Affinity_Default').version == "6.0.${__threadNum}";
2986 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get Policy Guard" enabled="true">
2987 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
2988 <collectionProp name="Arguments.arguments"/>
2990 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
2991 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
2992 <stringProp name="HTTPSampler.protocol">https</stringProp>
2993 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
2994 <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>
2995 <stringProp name="HTTPSampler.method">GET</stringProp>
2996 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
2997 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
2998 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
2999 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
3000 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
3001 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
3002 <stringProp name="HTTPSampler.response_timeout"></stringProp>
3005 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
3006 <collectionProp name="Asserion.test_strings">
3007 <stringProp name="49586">200</stringProp>
3009 <stringProp name="Assertion.custom_message"></stringProp>
3010 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
3011 <boolProp name="Assertion.assume_success">false</boolProp>
3012 <intProp name="Assertion.test_type">1</intProp>
3013 </ResponseAssertion>
3015 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
3016 <stringProp name="scriptLanguage">groovy</stringProp>
3017 <stringProp name="parameters"></stringProp>
3018 <stringProp name="filename"></stringProp>
3019 <stringProp name="cacheKey">true</stringProp>
3020 <stringProp name="script">import groovy.json.JsonSlurper;
3023 if (prev.getResponseCode() == '200') {
3024 def jsonSlurper = new JsonSlurper();
3025 res = jsonSlurper.parseText(prev.getResponseDataAsString());
3027 assert res instanceof Map;
3028 assert res.topology_template.policies instanceof List;
3029 assert res.topology_template.policies.size == 1;
3031 assert res.topology_template.policies[0] instanceof Map;
3032 assert res.topology_template.policies [0].get('guard.blacklist.scaleout').version == "6.0.${__threadNum}";
3037 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get Policy Native APEX" enabled="true">
3038 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
3039 <collectionProp name="Arguments.arguments"/>
3041 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
3042 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
3043 <stringProp name="HTTPSampler.protocol">https</stringProp>
3044 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
3045 <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>
3046 <stringProp name="HTTPSampler.method">GET</stringProp>
3047 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
3048 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
3049 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
3050 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
3051 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
3052 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
3053 <stringProp name="HTTPSampler.response_timeout"></stringProp>
3056 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
3057 <collectionProp name="Asserion.test_strings">
3058 <stringProp name="49586">200</stringProp>
3060 <stringProp name="Assertion.custom_message"></stringProp>
3061 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
3062 <boolProp name="Assertion.assume_success">false</boolProp>
3063 <intProp name="Assertion.test_type">1</intProp>
3064 </ResponseAssertion>
3066 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
3067 <stringProp name="scriptLanguage">groovy</stringProp>
3068 <stringProp name="parameters"></stringProp>
3069 <stringProp name="filename"></stringProp>
3070 <stringProp name="cacheKey">true</stringProp>
3071 <stringProp name="script">import groovy.json.JsonSlurper;
3074 if (prev.getResponseCode() == '200') {
3075 def jsonSlurper = new JsonSlurper();
3076 res = jsonSlurper.parseText(prev.getResponseDataAsString());
3078 assert res instanceof Map;
3079 assert res.topology_template.policies instanceof List;
3080 assert res.topology_template.policies.size == 1;
3082 assert res.topology_template.policies[0] instanceof Map;
3083 assert res.topology_template.policies [0].get('operational.apex.vCPE').version == "6.0.${__threadNum}";
3088 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get Policy Native Drools" enabled="true">
3089 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
3090 <collectionProp name="Arguments.arguments"/>
3092 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
3093 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
3094 <stringProp name="HTTPSampler.protocol">https</stringProp>
3095 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
3096 <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>
3097 <stringProp name="HTTPSampler.method">GET</stringProp>
3098 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
3099 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
3100 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
3101 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
3102 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
3103 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
3104 <stringProp name="HTTPSampler.response_timeout"></stringProp>
3107 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
3108 <collectionProp name="Asserion.test_strings">
3109 <stringProp name="49586">200</stringProp>
3111 <stringProp name="Assertion.custom_message"></stringProp>
3112 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
3113 <boolProp name="Assertion.assume_success">false</boolProp>
3114 <intProp name="Assertion.test_type">1</intProp>
3115 </ResponseAssertion>
3117 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
3118 <stringProp name="scriptLanguage">groovy</stringProp>
3119 <stringProp name="parameters"></stringProp>
3120 <stringProp name="filename"></stringProp>
3121 <stringProp name="cacheKey">true</stringProp>
3122 <stringProp name="script">import groovy.json.JsonSlurper;
3125 if (prev.getResponseCode() == '200') {
3126 def jsonSlurper = new JsonSlurper();
3127 res = jsonSlurper.parseText(prev.getResponseDataAsString());
3129 assert res instanceof Map;
3130 assert res.topology_template.policies instanceof List;
3131 assert res.topology_template.policies.size == 1;
3133 assert res.topology_template.policies[0] instanceof Map;
3134 assert res.topology_template.policies [0].get('usecases.artifacts').version == "6.0.${__threadNum}";
3139 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get Policy Native XACML" enabled="true">
3140 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
3141 <collectionProp name="Arguments.arguments"/>
3143 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
3144 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
3145 <stringProp name="HTTPSampler.protocol">https</stringProp>
3146 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
3147 <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>
3148 <stringProp name="HTTPSampler.method">GET</stringProp>
3149 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
3150 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
3151 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
3152 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
3153 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
3154 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
3155 <stringProp name="HTTPSampler.response_timeout"></stringProp>
3158 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
3159 <collectionProp name="Asserion.test_strings">
3160 <stringProp name="49586">200</stringProp>
3162 <stringProp name="Assertion.custom_message"></stringProp>
3163 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
3164 <boolProp name="Assertion.assume_success">false</boolProp>
3165 <intProp name="Assertion.test_type">1</intProp>
3166 </ResponseAssertion>
3168 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
3169 <stringProp name="scriptLanguage">groovy</stringProp>
3170 <stringProp name="parameters"></stringProp>
3171 <stringProp name="filename"></stringProp>
3172 <stringProp name="cacheKey">true</stringProp>
3173 <stringProp name="script">import groovy.json.JsonSlurper;
3176 if (prev.getResponseCode() == '200') {
3177 def jsonSlurper = new JsonSlurper();
3178 res = jsonSlurper.parseText(prev.getResponseDataAsString());
3180 assert res instanceof Map;
3181 assert res.topology_template.policies instanceof List;
3182 assert res.topology_template.policies.size == 1;
3184 assert res.topology_template.policies[0] instanceof Map;
3185 assert res.topology_template.policies [0].get('onap.policies.native.xacml.NativeXacmlPolicy').version == "6.0.${__threadNum}";
3190 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get latest Monitoring Policy" enabled="true">
3191 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
3192 <collectionProp name="Arguments.arguments"/>
3194 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
3195 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
3196 <stringProp name="HTTPSampler.protocol">https</stringProp>
3197 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
3198 <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>
3199 <stringProp name="HTTPSampler.method">GET</stringProp>
3200 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
3201 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
3202 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
3203 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
3204 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
3205 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
3206 <stringProp name="HTTPSampler.response_timeout"></stringProp>
3209 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
3210 <collectionProp name="Asserion.test_strings">
3211 <stringProp name="49586">200</stringProp>
3213 <stringProp name="Assertion.custom_message"></stringProp>
3214 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
3215 <boolProp name="Assertion.assume_success">false</boolProp>
3216 <intProp name="Assertion.test_type">1</intProp>
3217 </ResponseAssertion>
3219 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
3220 <stringProp name="scriptLanguage">groovy</stringProp>
3221 <stringProp name="parameters"></stringProp>
3222 <stringProp name="filename"></stringProp>
3223 <stringProp name="cacheKey">true</stringProp>
3224 <stringProp name="script">import groovy.json.JsonSlurper;
3227 if (prev.getResponseCode() == '200') {
3228 def jsonSlurper = new JsonSlurper();
3229 res = jsonSlurper.parseText(prev.getResponseDataAsString());
3231 assert res instanceof Map;
3232 assert res.topology_template.policies instanceof List;
3233 assert res.topology_template.policies.size == 1;
3235 assert res.topology_template.policies[0] instanceof Map;
3236 assert res.topology_template.policies [0].get('onap.restart.tca').version ==~ /6.0.\d+/;
3241 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete Policy Monitoring" enabled="true">
3242 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
3243 <collectionProp name="Arguments.arguments"/>
3245 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
3246 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
3247 <stringProp name="HTTPSampler.protocol">https</stringProp>
3248 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
3249 <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>
3250 <stringProp name="HTTPSampler.method">DELETE</stringProp>
3251 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
3252 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
3253 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
3254 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
3255 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
3256 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
3257 <stringProp name="HTTPSampler.response_timeout"></stringProp>
3260 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
3261 <collectionProp name="Asserion.test_strings">
3262 <stringProp name="49586">200</stringProp>
3264 <stringProp name="Assertion.custom_message"></stringProp>
3265 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
3266 <boolProp name="Assertion.assume_success">false</boolProp>
3267 <intProp name="Assertion.test_type">1</intProp>
3268 </ResponseAssertion>
3270 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
3271 <stringProp name="scriptLanguage">groovy</stringProp>
3272 <stringProp name="parameters"></stringProp>
3273 <stringProp name="filename"></stringProp>
3274 <stringProp name="cacheKey">true</stringProp>
3275 <stringProp name="script">import groovy.json.JsonSlurper;
3278 if (prev.getResponseCode() == '200') {
3279 def jsonSlurper = new JsonSlurper();
3280 res = jsonSlurper.parseText(prev.getResponseDataAsString());
3282 assert res instanceof Map;
3283 assert res.topology_template.policies instanceof List;
3284 assert res.topology_template.policies.size == 1;
3285 assert res.topology_template.policies[0] instanceof Map;
3286 assert res.topology_template.policies[0].get('onap.restart.tca').version == "6.0.${__threadNum}";
3291 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete Policy Monitoring V2" enabled="true">
3292 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
3293 <collectionProp name="Arguments.arguments"/>
3295 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
3296 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
3297 <stringProp name="HTTPSampler.protocol">https</stringProp>
3298 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
3299 <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>
3300 <stringProp name="HTTPSampler.method">DELETE</stringProp>
3301 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
3302 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
3303 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
3304 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
3305 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
3306 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
3307 <stringProp name="HTTPSampler.response_timeout"></stringProp>
3310 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
3311 <collectionProp name="Asserion.test_strings">
3312 <stringProp name="49586">200</stringProp>
3314 <stringProp name="Assertion.custom_message"></stringProp>
3315 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
3316 <boolProp name="Assertion.assume_success">false</boolProp>
3317 <intProp name="Assertion.test_type">1</intProp>
3318 </ResponseAssertion>
3320 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
3321 <stringProp name="scriptLanguage">groovy</stringProp>
3322 <stringProp name="parameters"></stringProp>
3323 <stringProp name="filename"></stringProp>
3324 <stringProp name="cacheKey">true</stringProp>
3325 <stringProp name="script">import groovy.json.JsonSlurper;
3328 if (prev.getResponseCode() == '200') {
3329 def jsonSlurper = new JsonSlurper();
3330 res = jsonSlurper.parseText(prev.getResponseDataAsString());
3332 assert res instanceof Map;
3333 assert res.topology_template.policies instanceof List;
3334 assert res.topology_template.policies.size == 1;
3335 assert res.topology_template.policies[0] instanceof Map;
3336 assert res.topology_template.policies[0].get('onap.restart.tca').version == "7.0.${__threadNum}";
3341 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete Policy Optimization" enabled="true">
3342 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
3343 <collectionProp name="Arguments.arguments"/>
3345 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
3346 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
3347 <stringProp name="HTTPSampler.protocol">https</stringProp>
3348 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
3349 <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>
3350 <stringProp name="HTTPSampler.method">DELETE</stringProp>
3351 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
3352 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
3353 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
3354 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
3355 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
3356 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
3357 <stringProp name="HTTPSampler.response_timeout"></stringProp>
3360 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
3361 <collectionProp name="Asserion.test_strings">
3362 <stringProp name="49586">200</stringProp>
3364 <stringProp name="Assertion.custom_message"></stringProp>
3365 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
3366 <boolProp name="Assertion.assume_success">false</boolProp>
3367 <intProp name="Assertion.test_type">1</intProp>
3368 </ResponseAssertion>
3370 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
3371 <stringProp name="scriptLanguage">groovy</stringProp>
3372 <stringProp name="parameters"></stringProp>
3373 <stringProp name="filename"></stringProp>
3374 <stringProp name="cacheKey">true</stringProp>
3375 <stringProp name="script">import groovy.json.JsonSlurper;
3378 if (prev.getResponseCode() == '200') {
3379 def jsonSlurper = new JsonSlurper();
3380 res = jsonSlurper.parseText(prev.getResponseDataAsString());
3382 assert res instanceof Map;
3383 assert res.topology_template.policies instanceof List;
3384 assert res.topology_template.policies.size == 1;
3385 assert res.topology_template.policies[0] instanceof Map;
3386 assert res.topology_template.policies[0].get('OSDF_CASABLANCA.Affinity_Default').version == "6.0.${__threadNum}";
3391 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete Policy Guard" enabled="true">
3392 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
3393 <collectionProp name="Arguments.arguments"/>
3395 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
3396 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
3397 <stringProp name="HTTPSampler.protocol">https</stringProp>
3398 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
3399 <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>
3400 <stringProp name="HTTPSampler.method">DELETE</stringProp>
3401 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
3402 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
3403 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
3404 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
3405 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
3406 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
3407 <stringProp name="HTTPSampler.response_timeout"></stringProp>
3410 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
3411 <collectionProp name="Asserion.test_strings">
3412 <stringProp name="49586">200</stringProp>
3414 <stringProp name="Assertion.custom_message"></stringProp>
3415 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
3416 <boolProp name="Assertion.assume_success">false</boolProp>
3417 <intProp name="Assertion.test_type">1</intProp>
3418 </ResponseAssertion>
3420 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
3421 <stringProp name="scriptLanguage">groovy</stringProp>
3422 <stringProp name="parameters"></stringProp>
3423 <stringProp name="filename"></stringProp>
3424 <stringProp name="cacheKey">true</stringProp>
3425 <stringProp name="script">import groovy.json.JsonSlurper;
3428 if (prev.getResponseCode() == '200') {
3429 def jsonSlurper = new JsonSlurper();
3430 res = jsonSlurper.parseText(prev.getResponseDataAsString());
3432 assert res instanceof Map;
3433 assert res.topology_template.policies instanceof List;
3434 assert res.topology_template.policies.size == 1;
3435 assert res.topology_template.policies[0] instanceof Map;
3436 assert res.topology_template.policies[0].get('guard.blacklist.scaleout').version == "6.0.${__threadNum}";
3441 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete Policy Native APEX" enabled="true">
3442 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
3443 <collectionProp name="Arguments.arguments"/>
3445 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
3446 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
3447 <stringProp name="HTTPSampler.protocol">https</stringProp>
3448 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
3449 <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>
3450 <stringProp name="HTTPSampler.method">DELETE</stringProp>
3451 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
3452 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
3453 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
3454 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
3455 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
3456 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
3457 <stringProp name="HTTPSampler.response_timeout"></stringProp>
3460 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
3461 <collectionProp name="Asserion.test_strings">
3462 <stringProp name="49586">200</stringProp>
3464 <stringProp name="Assertion.custom_message"></stringProp>
3465 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
3466 <boolProp name="Assertion.assume_success">false</boolProp>
3467 <intProp name="Assertion.test_type">1</intProp>
3468 </ResponseAssertion>
3470 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
3471 <stringProp name="scriptLanguage">groovy</stringProp>
3472 <stringProp name="parameters"></stringProp>
3473 <stringProp name="filename"></stringProp>
3474 <stringProp name="cacheKey">true</stringProp>
3475 <stringProp name="script">import groovy.json.JsonSlurper;
3478 if (prev.getResponseCode() == '200') {
3479 def jsonSlurper = new JsonSlurper();
3480 res = jsonSlurper.parseText(prev.getResponseDataAsString());
3482 assert res instanceof Map;
3483 assert res.topology_template.policies instanceof List;
3484 assert res.topology_template.policies.size == 1;
3485 assert res.topology_template.policies[0] instanceof Map;
3486 assert res.topology_template.policies[0].get('operational.apex.vCPE').version == "6.0.${__threadNum}";
3491 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete Policy Native Drools" enabled="true">
3492 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
3493 <collectionProp name="Arguments.arguments"/>
3495 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
3496 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
3497 <stringProp name="HTTPSampler.protocol">https</stringProp>
3498 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
3499 <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>
3500 <stringProp name="HTTPSampler.method">DELETE</stringProp>
3501 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
3502 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
3503 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
3504 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
3505 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
3506 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
3507 <stringProp name="HTTPSampler.response_timeout"></stringProp>
3510 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
3511 <collectionProp name="Asserion.test_strings">
3512 <stringProp name="49586">200</stringProp>
3514 <stringProp name="Assertion.custom_message"></stringProp>
3515 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
3516 <boolProp name="Assertion.assume_success">false</boolProp>
3517 <intProp name="Assertion.test_type">1</intProp>
3518 </ResponseAssertion>
3520 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
3521 <stringProp name="scriptLanguage">groovy</stringProp>
3522 <stringProp name="parameters"></stringProp>
3523 <stringProp name="filename"></stringProp>
3524 <stringProp name="cacheKey">true</stringProp>
3525 <stringProp name="script">import groovy.json.JsonSlurper;
3528 if (prev.getResponseCode() == '200') {
3529 def jsonSlurper = new JsonSlurper();
3530 res = jsonSlurper.parseText(prev.getResponseDataAsString());
3532 assert res instanceof Map;
3533 assert res.topology_template.policies instanceof List;
3534 assert res.topology_template.policies.size == 1;
3535 assert res.topology_template.policies[0] instanceof Map;
3536 assert res.topology_template.policies[0].get('usecases.artifacts').version == "6.0.${__threadNum}";
3541 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete Policy Native XACML" enabled="true">
3542 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
3543 <collectionProp name="Arguments.arguments"/>
3545 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
3546 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
3547 <stringProp name="HTTPSampler.protocol">https</stringProp>
3548 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
3549 <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>
3550 <stringProp name="HTTPSampler.method">DELETE</stringProp>
3551 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
3552 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
3553 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
3554 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
3555 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
3556 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
3557 <stringProp name="HTTPSampler.response_timeout"></stringProp>
3560 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
3561 <collectionProp name="Asserion.test_strings">
3562 <stringProp name="49586">200</stringProp>
3564 <stringProp name="Assertion.custom_message"></stringProp>
3565 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
3566 <boolProp name="Assertion.assume_success">false</boolProp>
3567 <intProp name="Assertion.test_type">1</intProp>
3568 </ResponseAssertion>
3570 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
3571 <stringProp name="scriptLanguage">groovy</stringProp>
3572 <stringProp name="parameters"></stringProp>
3573 <stringProp name="filename"></stringProp>
3574 <stringProp name="cacheKey">true</stringProp>
3575 <stringProp name="script">import groovy.json.JsonSlurper;
3578 if (prev.getResponseCode() == '200') {
3579 def jsonSlurper = new JsonSlurper();
3580 res = jsonSlurper.parseText(prev.getResponseDataAsString());
3582 assert res instanceof Map;
3583 assert res.topology_template.policies instanceof List;
3584 assert res.topology_template.policies.size == 1;
3585 assert res.topology_template.policies[0] instanceof Map;
3586 assert res.topology_template.policies[0].get('onap.policies.native.xacml.NativeXacmlPolicy').version == "6.0.${__threadNum}";
3591 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete Policy Type Monitoring" enabled="true">
3592 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
3593 <collectionProp name="Arguments.arguments"/>
3595 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
3596 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
3597 <stringProp name="HTTPSampler.protocol">https</stringProp>
3598 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
3599 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/6.0.${__threadNum}</stringProp>
3600 <stringProp name="HTTPSampler.method">DELETE</stringProp>
3601 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
3602 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
3603 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
3604 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
3605 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
3606 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
3607 <stringProp name="HTTPSampler.response_timeout"></stringProp>
3610 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="false">
3611 <collectionProp name="Asserion.test_strings">
3612 <stringProp name="49586">200</stringProp>
3614 <stringProp name="Assertion.custom_message"></stringProp>
3615 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
3616 <boolProp name="Assertion.assume_success">false</boolProp>
3617 <intProp name="Assertion.test_type">1</intProp>
3618 </ResponseAssertion>
3620 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="false">
3621 <stringProp name="scriptLanguage">groovy</stringProp>
3622 <stringProp name="parameters"></stringProp>
3623 <stringProp name="filename"></stringProp>
3624 <stringProp name="cacheKey">true</stringProp>
3625 <stringProp name="script">import groovy.json.JsonSlurper;
3628 if (prev.getResponseCode() == '409') {
3629 def jsonSlurper = new JsonSlurper();
3630 res = jsonSlurper.parseText(prev.getResponseDataAsString());
3632 assert res instanceof Map;
3633 assert res.policy_types instanceof List;
3634 assert res.policy_types.size == 1;
3635 assert res.policy_types[0] instanceof Map;
3636 assert res.policy_types[0].get('onap.policies.monitoring.cdap.tca.hi.lo.app').version == "6.0.${__threadNum}";
3641 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete Policy Type Monitoring V2" enabled="true">
3642 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
3643 <collectionProp name="Arguments.arguments"/>
3645 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
3646 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
3647 <stringProp name="HTTPSampler.protocol">https</stringProp>
3648 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
3649 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/7.0.${__threadNum}</stringProp>
3650 <stringProp name="HTTPSampler.method">DELETE</stringProp>
3651 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
3652 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
3653 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
3654 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
3655 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
3656 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
3657 <stringProp name="HTTPSampler.response_timeout"></stringProp>
3660 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="false">
3661 <collectionProp name="Asserion.test_strings">
3662 <stringProp name="49586">200</stringProp>
3664 <stringProp name="Assertion.custom_message"></stringProp>
3665 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
3666 <boolProp name="Assertion.assume_success">false</boolProp>
3667 <intProp name="Assertion.test_type">1</intProp>
3668 </ResponseAssertion>
3670 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="false">
3671 <stringProp name="scriptLanguage">groovy</stringProp>
3672 <stringProp name="parameters"></stringProp>
3673 <stringProp name="filename"></stringProp>
3674 <stringProp name="cacheKey">true</stringProp>
3675 <stringProp name="script">import groovy.json.JsonSlurper;
3678 if (prev.getResponseCode() == '409') {
3679 def jsonSlurper = new JsonSlurper();
3680 res = jsonSlurper.parseText(prev.getResponseDataAsString());
3682 assert res instanceof Map;
3683 assert res.policy_types instanceof List;
3684 assert res.policy_types.size == 1;
3685 assert res.policy_types[0] instanceof Map;
3686 assert res.policy_types[0].get('onap.policies.monitoring.cdap.tca.hi.lo.app').version == "7.0.${__threadNum}";
3691 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete Policy Type Optimization" enabled="true">
3692 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
3693 <collectionProp name="Arguments.arguments"/>
3695 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
3696 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
3697 <stringProp name="HTTPSampler.protocol">https</stringProp>
3698 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
3699 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.optimization.resource.AffinityPolicy/versions/6.0.${__threadNum}</stringProp>
3700 <stringProp name="HTTPSampler.method">DELETE</stringProp>
3701 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
3702 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
3703 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
3704 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
3705 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
3706 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
3707 <stringProp name="HTTPSampler.response_timeout"></stringProp>
3710 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
3711 <collectionProp name="Asserion.test_strings">
3712 <stringProp name="49586">200</stringProp>
3714 <stringProp name="Assertion.custom_message"></stringProp>
3715 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
3716 <boolProp name="Assertion.assume_success">false</boolProp>
3717 <intProp name="Assertion.test_type">1</intProp>
3718 </ResponseAssertion>
3720 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
3721 <stringProp name="scriptLanguage">groovy</stringProp>
3722 <stringProp name="parameters"></stringProp>
3723 <stringProp name="filename"></stringProp>
3724 <stringProp name="cacheKey">true</stringProp>
3725 <stringProp name="script">import groovy.json.JsonSlurper;
3728 if (prev.getResponseCode() == '409') {
3729 def jsonSlurper = new JsonSlurper();
3730 res = jsonSlurper.parseText(prev.getResponseDataAsString());
3732 assert res instanceof Map;
3733 assert res.policy_types instanceof List;
3734 assert res.policy_types.size == 1;
3735 assert res.policy_types[0] instanceof Map;
3736 assert res.policy_types[0].get('onap.policies.optimization.resource.AffinityPolicy').version == "6.0.${__threadNum}";
3741 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete Policy Type Guard" enabled="true">
3742 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
3743 <collectionProp name="Arguments.arguments"/>
3745 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
3746 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
3747 <stringProp name="HTTPSampler.protocol">https</stringProp>
3748 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
3749 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.controlloop.guard.common.Blacklist/versions/6.0.${__threadNum}</stringProp>
3750 <stringProp name="HTTPSampler.method">DELETE</stringProp>
3751 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
3752 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
3753 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
3754 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
3755 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
3756 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
3757 <stringProp name="HTTPSampler.response_timeout"></stringProp>
3760 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
3761 <collectionProp name="Asserion.test_strings">
3762 <stringProp name="49586">200</stringProp>
3764 <stringProp name="Assertion.custom_message"></stringProp>
3765 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
3766 <boolProp name="Assertion.assume_success">false</boolProp>
3767 <intProp name="Assertion.test_type">1</intProp>
3768 </ResponseAssertion>
3770 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
3771 <stringProp name="scriptLanguage">groovy</stringProp>
3772 <stringProp name="parameters"></stringProp>
3773 <stringProp name="filename"></stringProp>
3774 <stringProp name="cacheKey">true</stringProp>
3775 <stringProp name="script">import groovy.json.JsonSlurper;
3778 if (prev.getResponseCode() == '200') {
3779 def jsonSlurper = new JsonSlurper();
3780 res = jsonSlurper.parseText(prev.getResponseDataAsString());
3782 assert res instanceof Map;
3783 assert res.policy_types instanceof Map;
3784 assert res.policy_types.get('onap.policies.controlloop.guard.common.Blacklist').version == "6.0.${__threadNum}";
3789 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete Policy Type Native APEX" enabled="true">
3790 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
3791 <collectionProp name="Arguments.arguments"/>
3793 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
3794 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
3795 <stringProp name="HTTPSampler.protocol">https</stringProp>
3796 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
3797 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.native.Apex/versions/6.0.${__threadNum}</stringProp>
3798 <stringProp name="HTTPSampler.method">DELETE</stringProp>
3799 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
3800 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
3801 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
3802 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
3803 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
3804 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
3805 <stringProp name="HTTPSampler.response_timeout"></stringProp>
3808 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
3809 <collectionProp name="Asserion.test_strings">
3810 <stringProp name="49586">200</stringProp>
3812 <stringProp name="Assertion.custom_message"></stringProp>
3813 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
3814 <boolProp name="Assertion.assume_success">false</boolProp>
3815 <intProp name="Assertion.test_type">1</intProp>
3816 </ResponseAssertion>
3818 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
3819 <stringProp name="scriptLanguage">groovy</stringProp>
3820 <stringProp name="parameters"></stringProp>
3821 <stringProp name="filename"></stringProp>
3822 <stringProp name="cacheKey">true</stringProp>
3823 <stringProp name="script">import groovy.json.JsonSlurper;
3826 if (prev.getResponseCode() == '200') {
3827 def jsonSlurper = new JsonSlurper();
3828 res = jsonSlurper.parseText(prev.getResponseDataAsString());
3830 assert res instanceof Map;
3831 assert res.policy_types instanceof Map;
3832 assert res.policy_types.get('onap.policies.native.Apex').version == "6.0.${__threadNum}";
3837 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete Policy Type Native Drools Controller" enabled="true">
3838 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
3839 <collectionProp name="Arguments.arguments"/>
3841 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
3842 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
3843 <stringProp name="HTTPSampler.protocol">https</stringProp>
3844 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
3845 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.native.drools.Controller/versions/6.0.${__threadNum}</stringProp>
3846 <stringProp name="HTTPSampler.method">DELETE</stringProp>
3847 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
3848 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
3849 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
3850 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
3851 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
3852 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
3853 <stringProp name="HTTPSampler.response_timeout"></stringProp>
3856 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
3857 <collectionProp name="Asserion.test_strings">
3858 <stringProp name="49586">200</stringProp>
3860 <stringProp name="Assertion.custom_message"></stringProp>
3861 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
3862 <boolProp name="Assertion.assume_success">false</boolProp>
3863 <intProp name="Assertion.test_type">1</intProp>
3864 </ResponseAssertion>
3866 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
3867 <stringProp name="scriptLanguage">groovy</stringProp>
3868 <stringProp name="parameters"></stringProp>
3869 <stringProp name="filename"></stringProp>
3870 <stringProp name="cacheKey">true</stringProp>
3871 <stringProp name="script">import groovy.json.JsonSlurper;
3874 if (prev.getResponseCode() == '200') {
3875 def jsonSlurper = new JsonSlurper();
3876 res = jsonSlurper.parseText(prev.getResponseDataAsString());
3878 assert res instanceof Map;
3879 assert res.policy_types instanceof Map;
3880 assert res.policy_types.get('onap.policies.native.drools.Controller').version == "6.0.${__threadNum}";
3885 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete Policy Type Native Drools Artifact" enabled="true">
3886 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
3887 <collectionProp name="Arguments.arguments"/>
3889 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
3890 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
3891 <stringProp name="HTTPSampler.protocol">https</stringProp>
3892 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
3893 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.native.drools.Artifact/versions/6.0.${__threadNum}</stringProp>
3894 <stringProp name="HTTPSampler.method">DELETE</stringProp>
3895 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
3896 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
3897 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
3898 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
3899 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
3900 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
3901 <stringProp name="HTTPSampler.response_timeout"></stringProp>
3904 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
3905 <collectionProp name="Asserion.test_strings">
3906 <stringProp name="49586">200</stringProp>
3908 <stringProp name="Assertion.custom_message"></stringProp>
3909 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
3910 <boolProp name="Assertion.assume_success">false</boolProp>
3911 <intProp name="Assertion.test_type">1</intProp>
3912 </ResponseAssertion>
3914 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
3915 <stringProp name="scriptLanguage">groovy</stringProp>
3916 <stringProp name="parameters"></stringProp>
3917 <stringProp name="filename"></stringProp>
3918 <stringProp name="cacheKey">true</stringProp>
3919 <stringProp name="script">import groovy.json.JsonSlurper;
3922 if (prev.getResponseCode() == '200') {
3923 def jsonSlurper = new JsonSlurper();
3924 res = jsonSlurper.parseText(prev.getResponseDataAsString());
3926 assert res instanceof Map;
3927 assert res.policy_types instanceof Map;
3928 assert res.policy_types.get('onap.policies.native.drools.Artifact').version == "6.0.${__threadNum}";
3933 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete Policy Type Native XACML" enabled="true">
3934 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
3935 <collectionProp name="Arguments.arguments"/>
3937 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
3938 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
3939 <stringProp name="HTTPSampler.protocol">https</stringProp>
3940 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
3941 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.native.Xacml/versions/6.0.${__threadNum}</stringProp>
3942 <stringProp name="HTTPSampler.method">DELETE</stringProp>
3943 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
3944 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
3945 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
3946 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
3947 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
3948 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
3949 <stringProp name="HTTPSampler.response_timeout"></stringProp>
3952 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
3953 <collectionProp name="Asserion.test_strings">
3954 <stringProp name="49586">200</stringProp>
3956 <stringProp name="Assertion.custom_message"></stringProp>
3957 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
3958 <boolProp name="Assertion.assume_success">false</boolProp>
3959 <intProp name="Assertion.test_type">1</intProp>
3960 </ResponseAssertion>
3962 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
3963 <stringProp name="scriptLanguage">groovy</stringProp>
3964 <stringProp name="parameters"></stringProp>
3965 <stringProp name="filename"></stringProp>
3966 <stringProp name="cacheKey">true</stringProp>
3967 <stringProp name="script">import groovy.json.JsonSlurper;
3970 if (prev.getResponseCode() == '200') {
3971 def jsonSlurper = new JsonSlurper();
3972 res = jsonSlurper.parseText(prev.getResponseDataAsString());
3974 assert res instanceof Map;
3975 assert res.policy_types instanceof Map;
3976 assert res.policy_types.get('onap.policies.native.Xacml').version == "6.0.${__threadNum}";
3982 <PostThreadGroup guiclass="PostThreadGroupGui" testclass="PostThreadGroup" testname="tearDown Thread Group" enabled="true">
3983 <stringProp name="ThreadGroup.on_sample_error">stoptest</stringProp>
3984 <elementProp name="ThreadGroup.main_controller" elementType="LoopController" guiclass="LoopControlPanel" testclass="LoopController" testname="Loop Controller" enabled="true">
3985 <boolProp name="LoopController.continue_forever">false</boolProp>
3986 <stringProp name="LoopController.loops">1</stringProp>
3988 <stringProp name="ThreadGroup.num_threads">1</stringProp>
3989 <stringProp name="ThreadGroup.ramp_time">1</stringProp>
3990 <boolProp name="ThreadGroup.scheduler">false</boolProp>
3991 <stringProp name="ThreadGroup.duration"></stringProp>
3992 <stringProp name="ThreadGroup.delay"></stringProp>
3993 <boolProp name="ThreadGroup.same_user_on_next_iteration">true</boolProp>
3996 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get Healthcheck" enabled="true">
3997 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
3998 <collectionProp name="Arguments.arguments"/>
4000 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
4001 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
4002 <stringProp name="HTTPSampler.protocol">https</stringProp>
4003 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
4004 <stringProp name="HTTPSampler.path">/policy/api/v1/healthcheck</stringProp>
4005 <stringProp name="HTTPSampler.method">GET</stringProp>
4006 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
4007 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
4008 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
4009 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
4010 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
4011 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
4012 <stringProp name="HTTPSampler.response_timeout"></stringProp>
4015 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
4016 <collectionProp name="Asserion.test_strings">
4017 <stringProp name="49586">200</stringProp>
4019 <stringProp name="Assertion.custom_message"></stringProp>
4020 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
4021 <boolProp name="Assertion.assume_success">false</boolProp>
4022 <intProp name="Assertion.test_type">1</intProp>
4023 </ResponseAssertion>
4025 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
4026 <stringProp name="cacheKey">true</stringProp>
4027 <stringProp name="filename"></stringProp>
4028 <stringProp name="parameters"></stringProp>
4029 <stringProp name="script">import groovy.json.JsonSlurper;
4032 if (prev.getResponseCode() == '200') {
4033 def jsonSlurper = new JsonSlurper();
4034 res = jsonSlurper.parseText(prev.getResponseDataAsString());
4036 assert res instanceof Map;
4037 assert res.code == 200;
4038 assert res.name == "Policy API";
4039 assert res.healthy==true;
4040 assert res.message=="alive";
4042 <stringProp name="scriptLanguage">groovy</stringProp>
4046 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get Preloaded Policy Types" enabled="true">
4047 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
4048 <collectionProp name="Arguments.arguments"/>
4050 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
4051 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
4052 <stringProp name="HTTPSampler.protocol">https</stringProp>
4053 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
4054 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes</stringProp>
4055 <stringProp name="HTTPSampler.method">GET</stringProp>
4056 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
4057 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
4058 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
4059 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
4060 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
4061 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
4062 <stringProp name="HTTPSampler.response_timeout"></stringProp>
4065 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
4066 <collectionProp name="Asserion.test_strings">
4067 <stringProp name="49586">200</stringProp>
4069 <stringProp name="Assertion.custom_message"></stringProp>
4070 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
4071 <boolProp name="Assertion.assume_success">false</boolProp>
4072 <intProp name="Assertion.test_type">1</intProp>
4073 </ResponseAssertion>
4075 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
4076 <stringProp name="scriptLanguage">groovy</stringProp>
4077 <stringProp name="parameters"></stringProp>
4078 <stringProp name="filename"></stringProp>
4079 <stringProp name="cacheKey">true</stringProp>
4080 <stringProp name="script">import groovy.json.JsonSlurper;
4083 if (prev.getResponseCode() == '200') {
4084 def jsonSlurper = new JsonSlurper();
4085 res = jsonSlurper.parseText(prev.getResponseDataAsString());
4087 assert res instanceof Map;
4088 assert res.policy_types instanceof Map;
4089 assert res.policy_types.size() == 27;
4095 <ResultCollector guiclass="SummaryReport" testclass="ResultCollector" testname="Summary Report" enabled="true">
4096 <boolProp name="ResultCollector.error_logging">false</boolProp>
4098 <name>saveConfig</name>
4099 <value class="SampleSaveConfiguration">
4101 <latency>true</latency>
4102 <timestamp>true</timestamp>
4103 <success>true</success>
4106 <message>true</message>
4107 <threadName>true</threadName>
4108 <dataType>true</dataType>
4109 <encoding>false</encoding>
4110 <assertions>true</assertions>
4111 <subresults>true</subresults>
4112 <responseData>false</responseData>
4113 <samplerData>false</samplerData>
4115 <fieldNames>true</fieldNames>
4116 <responseHeaders>false</responseHeaders>
4117 <requestHeaders>false</requestHeaders>
4118 <responseDataOnError>false</responseDataOnError>
4119 <saveAssertionResultsFailureMessage>true</saveAssertionResultsFailureMessage>
4120 <assertionsResultsToSave>0</assertionsResultsToSave>
4122 <sentBytes>true</sentBytes>
4124 <threadCounts>true</threadCounts>
4125 <idleTime>true</idleTime>
4126 <connectTime>true</connectTime>
4129 <stringProp name="filename">/home/liam/work/WIndriver/summary.log</stringProp>
4132 <ResultCollector guiclass="ViewResultsFullVisualizer" testclass="ResultCollector" testname="View Results Tree" enabled="true">
4133 <boolProp name="ResultCollector.error_logging">false</boolProp>
4135 <name>saveConfig</name>
4136 <value class="SampleSaveConfiguration">
4138 <latency>true</latency>
4139 <timestamp>true</timestamp>
4140 <success>true</success>
4143 <message>true</message>
4144 <threadName>true</threadName>
4145 <dataType>true</dataType>
4146 <encoding>false</encoding>
4147 <assertions>true</assertions>
4148 <subresults>true</subresults>
4149 <responseData>false</responseData>
4150 <samplerData>false</samplerData>
4152 <fieldNames>true</fieldNames>
4153 <responseHeaders>false</responseHeaders>
4154 <requestHeaders>false</requestHeaders>
4155 <responseDataOnError>false</responseDataOnError>
4156 <saveAssertionResultsFailureMessage>true</saveAssertionResultsFailureMessage>
4157 <assertionsResultsToSave>0</assertionsResultsToSave>
4159 <sentBytes>true</sentBytes>
4161 <threadCounts>true</threadCounts>
4162 <idleTime>true</idleTime>
4163 <connectTime>true</connectTime>
4166 <stringProp name="filename">/home/ubuntu/s3p/stability.log</stringProp>
4169 <ResultCollector guiclass="TableVisualizer" testclass="ResultCollector" testname="View Results in Table" enabled="true">
4170 <boolProp name="ResultCollector.error_logging">false</boolProp>
4172 <name>saveConfig</name>
4173 <value class="SampleSaveConfiguration">
4175 <latency>true</latency>
4176 <timestamp>true</timestamp>
4177 <success>true</success>
4180 <message>true</message>
4181 <threadName>true</threadName>
4182 <dataType>true</dataType>
4183 <encoding>false</encoding>
4184 <assertions>true</assertions>
4185 <subresults>true</subresults>
4186 <responseData>false</responseData>
4187 <samplerData>false</samplerData>
4189 <fieldNames>true</fieldNames>
4190 <responseHeaders>false</responseHeaders>
4191 <requestHeaders>false</requestHeaders>
4192 <responseDataOnError>false</responseDataOnError>
4193 <saveAssertionResultsFailureMessage>true</saveAssertionResultsFailureMessage>
4194 <assertionsResultsToSave>0</assertionsResultsToSave>
4196 <sentBytes>true</sentBytes>
4198 <threadCounts>true</threadCounts>
4199 <idleTime>true</idleTime>
4200 <connectTime>true</connectTime>
4203 <stringProp name="filename">/home/liam/work/WIndriver/Results.log</stringProp>