1 <?xml version="1.0" encoding="UTF-8"?>
2 <jmeterTestPlan version="1.2" properties="5.0" jmeter="5.4.1">
4 <TestPlan guiclass="TestPlanGui" testclass="TestPlan" testname="Policy API Stability" enabled="true">
5 <stringProp name="TestPlan.comments"></stringProp>
6 <boolProp name="TestPlan.functional_mode">false</boolProp>
7 <boolProp name="TestPlan.tearDown_on_shutdown">true</boolProp>
8 <boolProp name="TestPlan.serialize_threadgroups">false</boolProp>
9 <elementProp name="TestPlan.user_defined_variables" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
10 <collectionProp name="Arguments.arguments">
11 <elementProp name="API_HOST" elementType="Argument">
12 <stringProp name="Argument.name">API_HOST</stringProp>
13 <stringProp name="Argument.value">10.12.6.14</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">32191</stringProp>
19 <stringProp name="Argument.metadata">=</stringProp>
23 <stringProp name="TestPlan.user_define_classpath"></stringProp>
26 <AuthManager guiclass="AuthPanel" testclass="AuthManager" testname="HTTP Authorization Manager" enabled="true">
27 <collectionProp name="AuthManager.auth_list">
28 <elementProp name="" elementType="Authorization">
29 <stringProp name="Authorization.url">https://${API_HOST}:${API_PORT}/</stringProp>
30 <stringProp name="Authorization.username">policyadmin</stringProp>
31 <stringProp name="Authorization.password">zb!XztG34</stringProp>
32 <stringProp name="Authorization.domain"></stringProp>
33 <stringProp name="Authorization.realm"></stringProp>
36 <boolProp name="AuthManager.clearEachIteration">true</boolProp>
37 <boolProp name="AuthManager.controlledByThreadGroup">false</boolProp>
40 <HeaderManager guiclass="HeaderPanel" testclass="HeaderManager" testname="HTTP Header Manager" enabled="true">
41 <collectionProp name="HeaderManager.headers">
42 <elementProp name="" elementType="Header">
43 <stringProp name="Header.name">Accept</stringProp>
44 <stringProp name="Header.value">application/json</stringProp>
46 <elementProp name="" elementType="Header">
47 <stringProp name="Header.name">Content-Type</stringProp>
48 <stringProp name="Header.value">application/json</stringProp>
53 <SetupThreadGroup guiclass="SetupThreadGroupGui" testclass="SetupThreadGroup" testname="setUp Thread Group" enabled="true">
54 <stringProp name="ThreadGroup.on_sample_error">continue</stringProp>
55 <elementProp name="ThreadGroup.main_controller" elementType="LoopController" guiclass="LoopControlPanel" testclass="LoopController" testname="Loop Controller" enabled="true">
56 <boolProp name="LoopController.continue_forever">false</boolProp>
57 <stringProp name="LoopController.loops">1</stringProp>
59 <stringProp name="ThreadGroup.num_threads">1</stringProp>
60 <stringProp name="ThreadGroup.ramp_time">1</stringProp>
61 <boolProp name="ThreadGroup.scheduler">false</boolProp>
62 <stringProp name="ThreadGroup.duration"></stringProp>
63 <stringProp name="ThreadGroup.delay"></stringProp>
64 <boolProp name="ThreadGroup.same_user_on_next_iteration">true</boolProp>
67 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get Healthcheck" enabled="true">
68 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
69 <collectionProp name="Arguments.arguments"/>
71 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
72 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
73 <stringProp name="HTTPSampler.protocol">https</stringProp>
74 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
75 <stringProp name="HTTPSampler.path">/policy/api/v1/healthcheck</stringProp>
76 <stringProp name="HTTPSampler.method">GET</stringProp>
77 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
78 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
79 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
80 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
81 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
82 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
83 <stringProp name="HTTPSampler.response_timeout"></stringProp>
86 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
87 <collectionProp name="Asserion.test_strings">
88 <stringProp name="49586">200</stringProp>
90 <stringProp name="Assertion.custom_message"></stringProp>
91 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
92 <boolProp name="Assertion.assume_success">false</boolProp>
93 <intProp name="Assertion.test_type">1</intProp>
96 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
97 <stringProp name="cacheKey">true</stringProp>
98 <stringProp name="filename"></stringProp>
99 <stringProp name="parameters"></stringProp>
100 <stringProp name="script">import groovy.json.JsonSlurper;
103 if (prev.getResponseCode() == '200') {
104 def jsonSlurper = new JsonSlurper();
105 res = jsonSlurper.parseText(prev.getResponseDataAsString());
107 assert res instanceof Map;
108 assert res.code == 200;
109 assert res.name == "Policy API";
110 assert res.healthy==true;
111 assert res.message=="alive";
113 <stringProp name="scriptLanguage">groovy</stringProp>
117 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get Statistics" enabled="true">
118 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
119 <collectionProp name="Arguments.arguments"/>
121 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
122 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
123 <stringProp name="HTTPSampler.protocol">https</stringProp>
124 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
125 <stringProp name="HTTPSampler.path">/policy/api/v1/statistics</stringProp>
126 <stringProp name="HTTPSampler.method">GET</stringProp>
127 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
128 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
129 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
130 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
131 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
132 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
133 <stringProp name="HTTPSampler.response_timeout"></stringProp>
136 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
137 <collectionProp name="Asserion.test_strings">
138 <stringProp name="49586">200</stringProp>
140 <stringProp name="Assertion.custom_message"></stringProp>
141 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
142 <boolProp name="Assertion.assume_success">false</boolProp>
143 <intProp name="Assertion.test_type">1</intProp>
146 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
147 <stringProp name="scriptLanguage">groovy</stringProp>
148 <stringProp name="parameters"></stringProp>
149 <stringProp name="filename"></stringProp>
150 <stringProp name="cacheKey">true</stringProp>
151 <stringProp name="script">import groovy.json.JsonSlurper;
154 if (prev.getResponseCode() == '200') {
155 def jsonSlurper = new JsonSlurper();
156 res = jsonSlurper.parseText(prev.getResponseDataAsString());
158 assert res instanceof Map;
159 assert res.code == 200;
164 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get Preloaded Policy Types" enabled="true">
165 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
166 <collectionProp name="Arguments.arguments"/>
168 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
169 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
170 <stringProp name="HTTPSampler.protocol">https</stringProp>
171 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
172 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes</stringProp>
173 <stringProp name="HTTPSampler.method">GET</stringProp>
174 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
175 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
176 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
177 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
178 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
179 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
180 <stringProp name="HTTPSampler.response_timeout"></stringProp>
183 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
184 <collectionProp name="Asserion.test_strings">
185 <stringProp name="49586">200</stringProp>
187 <stringProp name="Assertion.custom_message"></stringProp>
188 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
189 <boolProp name="Assertion.assume_success">false</boolProp>
190 <intProp name="Assertion.test_type">1</intProp>
193 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
194 <stringProp name="scriptLanguage">groovy</stringProp>
195 <stringProp name="parameters"></stringProp>
196 <stringProp name="filename"></stringProp>
197 <stringProp name="cacheKey">true</stringProp>
198 <stringProp name="script">import groovy.json.JsonSlurper;
201 if (prev.getResponseCode() == '200') {
202 def jsonSlurper = new JsonSlurper();
203 res = jsonSlurper.parseText(prev.getResponseDataAsString());
205 assert res instanceof Map;
206 assert res.policy_types instanceof Map;
207 assert res.policy_types.size() == 35;
213 <ThreadGroup guiclass="ThreadGroupGui" testclass="ThreadGroup" testname="API Test Flow" enabled="true">
214 <stringProp name="ThreadGroup.on_sample_error">continue</stringProp>
215 <elementProp name="ThreadGroup.main_controller" elementType="LoopController" guiclass="LoopControlPanel" testclass="LoopController" testname="Loop Controller" enabled="true">
216 <boolProp name="LoopController.continue_forever">false</boolProp>
217 <intProp name="LoopController.loops">-1</intProp>
219 <stringProp name="ThreadGroup.num_threads">5</stringProp>
220 <stringProp name="ThreadGroup.ramp_time">5</stringProp>
221 <boolProp name="ThreadGroup.scheduler">true</boolProp>
222 <stringProp name="ThreadGroup.duration">259200</stringProp>
223 <stringProp name="ThreadGroup.delay">5</stringProp>
224 <boolProp name="ThreadGroup.same_user_on_next_iteration">true</boolProp>
227 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get Policy Metrics" enabled="true">
228 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
229 <collectionProp name="Arguments.arguments"/>
231 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
232 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
233 <stringProp name="HTTPSampler.protocol">https</stringProp>
234 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
235 <stringProp name="HTTPSampler.path">/metrics</stringProp>
236 <stringProp name="HTTPSampler.method">GET</stringProp>
237 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
238 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
239 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
240 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
241 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
242 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
243 <stringProp name="HTTPSampler.response_timeout"></stringProp>
246 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
247 <collectionProp name="Asserion.test_strings">
248 <stringProp name="49586">200</stringProp>
250 <stringProp name="Assertion.custom_message"></stringProp>
251 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
252 <boolProp name="Assertion.assume_success">false</boolProp>
253 <intProp name="Assertion.test_type">1</intProp>
256 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
257 <stringProp name="scriptLanguage">groovy</stringProp>
258 <stringProp name="parameters"></stringProp>
259 <stringProp name="filename"></stringProp>
260 <stringProp name="cacheKey">true</stringProp>
261 <stringProp name="script">def res = [];
262 if (prev.getResponseCode() == '200') {
263 res = prev.getResponseDataAsString();
265 assert res.contains("jvm_buffer_pool_used_bytes")
266 assert res.contains("jvm_buffer_pool_capacity_bytes")
267 assert res.contains("jvm_buffer_pool_used_buffers")
268 assert res.contains("jvm_memory_bytes_used")
269 assert res.contains("jvm_memory_bytes_committed")
270 assert res.contains("jvm_memory_pool_bytes_used")
271 assert res.contains("jvm_memory_pool_bytes_committed")
272 assert res.contains("jvm_memory_pool_allocated_bytes_created")
273 assert res.contains("jvm_memory_pool_allocated_bytes_total")
278 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create Policy Type Monitoring" enabled="true">
279 <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
280 <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
281 <collectionProp name="Arguments.arguments">
282 <elementProp name="" elementType="HTTPArgument">
283 <boolProp name="HTTPArgument.always_encode">false</boolProp>
284 <stringProp name="Argument.value">{
285 "tosca_definitions_version": "tosca_simple_yaml_1_1_0",
286 "policy_types": {
287 "onap.policies.Monitoring": {
288 "derived_from": "tosca.policies.Root",
289 "version": "6.0.0",
290 "description": "a base policy type for all policies that govern monitoring provisioning"
292 "onap.policies.monitoring.cdap.tca.hi.lo.app": {
293 "derived_from": "onap.policies.Monitoring",
294 "version": "6.0.${__threadNum}",
295 "properties": {
296 "tca_policy": {
297 "type": "onap.datatypes.monitoring.tca_policy",
298 "description": "TCA Policy JSON",
299 "required": true
304 "data_types": {
305 "onap.datatypes.monitoring.metricsPerEventName": {
306 "derived_from": "tosca.datatypes.Root",
307 "properties": {
308 "controlLoopSchemaType": {
309 "type": "string",
310 "required": true,
311 "description": "Specifies Control Loop Schema Type for the event Name e.g. VNF, VM",
312 "constraints": [
314 "valid_values": [
321 "eventName": {
322 "type": "string",
323 "required": true,
324 "description": "Event name to which thresholds need to be applied"
326 "policyName": {
327 "type": "string",
328 "required": true,
329 "description": "TCA Policy Scope Name"
331 "policyScope": {
332 "type": "string",
333 "required": true,
334 "description": "TCA Policy Scope"
336 "policyVersion": {
337 "type": "string",
338 "required": true,
339 "description": "TCA Policy Scope Version"
341 "thresholds": {
342 "type": "list",
343 "required": true,
344 "description": "Thresholds associated with eventName",
345 "entry_schema": {
346 "type": "onap.datatypes.monitoring.thresholds"
351 "onap.datatypes.monitoring.tca_policy": {
352 "derived_from": "tosca.datatypes.Root",
353 "properties": {
354 "domain": {
355 "type": "string",
356 "required": true,
357 "description": "Domain name to which TCA needs to be applied",
358 "default": "measurementsForVfScaling",
359 "constraints": [
361 "equal": "measurementsForVfScaling"
365 "metricsPerEventName": {
366 "type": "list",
367 "required": true,
368 "description": "Contains eventName and threshold details that need to be applied to given eventName",
369 "entry_schema": {
370 "type": "onap.datatypes.monitoring.metricsPerEventName"
375 "onap.datatypes.monitoring.thresholds": {
376 "derived_from": "tosca.datatypes.Root",
377 "properties": {
378 "closedLoopControlName": {
379 "type": "string",
380 "required": true,
381 "description": "Closed Loop Control Name associated with the threshold"
383 "closedLoopEventStatus": {
384 "type": "string",
385 "required": true,
386 "description": "Closed Loop Event Status of the threshold",
387 "constraints": [
389 "valid_values": [
390 "ONSET",
391 "ABATED"
396 "direction": {
397 "type": "string",
398 "required": true,
399 "description": "Direction of the threshold",
400 "constraints": [
402 "valid_values": [
403 "LESS",
404 "LESS_OR_EQUAL",
405 "GREATER",
406 "GREATER_OR_EQUAL",
407 "EQUAL"
412 "fieldPath": {
413 "type": "string",
414 "required": true,
415 "description": "Json field Path as per CEF message which needs to be analyzed for TCA",
416 "constraints": [
418 "valid_values": [
419 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsDelta",
420 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedOctetsDelta",
421 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedUnicastPacketsDelta",
422 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedMulticastPacketsDelta",
423 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsDelta",
424 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedDiscardedPacketsDelta",
425 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedErrorPacketsDelta",
426 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsAccumulated",
427 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedOctetsAccumulated",
428 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedUnicastPacketsAccumulated",
429 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedMulticastPacketsAccumulated",
430 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsAccumulated",
431 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedDiscardedPacketsAccumulated",
432 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedErrorPacketsAccumulated",
433 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedTotalPacketsDelta",
434 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedOctetsDelta",
435 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedUnicastPacketsDelta",
436 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedMulticastPacketsDelta",
437 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedBroadcastPacketsDelta",
438 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedDiscardedPacketsDelta",
439 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedErrorPacketsDelta",
440 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedTotalPacketsAccumulated",
441 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedOctetsAccumulated",
442 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedUnicastPacketsAccumulated",
443 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedMulticastPacketsAccumulated",
444 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedBroadcastPacketsAccumulated",
445 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedDiscardedPacketsAccumulated",
446 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedErrorPacketsAccumulated",
447 "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuIdle",
448 "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageInterrupt",
449 "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageNice",
450 "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSoftIrq",
451 "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSteal",
452 "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSystem",
453 "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuWait",
454 "$.event.measurementsForVfScalingFields.cpuUsageArray[*].percentUsage",
455 "$.event.measurementsForVfScalingFields.meanRequestLatency",
456 "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryBuffered",
457 "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryCached",
458 "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryConfigured",
459 "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryFree",
460 "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryUsed",
461 "$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value"
466 "severity": {
467 "type": "string",
468 "required": true,
469 "description": "Threshold Event Severity",
470 "constraints": [
472 "valid_values": [
473 "CRITICAL",
474 "MAJOR",
475 "MINOR",
476 "WARNING",
477 "NORMAL"
482 "thresholdValue": {
483 "type": "integer",
484 "required": true,
485 "description": "Threshold value for the field Path inside CEF message"
487 "version": {
488 "type": "string",
489 "required": true,
490 "description": "Version number associated with the threshold"
496 <stringProp name="Argument.metadata">=</stringProp>
500 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
501 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
502 <stringProp name="HTTPSampler.protocol">https</stringProp>
503 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
504 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes</stringProp>
505 <stringProp name="HTTPSampler.method">POST</stringProp>
506 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
507 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
508 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
509 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
510 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
511 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
512 <stringProp name="HTTPSampler.response_timeout"></stringProp>
515 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
516 <collectionProp name="Asserion.test_strings">
517 <stringProp name="49586">200</stringProp>
519 <stringProp name="Assertion.custom_message"></stringProp>
520 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
521 <boolProp name="Assertion.assume_success">false</boolProp>
522 <intProp name="Assertion.test_type">1</intProp>
525 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
526 <stringProp name="scriptLanguage">groovy</stringProp>
527 <stringProp name="parameters"></stringProp>
528 <stringProp name="filename"></stringProp>
529 <stringProp name="cacheKey">true</stringProp>
530 <stringProp name="script">import groovy.json.JsonSlurper;
533 if (prev.getResponseCode() == '200') {
534 def jsonSlurper = new JsonSlurper();
535 res = jsonSlurper.parseText(prev.getResponseDataAsString());
537 assert res instanceof Map;
538 assert res.policy_types instanceof Map;
539 assert res.policy_types.size() == 2;
540 assert res.policy_types.values()[0] instanceof Map;
541 assert res.policy_types.values()[1] instanceof Map;
546 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create Policy Type Monitoring V7" enabled="true">
547 <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
548 <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
549 <collectionProp name="Arguments.arguments">
550 <elementProp name="" elementType="HTTPArgument">
551 <boolProp name="HTTPArgument.always_encode">false</boolProp>
552 <stringProp name="Argument.value">{
553 "tosca_definitions_version": "tosca_simple_yaml_1_1_0",
554 "policy_types": {
555 "onap.policies.Monitoring": {
556 "derived_from": "tosca.policies.Root",
557 "version": "1.0.0",
558 "description": "a base policy type for all policies that govern monitoring provisioning"
560 "onap.policies.monitoring.cdap.tca.hi.lo.app": {
561 "derived_from": "onap.policies.Monitoring",
562 "version": "7.0.${__threadNum}",
563 "properties": {
564 "tca_policy": {
565 "type": "onap.datatypes.monitoring.tca_policy",
566 "description": "TCA Policy JSON",
567 "required": true
572 "data_types": {
573 "onap.datatypes.monitoring.metricsPerEventName": {
574 "derived_from": "tosca.datatypes.Root",
575 "properties": {
576 "controlLoopSchemaType": {
577 "type": "string",
578 "required": true,
579 "description": "Specifies Control Loop Schema Type for the event Name e.g. VNF, VM",
580 "constraints": [
582 "valid_values": [
589 "eventName": {
590 "type": "string",
591 "required": true,
592 "description": "Event name to which thresholds need to be applied"
594 "policyName": {
595 "type": "string",
596 "required": true,
597 "description": "TCA Policy Scope Name"
599 "policyScope": {
600 "type": "string",
601 "required": true,
602 "description": "TCA Policy Scope"
604 "policyVersion": {
605 "type": "string",
606 "required": true,
607 "description": "TCA Policy Scope Version"
609 "thresholds": {
610 "type": "list",
611 "required": true,
612 "description": "Thresholds associated with eventName",
613 "entry_schema": {
614 "type": "onap.datatypes.monitoring.thresholds"
619 "onap.datatypes.monitoring.tca_policy": {
620 "derived_from": "tosca.datatypes.Root",
621 "properties": {
622 "domain": {
623 "type": "string",
624 "required": true,
625 "description": "Domain name to which TCA needs to be applied",
626 "default": "measurementsForVfScaling",
627 "constraints": [
629 "equal": "measurementsForVfScaling"
633 "metricsPerEventName": {
634 "type": "list",
635 "required": true,
636 "description": "Contains eventName and threshold details that need to be applied to given eventName",
637 "entry_schema": {
638 "type": "onap.datatypes.monitoring.metricsPerEventName"
643 "onap.datatypes.monitoring.thresholds": {
644 "derived_from": "tosca.datatypes.Root",
645 "properties": {
646 "closedLoopControlName": {
647 "type": "string",
648 "required": true,
649 "description": "Closed Loop Control Name associated with the threshold"
651 "closedLoopEventStatus": {
652 "type": "string",
653 "required": true,
654 "description": "Closed Loop Event Status of the threshold",
655 "constraints": [
657 "valid_values": [
658 "ONSET",
659 "ABATED"
664 "direction": {
665 "type": "string",
666 "required": true,
667 "description": "Direction of the threshold",
668 "constraints": [
670 "valid_values": [
671 "LESS",
672 "LESS_OR_EQUAL",
673 "GREATER",
674 "GREATER_OR_EQUAL",
675 "EQUAL"
680 "fieldPath": {
681 "type": "string",
682 "required": true,
683 "description": "Json field Path as per CEF message which needs to be analyzed for TCA",
684 "constraints": [
686 "valid_values": [
687 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsDelta",
688 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedOctetsDelta",
689 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedUnicastPacketsDelta",
690 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedMulticastPacketsDelta",
691 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsDelta",
692 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedDiscardedPacketsDelta",
693 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedErrorPacketsDelta",
694 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsAccumulated",
695 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedOctetsAccumulated",
696 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedUnicastPacketsAccumulated",
697 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedMulticastPacketsAccumulated",
698 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsAccumulated",
699 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedDiscardedPacketsAccumulated",
700 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedErrorPacketsAccumulated",
701 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedTotalPacketsDelta",
702 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedOctetsDelta",
703 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedUnicastPacketsDelta",
704 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedMulticastPacketsDelta",
705 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedBroadcastPacketsDelta",
706 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedDiscardedPacketsDelta",
707 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedErrorPacketsDelta",
708 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedTotalPacketsAccumulated",
709 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedOctetsAccumulated",
710 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedUnicastPacketsAccumulated",
711 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedMulticastPacketsAccumulated",
712 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedBroadcastPacketsAccumulated",
713 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedDiscardedPacketsAccumulated",
714 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedErrorPacketsAccumulated",
715 "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuIdle",
716 "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageInterrupt",
717 "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageNice",
718 "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSoftIrq",
719 "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSteal",
720 "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSystem",
721 "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuWait",
722 "$.event.measurementsForVfScalingFields.cpuUsageArray[*].percentUsage",
723 "$.event.measurementsForVfScalingFields.meanRequestLatency",
724 "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryBuffered",
725 "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryCached",
726 "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryConfigured",
727 "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryFree",
728 "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryUsed",
729 "$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value"
734 "severity": {
735 "type": "string",
736 "required": true,
737 "description": "Threshold Event Severity",
738 "constraints": [
740 "valid_values": [
741 "CRITICAL",
742 "MAJOR",
743 "MINOR",
744 "WARNING",
745 "NORMAL"
750 "thresholdValue": {
751 "type": "integer",
752 "required": true,
753 "description": "Threshold value for the field Path inside CEF message"
755 "version": {
756 "type": "string",
757 "required": true,
758 "description": "Version number associated with the threshold"
764 <stringProp name="Argument.metadata">=</stringProp>
768 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
769 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
770 <stringProp name="HTTPSampler.protocol">https</stringProp>
771 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
772 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes</stringProp>
773 <stringProp name="HTTPSampler.method">POST</stringProp>
774 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
775 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
776 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
777 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
778 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
779 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
780 <stringProp name="HTTPSampler.response_timeout"></stringProp>
783 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
784 <collectionProp name="Asserion.test_strings">
785 <stringProp name="49586">200</stringProp>
787 <stringProp name="Assertion.custom_message"></stringProp>
788 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
789 <boolProp name="Assertion.assume_success">false</boolProp>
790 <intProp name="Assertion.test_type">1</intProp>
793 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
794 <stringProp name="scriptLanguage">groovy</stringProp>
795 <stringProp name="parameters"></stringProp>
796 <stringProp name="filename"></stringProp>
797 <stringProp name="cacheKey">true</stringProp>
798 <stringProp name="script">import groovy.json.JsonSlurper;
801 if (prev.getResponseCode() == '200') {
802 def jsonSlurper = new JsonSlurper();
803 res = jsonSlurper.parseText(prev.getResponseDataAsString());
805 assert res instanceof Map;
806 assert res.policy_types instanceof Map;
807 assert res.policy_types.size() == 2;
808 assert res.policy_types.values()[0] instanceof Map;
809 assert res.policy_types.values()[1] instanceof Map;
814 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create Policy Type Optimization" enabled="true">
815 <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
816 <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
817 <collectionProp name="Arguments.arguments">
818 <elementProp name="" elementType="HTTPArgument">
819 <boolProp name="HTTPArgument.always_encode">false</boolProp>
820 <stringProp name="Argument.value">{
821 "tosca_definitions_version": "tosca_simple_yaml_1_1_0",
822 "policy_types": {
823 "onap.policies.optimization.resource.AffinityPolicy": {
824 "derived_from": "onap.policies.optimization.Resource",
825 "version": "6.0.${__threadNum}",
826 "properties": {
827 "applicableResources": {
828 "type": "list",
829 "required": true,
830 "entry_schema": {
831 "type": "string",
832 "constraints": [
834 "valid_values": [
835 "any",
842 "affinityProperties": {
843 "type": "policy.data.affinityProperties_properties",
844 "required": true
849 "data_types": {
850 "policy.data.affinityProperties_properties": {
851 "derived_from": "tosca.nodes.Root",
852 "properties": {
853 "qualifier": {
854 "type": "string",
855 "constraints": [
857 "valid_values": [
858 "same",
859 "different"
864 "category": {
865 "type": "string",
866 "required": true
872 <stringProp name="Argument.metadata">=</stringProp>
876 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
877 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
878 <stringProp name="HTTPSampler.protocol">https</stringProp>
879 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
880 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes</stringProp>
881 <stringProp name="HTTPSampler.method">POST</stringProp>
882 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
883 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
884 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
885 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
886 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
887 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
888 <stringProp name="HTTPSampler.response_timeout"></stringProp>
891 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
892 <collectionProp name="Asserion.test_strings">
893 <stringProp name="49586">200</stringProp>
895 <stringProp name="Assertion.custom_message"></stringProp>
896 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
897 <boolProp name="Assertion.assume_success">false</boolProp>
898 <intProp name="Assertion.test_type">1</intProp>
901 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
902 <stringProp name="scriptLanguage">groovy</stringProp>
903 <stringProp name="parameters"></stringProp>
904 <stringProp name="filename"></stringProp>
905 <stringProp name="cacheKey">true</stringProp>
906 <stringProp name="script">import groovy.json.JsonSlurper;
909 if (prev.getResponseCode() == '200') {
910 def jsonSlurper = new JsonSlurper();
911 res = jsonSlurper.parseText(prev.getResponseDataAsString());
913 assert res instanceof Map;
914 assert res.policy_types instanceof Map;
915 assert res.policy_types.size() == 1;
916 assert res.policy_types.values()[0] instanceof Map;
917 // assert res.policy_types.values()[1] instanceof Map;
922 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create Policy Type Guard" enabled="true">
923 <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
924 <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
925 <collectionProp name="Arguments.arguments">
926 <elementProp name="" elementType="HTTPArgument">
927 <boolProp name="HTTPArgument.always_encode">false</boolProp>
928 <stringProp name="Argument.value">{
929 "tosca_definitions_version": "tosca_simple_yaml_1_1_0",
930 "policy_types": {
931 "onap.policies.controlloop.guard.common.Blacklist": {
932 "derived_from": "onap.policies.controlloop.guard.Common",
933 "type_version": "1.0.0",
934 "version": "6.0.${__threadNum}",
935 "description": "Supports blacklist of entity id's from performing control loop actions on.",
936 "properties": {
937 "blacklist": {
938 "type": "list",
939 "description": "List of entity id's not allowed to have control loop operations on.",
940 "required": true,
941 "entry_schema": {
942 "type": "string"
949 <stringProp name="Argument.metadata">=</stringProp>
953 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
954 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
955 <stringProp name="HTTPSampler.protocol">https</stringProp>
956 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
957 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes</stringProp>
958 <stringProp name="HTTPSampler.method">POST</stringProp>
959 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
960 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
961 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
962 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
963 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
964 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
965 <stringProp name="HTTPSampler.response_timeout"></stringProp>
968 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
969 <collectionProp name="Asserion.test_strings">
970 <stringProp name="49586">200</stringProp>
972 <stringProp name="Assertion.custom_message"></stringProp>
973 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
974 <boolProp name="Assertion.assume_success">false</boolProp>
975 <intProp name="Assertion.test_type">1</intProp>
978 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
979 <stringProp name="scriptLanguage">groovy</stringProp>
980 <stringProp name="parameters"></stringProp>
981 <stringProp name="filename"></stringProp>
982 <stringProp name="cacheKey">true</stringProp>
983 <stringProp name="script">import groovy.json.JsonSlurper;
986 if (prev.getResponseCode() == '200') {
987 def jsonSlurper = new JsonSlurper();
988 res = jsonSlurper.parseText(prev.getResponseDataAsString());
990 assert res instanceof Map;
991 assert res.policy_types instanceof Map;
992 assert res.policy_types.size() == 1;
993 assert res.policy_types.values()[0] instanceof Map;
998 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create Policy Type Native APEX" enabled="true">
999 <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
1000 <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
1001 <collectionProp name="Arguments.arguments">
1002 <elementProp name="" elementType="HTTPArgument">
1003 <boolProp name="HTTPArgument.always_encode">false</boolProp>
1004 <stringProp name="Argument.value">{
1005 "tosca_definitions_version": "tosca_simple_yaml_1_1_0",
1006 "policy_types": {
1007 "onap.policies.Native": {
1008 "derived_from": "tosca.policies.Root",
1009 "description": "a base policy type for all native PDP policies",
1010 "version": "1.0.0"
1012 "onap.policies.native.Apex": {
1013 "derived_from": "onap.policies.Native",
1014 "description": "a policy type for native apex policies",
1015 "version": "6.0.${__threadNum}",
1016 "properties": {
1017 "engine_service": {
1018 "type": "onap.datatypes.native.apex.EngineService",
1019 "description": "APEX Engine Service Parameters"
1021 "inputs": {
1022 "type": "map",
1023 "description": "Inputs for handling events coming into the APEX engine",
1024 "entry_schema": {
1025 "type": "onap.datatypes.native.apex.EventHandler"
1028 "outputs": {
1029 "type": "map",
1030 "description": "Outputs for handling events going out of the APEX engine",
1031 "entry_schema": {
1032 "type": "onap.datatypes.native.apex.EventHandler"
1035 "environment": {
1036 "type": "list",
1037 "description": "Envioronmental parameters for the APEX engine",
1038 "entry_schema": {
1039 "type": "onap.datatypes.native.apex.Environment"
1045 "data_types": {
1046 "onap.datatypes.native.apex.EngineService": {
1047 "derived_from": "tosca.datatypes.Root",
1048 "properties": {
1049 "name": {
1050 "type": "string",
1051 "description": "Specifies the engine name",
1052 "required": false,
1053 "default": "ApexEngineService"
1055 "version": {
1056 "type": "string",
1057 "description": "Specifies the engine version in double dotted format",
1058 "required": false,
1059 "default": "1.0.0"
1061 "id": {
1062 "type": "integer",
1063 "description": "Specifies the engine id",
1064 "required": true
1066 "instance_count": {
1067 "type": "integer",
1068 "description": "Specifies the number of engine threads that should be run",
1069 "required": true
1071 "deployment_port": {
1072 "type": "integer",
1073 "description": "Specifies the port to connect to for engine administration",
1074 "required": false,
1075 "default": 1
1077 "policy_model_file_name": {
1078 "type": "string",
1079 "description": "The name of the file from which to read the APEX policy model",
1080 "required": false
1082 "policy_type_impl": {
1083 "type": "string",
1084 "description": "The policy type implementation from which to read the APEX policy model",
1085 "required": false
1087 "periodic_event_period": {
1088 "type": "string",
1089 "description": "The time interval in milliseconds for the periodic scanning event, 0 means don't scan",
1090 "required": false
1092 "engine": {
1093 "type": "onap.datatypes.native.apex.engineservice.Engine",
1094 "description": "The parameters for all engines in the APEX engine service",
1095 "required": true
1099 "onap.datatypes.native.apex.EventHandler": {
1100 "derived_from": "tosca.datatypes.Root",
1101 "properties": {
1102 "name": {
1103 "type": "string",
1104 "description": "Specifies the event handler name, if not specified this is set to the key name",
1105 "required": false
1107 "carrier_technology": {
1108 "type": "onap.datatypes.native.apex.CarrierTechnology",
1109 "description": "Specifies the carrier technology of the event handler (such as REST/Web Socket/Kafka)",
1110 "required": true
1112 "event_protocol": {
1113 "type": "onap.datatypes.native.apex.EventProtocol",
1114 "description": "Specifies the event protocol of events for the event handler (such as Yaml/JSON/XML/POJO)",
1115 "required": true
1117 "event_name": {
1118 "type": "string",
1119 "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",
1120 "required": false
1122 "event_name_filter": {
1123 "type": "string",
1124 "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",
1125 "required": false
1127 "synchronous_mode": {
1128 "type": "boolean",
1129 "description": "Specifies the event handler is syncronous (receive event and send response)",
1130 "required": false,
1131 "default": false
1133 "synchronous_peer": {
1134 "type": "string",
1135 "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",
1136 "required": false
1138 "synchronous_timeout": {
1139 "type": "integer",
1140 "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",
1141 "required": false
1143 "requestor_mode": {
1144 "type": "boolean",
1145 "description": "Specifies the event handler is in requestor mode (send event and wait for response mode)",
1146 "required": false,
1147 "default": false
1149 "requestor_peer": {
1150 "type": "string",
1151 "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",
1152 "required": false
1154 "requestor_timeout": {
1155 "type": "integer",
1156 "description": "The timeout in milliseconds for wait for responses to requests, this parameter is mandatory if the event handler is in requestor mode",
1157 "required": false
1161 "onap.datatypes.native.apex.CarrierTechnology": {
1162 "derived_from": "tosca.datatypes.Root",
1163 "properties": {
1164 "label": {
1165 "type": "string",
1166 "description": "The label (name) of the carrier technology (such as REST, Kafka, WebSocket)",
1167 "required": true
1169 "plugin_parameter_class_name": {
1170 "type": "string",
1171 "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",
1172 "required": false
1176 "onap.datatypes.native.apex.EventProtocol": {
1177 "derived_from": "tosca.datatypes.Root",
1178 "properties": {
1179 "label": {
1180 "type": "string",
1181 "description": "The label (name) of the event protocol (such as Yaml, JSON, XML, or POJO)",
1182 "required": true
1184 "event_protocol_plugin_class": {
1185 "type": "string",
1186 "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",
1187 "required": false
1191 "onap.datatypes.native.apex.Environment": {
1192 "derived_from": "tosca.datatypes.Root",
1193 "properties": {
1194 "name": {
1195 "type": "string",
1196 "description": "The name of the environment variable",
1197 "required": true
1199 "value": {
1200 "type": "string",
1201 "description": "The value of the environment variable",
1202 "required": true
1206 "onap.datatypes.native.apex.engineservice.Engine": {
1207 "derived_from": "tosca.datatypes.Root",
1208 "properties": {
1209 "context": {
1210 "type": "onap.datatypes.native.apex.engineservice.engine.Context",
1211 "description": "The properties for handling context in APEX engines, defaults to using Java maps for context",
1212 "required": false
1214 "executors": {
1215 "type": "map",
1216 "description": "The plugins for policy executors used in engines such as javascript, MVEL, Jython",
1217 "required": true,
1218 "entry_schema": {
1219 "description": "The plugin class path for this policy executor",
1220 "type": "string"
1225 "onap.datatypes.native.apex.engineservice.engine.Context": {
1226 "derived_from": "tosca.datatypes.Root",
1227 "properties": {
1228 "distributor": {
1229 "type": "onap.datatypes.native.apex.Plugin",
1230 "description": "The plugin to be used for distributing context between APEX PDPs at runtime",
1231 "required": false
1233 "schemas": {
1234 "type": "map",
1235 "description": "The plugins for context schemas available in APEX PDPs such as Java and Avro",
1236 "required": false,
1237 "entry_schema": {
1238 "type": "onap.datatypes.native.apex.Plugin"
1241 "locking": {
1242 "type": "onap.datatypes.native.apex.Plugin",
1243 "description": "The plugin to be used for locking context in and between APEX PDPs at runtime",
1244 "required": false
1246 "persistence": {
1247 "type": "onap.datatypes.native.apex.Plugin",
1248 "description": "The plugin to be used for persisting context for APEX PDPs at runtime",
1249 "required": false
1253 "onap.datatypes.native.apex.Plugin": {
1254 "derived_from": "tosca.datatypes.Root",
1255 "properties": {
1256 "name": {
1257 "type": "string",
1258 "description": "The name of the executor such as Javascript, Jython or MVEL",
1259 "required": true
1261 "plugin_class_name": {
1262 "type": "string",
1263 "description": "The class path of the plugin class for this executor"
1269 <stringProp name="Argument.metadata">=</stringProp>
1273 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
1274 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
1275 <stringProp name="HTTPSampler.protocol">https</stringProp>
1276 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
1277 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes</stringProp>
1278 <stringProp name="HTTPSampler.method">POST</stringProp>
1279 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
1280 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
1281 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
1282 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
1283 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
1284 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
1285 <stringProp name="HTTPSampler.response_timeout"></stringProp>
1288 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
1289 <collectionProp name="Asserion.test_strings">
1290 <stringProp name="49586">200</stringProp>
1292 <stringProp name="Assertion.custom_message"></stringProp>
1293 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
1294 <boolProp name="Assertion.assume_success">false</boolProp>
1295 <intProp name="Assertion.test_type">1</intProp>
1296 </ResponseAssertion>
1298 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
1299 <stringProp name="scriptLanguage">groovy</stringProp>
1300 <stringProp name="parameters"></stringProp>
1301 <stringProp name="filename"></stringProp>
1302 <stringProp name="cacheKey">true</stringProp>
1303 <stringProp name="script">import groovy.json.JsonSlurper;
1306 if (prev.getResponseCode() == '200') {
1307 def jsonSlurper = new JsonSlurper();
1308 res = jsonSlurper.parseText(prev.getResponseDataAsString());
1310 assert res instanceof Map;
1311 assert res.policy_types instanceof Map;
1312 assert res.policy_types.size() == 2;
1313 assert res.policy_types.values()[0] instanceof Map;
1314 assert res.policy_types.values()[1] instanceof Map;
1319 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create Policy Type Native Drools" enabled="true">
1320 <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
1321 <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
1322 <collectionProp name="Arguments.arguments">
1323 <elementProp name="" elementType="HTTPArgument">
1324 <boolProp name="HTTPArgument.always_encode">false</boolProp>
1325 <stringProp name="Argument.value">{
1326 "tosca_definitions_version": "tosca_simple_yaml_1_1_0",
1327 "policy_types": {
1328 "onap.policies.Native": {
1329 "derived_from": "tosca.policies.Root",
1330 "description": "a base policy type for all native PDP policies",
1331 "version": "1.0.0"
1333 "onap.policies.native.Drools": {
1334 "derived_from": "onap.policies.Native",
1335 "description": "a base policy type for all native PDP policies",
1336 "version": "1.0.0"
1338 "onap.policies.native.drools.Controller": {
1339 "derived_from": "onap.policies.native.Drools",
1340 "description": "a policy type for a drools controller configuration",
1341 "version": "6.0.${__threadNum}",
1342 "properties": {
1343 "controllerName": {
1344 "type": "string",
1345 "required": true,
1346 "description": "the drools controller name"
1348 "sourceTopics": {
1349 "type": "list",
1350 "required": false,
1351 "description": "source topics and applicable events",
1352 "entry_schema": {
1353 "type": "onap.datatypes.dmaap.topic"
1356 "sinkTopics": {
1357 "type": "list",
1358 "required": false,
1359 "description": "sink topics and applicable events",
1360 "entry_schema": {
1361 "type": "onap.datatypes.dmaap.topic"
1364 "customConfig": {
1365 "type": "map",
1366 "required": false,
1367 "description": "any use case specific configurations relevant to the drools controller",
1368 "entry_schema": {
1369 "type": "string"
1374 "onap.policies.native.drools.Artifact": {
1375 "derived_from": "onap.policies.native.Drools",
1376 "description": "a policy type for native drools artifact policies",
1377 "version": "6.0.${__threadNum}",
1378 "properties": {
1379 "rulesArtifact": {
1380 "type": "onap.datatypes.native.rules_artifact",
1381 "required": true,
1382 "description": "the GAV information of the maven artifact"
1384 "controller": {
1385 "type": "onap.datatypes.drools.controller.relation",
1386 "required": true,
1387 "description": "the drools controller to which the current native policy is assigned"
1392 "data_types": {
1393 "onap.datatypes.dmaap.topic": {
1394 "derived_from": "tosca.datatypes.Root",
1395 "properties": {
1396 "topicName": {
1397 "type": "string",
1398 "required": true,
1399 "description": "the dmaap topic name"
1401 "events": {
1402 "type": "list",
1403 "required": true,
1404 "description": "events used by this topic",
1405 "entry_schema": {
1406 "type": "onap.datatypes.dmaap.events"
1411 "onap.datatypes.dmaap.events": {
1412 "derived_from": "tosca.datatypes.Root",
1413 "properties": {
1414 "eventClass": {
1415 "type": "string",
1416 "required": true,
1417 "description": "the event canonical class for serialization"
1419 "eventFilter": {
1420 "type": "string",
1421 "required": false,
1422 "description": "the JSONPath based condition to filter out the events to serialize"
1424 "customSerialization": {
1425 "type": "onap.datatypes.dmaap.custom_serialization",
1426 "required": false,
1427 "description": "overrides the default serialization/deserialization mechanisms with custom ones"
1431 "onap.datatypes.dmaap.custom_serialization": {
1432 "derived_from": "tosca.datatypes.Root",
1433 "properties": {
1434 "customSerializerClass": {
1435 "type": "string",
1436 "required": true,
1437 "description": "the class that contains the JSON parser serializer/deserializer."
1439 "jsonParser": {
1440 "type": "string",
1441 "required": true,
1442 "description": "static field in customSerialized class with the json parser (currently only gson supported)"
1446 "onap.datatypes.native.rules_artifact": {
1447 "derived_from": "tosca.datatypes.Root",
1448 "properties": {
1449 "groupId": {
1450 "type": "string",
1451 "required": true,
1452 "description": "the groupId of the maven artifact"
1454 "artifactId": {
1455 "type": "string",
1456 "required": true,
1457 "description": "the artifactId of the maven artifact"
1459 "version": {
1460 "type": "string",
1461 "required": true,
1462 "description": "the version of the maven artifact"
1466 "onap.datatypes.drools.controller.relation": {
1467 "derived_from": "tosca.datatypes.Root",
1468 "properties": {
1469 "name": {
1470 "type": "string",
1471 "required": true,
1472 "description": "the name of drools controller policy"
1478 <stringProp name="Argument.metadata">=</stringProp>
1482 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
1483 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
1484 <stringProp name="HTTPSampler.protocol">https</stringProp>
1485 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
1486 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes</stringProp>
1487 <stringProp name="HTTPSampler.method">POST</stringProp>
1488 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
1489 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
1490 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
1491 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
1492 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
1493 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
1494 <stringProp name="HTTPSampler.response_timeout"></stringProp>
1497 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
1498 <collectionProp name="Asserion.test_strings">
1499 <stringProp name="49586">200</stringProp>
1501 <stringProp name="Assertion.custom_message"></stringProp>
1502 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
1503 <boolProp name="Assertion.assume_success">false</boolProp>
1504 <intProp name="Assertion.test_type">1</intProp>
1505 </ResponseAssertion>
1507 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
1508 <stringProp name="scriptLanguage">groovy</stringProp>
1509 <stringProp name="parameters"></stringProp>
1510 <stringProp name="filename"></stringProp>
1511 <stringProp name="cacheKey">true</stringProp>
1512 <stringProp name="script">import groovy.json.JsonSlurper;
1515 if (prev.getResponseCode() == '200') {
1516 def jsonSlurper = new JsonSlurper();
1517 res = jsonSlurper.parseText(prev.getResponseDataAsString());
1519 assert res instanceof Map;
1520 assert res.policy_types instanceof Map;
1521 assert res.policy_types.size() == 4;
1522 assert res.policy_types.values()[0] instanceof Map;
1523 assert res.policy_types.values()[1] instanceof Map;
1524 assert res.policy_types.values()[2] instanceof Map;
1525 assert res.policy_types.values()[3] instanceof Map;
1530 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create Policy Type Native XACML" enabled="true">
1531 <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
1532 <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
1533 <collectionProp name="Arguments.arguments">
1534 <elementProp name="" elementType="HTTPArgument">
1535 <boolProp name="HTTPArgument.always_encode">false</boolProp>
1536 <stringProp name="Argument.value">{
1537 "tosca_definitions_version": "tosca_simple_yaml_1_1_0",
1538 "policy_types": {
1539 "onap.policies.Native": {
1540 "derived_from": "tosca.policies.Root",
1541 "description": "a base policy type for all native PDP policies",
1542 "version": "1.0.0"
1544 "onap.policies.native.Xacml": {
1545 "derived_from": "onap.policies.Native",
1546 "description": "a policy type for native xacml policies",
1547 "version": "6.0.${__threadNum}",
1548 "properties": {
1549 "policy": {
1550 "type": "string",
1551 "required": true,
1552 "description": "The XML XACML 3.0 PolicySet or Policy",
1553 "metadata": {
1554 "encoding": "Base64"
1561 <stringProp name="Argument.metadata">=</stringProp>
1565 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
1566 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
1567 <stringProp name="HTTPSampler.protocol">https</stringProp>
1568 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
1569 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes</stringProp>
1570 <stringProp name="HTTPSampler.method">POST</stringProp>
1571 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
1572 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
1573 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
1574 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
1575 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
1576 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
1577 <stringProp name="HTTPSampler.response_timeout"></stringProp>
1580 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
1581 <collectionProp name="Asserion.test_strings">
1582 <stringProp name="49586">200</stringProp>
1584 <stringProp name="Assertion.custom_message"></stringProp>
1585 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
1586 <boolProp name="Assertion.assume_success">false</boolProp>
1587 <intProp name="Assertion.test_type">1</intProp>
1588 </ResponseAssertion>
1590 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
1591 <stringProp name="scriptLanguage">groovy</stringProp>
1592 <stringProp name="parameters"></stringProp>
1593 <stringProp name="filename"></stringProp>
1594 <stringProp name="cacheKey">true</stringProp>
1595 <stringProp name="script">import groovy.json.JsonSlurper;
1598 if (prev.getResponseCode() == '200') {
1599 def jsonSlurper = new JsonSlurper();
1600 res = jsonSlurper.parseText(prev.getResponseDataAsString());
1602 assert res instanceof Map;
1603 assert res.policy_types instanceof Map;
1604 assert res.policy_types.size() == 2;
1605 assert res.policy_types.values()[0] instanceof Map;
1606 assert res.policy_types.values()[1] instanceof Map;
1611 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get All Policy Types" enabled="true">
1612 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
1613 <collectionProp name="Arguments.arguments"/>
1615 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
1616 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
1617 <stringProp name="HTTPSampler.protocol">https</stringProp>
1618 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
1619 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes</stringProp>
1620 <stringProp name="HTTPSampler.method">GET</stringProp>
1621 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
1622 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
1623 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
1624 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
1625 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
1626 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
1627 <stringProp name="HTTPSampler.response_timeout"></stringProp>
1630 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
1631 <collectionProp name="Asserion.test_strings">
1632 <stringProp name="49586">200</stringProp>
1634 <stringProp name="Assertion.custom_message"></stringProp>
1635 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
1636 <boolProp name="Assertion.assume_success">false</boolProp>
1637 <intProp name="Assertion.test_type">1</intProp>
1638 </ResponseAssertion>
1640 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
1641 <stringProp name="scriptLanguage">groovy</stringProp>
1642 <stringProp name="parameters"></stringProp>
1643 <stringProp name="filename"></stringProp>
1644 <stringProp name="cacheKey">true</stringProp>
1645 <stringProp name="script">import groovy.json.JsonSlurper;
1648 if (prev.getResponseCode() == '200') {
1649 def jsonSlurper = new JsonSlurper();
1650 res = jsonSlurper.parseText(prev.getResponseDataAsString());
1652 assert res instanceof Map;
1653 assert res.policy_types instanceof Map;
1654 assert res.policy_types.size() == 35;
1657 for (i=0; i<n; i++) {
1658 assert res.policy_types.values()[i] instanceof Map;
1664 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get All Versions of TCA Policy Type" enabled="true">
1665 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
1666 <collectionProp name="Arguments.arguments"/>
1668 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
1669 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
1670 <stringProp name="HTTPSampler.protocol">https</stringProp>
1671 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
1672 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app</stringProp>
1673 <stringProp name="HTTPSampler.method">GET</stringProp>
1674 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
1675 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
1676 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
1677 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
1678 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
1679 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
1680 <stringProp name="HTTPSampler.response_timeout"></stringProp>
1681 <stringProp name="TestPlan.comments">This is not working in Frankfurt and hence disabled.</stringProp>
1684 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
1685 <collectionProp name="Asserion.test_strings">
1686 <stringProp name="49586">200</stringProp>
1688 <stringProp name="Assertion.custom_message"></stringProp>
1689 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
1690 <boolProp name="Assertion.assume_success">false</boolProp>
1691 <intProp name="Assertion.test_type">1</intProp>
1692 </ResponseAssertion>
1694 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
1695 <stringProp name="scriptLanguage">groovy</stringProp>
1696 <stringProp name="parameters"></stringProp>
1697 <stringProp name="filename"></stringProp>
1698 <stringProp name="cacheKey">true</stringProp>
1699 <stringProp name="script">import groovy.json.JsonSlurper;
1702 if (prev.getResponseCode() == '200') {
1703 def jsonSlurper = new JsonSlurper();
1704 res = jsonSlurper.parseText(prev.getResponseDataAsString());
1706 assert res instanceof Map;
1707 assert res.policy_types instanceof Map;
1708 assert res.policy_types.size() > 0 && res.policy_types.size() < 10;
1710 for (i=0; i<res.policy_types.size(); i++) {
1711 assert res.policy_types.values()[i] instanceof Map;
1717 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get Policy Type Monitoring" enabled="true">
1718 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
1719 <collectionProp name="Arguments.arguments"/>
1721 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
1722 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
1723 <stringProp name="HTTPSampler.protocol">https</stringProp>
1724 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
1725 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/6.0.${__threadNum}</stringProp>
1726 <stringProp name="HTTPSampler.method">GET</stringProp>
1727 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
1728 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
1729 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
1730 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
1731 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
1732 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
1733 <stringProp name="HTTPSampler.response_timeout"></stringProp>
1736 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
1737 <collectionProp name="Asserion.test_strings">
1738 <stringProp name="49586">200</stringProp>
1740 <stringProp name="Assertion.custom_message"></stringProp>
1741 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
1742 <boolProp name="Assertion.assume_success">false</boolProp>
1743 <intProp name="Assertion.test_type">1</intProp>
1744 </ResponseAssertion>
1746 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
1747 <stringProp name="scriptLanguage">groovy</stringProp>
1748 <stringProp name="parameters"></stringProp>
1749 <stringProp name="filename"></stringProp>
1750 <stringProp name="cacheKey">true</stringProp>
1751 <stringProp name="script">import groovy.json.JsonSlurper;
1754 if (prev.getResponseCode() == '200') {
1755 def jsonSlurper = new JsonSlurper();
1756 res = jsonSlurper.parseText(prev.getResponseDataAsString());
1758 assert res instanceof Map;
1759 assert res.policy_types instanceof Map;
1760 assert res.policy_types.size() == 2;
1762 assert res.policy_types.get('onap.policies.monitoring.cdap.tca.hi.lo.app') instanceof Map;
1763 assert res.policy_types.get('onap.policies.monitoring.cdap.tca.hi.lo.app').version == "6.0.${__threadNum}";
1768 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get Policy Type Optimization" enabled="true">
1769 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
1770 <collectionProp name="Arguments.arguments"/>
1772 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
1773 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
1774 <stringProp name="HTTPSampler.protocol">https</stringProp>
1775 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
1776 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.optimization.resource.AffinityPolicy/versions/6.0.${__threadNum}</stringProp>
1777 <stringProp name="HTTPSampler.method">GET</stringProp>
1778 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
1779 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
1780 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
1781 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
1782 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
1783 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
1784 <stringProp name="HTTPSampler.response_timeout"></stringProp>
1787 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
1788 <collectionProp name="Asserion.test_strings">
1789 <stringProp name="49586">200</stringProp>
1791 <stringProp name="Assertion.custom_message"></stringProp>
1792 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
1793 <boolProp name="Assertion.assume_success">false</boolProp>
1794 <intProp name="Assertion.test_type">1</intProp>
1795 </ResponseAssertion>
1797 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
1798 <stringProp name="scriptLanguage">groovy</stringProp>
1799 <stringProp name="parameters"></stringProp>
1800 <stringProp name="filename"></stringProp>
1801 <stringProp name="cacheKey">true</stringProp>
1802 <stringProp name="script">import groovy.json.JsonSlurper;
1805 if (prev.getResponseCode() == '200') {
1806 def jsonSlurper = new JsonSlurper();
1807 res = jsonSlurper.parseText(prev.getResponseDataAsString());
1809 assert res instanceof Map;
1810 assert res.policy_types instanceof Map;
1811 assert res.policy_types.size() == 3;
1813 assert res.policy_types.get('onap.policies.optimization.resource.AffinityPolicy') instanceof Map;
1814 assert res.policy_types.get('onap.policies.optimization.resource.AffinityPolicy').version == "6.0.${__threadNum}";
1819 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get Policy Type Guard" enabled="true">
1820 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
1821 <collectionProp name="Arguments.arguments"/>
1823 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
1824 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
1825 <stringProp name="HTTPSampler.protocol">https</stringProp>
1826 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
1827 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.controlloop.guard.common.Blacklist/versions/6.0.${__threadNum}</stringProp>
1828 <stringProp name="HTTPSampler.method">GET</stringProp>
1829 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
1830 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
1831 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
1832 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
1833 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
1834 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
1835 <stringProp name="HTTPSampler.response_timeout"></stringProp>
1838 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
1839 <collectionProp name="Asserion.test_strings">
1840 <stringProp name="49586">200</stringProp>
1842 <stringProp name="Assertion.custom_message"></stringProp>
1843 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
1844 <boolProp name="Assertion.assume_success">false</boolProp>
1845 <intProp name="Assertion.test_type">1</intProp>
1846 </ResponseAssertion>
1848 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
1849 <stringProp name="scriptLanguage">groovy</stringProp>
1850 <stringProp name="parameters"></stringProp>
1851 <stringProp name="filename"></stringProp>
1852 <stringProp name="cacheKey">true</stringProp>
1853 <stringProp name="script">import groovy.json.JsonSlurper;
1856 if (prev.getResponseCode() == '200') {
1857 def jsonSlurper = new JsonSlurper();
1858 res = jsonSlurper.parseText(prev.getResponseDataAsString());
1860 assert res instanceof Map;
1861 assert res.policy_types instanceof Map;
1862 assert res.policy_types.size() == 2;
1864 assert res.policy_types.get('onap.policies.controlloop.guard.common.Blacklist') instanceof Map;
1865 assert res.policy_types.get('onap.policies.controlloop.guard.common.Blacklist').version == "6.0.${__threadNum}";
1870 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get Policy Type Native APEX" enabled="true">
1871 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
1872 <collectionProp name="Arguments.arguments"/>
1874 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
1875 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
1876 <stringProp name="HTTPSampler.protocol">https</stringProp>
1877 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
1878 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.native.Apex/versions/6.0.${__threadNum}</stringProp>
1879 <stringProp name="HTTPSampler.method">GET</stringProp>
1880 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
1881 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
1882 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
1883 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
1884 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
1885 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
1886 <stringProp name="HTTPSampler.response_timeout"></stringProp>
1889 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
1890 <collectionProp name="Asserion.test_strings">
1891 <stringProp name="49586">200</stringProp>
1893 <stringProp name="Assertion.custom_message"></stringProp>
1894 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
1895 <boolProp name="Assertion.assume_success">false</boolProp>
1896 <intProp name="Assertion.test_type">1</intProp>
1897 </ResponseAssertion>
1899 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
1900 <stringProp name="scriptLanguage">groovy</stringProp>
1901 <stringProp name="parameters"></stringProp>
1902 <stringProp name="filename"></stringProp>
1903 <stringProp name="cacheKey">true</stringProp>
1904 <stringProp name="script">import groovy.json.JsonSlurper;
1907 if (prev.getResponseCode() == '200') {
1908 def jsonSlurper = new JsonSlurper();
1909 res = jsonSlurper.parseText(prev.getResponseDataAsString());
1911 assert res instanceof Map;
1912 assert res.policy_types instanceof Map;
1913 assert res.policy_types.size() == 2;
1915 assert res.policy_types.get('onap.policies.native.Apex') instanceof Map;
1916 assert res.policy_types.get('onap.policies.native.Apex').version == "6.0.${__threadNum}";
1921 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get Policy Type Native Drools" enabled="true">
1922 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
1923 <collectionProp name="Arguments.arguments"/>
1925 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
1926 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
1927 <stringProp name="HTTPSampler.protocol">https</stringProp>
1928 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
1929 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.native.drools.Controller/versions/6.0.${__threadNum}</stringProp>
1930 <stringProp name="HTTPSampler.method">GET</stringProp>
1931 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
1932 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
1933 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
1934 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
1935 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
1936 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
1937 <stringProp name="HTTPSampler.response_timeout"></stringProp>
1940 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
1941 <collectionProp name="Asserion.test_strings">
1942 <stringProp name="49586">200</stringProp>
1944 <stringProp name="Assertion.custom_message"></stringProp>
1945 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
1946 <boolProp name="Assertion.assume_success">false</boolProp>
1947 <intProp name="Assertion.test_type">1</intProp>
1948 </ResponseAssertion>
1950 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
1951 <stringProp name="scriptLanguage">groovy</stringProp>
1952 <stringProp name="parameters"></stringProp>
1953 <stringProp name="filename"></stringProp>
1954 <stringProp name="cacheKey">true</stringProp>
1955 <stringProp name="script">import groovy.json.JsonSlurper;
1958 if (prev.getResponseCode() == '200') {
1959 def jsonSlurper = new JsonSlurper();
1960 res = jsonSlurper.parseText(prev.getResponseDataAsString());
1962 assert res instanceof Map;
1963 assert res.policy_types instanceof Map;
1964 assert res.policy_types.size() == 3;
1966 assert res.policy_types.get('onap.policies.native.drools.Controller') instanceof Map;
1967 assert res.policy_types.get('onap.policies.native.drools.Controller').version == "6.0.${__threadNum}";
1972 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get Policy Type Native XACML" enabled="true">
1973 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
1974 <collectionProp name="Arguments.arguments"/>
1976 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
1977 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
1978 <stringProp name="HTTPSampler.protocol">https</stringProp>
1979 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
1980 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.native.Xacml/versions/6.0.${__threadNum}</stringProp>
1981 <stringProp name="HTTPSampler.method">GET</stringProp>
1982 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
1983 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
1984 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
1985 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
1986 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
1987 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
1988 <stringProp name="HTTPSampler.response_timeout"></stringProp>
1991 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
1992 <collectionProp name="Asserion.test_strings">
1993 <stringProp name="49586">200</stringProp>
1995 <stringProp name="Assertion.custom_message"></stringProp>
1996 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
1997 <boolProp name="Assertion.assume_success">false</boolProp>
1998 <intProp name="Assertion.test_type">1</intProp>
1999 </ResponseAssertion>
2001 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
2002 <stringProp name="scriptLanguage">groovy</stringProp>
2003 <stringProp name="parameters"></stringProp>
2004 <stringProp name="filename"></stringProp>
2005 <stringProp name="cacheKey">true</stringProp>
2006 <stringProp name="script">import groovy.json.JsonSlurper;
2009 if (prev.getResponseCode() == '200') {
2010 def jsonSlurper = new JsonSlurper();
2011 res = jsonSlurper.parseText(prev.getResponseDataAsString());
2013 assert res instanceof Map;
2014 assert res.policy_types instanceof Map;
2015 assert res.policy_types.size() == 2;
2017 assert res.policy_types.get('onap.policies.native.Xacml') instanceof Map;
2018 assert res.policy_types.get('onap.policies.native.Xacml').version == "6.0.${__threadNum}";
2023 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get Latest Monitoring Policy Type" enabled="true">
2024 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
2025 <collectionProp name="Arguments.arguments"/>
2027 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
2028 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
2029 <stringProp name="HTTPSampler.protocol">https</stringProp>
2030 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
2031 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/latest</stringProp>
2032 <stringProp name="HTTPSampler.method">GET</stringProp>
2033 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
2034 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
2035 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
2036 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
2037 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
2038 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
2039 <stringProp name="HTTPSampler.response_timeout"></stringProp>
2042 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
2043 <collectionProp name="Asserion.test_strings">
2044 <stringProp name="49586">200</stringProp>
2046 <stringProp name="Assertion.custom_message"></stringProp>
2047 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
2048 <boolProp name="Assertion.assume_success">false</boolProp>
2049 <intProp name="Assertion.test_type">1</intProp>
2050 </ResponseAssertion>
2052 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
2053 <stringProp name="scriptLanguage">groovy</stringProp>
2054 <stringProp name="parameters"></stringProp>
2055 <stringProp name="filename"></stringProp>
2056 <stringProp name="cacheKey">true</stringProp>
2057 <stringProp name="script">import groovy.json.JsonSlurper;
2060 if (prev.getResponseCode() == '200') {
2061 def jsonSlurper = new JsonSlurper();
2062 res = jsonSlurper.parseText(prev.getResponseDataAsString());
2064 assert res instanceof Map;
2065 assert res.policy_types instanceof Map;
2066 assert res.policy_types.size() > 0 && res.policy_types.size() < 10;
2068 assert res.policy_types.get('onap.policies.monitoring.cdap.tca.hi.lo.app') instanceof Map;
2069 assert res.policy_types.get('onap.policies.monitoring.cdap.tca.hi.lo.app').version ==~ /7.0.\d+/;
2074 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create Policy Monitoring" enabled="true">
2075 <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
2076 <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
2077 <collectionProp name="Arguments.arguments">
2078 <elementProp name="" elementType="HTTPArgument">
2079 <boolProp name="HTTPArgument.always_encode">false</boolProp>
2080 <stringProp name="Argument.value">{
2081 "tosca_definitions_version": "tosca_simple_yaml_1_1_0",
2082 "topology_template": {
2083 "policies": [
2085 "onap.restart.tca": {
2086 "type": "onap.policies.monitoring.cdap.tca.hi.lo.app",
2087 "type_version": "6.0.${__threadNum}",
2088 "version": "6.0.${__threadNum}",
2089 "metadata": {
2090 "policy-id": "onap.restart.tca"
2092 "properties": {
2093 "tca_policy": {
2094 "domain": "measurementsForVfScaling",
2095 "metricsPerEventName": [
2097 "eventName": "Measurement_vGMUX",
2098 "controlLoopSchemaType": "VNF",
2099 "policyScope": "DCAE",
2100 "policyName": "DCAE.Config_tca-hi-lo",
2101 "policyVersion": "v0.0.1",
2102 "thresholds": [
2104 "closedLoopControlName": "ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e",
2105 "version": "1.0.2",
2106 "fieldPath": "$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value",
2107 "thresholdValue": 0,
2108 "direction": "EQUAL",
2109 "severity": "MAJOR",
2110 "closedLoopEventStatus": "ABATED"
2113 "closedLoopControlName": "ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e",
2114 "version": "1.0.2",
2115 "fieldPath": "$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value",
2116 "thresholdValue": 0,
2117 "direction": "GREATER",
2118 "severity": "CRITICAL",
2119 "closedLoopEventStatus": "ONSET"
2131 <stringProp name="Argument.metadata">=</stringProp>
2135 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
2136 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
2137 <stringProp name="HTTPSampler.protocol">https</stringProp>
2138 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
2139 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/1.0.0/policies</stringProp>
2140 <stringProp name="HTTPSampler.method">POST</stringProp>
2141 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
2142 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
2143 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
2144 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
2145 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
2146 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
2147 <stringProp name="HTTPSampler.response_timeout"></stringProp>
2150 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
2151 <collectionProp name="Asserion.test_strings">
2152 <stringProp name="49586">200</stringProp>
2154 <stringProp name="Assertion.custom_message"></stringProp>
2155 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
2156 <boolProp name="Assertion.assume_success">false</boolProp>
2157 <intProp name="Assertion.test_type">1</intProp>
2158 </ResponseAssertion>
2160 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
2161 <stringProp name="scriptLanguage">groovy</stringProp>
2162 <stringProp name="parameters"></stringProp>
2163 <stringProp name="filename"></stringProp>
2164 <stringProp name="cacheKey">true</stringProp>
2165 <stringProp name="script">import groovy.json.JsonSlurper;
2168 if (prev.getResponseCode() == '200') {
2169 def jsonSlurper = new JsonSlurper();
2170 res = jsonSlurper.parseText(prev.getResponseDataAsString());
2172 assert res instanceof Map;
2173 assert res.topology_template.policies instanceof List;
2174 assert res.topology_template.policies.size == 1;
2175 assert res.topology_template.policies[0] instanceof Map;
2180 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create Policy Monitoring V2" enabled="true">
2181 <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
2182 <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
2183 <collectionProp name="Arguments.arguments">
2184 <elementProp name="" elementType="HTTPArgument">
2185 <boolProp name="HTTPArgument.always_encode">false</boolProp>
2186 <stringProp name="Argument.value">{
2187 "tosca_definitions_version": "tosca_simple_yaml_1_1_0",
2188 "topology_template": {
2189 "policies": [
2191 "onap.restart.tca": {
2192 "type": "onap.policies.monitoring.cdap.tca.hi.lo.app",
2193 "type_version": "7.0.${__threadNum}",
2194 "version": "7.0.${__threadNum}",
2195 "metadata": {
2196 "policy-id": "onap.restart.tca"
2198 "properties": {
2199 "tca_policy": {
2200 "domain": "measurementsForVfScaling",
2201 "metricsPerEventName": [
2203 "eventName": "Measurement_vGMUX",
2204 "controlLoopSchemaType": "VNF",
2205 "policyScope": "DCAE",
2206 "policyName": "DCAE.Config_tca-hi-lo",
2207 "policyVersion": "v0.0.1",
2208 "thresholds": [
2210 "closedLoopControlName": "ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e",
2211 "version": "1.0.2",
2212 "fieldPath": "$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value",
2213 "thresholdValue": 0,
2214 "direction": "EQUAL",
2215 "severity": "MAJOR",
2216 "closedLoopEventStatus": "ABATED"
2219 "closedLoopControlName": "ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e",
2220 "version": "1.0.2",
2221 "fieldPath": "$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value",
2222 "thresholdValue": 0,
2223 "direction": "GREATER",
2224 "severity": "CRITICAL",
2225 "closedLoopEventStatus": "ONSET"
2237 <stringProp name="Argument.metadata">=</stringProp>
2241 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
2242 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
2243 <stringProp name="HTTPSampler.protocol">https</stringProp>
2244 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
2245 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/1.0.0/policies</stringProp>
2246 <stringProp name="HTTPSampler.method">POST</stringProp>
2247 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
2248 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
2249 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
2250 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
2251 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
2252 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
2253 <stringProp name="HTTPSampler.response_timeout"></stringProp>
2256 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
2257 <collectionProp name="Asserion.test_strings">
2258 <stringProp name="49586">200</stringProp>
2260 <stringProp name="Assertion.custom_message"></stringProp>
2261 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
2262 <boolProp name="Assertion.assume_success">false</boolProp>
2263 <intProp name="Assertion.test_type">1</intProp>
2264 </ResponseAssertion>
2266 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
2267 <stringProp name="scriptLanguage">groovy</stringProp>
2268 <stringProp name="parameters"></stringProp>
2269 <stringProp name="filename"></stringProp>
2270 <stringProp name="cacheKey">true</stringProp>
2271 <stringProp name="script">import groovy.json.JsonSlurper;
2274 if (prev.getResponseCode() == '200') {
2275 def jsonSlurper = new JsonSlurper();
2276 res = jsonSlurper.parseText(prev.getResponseDataAsString());
2278 assert res instanceof Map;
2279 assert res.topology_template.policies instanceof List;
2280 assert res.topology_template.policies.size == 1;
2281 assert res.topology_template.policies[0] instanceof Map;
2286 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create Policy Optimization" enabled="true">
2287 <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
2288 <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
2289 <collectionProp name="Arguments.arguments">
2290 <elementProp name="" elementType="HTTPArgument">
2291 <boolProp name="HTTPArgument.always_encode">false</boolProp>
2292 <stringProp name="Argument.value">{
2293 "tosca_definitions_version": "tosca_simple_yaml_1_1_0",
2294 "topology_template": {
2295 "policies": [
2297 "OSDF_CASABLANCA.Affinity_Default": {
2298 "type": "onap.policies.optimization.resource.AffinityPolicy",
2299 "version": "6.0.${__threadNum}",
2300 "type_version": "6.0.${__threadNum}",
2301 "metadata": {
2302 "policy-id": "OSDF_CASABLANCA.Affinity_Default",
2303 "policy-version": 1
2305 "properties": {
2306 "scope": [],
2307 "services": [],
2308 "resources": [],
2309 "geography": [],
2310 "identity": "affinity_vCPE",
2311 "applicableResources": "any",
2312 "affinityProperties": {
2313 "qualifier": "same",
2314 "category": "complex"
2322 <stringProp name="Argument.metadata">=</stringProp>
2326 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
2327 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
2328 <stringProp name="HTTPSampler.protocol">https</stringProp>
2329 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
2330 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.optimization.resource.AffinityPolicy/versions/2.0.0/policies</stringProp>
2331 <stringProp name="HTTPSampler.method">POST</stringProp>
2332 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
2333 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
2334 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
2335 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
2336 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
2337 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
2338 <stringProp name="HTTPSampler.response_timeout"></stringProp>
2341 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
2342 <collectionProp name="Asserion.test_strings">
2343 <stringProp name="49586">200</stringProp>
2345 <stringProp name="Assertion.custom_message"></stringProp>
2346 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
2347 <boolProp name="Assertion.assume_success">false</boolProp>
2348 <intProp name="Assertion.test_type">1</intProp>
2349 </ResponseAssertion>
2351 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
2352 <stringProp name="scriptLanguage">groovy</stringProp>
2353 <stringProp name="parameters"></stringProp>
2354 <stringProp name="filename"></stringProp>
2355 <stringProp name="cacheKey">true</stringProp>
2356 <stringProp name="script">import groovy.json.JsonSlurper;
2359 if (prev.getResponseCode() == '200') {
2360 def jsonSlurper = new JsonSlurper();
2361 res = jsonSlurper.parseText(prev.getResponseDataAsString());
2363 assert res instanceof Map;
2364 assert res.topology_template.policies instanceof List;
2365 assert res.topology_template.policies.size == 1;
2366 assert res.topology_template.policies[0] instanceof Map;
2371 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create Policy Guard" enabled="true">
2372 <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
2373 <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
2374 <collectionProp name="Arguments.arguments">
2375 <elementProp name="" elementType="HTTPArgument">
2376 <boolProp name="HTTPArgument.always_encode">false</boolProp>
2377 <stringProp name="Argument.value">{
2378 "tosca_definitions_version": "tosca_simple_yaml_1_1_0",
2379 "topology_template": {
2380 "policies": [
2382 "guard.blacklist.scaleout": {
2383 "type": "onap.policies.controlloop.guard.common.Blacklist",
2384 "type_version": "6.0.${__threadNum}",
2385 "version": "6.0.${__threadNum}",
2386 "metadata": {
2387 "policy-id": "guard.blacklist.scaleout"
2389 "properties": {
2390 "actor": "SO",
2391 "operation": "VF Module Create",
2392 "id": "ControlLoop-vDNS-6f37f56d-a87d-4b85-b6a9-cc953cf779b3",
2393 "blacklist": [
2394 "the-vfmodule-where-root-is-true",
2395 "another-vfmodule-where-root-is-true"
2403 <stringProp name="Argument.metadata">=</stringProp>
2407 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
2408 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
2409 <stringProp name="HTTPSampler.protocol">https</stringProp>
2410 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
2411 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.controlloop.guard.common.Blacklist/versions/1.0.0/policies</stringProp>
2412 <stringProp name="HTTPSampler.method">POST</stringProp>
2413 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
2414 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
2415 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
2416 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
2417 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
2418 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
2419 <stringProp name="HTTPSampler.response_timeout"></stringProp>
2422 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
2423 <collectionProp name="Asserion.test_strings">
2424 <stringProp name="49586">200</stringProp>
2426 <stringProp name="Assertion.custom_message"></stringProp>
2427 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
2428 <boolProp name="Assertion.assume_success">false</boolProp>
2429 <intProp name="Assertion.test_type">1</intProp>
2430 </ResponseAssertion>
2432 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
2433 <stringProp name="scriptLanguage">groovy</stringProp>
2434 <stringProp name="parameters"></stringProp>
2435 <stringProp name="filename"></stringProp>
2436 <stringProp name="cacheKey">true</stringProp>
2437 <stringProp name="script">import groovy.json.JsonSlurper;
2440 if (prev.getResponseCode() == '200') {
2441 def jsonSlurper = new JsonSlurper();
2442 res = jsonSlurper.parseText(prev.getResponseDataAsString());
2444 assert res instanceof Map;
2445 assert res.topology_template.policies instanceof List;
2446 assert res.topology_template.policies.size == 1;
2447 assert res.topology_template.policies[0] instanceof Map;
2452 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create Policy Native APEX" enabled="true">
2453 <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
2454 <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
2455 <collectionProp name="Arguments.arguments">
2456 <elementProp name="" elementType="HTTPArgument">
2457 <boolProp name="HTTPArgument.always_encode">false</boolProp>
2458 <stringProp name="Argument.value">{
2459 "tosca_definitions_version": "tosca_simple_yaml_1_1_0",
2460 "topology_template": {
2461 "policies": [
2463 "operational.apex.vCPE": {
2464 "type": "onap.policies.native.Apex",
2465 "type_version": "6.0.${__threadNum}",
2466 "derived_from": "tosca.policies.Root",
2467 "name": "operational.apex.vCPE",
2468 "version": "6.0.${__threadNum}",
2469 "properties": {
2470 "engineServiceParameters": {
2471 "name": "MyApexEngine",
2472 "version": "0.0.1",
2473 "id": 45,
2474 "instanceCount": 4,
2475 "deploymentPort": 12561,
2476 "policy_type_impl": {
2478 "engineParameters": {
2479 "executorParameters": {
2480 "JAVASCRIPT": {
2481 "parameterClassName": "org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters"
2484 "contextParameters": {
2485 "parameterClassName": "org.onap.policy.apex.context.parameters.ContextParameters",
2486 "schemaParameters": {
2487 "Avro": {
2488 "parameterClassName": "org.onap.policy.apex.plugins.context.schema.avro.AvroSchemaHelperParameters"
2490 "Java": {
2491 "parameterClassName": "org.onap.policy.apex.context.impl.schema.java.JavaSchemaHelperParameters",
2492 "jsonAdapters": {
2493 "Instant": {
2494 "adaptedClass": "java.time.Instant",
2495 "adaptorClass": "org.onap.policy.controlloop.util.Serialization$GsonInstantAdapter"
2501 "taskParameters": [
2503 "key": "ParameterKey1",
2504 "value": "ParameterValue1"
2507 "taskId": "AAILookupTask:0.0.1",
2508 "key": "SomeKeyForThisTask",
2509 "value": "Value"
2514 "eventInputParameters": {
2515 "GuardRequestorConsumer": {
2516 "carrierTechnologyParameters": {
2517 "carrierTechnology": "RESTREQUESTOR",
2518 "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restrequestor.RestRequestorCarrierTechnologyParameters",
2519 "parameters": {
2520 "url": "http://111.222.333.444:5555/pdp/api/getDecision",
2521 "httpMethod": "POST",
2522 "restRequestTimeout": 2000,
2523 "httpHeader": "Authorization:aaaaaaaaa== ClientAuth:bbbbbbbbb="
2526 "eventProtocolParameters": {
2527 "eventProtocol": "JSON"
2529 "eventName": "GuardResponseEvent",
2530 "eventNameFilter": "GuardResponseEvent",
2531 "requestorMode": true,
2532 "requestorPeer": "GuardRequestorProducer",
2533 "requestorTimeout": 500
2535 "DCAEConsumer": {
2536 "carrierTechnologyParameters": {
2537 "carrierTechnology": "RESTCLIENT",
2538 "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restclient.RestClientCarrierTechnologyParameters",
2539 "parameters": {
2540 "url": "http://message-router:3904/events/unauthenticated.DCAE_CL_OUTPUT/APEX/1?timeout=60000"
2543 "eventProtocolParameters": {
2544 "eventProtocol": "JSON",
2545 "parameters": {
2546 "nameAlias": "closedLoopControlName",
2547 "versionAlias": "version",
2548 "sourceAlias": "from",
2549 "pojoField": "VirtualControlLoopEvent"
2552 "eventName": "ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e"
2554 "APPCConsumer": {
2555 "carrierTechnologyParameters": {
2556 "carrierTechnology": "RESTCLIENT",
2557 "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restclient.RestClientCarrierTechnologyParameters",
2558 "parameters": {
2559 "url": "http://message-router:3904/events/APPC-LCM-WRITE/APEX/1?timeout=60000"
2562 "eventProtocolParameters": {
2563 "eventProtocol": "JSON",
2564 "parameters": {
2565 "versionAlias": "version",
2566 "pojoField": "APPCLCMResponseEvent"
2569 "eventName": "APPCRestartVNFResponseEvent",
2570 "eventNameFilter": "APPCRestartVNFResponseEvent"
2573 "eventOutputParameters": {
2574 "logProducer": {
2575 "carrierTechnologyParameters": {
2576 "carrierTechnology": "FILE",
2577 "parameters": {
2578 "fileName": "/tmp/VCPEEventsOut.json"
2581 "eventProtocolParameters": {
2582 "eventProtocol": "JSON"
2585 "GuardRequestorProducer": {
2586 "carrierTechnologyParameters": {
2587 "carrierTechnology": "RESTREQUESTOR",
2588 "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restrequestor.RestRequestorCarrierTechnologyParameters"
2590 "eventProtocolParameters": {
2591 "eventProtocol": "JSON"
2593 "eventNameFilter": "GuardRequestEvent",
2594 "requestorMode": true,
2595 "requestorPeer": "GuardRequestorConsumer",
2596 "requestorTimeout": 500
2598 "APPCProducer": {
2599 "carrierTechnologyParameters": {
2600 "carrierTechnology": "RESTCLIENT",
2601 "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restclient.RestClientCarrierTechnologyParameters",
2602 "parameters": {
2603 "url": "http://message-router:3904/events/APPC-LCM-READ"
2606 "eventProtocolParameters": {
2607 "eventProtocol": "JSON",
2608 "parameters": {
2609 "versionAlias": "version",
2610 "sourceAlias": "from",
2611 "pojoField": "APPCLCMRequestEvent"
2614 "eventNameFilter": "APPCRestartVNFRequestEvent"
2616 "PolicyLogProducer": {
2617 "carrierTechnologyParameters": {
2618 "carrierTechnology": "RESTCLIENT",
2619 "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restclient.RestClientCarrierTechnologyParameters",
2620 "parameters": {
2621 "url": "http://message-router:3904/events/POLICY-CL-MGT"
2624 "eventProtocolParameters": {
2625 "eventProtocol": "JSON",
2626 "parameters": {
2627 "versionAlias": "version",
2628 "sourceAlias": "from",
2629 "pojoField": "VirtualControlLoopNotification"
2632 "eventNameFilter": "ControlLoopLogEvent"
2641 <stringProp name="Argument.metadata">=</stringProp>
2645 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
2646 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
2647 <stringProp name="HTTPSampler.protocol">https</stringProp>
2648 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
2649 <stringProp name="HTTPSampler.path">/policy/api/v1/policies</stringProp>
2650 <stringProp name="HTTPSampler.method">POST</stringProp>
2651 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
2652 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
2653 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
2654 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
2655 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
2656 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
2657 <stringProp name="HTTPSampler.response_timeout"></stringProp>
2660 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
2661 <collectionProp name="Asserion.test_strings">
2662 <stringProp name="49586">200</stringProp>
2664 <stringProp name="Assertion.custom_message"></stringProp>
2665 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
2666 <boolProp name="Assertion.assume_success">false</boolProp>
2667 <intProp name="Assertion.test_type">1</intProp>
2668 </ResponseAssertion>
2670 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
2671 <stringProp name="scriptLanguage">groovy</stringProp>
2672 <stringProp name="parameters"></stringProp>
2673 <stringProp name="filename"></stringProp>
2674 <stringProp name="cacheKey">true</stringProp>
2675 <stringProp name="script">import groovy.json.JsonSlurper;
2678 if (prev.getResponseCode() == '200') {
2679 def jsonSlurper = new JsonSlurper();
2680 res = jsonSlurper.parseText(prev.getResponseDataAsString());
2682 assert res instanceof Map;
2683 assert res.topology_template.policies instanceof List;
2684 assert res.topology_template.policies.size == 1;
2685 assert res.topology_template.policies[0] instanceof Map;
2690 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create Policy Native Drools" enabled="true">
2691 <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
2692 <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
2693 <collectionProp name="Arguments.arguments">
2694 <elementProp name="" elementType="HTTPArgument">
2695 <boolProp name="HTTPArgument.always_encode">false</boolProp>
2696 <stringProp name="Argument.value">{
2697 "tosca_definitions_version": "tosca_simple_yaml_1_1_0",
2698 "topology_template": {
2699 "policies": [
2701 "usecases.artifacts": {
2702 "type": "onap.policies.native.drools.Artifact",
2703 "type_version": "6.0.${__threadNum}",
2704 "name": "usecases.artifacts",
2705 "version": "6.0.${__threadNum}",
2706 "metadata": {
2707 "policy-id": "usecases.artifacts"
2709 "properties": {
2710 "rulesArtifact": {
2711 "groupId": "org.onap.policy.drools-applications.controlloop.common",
2712 "artifactId": "controller-usecases",
2713 "version": "1.6.1"
2715 "controller": {
2716 "name": "frankfurt"
2724 <stringProp name="Argument.metadata">=</stringProp>
2728 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
2729 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
2730 <stringProp name="HTTPSampler.protocol">https</stringProp>
2731 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
2732 <stringProp name="HTTPSampler.path">/policy/api/v1/policies</stringProp>
2733 <stringProp name="HTTPSampler.method">POST</stringProp>
2734 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
2735 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
2736 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
2737 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
2738 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
2739 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
2740 <stringProp name="HTTPSampler.response_timeout"></stringProp>
2743 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
2744 <collectionProp name="Asserion.test_strings">
2745 <stringProp name="49586">200</stringProp>
2747 <stringProp name="Assertion.custom_message"></stringProp>
2748 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
2749 <boolProp name="Assertion.assume_success">false</boolProp>
2750 <intProp name="Assertion.test_type">1</intProp>
2751 </ResponseAssertion>
2753 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
2754 <stringProp name="scriptLanguage">groovy</stringProp>
2755 <stringProp name="parameters"></stringProp>
2756 <stringProp name="filename"></stringProp>
2757 <stringProp name="cacheKey">true</stringProp>
2758 <stringProp name="script">import groovy.json.JsonSlurper;
2761 if (prev.getResponseCode() == '200') {
2762 def jsonSlurper = new JsonSlurper();
2763 res = jsonSlurper.parseText(prev.getResponseDataAsString());
2765 assert res instanceof Map;
2766 assert res.topology_template.policies instanceof List;
2767 assert res.topology_template.policies.size == 1;
2768 assert res.topology_template.policies[0] instanceof Map;
2773 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create Policy Native XACML" enabled="true">
2774 <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
2775 <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
2776 <collectionProp name="Arguments.arguments">
2777 <elementProp name="" elementType="HTTPArgument">
2778 <boolProp name="HTTPArgument.always_encode">false</boolProp>
2779 <stringProp name="Argument.value">{
2780 "tosca_definitions_version": "tosca_simple_yaml_1_1_0",
2781 "topology_template": {
2782 "policies": [
2784 "onap.policies.native.xacml.NativeXacmlPolicy": {
2785 "type": "onap.policies.native.Xacml",
2786 "type_version": "6.0.${__threadNum}",
2787 "version": "6.0.${__threadNum}",
2788 "metadata": {
2789 "policy-id": "onap.policies.native.xacml.NativeXacmlPolicy"
2791 "properties": {
2792 "tca_policy": {
2793 "domain": "measurementsForVfScaling",
2794 "metricsPerEventName": [
2796 "eventName": "Measurement_vGMUX",
2797 "controlLoopSchemaType": "VNF",
2798 "policyScope": "DCAE",
2799 "policyName": "DCAE.Config_tca-hi-lo",
2800 "policyVersion": "v0.0.1",
2801 "thresholds": [
2803 "closedLoopControlName": "ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e",
2804 "version": "1.0.2",
2805 "fieldPath": "$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value",
2806 "thresholdValue": 0,
2807 "direction": "EQUAL",
2808 "severity": "MAJOR",
2809 "closedLoopEventStatus": "ABATED"
2812 "closedLoopControlName": "ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e",
2813 "version": "1.0.2",
2814 "fieldPath": "$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value",
2815 "thresholdValue": 0,
2816 "direction": "GREATER",
2817 "severity": "CRITICAL",
2818 "closedLoopEventStatus": "ONSET"
2830 <stringProp name="Argument.metadata">=</stringProp>
2834 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
2835 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
2836 <stringProp name="HTTPSampler.protocol">https</stringProp>
2837 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
2838 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/2.0.0/policies</stringProp>
2839 <stringProp name="HTTPSampler.method">POST</stringProp>
2840 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
2841 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
2842 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
2843 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
2844 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
2845 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
2846 <stringProp name="HTTPSampler.response_timeout"></stringProp>
2849 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
2850 <collectionProp name="Asserion.test_strings">
2851 <stringProp name="49586">200</stringProp>
2853 <stringProp name="Assertion.custom_message"></stringProp>
2854 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
2855 <boolProp name="Assertion.assume_success">false</boolProp>
2856 <intProp name="Assertion.test_type">1</intProp>
2857 </ResponseAssertion>
2859 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
2860 <stringProp name="scriptLanguage">groovy</stringProp>
2861 <stringProp name="parameters"></stringProp>
2862 <stringProp name="filename"></stringProp>
2863 <stringProp name="cacheKey">true</stringProp>
2864 <stringProp name="script">import groovy.json.JsonSlurper;
2867 if (prev.getResponseCode() == '200') {
2868 def jsonSlurper = new JsonSlurper();
2869 res = jsonSlurper.parseText(prev.getResponseDataAsString());
2871 assert res instanceof Map;
2872 assert res.topology_template.policies instanceof List;
2873 assert res.topology_template.policies.size == 1;
2874 assert res.topology_template.policies[0] instanceof Map;
2879 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get All TCA Policies" enabled="true">
2880 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
2881 <collectionProp name="Arguments.arguments"/>
2883 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
2884 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
2885 <stringProp name="HTTPSampler.protocol">https</stringProp>
2886 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
2887 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/6.0.${__threadNum}/policies</stringProp>
2888 <stringProp name="HTTPSampler.method">GET</stringProp>
2889 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
2890 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
2891 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
2892 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
2893 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
2894 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
2895 <stringProp name="HTTPSampler.response_timeout"></stringProp>
2898 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
2899 <collectionProp name="Asserion.test_strings">
2900 <stringProp name="49586">200</stringProp>
2902 <stringProp name="Assertion.custom_message"></stringProp>
2903 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
2904 <boolProp name="Assertion.assume_success">false</boolProp>
2905 <intProp name="Assertion.test_type">1</intProp>
2906 </ResponseAssertion>
2908 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
2909 <stringProp name="scriptLanguage">groovy</stringProp>
2910 <stringProp name="parameters"></stringProp>
2911 <stringProp name="filename"></stringProp>
2912 <stringProp name="cacheKey">true</stringProp>
2913 <stringProp name="script">import groovy.json.JsonSlurper;
2916 if (prev.getResponseCode() == '200') {
2917 def jsonSlurper = new JsonSlurper();
2918 res = jsonSlurper.parseText(prev.getResponseDataAsString());
2920 assert res instanceof Map;
2921 assert res.topology_template.policies instanceof List;
2922 assert res.topology_template.policies.size > 0 && res.topology_template.policies.size < 10;
2925 for (i=0; i<res.topology_template.policies.size; i++) {
2926 assert res.topology_template.policies[i] instanceof Map;
2932 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get All Versions of Monitoring Policy" enabled="true">
2933 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
2934 <collectionProp name="Arguments.arguments"/>
2936 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
2937 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
2938 <stringProp name="HTTPSampler.protocol">https</stringProp>
2939 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
2940 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/6.0.${__threadNum}/policies</stringProp>
2941 <stringProp name="HTTPSampler.method">GET</stringProp>
2942 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
2943 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
2944 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
2945 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
2946 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
2947 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
2948 <stringProp name="HTTPSampler.response_timeout"></stringProp>
2951 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
2952 <collectionProp name="Asserion.test_strings">
2953 <stringProp name="49586">200</stringProp>
2955 <stringProp name="Assertion.custom_message"></stringProp>
2956 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
2957 <boolProp name="Assertion.assume_success">false</boolProp>
2958 <intProp name="Assertion.test_type">1</intProp>
2959 </ResponseAssertion>
2961 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
2962 <stringProp name="scriptLanguage">groovy</stringProp>
2963 <stringProp name="parameters"></stringProp>
2964 <stringProp name="filename"></stringProp>
2965 <stringProp name="cacheKey">true</stringProp>
2966 <stringProp name="script">import groovy.json.JsonSlurper;
2969 if (prev.getResponseCode() == '200') {
2970 def jsonSlurper = new JsonSlurper();
2971 res = jsonSlurper.parseText(prev.getResponseDataAsString());
2973 assert res instanceof Map;
2974 assert res.topology_template.policies instanceof List;
2975 assert res.topology_template.policies.size > 0 && res.topology_template.policies.size < 6;
2977 for (i=0; i<res.topology_template.policies.size; i++) {
2978 assert res.topology_template.policies[i] instanceof Map;
2979 assert res.topology_template.policies[i].get('onap.restart.tca').version == "6.0.${__threadNum}";
2985 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get Policy Monitoring" enabled="true">
2986 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
2987 <collectionProp name="Arguments.arguments"/>
2989 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
2990 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
2991 <stringProp name="HTTPSampler.protocol">https</stringProp>
2992 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
2993 <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>
2994 <stringProp name="HTTPSampler.method">GET</stringProp>
2995 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
2996 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
2997 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
2998 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
2999 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
3000 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
3001 <stringProp name="HTTPSampler.response_timeout"></stringProp>
3004 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
3005 <collectionProp name="Asserion.test_strings">
3006 <stringProp name="49586">200</stringProp>
3008 <stringProp name="Assertion.custom_message"></stringProp>
3009 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
3010 <boolProp name="Assertion.assume_success">false</boolProp>
3011 <intProp name="Assertion.test_type">1</intProp>
3012 </ResponseAssertion>
3014 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
3015 <stringProp name="scriptLanguage">groovy</stringProp>
3016 <stringProp name="parameters"></stringProp>
3017 <stringProp name="filename"></stringProp>
3018 <stringProp name="cacheKey">true</stringProp>
3019 <stringProp name="script">import groovy.json.JsonSlurper;
3022 if (prev.getResponseCode() == '200') {
3023 def jsonSlurper = new JsonSlurper();
3024 res = jsonSlurper.parseText(prev.getResponseDataAsString());
3026 assert res instanceof Map;
3027 assert res.topology_template.policies instanceof List;
3028 assert res.topology_template.policies.size == 1;
3030 assert res.topology_template.policies[0] instanceof Map;
3031 assert res.topology_template.policies [0].get('onap.restart.tca').version == "6.0.${__threadNum}";
3036 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get Policy Optimization" enabled="true">
3037 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
3038 <collectionProp name="Arguments.arguments"/>
3040 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
3041 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
3042 <stringProp name="HTTPSampler.protocol">https</stringProp>
3043 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
3044 <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>
3045 <stringProp name="HTTPSampler.method">GET</stringProp>
3046 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
3047 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
3048 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
3049 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
3050 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
3051 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
3052 <stringProp name="HTTPSampler.response_timeout"></stringProp>
3055 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
3056 <collectionProp name="Asserion.test_strings">
3057 <stringProp name="49586">200</stringProp>
3059 <stringProp name="Assertion.custom_message"></stringProp>
3060 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
3061 <boolProp name="Assertion.assume_success">false</boolProp>
3062 <intProp name="Assertion.test_type">1</intProp>
3063 </ResponseAssertion>
3065 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
3066 <stringProp name="scriptLanguage">groovy</stringProp>
3067 <stringProp name="parameters"></stringProp>
3068 <stringProp name="filename"></stringProp>
3069 <stringProp name="cacheKey">true</stringProp>
3070 <stringProp name="script">import groovy.json.JsonSlurper;
3073 if (prev.getResponseCode() == '200') {
3074 def jsonSlurper = new JsonSlurper();
3075 res = jsonSlurper.parseText(prev.getResponseDataAsString());
3077 assert res instanceof Map;
3078 assert res.topology_template.policies instanceof List;
3079 assert res.topology_template.policies.size == 1;
3081 assert res.topology_template.policies[0] instanceof Map;
3082 assert res.topology_template.policies [0].get('OSDF_CASABLANCA.Affinity_Default').version == "6.0.${__threadNum}";
3087 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get Policy Guard" enabled="true">
3088 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
3089 <collectionProp name="Arguments.arguments"/>
3091 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
3092 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
3093 <stringProp name="HTTPSampler.protocol">https</stringProp>
3094 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
3095 <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>
3096 <stringProp name="HTTPSampler.method">GET</stringProp>
3097 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
3098 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
3099 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
3100 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
3101 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
3102 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
3103 <stringProp name="HTTPSampler.response_timeout"></stringProp>
3106 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
3107 <collectionProp name="Asserion.test_strings">
3108 <stringProp name="49586">200</stringProp>
3110 <stringProp name="Assertion.custom_message"></stringProp>
3111 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
3112 <boolProp name="Assertion.assume_success">false</boolProp>
3113 <intProp name="Assertion.test_type">1</intProp>
3114 </ResponseAssertion>
3116 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
3117 <stringProp name="scriptLanguage">groovy</stringProp>
3118 <stringProp name="parameters"></stringProp>
3119 <stringProp name="filename"></stringProp>
3120 <stringProp name="cacheKey">true</stringProp>
3121 <stringProp name="script">import groovy.json.JsonSlurper;
3124 if (prev.getResponseCode() == '200') {
3125 def jsonSlurper = new JsonSlurper();
3126 res = jsonSlurper.parseText(prev.getResponseDataAsString());
3128 assert res instanceof Map;
3129 assert res.topology_template.policies instanceof List;
3130 assert res.topology_template.policies.size == 1;
3132 assert res.topology_template.policies[0] instanceof Map;
3133 assert res.topology_template.policies [0].get('guard.blacklist.scaleout').version == "6.0.${__threadNum}";
3138 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get Policy Native APEX" enabled="true">
3139 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
3140 <collectionProp name="Arguments.arguments"/>
3142 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
3143 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
3144 <stringProp name="HTTPSampler.protocol">https</stringProp>
3145 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
3146 <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>
3147 <stringProp name="HTTPSampler.method">GET</stringProp>
3148 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
3149 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
3150 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
3151 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
3152 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
3153 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
3154 <stringProp name="HTTPSampler.response_timeout"></stringProp>
3157 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
3158 <collectionProp name="Asserion.test_strings">
3159 <stringProp name="49586">200</stringProp>
3161 <stringProp name="Assertion.custom_message"></stringProp>
3162 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
3163 <boolProp name="Assertion.assume_success">false</boolProp>
3164 <intProp name="Assertion.test_type">1</intProp>
3165 </ResponseAssertion>
3167 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
3168 <stringProp name="scriptLanguage">groovy</stringProp>
3169 <stringProp name="parameters"></stringProp>
3170 <stringProp name="filename"></stringProp>
3171 <stringProp name="cacheKey">true</stringProp>
3172 <stringProp name="script">import groovy.json.JsonSlurper;
3175 if (prev.getResponseCode() == '200') {
3176 def jsonSlurper = new JsonSlurper();
3177 res = jsonSlurper.parseText(prev.getResponseDataAsString());
3179 assert res instanceof Map;
3180 assert res.topology_template.policies instanceof List;
3181 assert res.topology_template.policies.size == 1;
3183 assert res.topology_template.policies[0] instanceof Map;
3184 assert res.topology_template.policies [0].get('operational.apex.vCPE').version == "6.0.${__threadNum}";
3189 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get Policy Native Drools" enabled="true">
3190 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
3191 <collectionProp name="Arguments.arguments"/>
3193 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
3194 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
3195 <stringProp name="HTTPSampler.protocol">https</stringProp>
3196 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
3197 <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>
3198 <stringProp name="HTTPSampler.method">GET</stringProp>
3199 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
3200 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
3201 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
3202 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
3203 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
3204 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
3205 <stringProp name="HTTPSampler.response_timeout"></stringProp>
3208 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
3209 <collectionProp name="Asserion.test_strings">
3210 <stringProp name="49586">200</stringProp>
3212 <stringProp name="Assertion.custom_message"></stringProp>
3213 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
3214 <boolProp name="Assertion.assume_success">false</boolProp>
3215 <intProp name="Assertion.test_type">1</intProp>
3216 </ResponseAssertion>
3218 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
3219 <stringProp name="scriptLanguage">groovy</stringProp>
3220 <stringProp name="parameters"></stringProp>
3221 <stringProp name="filename"></stringProp>
3222 <stringProp name="cacheKey">true</stringProp>
3223 <stringProp name="script">import groovy.json.JsonSlurper;
3226 if (prev.getResponseCode() == '200') {
3227 def jsonSlurper = new JsonSlurper();
3228 res = jsonSlurper.parseText(prev.getResponseDataAsString());
3230 assert res instanceof Map;
3231 assert res.topology_template.policies instanceof List;
3232 assert res.topology_template.policies.size == 1;
3234 assert res.topology_template.policies[0] instanceof Map;
3235 assert res.topology_template.policies [0].get('usecases.artifacts').version == "6.0.${__threadNum}";
3240 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get Policy Native XACML" enabled="true">
3241 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
3242 <collectionProp name="Arguments.arguments"/>
3244 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
3245 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
3246 <stringProp name="HTTPSampler.protocol">https</stringProp>
3247 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
3248 <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>
3249 <stringProp name="HTTPSampler.method">GET</stringProp>
3250 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
3251 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
3252 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
3253 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
3254 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
3255 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
3256 <stringProp name="HTTPSampler.response_timeout"></stringProp>
3259 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
3260 <collectionProp name="Asserion.test_strings">
3261 <stringProp name="49586">200</stringProp>
3263 <stringProp name="Assertion.custom_message"></stringProp>
3264 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
3265 <boolProp name="Assertion.assume_success">false</boolProp>
3266 <intProp name="Assertion.test_type">1</intProp>
3267 </ResponseAssertion>
3269 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
3270 <stringProp name="scriptLanguage">groovy</stringProp>
3271 <stringProp name="parameters"></stringProp>
3272 <stringProp name="filename"></stringProp>
3273 <stringProp name="cacheKey">true</stringProp>
3274 <stringProp name="script">import groovy.json.JsonSlurper;
3277 if (prev.getResponseCode() == '200') {
3278 def jsonSlurper = new JsonSlurper();
3279 res = jsonSlurper.parseText(prev.getResponseDataAsString());
3281 assert res instanceof Map;
3282 assert res.topology_template.policies instanceof List;
3283 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.policies.native.xacml.NativeXacmlPolicy').version == "6.0.${__threadNum}";
3291 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get latest Monitoring Policy" 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/latest</stringProp>
3300 <stringProp name="HTTPSampler.method">GET</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;
3336 assert res.topology_template.policies[0] instanceof Map;
3337 assert res.topology_template.policies [0].get('onap.restart.tca').version ==~ /6.0.\d+/;
3342 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete Policy Monitoring" enabled="true">
3343 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
3344 <collectionProp name="Arguments.arguments"/>
3346 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
3347 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
3348 <stringProp name="HTTPSampler.protocol">https</stringProp>
3349 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
3350 <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>
3351 <stringProp name="HTTPSampler.method">DELETE</stringProp>
3352 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
3353 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
3354 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
3355 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
3356 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
3357 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
3358 <stringProp name="HTTPSampler.response_timeout"></stringProp>
3361 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
3362 <collectionProp name="Asserion.test_strings">
3363 <stringProp name="49586">200</stringProp>
3365 <stringProp name="Assertion.custom_message"></stringProp>
3366 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
3367 <boolProp name="Assertion.assume_success">false</boolProp>
3368 <intProp name="Assertion.test_type">1</intProp>
3369 </ResponseAssertion>
3371 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
3372 <stringProp name="scriptLanguage">groovy</stringProp>
3373 <stringProp name="parameters"></stringProp>
3374 <stringProp name="filename"></stringProp>
3375 <stringProp name="cacheKey">true</stringProp>
3376 <stringProp name="script">import groovy.json.JsonSlurper;
3379 if (prev.getResponseCode() == '200') {
3380 def jsonSlurper = new JsonSlurper();
3381 res = jsonSlurper.parseText(prev.getResponseDataAsString());
3383 assert res instanceof Map;
3384 assert res.topology_template.policies instanceof List;
3385 assert res.topology_template.policies.size == 1;
3386 assert res.topology_template.policies[0] instanceof Map;
3387 assert res.topology_template.policies[0].get('onap.restart.tca').version == "6.0.${__threadNum}";
3392 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete Policy Monitoring V2" enabled="true">
3393 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
3394 <collectionProp name="Arguments.arguments"/>
3396 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
3397 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
3398 <stringProp name="HTTPSampler.protocol">https</stringProp>
3399 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
3400 <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>
3401 <stringProp name="HTTPSampler.method">DELETE</stringProp>
3402 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
3403 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
3404 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
3405 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
3406 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
3407 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
3408 <stringProp name="HTTPSampler.response_timeout"></stringProp>
3411 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
3412 <collectionProp name="Asserion.test_strings">
3413 <stringProp name="49586">200</stringProp>
3415 <stringProp name="Assertion.custom_message"></stringProp>
3416 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
3417 <boolProp name="Assertion.assume_success">false</boolProp>
3418 <intProp name="Assertion.test_type">1</intProp>
3419 </ResponseAssertion>
3421 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
3422 <stringProp name="scriptLanguage">groovy</stringProp>
3423 <stringProp name="parameters"></stringProp>
3424 <stringProp name="filename"></stringProp>
3425 <stringProp name="cacheKey">true</stringProp>
3426 <stringProp name="script">import groovy.json.JsonSlurper;
3429 if (prev.getResponseCode() == '200') {
3430 def jsonSlurper = new JsonSlurper();
3431 res = jsonSlurper.parseText(prev.getResponseDataAsString());
3433 assert res instanceof Map;
3434 assert res.topology_template.policies instanceof List;
3435 assert res.topology_template.policies.size == 1;
3436 assert res.topology_template.policies[0] instanceof Map;
3437 assert res.topology_template.policies[0].get('onap.restart.tca').version == "7.0.${__threadNum}";
3442 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete Policy Optimization" enabled="true">
3443 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
3444 <collectionProp name="Arguments.arguments"/>
3446 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
3447 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
3448 <stringProp name="HTTPSampler.protocol">https</stringProp>
3449 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
3450 <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>
3451 <stringProp name="HTTPSampler.method">DELETE</stringProp>
3452 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
3453 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
3454 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
3455 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
3456 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
3457 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
3458 <stringProp name="HTTPSampler.response_timeout"></stringProp>
3461 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
3462 <collectionProp name="Asserion.test_strings">
3463 <stringProp name="49586">200</stringProp>
3465 <stringProp name="Assertion.custom_message"></stringProp>
3466 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
3467 <boolProp name="Assertion.assume_success">false</boolProp>
3468 <intProp name="Assertion.test_type">1</intProp>
3469 </ResponseAssertion>
3471 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
3472 <stringProp name="scriptLanguage">groovy</stringProp>
3473 <stringProp name="parameters"></stringProp>
3474 <stringProp name="filename"></stringProp>
3475 <stringProp name="cacheKey">true</stringProp>
3476 <stringProp name="script">import groovy.json.JsonSlurper;
3479 if (prev.getResponseCode() == '200') {
3480 def jsonSlurper = new JsonSlurper();
3481 res = jsonSlurper.parseText(prev.getResponseDataAsString());
3483 assert res instanceof Map;
3484 assert res.topology_template.policies instanceof List;
3485 assert res.topology_template.policies.size == 1;
3486 assert res.topology_template.policies[0] instanceof Map;
3487 assert res.topology_template.policies[0].get('OSDF_CASABLANCA.Affinity_Default').version == "6.0.${__threadNum}";
3492 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete Policy Guard" enabled="true">
3493 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
3494 <collectionProp name="Arguments.arguments"/>
3496 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
3497 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
3498 <stringProp name="HTTPSampler.protocol">https</stringProp>
3499 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
3500 <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>
3501 <stringProp name="HTTPSampler.method">DELETE</stringProp>
3502 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
3503 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
3504 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
3505 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
3506 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
3507 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
3508 <stringProp name="HTTPSampler.response_timeout"></stringProp>
3511 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
3512 <collectionProp name="Asserion.test_strings">
3513 <stringProp name="49586">200</stringProp>
3515 <stringProp name="Assertion.custom_message"></stringProp>
3516 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
3517 <boolProp name="Assertion.assume_success">false</boolProp>
3518 <intProp name="Assertion.test_type">1</intProp>
3519 </ResponseAssertion>
3521 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
3522 <stringProp name="scriptLanguage">groovy</stringProp>
3523 <stringProp name="parameters"></stringProp>
3524 <stringProp name="filename"></stringProp>
3525 <stringProp name="cacheKey">true</stringProp>
3526 <stringProp name="script">import groovy.json.JsonSlurper;
3529 if (prev.getResponseCode() == '200') {
3530 def jsonSlurper = new JsonSlurper();
3531 res = jsonSlurper.parseText(prev.getResponseDataAsString());
3533 assert res instanceof Map;
3534 assert res.topology_template.policies instanceof List;
3535 assert res.topology_template.policies.size == 1;
3536 assert res.topology_template.policies[0] instanceof Map;
3537 assert res.topology_template.policies[0].get('guard.blacklist.scaleout').version == "6.0.${__threadNum}";
3542 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete Policy Native APEX" enabled="true">
3543 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
3544 <collectionProp name="Arguments.arguments"/>
3546 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
3547 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
3548 <stringProp name="HTTPSampler.protocol">https</stringProp>
3549 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
3550 <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>
3551 <stringProp name="HTTPSampler.method">DELETE</stringProp>
3552 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
3553 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
3554 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
3555 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
3556 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
3557 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
3558 <stringProp name="HTTPSampler.response_timeout"></stringProp>
3561 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
3562 <collectionProp name="Asserion.test_strings">
3563 <stringProp name="49586">200</stringProp>
3565 <stringProp name="Assertion.custom_message"></stringProp>
3566 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
3567 <boolProp name="Assertion.assume_success">false</boolProp>
3568 <intProp name="Assertion.test_type">1</intProp>
3569 </ResponseAssertion>
3571 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
3572 <stringProp name="scriptLanguage">groovy</stringProp>
3573 <stringProp name="parameters"></stringProp>
3574 <stringProp name="filename"></stringProp>
3575 <stringProp name="cacheKey">true</stringProp>
3576 <stringProp name="script">import groovy.json.JsonSlurper;
3579 if (prev.getResponseCode() == '200') {
3580 def jsonSlurper = new JsonSlurper();
3581 res = jsonSlurper.parseText(prev.getResponseDataAsString());
3583 assert res instanceof Map;
3584 assert res.topology_template.policies instanceof List;
3585 assert res.topology_template.policies.size == 1;
3586 assert res.topology_template.policies[0] instanceof Map;
3587 assert res.topology_template.policies[0].get('operational.apex.vCPE').version == "6.0.${__threadNum}";
3592 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete Policy Native Drools" enabled="true">
3593 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
3594 <collectionProp name="Arguments.arguments"/>
3596 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
3597 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
3598 <stringProp name="HTTPSampler.protocol">https</stringProp>
3599 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
3600 <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>
3601 <stringProp name="HTTPSampler.method">DELETE</stringProp>
3602 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
3603 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
3604 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
3605 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
3606 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
3607 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
3608 <stringProp name="HTTPSampler.response_timeout"></stringProp>
3611 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
3612 <collectionProp name="Asserion.test_strings">
3613 <stringProp name="49586">200</stringProp>
3615 <stringProp name="Assertion.custom_message"></stringProp>
3616 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
3617 <boolProp name="Assertion.assume_success">false</boolProp>
3618 <intProp name="Assertion.test_type">1</intProp>
3619 </ResponseAssertion>
3621 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
3622 <stringProp name="scriptLanguage">groovy</stringProp>
3623 <stringProp name="parameters"></stringProp>
3624 <stringProp name="filename"></stringProp>
3625 <stringProp name="cacheKey">true</stringProp>
3626 <stringProp name="script">import groovy.json.JsonSlurper;
3629 if (prev.getResponseCode() == '200') {
3630 def jsonSlurper = new JsonSlurper();
3631 res = jsonSlurper.parseText(prev.getResponseDataAsString());
3633 assert res instanceof Map;
3634 assert res.topology_template.policies instanceof List;
3635 assert res.topology_template.policies.size == 1;
3636 assert res.topology_template.policies[0] instanceof Map;
3637 assert res.topology_template.policies[0].get('usecases.artifacts').version == "6.0.${__threadNum}";
3642 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete Policy Native XACML" enabled="true">
3643 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
3644 <collectionProp name="Arguments.arguments"/>
3646 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
3647 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
3648 <stringProp name="HTTPSampler.protocol">https</stringProp>
3649 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
3650 <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>
3651 <stringProp name="HTTPSampler.method">DELETE</stringProp>
3652 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
3653 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
3654 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
3655 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
3656 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
3657 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
3658 <stringProp name="HTTPSampler.response_timeout"></stringProp>
3661 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
3662 <collectionProp name="Asserion.test_strings">
3663 <stringProp name="49586">200</stringProp>
3665 <stringProp name="Assertion.custom_message"></stringProp>
3666 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
3667 <boolProp name="Assertion.assume_success">false</boolProp>
3668 <intProp name="Assertion.test_type">1</intProp>
3669 </ResponseAssertion>
3671 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
3672 <stringProp name="scriptLanguage">groovy</stringProp>
3673 <stringProp name="parameters"></stringProp>
3674 <stringProp name="filename"></stringProp>
3675 <stringProp name="cacheKey">true</stringProp>
3676 <stringProp name="script">import groovy.json.JsonSlurper;
3679 if (prev.getResponseCode() == '200') {
3680 def jsonSlurper = new JsonSlurper();
3681 res = jsonSlurper.parseText(prev.getResponseDataAsString());
3683 assert res instanceof Map;
3684 assert res.topology_template.policies instanceof List;
3685 assert res.topology_template.policies.size == 1;
3686 assert res.topology_template.policies[0] instanceof Map;
3687 assert res.topology_template.policies[0].get('onap.policies.native.xacml.NativeXacmlPolicy').version == "6.0.${__threadNum}";
3692 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete Policy Type Monitoring" enabled="true">
3693 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
3694 <collectionProp name="Arguments.arguments"/>
3696 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
3697 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
3698 <stringProp name="HTTPSampler.protocol">https</stringProp>
3699 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
3700 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/6.0.${__threadNum}</stringProp>
3701 <stringProp name="HTTPSampler.method">DELETE</stringProp>
3702 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
3703 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
3704 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
3705 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
3706 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
3707 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
3708 <stringProp name="HTTPSampler.response_timeout"></stringProp>
3711 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="false">
3712 <collectionProp name="Asserion.test_strings">
3713 <stringProp name="49586">200</stringProp>
3715 <stringProp name="Assertion.custom_message"></stringProp>
3716 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
3717 <boolProp name="Assertion.assume_success">false</boolProp>
3718 <intProp name="Assertion.test_type">1</intProp>
3719 </ResponseAssertion>
3721 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="false">
3722 <stringProp name="scriptLanguage">groovy</stringProp>
3723 <stringProp name="parameters"></stringProp>
3724 <stringProp name="filename"></stringProp>
3725 <stringProp name="cacheKey">true</stringProp>
3726 <stringProp name="script">import groovy.json.JsonSlurper;
3729 if (prev.getResponseCode() == '409') {
3730 def jsonSlurper = new JsonSlurper();
3731 res = jsonSlurper.parseText(prev.getResponseDataAsString());
3733 assert res instanceof Map;
3734 assert res.policy_types instanceof List;
3735 assert res.policy_types.size == 1;
3736 assert res.policy_types[0] instanceof Map;
3737 assert res.policy_types[0].get('onap.policies.monitoring.cdap.tca.hi.lo.app').version == "6.0.${__threadNum}";
3742 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete Policy Type Monitoring V2" enabled="true">
3743 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
3744 <collectionProp name="Arguments.arguments"/>
3746 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
3747 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
3748 <stringProp name="HTTPSampler.protocol">https</stringProp>
3749 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
3750 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/7.0.${__threadNum}</stringProp>
3751 <stringProp name="HTTPSampler.method">DELETE</stringProp>
3752 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
3753 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
3754 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
3755 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
3756 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
3757 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
3758 <stringProp name="HTTPSampler.response_timeout"></stringProp>
3761 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="false">
3762 <collectionProp name="Asserion.test_strings">
3763 <stringProp name="49586">200</stringProp>
3765 <stringProp name="Assertion.custom_message"></stringProp>
3766 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
3767 <boolProp name="Assertion.assume_success">false</boolProp>
3768 <intProp name="Assertion.test_type">1</intProp>
3769 </ResponseAssertion>
3771 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="false">
3772 <stringProp name="scriptLanguage">groovy</stringProp>
3773 <stringProp name="parameters"></stringProp>
3774 <stringProp name="filename"></stringProp>
3775 <stringProp name="cacheKey">true</stringProp>
3776 <stringProp name="script">import groovy.json.JsonSlurper;
3779 if (prev.getResponseCode() == '409') {
3780 def jsonSlurper = new JsonSlurper();
3781 res = jsonSlurper.parseText(prev.getResponseDataAsString());
3783 assert res instanceof Map;
3784 assert res.policy_types instanceof List;
3785 assert res.policy_types.size == 1;
3786 assert res.policy_types[0] instanceof Map;
3787 assert res.policy_types[0].get('onap.policies.monitoring.cdap.tca.hi.lo.app').version == "7.0.${__threadNum}";
3792 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete Policy Type Optimization" enabled="true">
3793 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
3794 <collectionProp name="Arguments.arguments"/>
3796 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
3797 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
3798 <stringProp name="HTTPSampler.protocol">https</stringProp>
3799 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
3800 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.optimization.resource.AffinityPolicy/versions/6.0.${__threadNum}</stringProp>
3801 <stringProp name="HTTPSampler.method">DELETE</stringProp>
3802 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
3803 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
3804 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
3805 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
3806 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
3807 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
3808 <stringProp name="HTTPSampler.response_timeout"></stringProp>
3811 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
3812 <collectionProp name="Asserion.test_strings">
3813 <stringProp name="49586">200</stringProp>
3815 <stringProp name="Assertion.custom_message"></stringProp>
3816 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
3817 <boolProp name="Assertion.assume_success">false</boolProp>
3818 <intProp name="Assertion.test_type">1</intProp>
3819 </ResponseAssertion>
3821 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
3822 <stringProp name="scriptLanguage">groovy</stringProp>
3823 <stringProp name="parameters"></stringProp>
3824 <stringProp name="filename"></stringProp>
3825 <stringProp name="cacheKey">true</stringProp>
3826 <stringProp name="script">import groovy.json.JsonSlurper;
3829 if (prev.getResponseCode() == '409') {
3830 def jsonSlurper = new JsonSlurper();
3831 res = jsonSlurper.parseText(prev.getResponseDataAsString());
3833 assert res instanceof Map;
3834 assert res.policy_types instanceof List;
3835 assert res.policy_types.size == 1;
3836 assert res.policy_types[0] instanceof Map;
3837 assert res.policy_types[0].get('onap.policies.optimization.resource.AffinityPolicy').version == "6.0.${__threadNum}";
3842 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete Policy Type Guard" enabled="true">
3843 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
3844 <collectionProp name="Arguments.arguments"/>
3846 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
3847 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
3848 <stringProp name="HTTPSampler.protocol">https</stringProp>
3849 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
3850 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.controlloop.guard.common.Blacklist/versions/6.0.${__threadNum}</stringProp>
3851 <stringProp name="HTTPSampler.method">DELETE</stringProp>
3852 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
3853 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
3854 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
3855 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
3856 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
3857 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
3858 <stringProp name="HTTPSampler.response_timeout"></stringProp>
3861 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
3862 <collectionProp name="Asserion.test_strings">
3863 <stringProp name="49586">200</stringProp>
3865 <stringProp name="Assertion.custom_message"></stringProp>
3866 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
3867 <boolProp name="Assertion.assume_success">false</boolProp>
3868 <intProp name="Assertion.test_type">1</intProp>
3869 </ResponseAssertion>
3871 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
3872 <stringProp name="scriptLanguage">groovy</stringProp>
3873 <stringProp name="parameters"></stringProp>
3874 <stringProp name="filename"></stringProp>
3875 <stringProp name="cacheKey">true</stringProp>
3876 <stringProp name="script">import groovy.json.JsonSlurper;
3879 if (prev.getResponseCode() == '200') {
3880 def jsonSlurper = new JsonSlurper();
3881 res = jsonSlurper.parseText(prev.getResponseDataAsString());
3883 assert res instanceof Map;
3884 assert res.policy_types instanceof Map;
3885 assert res.policy_types.get('onap.policies.controlloop.guard.common.Blacklist').version == "6.0.${__threadNum}";
3890 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete Policy Type Native APEX" enabled="true">
3891 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
3892 <collectionProp name="Arguments.arguments"/>
3894 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
3895 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
3896 <stringProp name="HTTPSampler.protocol">https</stringProp>
3897 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
3898 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.native.Apex/versions/6.0.${__threadNum}</stringProp>
3899 <stringProp name="HTTPSampler.method">DELETE</stringProp>
3900 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
3901 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
3902 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
3903 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
3904 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
3905 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
3906 <stringProp name="HTTPSampler.response_timeout"></stringProp>
3909 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
3910 <collectionProp name="Asserion.test_strings">
3911 <stringProp name="49586">200</stringProp>
3913 <stringProp name="Assertion.custom_message"></stringProp>
3914 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
3915 <boolProp name="Assertion.assume_success">false</boolProp>
3916 <intProp name="Assertion.test_type">1</intProp>
3917 </ResponseAssertion>
3919 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
3920 <stringProp name="scriptLanguage">groovy</stringProp>
3921 <stringProp name="parameters"></stringProp>
3922 <stringProp name="filename"></stringProp>
3923 <stringProp name="cacheKey">true</stringProp>
3924 <stringProp name="script">import groovy.json.JsonSlurper;
3927 if (prev.getResponseCode() == '200') {
3928 def jsonSlurper = new JsonSlurper();
3929 res = jsonSlurper.parseText(prev.getResponseDataAsString());
3931 assert res instanceof Map;
3932 assert res.policy_types instanceof Map;
3933 assert res.policy_types.get('onap.policies.native.Apex').version == "6.0.${__threadNum}";
3938 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete Policy Type Native Drools Controller" enabled="true">
3939 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
3940 <collectionProp name="Arguments.arguments"/>
3942 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
3943 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
3944 <stringProp name="HTTPSampler.protocol">https</stringProp>
3945 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
3946 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.native.drools.Controller/versions/6.0.${__threadNum}</stringProp>
3947 <stringProp name="HTTPSampler.method">DELETE</stringProp>
3948 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
3949 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
3950 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
3951 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
3952 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
3953 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
3954 <stringProp name="HTTPSampler.response_timeout"></stringProp>
3957 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
3958 <collectionProp name="Asserion.test_strings">
3959 <stringProp name="49586">200</stringProp>
3961 <stringProp name="Assertion.custom_message"></stringProp>
3962 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
3963 <boolProp name="Assertion.assume_success">false</boolProp>
3964 <intProp name="Assertion.test_type">1</intProp>
3965 </ResponseAssertion>
3967 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
3968 <stringProp name="scriptLanguage">groovy</stringProp>
3969 <stringProp name="parameters"></stringProp>
3970 <stringProp name="filename"></stringProp>
3971 <stringProp name="cacheKey">true</stringProp>
3972 <stringProp name="script">import groovy.json.JsonSlurper;
3975 if (prev.getResponseCode() == '200') {
3976 def jsonSlurper = new JsonSlurper();
3977 res = jsonSlurper.parseText(prev.getResponseDataAsString());
3979 assert res instanceof Map;
3980 assert res.policy_types instanceof Map;
3981 assert res.policy_types.get('onap.policies.native.drools.Controller').version == "6.0.${__threadNum}";
3986 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete Policy Type Native Drools Artifact" enabled="true">
3987 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
3988 <collectionProp name="Arguments.arguments"/>
3990 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
3991 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
3992 <stringProp name="HTTPSampler.protocol">https</stringProp>
3993 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
3994 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.native.drools.Artifact/versions/6.0.${__threadNum}</stringProp>
3995 <stringProp name="HTTPSampler.method">DELETE</stringProp>
3996 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
3997 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
3998 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
3999 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
4000 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
4001 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
4002 <stringProp name="HTTPSampler.response_timeout"></stringProp>
4005 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
4006 <collectionProp name="Asserion.test_strings">
4007 <stringProp name="49586">200</stringProp>
4009 <stringProp name="Assertion.custom_message"></stringProp>
4010 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
4011 <boolProp name="Assertion.assume_success">false</boolProp>
4012 <intProp name="Assertion.test_type">1</intProp>
4013 </ResponseAssertion>
4015 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
4016 <stringProp name="scriptLanguage">groovy</stringProp>
4017 <stringProp name="parameters"></stringProp>
4018 <stringProp name="filename"></stringProp>
4019 <stringProp name="cacheKey">true</stringProp>
4020 <stringProp name="script">import groovy.json.JsonSlurper;
4023 if (prev.getResponseCode() == '200') {
4024 def jsonSlurper = new JsonSlurper();
4025 res = jsonSlurper.parseText(prev.getResponseDataAsString());
4027 assert res instanceof Map;
4028 assert res.policy_types instanceof Map;
4029 assert res.policy_types.get('onap.policies.native.drools.Artifact').version == "6.0.${__threadNum}";
4034 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete Policy Type Native XACML" enabled="true">
4035 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
4036 <collectionProp name="Arguments.arguments"/>
4038 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
4039 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
4040 <stringProp name="HTTPSampler.protocol">https</stringProp>
4041 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
4042 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.native.Xacml/versions/6.0.${__threadNum}</stringProp>
4043 <stringProp name="HTTPSampler.method">DELETE</stringProp>
4044 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
4045 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
4046 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
4047 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
4048 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
4049 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
4050 <stringProp name="HTTPSampler.response_timeout"></stringProp>
4053 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
4054 <collectionProp name="Asserion.test_strings">
4055 <stringProp name="49586">200</stringProp>
4057 <stringProp name="Assertion.custom_message"></stringProp>
4058 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
4059 <boolProp name="Assertion.assume_success">false</boolProp>
4060 <intProp name="Assertion.test_type">1</intProp>
4061 </ResponseAssertion>
4063 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
4064 <stringProp name="scriptLanguage">groovy</stringProp>
4065 <stringProp name="parameters"></stringProp>
4066 <stringProp name="filename"></stringProp>
4067 <stringProp name="cacheKey">true</stringProp>
4068 <stringProp name="script">import groovy.json.JsonSlurper;
4071 if (prev.getResponseCode() == '200') {
4072 def jsonSlurper = new JsonSlurper();
4073 res = jsonSlurper.parseText(prev.getResponseDataAsString());
4075 assert res instanceof Map;
4076 assert res.policy_types instanceof Map;
4077 assert res.policy_types.get('onap.policies.native.Xacml').version == "6.0.${__threadNum}";
4083 <PostThreadGroup guiclass="PostThreadGroupGui" testclass="PostThreadGroup" testname="tearDown Thread Group" enabled="true">
4084 <stringProp name="ThreadGroup.on_sample_error">stoptest</stringProp>
4085 <elementProp name="ThreadGroup.main_controller" elementType="LoopController" guiclass="LoopControlPanel" testclass="LoopController" testname="Loop Controller" enabled="true">
4086 <boolProp name="LoopController.continue_forever">false</boolProp>
4087 <stringProp name="LoopController.loops">1</stringProp>
4089 <stringProp name="ThreadGroup.num_threads">1</stringProp>
4090 <stringProp name="ThreadGroup.ramp_time">1</stringProp>
4091 <boolProp name="ThreadGroup.scheduler">false</boolProp>
4092 <stringProp name="ThreadGroup.duration"></stringProp>
4093 <stringProp name="ThreadGroup.delay"></stringProp>
4094 <boolProp name="ThreadGroup.same_user_on_next_iteration">true</boolProp>
4097 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get Healthcheck" enabled="true">
4098 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
4099 <collectionProp name="Arguments.arguments"/>
4101 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
4102 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
4103 <stringProp name="HTTPSampler.protocol">https</stringProp>
4104 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
4105 <stringProp name="HTTPSampler.path">/policy/api/v1/healthcheck</stringProp>
4106 <stringProp name="HTTPSampler.method">GET</stringProp>
4107 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
4108 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
4109 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
4110 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
4111 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
4112 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
4113 <stringProp name="HTTPSampler.response_timeout"></stringProp>
4116 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
4117 <collectionProp name="Asserion.test_strings">
4118 <stringProp name="49586">200</stringProp>
4120 <stringProp name="Assertion.custom_message"></stringProp>
4121 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
4122 <boolProp name="Assertion.assume_success">false</boolProp>
4123 <intProp name="Assertion.test_type">1</intProp>
4124 </ResponseAssertion>
4126 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
4127 <stringProp name="cacheKey">true</stringProp>
4128 <stringProp name="filename"></stringProp>
4129 <stringProp name="parameters"></stringProp>
4130 <stringProp name="script">import groovy.json.JsonSlurper;
4133 if (prev.getResponseCode() == '200') {
4134 def jsonSlurper = new JsonSlurper();
4135 res = jsonSlurper.parseText(prev.getResponseDataAsString());
4137 assert res instanceof Map;
4138 assert res.code == 200;
4139 assert res.name == "Policy API";
4140 assert res.healthy==true;
4141 assert res.message=="alive";
4143 <stringProp name="scriptLanguage">groovy</stringProp>
4147 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get Preloaded Policy Types" enabled="true">
4148 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
4149 <collectionProp name="Arguments.arguments"/>
4151 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
4152 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
4153 <stringProp name="HTTPSampler.protocol">https</stringProp>
4154 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
4155 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes</stringProp>
4156 <stringProp name="HTTPSampler.method">GET</stringProp>
4157 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
4158 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
4159 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
4160 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
4161 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
4162 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
4163 <stringProp name="HTTPSampler.response_timeout"></stringProp>
4166 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
4167 <collectionProp name="Asserion.test_strings">
4168 <stringProp name="49586">200</stringProp>
4170 <stringProp name="Assertion.custom_message"></stringProp>
4171 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
4172 <boolProp name="Assertion.assume_success">false</boolProp>
4173 <intProp name="Assertion.test_type">1</intProp>
4174 </ResponseAssertion>
4176 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
4177 <stringProp name="scriptLanguage">groovy</stringProp>
4178 <stringProp name="parameters"></stringProp>
4179 <stringProp name="filename"></stringProp>
4180 <stringProp name="cacheKey">true</stringProp>
4181 <stringProp name="script">import groovy.json.JsonSlurper;
4184 if (prev.getResponseCode() == '200') {
4185 def jsonSlurper = new JsonSlurper();
4186 res = jsonSlurper.parseText(prev.getResponseDataAsString());
4188 assert res instanceof Map;
4189 assert res.policy_types instanceof Map;
4190 assert res.policy_types.size() == 35;
4196 <ResultCollector guiclass="SummaryReport" testclass="ResultCollector" testname="Summary Report" enabled="true">
4197 <boolProp name="ResultCollector.error_logging">false</boolProp>
4199 <name>saveConfig</name>
4200 <value class="SampleSaveConfiguration">
4202 <latency>true</latency>
4203 <timestamp>true</timestamp>
4204 <success>true</success>
4207 <message>true</message>
4208 <threadName>true</threadName>
4209 <dataType>true</dataType>
4210 <encoding>false</encoding>
4211 <assertions>true</assertions>
4212 <subresults>true</subresults>
4213 <responseData>false</responseData>
4214 <samplerData>false</samplerData>
4216 <fieldNames>true</fieldNames>
4217 <responseHeaders>false</responseHeaders>
4218 <requestHeaders>false</requestHeaders>
4219 <responseDataOnError>false</responseDataOnError>
4220 <saveAssertionResultsFailureMessage>true</saveAssertionResultsFailureMessage>
4221 <assertionsResultsToSave>0</assertionsResultsToSave>
4223 <sentBytes>true</sentBytes>
4225 <threadCounts>true</threadCounts>
4226 <idleTime>true</idleTime>
4227 <connectTime>true</connectTime>
4230 <stringProp name="filename">/home/liam/work/WIndriver/summary.log</stringProp>
4233 <ResultCollector guiclass="ViewResultsFullVisualizer" testclass="ResultCollector" testname="View Results Tree" enabled="true">
4234 <boolProp name="ResultCollector.error_logging">false</boolProp>
4236 <name>saveConfig</name>
4237 <value class="SampleSaveConfiguration">
4239 <latency>true</latency>
4240 <timestamp>true</timestamp>
4241 <success>true</success>
4244 <message>true</message>
4245 <threadName>true</threadName>
4246 <dataType>true</dataType>
4247 <encoding>false</encoding>
4248 <assertions>true</assertions>
4249 <subresults>true</subresults>
4250 <responseData>false</responseData>
4251 <samplerData>false</samplerData>
4253 <fieldNames>true</fieldNames>
4254 <responseHeaders>false</responseHeaders>
4255 <requestHeaders>false</requestHeaders>
4256 <responseDataOnError>false</responseDataOnError>
4257 <saveAssertionResultsFailureMessage>true</saveAssertionResultsFailureMessage>
4258 <assertionsResultsToSave>0</assertionsResultsToSave>
4260 <sentBytes>true</sentBytes>
4262 <threadCounts>true</threadCounts>
4263 <idleTime>true</idleTime>
4264 <connectTime>true</connectTime>
4267 <stringProp name="filename">/home/ubuntu/s3p/stability.log</stringProp>
4270 <ResultCollector guiclass="TableVisualizer" testclass="ResultCollector" testname="View Results in Table" enabled="true">
4271 <boolProp name="ResultCollector.error_logging">false</boolProp>
4273 <name>saveConfig</name>
4274 <value class="SampleSaveConfiguration">
4276 <latency>true</latency>
4277 <timestamp>true</timestamp>
4278 <success>true</success>
4281 <message>true</message>
4282 <threadName>true</threadName>
4283 <dataType>true</dataType>
4284 <encoding>false</encoding>
4285 <assertions>true</assertions>
4286 <subresults>true</subresults>
4287 <responseData>false</responseData>
4288 <samplerData>false</samplerData>
4290 <fieldNames>true</fieldNames>
4291 <responseHeaders>false</responseHeaders>
4292 <requestHeaders>false</requestHeaders>
4293 <responseDataOnError>false</responseDataOnError>
4294 <saveAssertionResultsFailureMessage>true</saveAssertionResultsFailureMessage>
4295 <assertionsResultsToSave>0</assertionsResultsToSave>
4297 <sentBytes>true</sentBytes>
4299 <threadCounts>true</threadCounts>
4300 <idleTime>true</idleTime>
4301 <connectTime>true</connectTime>
4304 <stringProp name="filename">/home/liam/work/WIndriver/Results.log</stringProp>