1 <?xml version="1.0" encoding="UTF-8"?>
2 <jmeterTestPlan version="1.2" properties="5.0" jmeter="5.1.1 r1855137">
4 <TestPlan guiclass="TestPlanGui" testclass="TestPlan" testname="Policy API Performance" enabled="true">
5 <stringProp name="TestPlan.comments"></stringProp>
6 <boolProp name="TestPlan.functional_mode">false</boolProp>
7 <boolProp name="TestPlan.tearDown_on_shutdown">true</boolProp>
8 <boolProp name="TestPlan.serialize_threadgroups">false</boolProp>
9 <elementProp name="TestPlan.user_defined_variables" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
10 <collectionProp name="Arguments.arguments">
11 <elementProp name="API_HOST" elementType="Argument">
12 <stringProp name="Argument.name">API_HOST</stringProp>
13 <stringProp name="Argument.value">10.12.6.151</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">6969</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}:6969/policy/api/v1</stringProp>
30 <stringProp name="Authorization.username">healthcheck</stringProp>
31 <stringProp name="Authorization.password">zb!XztG34</stringProp>
32 <stringProp name="Authorization.domain"></stringProp>
33 <stringProp name="Authorization.realm"></stringProp>
36 <boolProp name="AuthManager.clearEachIteration">true</boolProp>
39 <HeaderManager guiclass="HeaderPanel" testclass="HeaderManager" testname="HTTP Header Manager" enabled="true">
40 <collectionProp name="HeaderManager.headers">
41 <elementProp name="" elementType="Header">
42 <stringProp name="Header.name">Accept</stringProp>
43 <stringProp name="Header.value">application/json</stringProp>
45 <elementProp name="" elementType="Header">
46 <stringProp name="Header.name">Content-Type</stringProp>
47 <stringProp name="Header.value">application/json</stringProp>
52 <SetupThreadGroup guiclass="SetupThreadGroupGui" testclass="SetupThreadGroup" testname="setUp Thread Group" enabled="true">
53 <stringProp name="ThreadGroup.on_sample_error">stoptest</stringProp>
54 <elementProp name="ThreadGroup.main_controller" elementType="LoopController" guiclass="LoopControlPanel" testclass="LoopController" testname="Loop Controller" enabled="true">
55 <boolProp name="LoopController.continue_forever">false</boolProp>
56 <stringProp name="LoopController.loops">1</stringProp>
58 <stringProp name="ThreadGroup.num_threads">1</stringProp>
59 <stringProp name="ThreadGroup.ramp_time">1</stringProp>
60 <boolProp name="ThreadGroup.scheduler">false</boolProp>
61 <stringProp name="ThreadGroup.duration"></stringProp>
62 <stringProp name="ThreadGroup.delay"></stringProp>
65 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get Healthcheck" enabled="true">
66 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
67 <collectionProp name="Arguments.arguments"/>
69 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
70 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
71 <stringProp name="HTTPSampler.protocol">https</stringProp>
72 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
73 <stringProp name="HTTPSampler.path">/policy/api/v1/healthcheck</stringProp>
74 <stringProp name="HTTPSampler.method">GET</stringProp>
75 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
76 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
77 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
78 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
79 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
80 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
81 <stringProp name="HTTPSampler.response_timeout"></stringProp>
84 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
85 <collectionProp name="Asserion.test_strings">
86 <stringProp name="49586">200</stringProp>
88 <stringProp name="Assertion.custom_message"></stringProp>
89 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
90 <boolProp name="Assertion.assume_success">false</boolProp>
91 <intProp name="Assertion.test_type">1</intProp>
94 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
95 <stringProp name="cacheKey">true</stringProp>
96 <stringProp name="filename"></stringProp>
97 <stringProp name="parameters"></stringProp>
98 <stringProp name="script">import groovy.json.JsonSlurper;
101 if (prev.getResponseCode() == '200') {
102 def jsonSlurper = new JsonSlurper();
103 res = jsonSlurper.parseText(prev.getResponseDataAsString());
105 assert res instanceof Map;
106 assert res.code == 200;
107 assert res.name == "Policy API";
108 assert res.healthy==true;
109 assert res.message=="alive";
111 <stringProp name="scriptLanguage">groovy</stringProp>
115 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get Statistics" enabled="true">
116 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
117 <collectionProp name="Arguments.arguments"/>
119 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
120 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
121 <stringProp name="HTTPSampler.protocol">https</stringProp>
122 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
123 <stringProp name="HTTPSampler.path">/policy/api/v1/statistics</stringProp>
124 <stringProp name="HTTPSampler.method">GET</stringProp>
125 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
126 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
127 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
128 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
129 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
130 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
131 <stringProp name="HTTPSampler.response_timeout"></stringProp>
134 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
135 <collectionProp name="Asserion.test_strings">
136 <stringProp name="49586">200</stringProp>
138 <stringProp name="Assertion.custom_message"></stringProp>
139 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
140 <boolProp name="Assertion.assume_success">false</boolProp>
141 <intProp name="Assertion.test_type">1</intProp>
144 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
145 <stringProp name="scriptLanguage">groovy</stringProp>
146 <stringProp name="parameters"></stringProp>
147 <stringProp name="filename"></stringProp>
148 <stringProp name="cacheKey">true</stringProp>
149 <stringProp name="script">import groovy.json.JsonSlurper;
152 if (prev.getResponseCode() == '200') {
153 def jsonSlurper = new JsonSlurper();
154 res = jsonSlurper.parseText(prev.getResponseDataAsString());
156 assert res instanceof Map;
157 assert res.code == 200;
162 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get Preloaded Policy Types" enabled="true">
163 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
164 <collectionProp name="Arguments.arguments"/>
166 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
167 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
168 <stringProp name="HTTPSampler.protocol">https</stringProp>
169 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
170 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes</stringProp>
171 <stringProp name="HTTPSampler.method">GET</stringProp>
172 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
173 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
174 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
175 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
176 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
177 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
178 <stringProp name="HTTPSampler.response_timeout"></stringProp>
181 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
182 <collectionProp name="Asserion.test_strings">
183 <stringProp name="49586">200</stringProp>
185 <stringProp name="Assertion.custom_message"></stringProp>
186 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
187 <boolProp name="Assertion.assume_success">false</boolProp>
188 <intProp name="Assertion.test_type">1</intProp>
191 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
192 <stringProp name="scriptLanguage">groovy</stringProp>
193 <stringProp name="parameters"></stringProp>
194 <stringProp name="filename"></stringProp>
195 <stringProp name="cacheKey">true</stringProp>
196 <stringProp name="script">import groovy.json.JsonSlurper;
199 if (prev.getResponseCode() == '200') {
200 def jsonSlurper = new JsonSlurper();
201 res = jsonSlurper.parseText(prev.getResponseDataAsString());
203 assert res instanceof Map;
204 assert res.policy_types instanceof List;
205 assert res.policy_types.size == 18;
211 <ThreadGroup guiclass="ThreadGroupGui" testclass="ThreadGroup" testname="API Test Flow" enabled="true">
212 <stringProp name="ThreadGroup.on_sample_error">stoptest</stringProp>
213 <elementProp name="ThreadGroup.main_controller" elementType="LoopController" guiclass="LoopControlPanel" testclass="LoopController" testname="Loop Controller" enabled="true">
214 <boolProp name="LoopController.continue_forever">false</boolProp>
215 <stringProp name="LoopController.loops">10000000</stringProp>
217 <stringProp name="ThreadGroup.num_threads">5</stringProp>
218 <stringProp name="ThreadGroup.ramp_time">5</stringProp>
219 <boolProp name="ThreadGroup.scheduler">true</boolProp>
220 <stringProp name="ThreadGroup.duration">259200</stringProp>
221 <stringProp name="ThreadGroup.delay">5</stringProp>
224 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create TCA Policy Type V1" enabled="true">
225 <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
226 <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
227 <collectionProp name="Arguments.arguments">
228 <elementProp name="" elementType="HTTPArgument">
229 <boolProp name="HTTPArgument.always_encode">false</boolProp>
230 <stringProp name="Argument.value">{
231 "tosca_definitions_version": "tosca_simple_yaml_1_0_0",
232 "policy_types": [
234 "onap.policies.Monitoring": {
235 "derived_from": "tosca.policies.Root",
236 "version": "1.0.0",
237 "description": "a base policy type for all policies that governs monitoring provisioning"
241 "onap.policies.monitoring.cdap.tca.hi.lo.app": {
242 "derived_from": "onap.policies.Monitoring",
243 "version": "1.0.0",
244 "properties": {
245 "tca_policy": {
246 "type": "map",
247 "description": "TCA Policy JSON",
248 "entry_schema": {
249 "type": "onap.datatypes.monitoring.tca_policy"
256 "data_types": [
258 "onap.datatypes.monitoring.metricsPerEventName": {
259 "derived_from": "tosca.datatypes.Root",
260 "properties": {
261 "controlLoopSchemaType": {
262 "type": "string",
263 "required": true,
264 "description": "Specifies Control Loop Schema Type for the event Name e.g. VNF, VM",
265 "constraints": [
267 "valid_values": [
274 "eventName": {
275 "type": "string",
276 "required": true,
277 "description": "Event name to which thresholds need to be applied"
279 "policyName": {
280 "type": "string",
281 "required": true,
282 "description": "TCA Policy Scope Name"
284 "policyScope": {
285 "type": "string",
286 "required": true,
287 "description": "TCA Policy Scope"
289 "policyVersion": {
290 "type": "string",
291 "required": true,
292 "description": "TCA Policy Scope Version"
294 "thresholds": {
295 "type": "list",
296 "required": true,
297 "description": "Thresholds associated with eventName",
298 "entry_schema": {
299 "type": "onap.datatypes.monitoring.thresholds"
306 "onap.datatypes.monitoring.tca_policy": {
307 "derived_from": "tosca.datatypes.Root",
308 "properties": {
309 "domain": {
310 "type": "string",
311 "required": true,
312 "description": "Domain name to which TCA needs to be applied",
313 "default": "measurementsForVfScaling",
314 "constraints": [
316 "equal": "measurementsForVfScaling"
320 "metricsPerEventName": {
321 "type": "list",
322 "required": true,
323 "description": "Contains eventName and threshold details that need to be applied to given eventName",
324 "entry_schema": {
325 "type": "onap.datatypes.monitoring.metricsPerEventName"
332 "onap.datatypes.monitoring.thresholds": {
333 "derived_from": "tosca.datatypes.Root",
334 "properties": {
335 "closedLoopControlName": {
336 "type": "string",
337 "required": true,
338 "description": "Closed Loop Control Name associated with the threshold"
340 "closedLoopEventStatus": {
341 "type": "string",
342 "required": true,
343 "description": "Closed Loop Event Status of the threshold",
344 "constraints": [
346 "valid_values": [
347 "ONSET",
348 "ABATED"
353 "direction": {
354 "type": "string",
355 "required": true,
356 "description": "Direction of the threshold",
357 "constraints": [
359 "valid_values": [
360 "LESS",
361 "LESS_OR_EQUAL",
362 "GREATER",
363 "GREATER_OR_EQUAL",
364 "EQUAL"
369 "fieldPath": {
370 "type": "string",
371 "required": true,
372 "description": "Json field Path as per CEF message which needs to be analyzed for TCA",
373 "constraints": [
375 "valid_values": [
376 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsDelta",
377 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedOctetsDelta",
378 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedUnicastPacketsDelta",
379 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedMulticastPacketsDelta",
380 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsDelta",
381 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedDiscardedPacketsDelta",
382 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedErrorPacketsDelta",
383 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsAccumulated",
384 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedOctetsAccumulated",
385 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedUnicastPacketsAccumulated",
386 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedMulticastPacketsAccumulated",
387 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsAccumulated",
388 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedDiscardedPacketsAccumulated",
389 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedErrorPacketsAccumulated",
390 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedTotalPacketsDelta",
391 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedOctetsDelta",
392 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedUnicastPacketsDelta",
393 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedMulticastPacketsDelta",
394 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedBroadcastPacketsDelta",
395 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedDiscardedPacketsDelta",
396 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedErrorPacketsDelta",
397 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedTotalPacketsAccumulated",
398 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedOctetsAccumulated",
399 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedUnicastPacketsAccumulated",
400 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedMulticastPacketsAccumulated",
401 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedBroadcastPacketsAccumulated",
402 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedDiscardedPacketsAccumulated",
403 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedErrorPacketsAccumulated",
404 "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuIdle",
405 "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageInterrupt",
406 "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageNice",
407 "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSoftIrq",
408 "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSteal",
409 "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSystem",
410 "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuWait",
411 "$.event.measurementsForVfScalingFields.cpuUsageArray[*].percentUsage",
412 "$.event.measurementsForVfScalingFields.meanRequestLatency",
413 "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryBuffered",
414 "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryCached",
415 "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryConfigured",
416 "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryFree",
417 "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryUsed",
418 "$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value"
423 "severity": {
424 "type": "string",
425 "required": true,
426 "description": "Threshold Event Severity",
427 "constraints": [
429 "valid_values": [
430 "CRITICAL",
431 "MAJOR",
432 "MINOR",
433 "WARNING",
434 "NORMAL"
439 "thresholdValue": {
440 "type": "integer",
441 "required": true,
442 "description": "Threshold value for the field Path inside CEF message"
444 "version": {
445 "type": "string",
446 "required": true,
447 "description": "Version number associated with the threshold"
454 <stringProp name="Argument.metadata">=</stringProp>
458 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
459 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
460 <stringProp name="HTTPSampler.protocol">https</stringProp>
461 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
462 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes</stringProp>
463 <stringProp name="HTTPSampler.method">POST</stringProp>
464 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
465 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
466 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
467 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
468 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
469 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
470 <stringProp name="HTTPSampler.response_timeout"></stringProp>
473 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
474 <collectionProp name="Asserion.test_strings">
475 <stringProp name="49586">200</stringProp>
477 <stringProp name="Assertion.custom_message"></stringProp>
478 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
479 <boolProp name="Assertion.assume_success">false</boolProp>
480 <intProp name="Assertion.test_type">1</intProp>
483 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
484 <stringProp name="scriptLanguage">groovy</stringProp>
485 <stringProp name="parameters"></stringProp>
486 <stringProp name="filename"></stringProp>
487 <stringProp name="cacheKey">true</stringProp>
488 <stringProp name="script">import groovy.json.JsonSlurper;
491 if (prev.getResponseCode() == '200') {
492 def jsonSlurper = new JsonSlurper();
493 res = jsonSlurper.parseText(prev.getResponseDataAsString());
495 assert res instanceof Map;
496 assert res.policy_types instanceof List;
497 assert res.policy_types.size == 2;
498 assert res.policy_types[0] instanceof Map;
499 assert res.policy_types[1] instanceof Map;
504 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create TCA Policy Type V2" enabled="true">
505 <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
506 <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
507 <collectionProp name="Arguments.arguments">
508 <elementProp name="" elementType="HTTPArgument">
509 <boolProp name="HTTPArgument.always_encode">false</boolProp>
510 <stringProp name="Argument.value">{
511 "tosca_definitions_version": "tosca_simple_yaml_1_0_0",
512 "policy_types": [
514 "onap.policies.Monitoring": {
515 "derived_from": "tosca.policies.Root",
516 "version": "1.0.0",
517 "description": "a base policy type for all policies that governs monitoring provisioning"
521 "onap.policies.monitoring.cdap.tca.hi.lo.app": {
522 "derived_from": "onap.policies.Monitoring",
523 "version": "2.0.0",
524 "properties": {
525 "tca_policy": {
526 "type": "map",
527 "description": "TCA Policy JSON",
528 "entry_schema": {
529 "type": "onap.datatypes.monitoring.tca_policy"
536 "data_types": [
538 "onap.datatypes.monitoring.metricsPerEventName": {
539 "derived_from": "tosca.datatypes.Root",
540 "properties": {
541 "controlLoopSchemaType": {
542 "type": "string",
543 "required": true,
544 "description": "Specifies Control Loop Schema Type for the event Name e.g. VNF, VM",
545 "constraints": [
547 "valid_values": [
554 "eventName": {
555 "type": "string",
556 "required": true,
557 "description": "Event name to which thresholds need to be applied"
559 "policyName": {
560 "type": "string",
561 "required": true,
562 "description": "TCA Policy Scope Name"
564 "policyScope": {
565 "type": "string",
566 "required": true,
567 "description": "TCA Policy Scope"
569 "policyVersion": {
570 "type": "string",
571 "required": true,
572 "description": "TCA Policy Scope Version"
574 "thresholds": {
575 "type": "list",
576 "required": true,
577 "description": "Thresholds associated with eventName",
578 "entry_schema": {
579 "type": "onap.datatypes.monitoring.thresholds"
586 "onap.datatypes.monitoring.tca_policy": {
587 "derived_from": "tosca.datatypes.Root",
588 "properties": {
589 "domain": {
590 "type": "string",
591 "required": true,
592 "description": "Domain name to which TCA needs to be applied",
593 "default": "measurementsForVfScaling",
594 "constraints": [
596 "equal": "measurementsForVfScaling"
600 "metricsPerEventName": {
601 "type": "list",
602 "required": true,
603 "description": "Contains eventName and threshold details that need to be applied to given eventName",
604 "entry_schema": {
605 "type": "onap.datatypes.monitoring.metricsPerEventName"
612 "onap.datatypes.monitoring.thresholds": {
613 "derived_from": "tosca.datatypes.Root",
614 "properties": {
615 "closedLoopControlName": {
616 "type": "string",
617 "required": true,
618 "description": "Closed Loop Control Name associated with the threshold"
620 "closedLoopEventStatus": {
621 "type": "string",
622 "required": true,
623 "description": "Closed Loop Event Status of the threshold",
624 "constraints": [
626 "valid_values": [
627 "ONSET",
628 "ABATED"
633 "direction": {
634 "type": "string",
635 "required": true,
636 "description": "Direction of the threshold",
637 "constraints": [
639 "valid_values": [
640 "LESS",
641 "LESS_OR_EQUAL",
642 "GREATER",
643 "GREATER_OR_EQUAL",
644 "EQUAL"
649 "fieldPath": {
650 "type": "string",
651 "required": true,
652 "description": "Json field Path as per CEF message which needs to be analyzed for TCA",
653 "constraints": [
655 "valid_values": [
656 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsDelta",
657 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedOctetsDelta",
658 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedUnicastPacketsDelta",
659 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedMulticastPacketsDelta",
660 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsDelta",
661 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedDiscardedPacketsDelta",
662 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedErrorPacketsDelta",
663 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsAccumulated",
664 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedOctetsAccumulated",
665 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedUnicastPacketsAccumulated",
666 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedMulticastPacketsAccumulated",
667 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsAccumulated",
668 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedDiscardedPacketsAccumulated",
669 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedErrorPacketsAccumulated",
670 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedTotalPacketsDelta",
671 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedOctetsDelta",
672 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedUnicastPacketsDelta",
673 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedMulticastPacketsDelta",
674 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedBroadcastPacketsDelta",
675 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedDiscardedPacketsDelta",
676 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedErrorPacketsDelta",
677 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedTotalPacketsAccumulated",
678 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedOctetsAccumulated",
679 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedUnicastPacketsAccumulated",
680 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedMulticastPacketsAccumulated",
681 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedBroadcastPacketsAccumulated",
682 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedDiscardedPacketsAccumulated",
683 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedErrorPacketsAccumulated",
684 "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuIdle",
685 "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageInterrupt",
686 "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageNice",
687 "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSoftIrq",
688 "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSteal",
689 "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSystem",
690 "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuWait",
691 "$.event.measurementsForVfScalingFields.cpuUsageArray[*].percentUsage",
692 "$.event.measurementsForVfScalingFields.meanRequestLatency",
693 "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryBuffered",
694 "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryCached",
695 "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryConfigured",
696 "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryFree",
697 "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryUsed",
698 "$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value"
703 "severity": {
704 "type": "string",
705 "required": true,
706 "description": "Threshold Event Severity",
707 "constraints": [
709 "valid_values": [
710 "CRITICAL",
711 "MAJOR",
712 "MINOR",
713 "WARNING",
714 "NORMAL"
719 "thresholdValue": {
720 "type": "integer",
721 "required": true,
722 "description": "Threshold value for the field Path inside CEF message"
724 "version": {
725 "type": "string",
726 "required": true,
727 "description": "Version number associated with the threshold"
734 <stringProp name="Argument.metadata">=</stringProp>
738 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
739 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
740 <stringProp name="HTTPSampler.protocol">https</stringProp>
741 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
742 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes</stringProp>
743 <stringProp name="HTTPSampler.method">POST</stringProp>
744 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
745 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
746 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
747 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
748 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
749 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
750 <stringProp name="HTTPSampler.response_timeout"></stringProp>
753 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
754 <collectionProp name="Asserion.test_strings">
755 <stringProp name="49586">200</stringProp>
757 <stringProp name="Assertion.custom_message"></stringProp>
758 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
759 <boolProp name="Assertion.assume_success">false</boolProp>
760 <intProp name="Assertion.test_type">1</intProp>
763 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
764 <stringProp name="scriptLanguage">groovy</stringProp>
765 <stringProp name="parameters"></stringProp>
766 <stringProp name="filename"></stringProp>
767 <stringProp name="cacheKey">true</stringProp>
768 <stringProp name="script">import groovy.json.JsonSlurper;
771 if (prev.getResponseCode() == '200') {
772 def jsonSlurper = new JsonSlurper();
773 res = jsonSlurper.parseText(prev.getResponseDataAsString());
775 assert res instanceof Map;
776 assert res.policy_types instanceof List;
777 assert res.policy_types.size == 2;
778 assert res.policy_types[0] instanceof Map;
779 assert res.policy_types[1] instanceof Map;
784 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create TCA Policy Type V3" enabled="true">
785 <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
786 <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
787 <collectionProp name="Arguments.arguments">
788 <elementProp name="" elementType="HTTPArgument">
789 <boolProp name="HTTPArgument.always_encode">false</boolProp>
790 <stringProp name="Argument.value">{
791 "tosca_definitions_version": "tosca_simple_yaml_1_0_0",
792 "policy_types": [
794 "onap.policies.Monitoring": {
795 "derived_from": "tosca.policies.Root",
796 "version": "1.0.0",
797 "description": "a base policy type for all policies that governs monitoring provisioning"
801 "onap.policies.monitoring.cdap.tca.hi.lo.app": {
802 "derived_from": "onap.policies.Monitoring",
803 "version": "3.0.0",
804 "properties": {
805 "tca_policy": {
806 "type": "map",
807 "description": "TCA Policy JSON",
808 "entry_schema": {
809 "type": "onap.datatypes.monitoring.tca_policy"
816 "data_types": [
818 "onap.datatypes.monitoring.metricsPerEventName": {
819 "derived_from": "tosca.datatypes.Root",
820 "properties": {
821 "controlLoopSchemaType": {
822 "type": "string",
823 "required": true,
824 "description": "Specifies Control Loop Schema Type for the event Name e.g. VNF, VM",
825 "constraints": [
827 "valid_values": [
834 "eventName": {
835 "type": "string",
836 "required": true,
837 "description": "Event name to which thresholds need to be applied"
839 "policyName": {
840 "type": "string",
841 "required": true,
842 "description": "TCA Policy Scope Name"
844 "policyScope": {
845 "type": "string",
846 "required": true,
847 "description": "TCA Policy Scope"
849 "policyVersion": {
850 "type": "string",
851 "required": true,
852 "description": "TCA Policy Scope Version"
854 "thresholds": {
855 "type": "list",
856 "required": true,
857 "description": "Thresholds associated with eventName",
858 "entry_schema": {
859 "type": "onap.datatypes.monitoring.thresholds"
866 "onap.datatypes.monitoring.tca_policy": {
867 "derived_from": "tosca.datatypes.Root",
868 "properties": {
869 "domain": {
870 "type": "string",
871 "required": true,
872 "description": "Domain name to which TCA needs to be applied",
873 "default": "measurementsForVfScaling",
874 "constraints": [
876 "equal": "measurementsForVfScaling"
880 "metricsPerEventName": {
881 "type": "list",
882 "required": true,
883 "description": "Contains eventName and threshold details that need to be applied to given eventName",
884 "entry_schema": {
885 "type": "onap.datatypes.monitoring.metricsPerEventName"
892 "onap.datatypes.monitoring.thresholds": {
893 "derived_from": "tosca.datatypes.Root",
894 "properties": {
895 "closedLoopControlName": {
896 "type": "string",
897 "required": true,
898 "description": "Closed Loop Control Name associated with the threshold"
900 "closedLoopEventStatus": {
901 "type": "string",
902 "required": true,
903 "description": "Closed Loop Event Status of the threshold",
904 "constraints": [
906 "valid_values": [
907 "ONSET",
908 "ABATED"
913 "direction": {
914 "type": "string",
915 "required": true,
916 "description": "Direction of the threshold",
917 "constraints": [
919 "valid_values": [
920 "LESS",
921 "LESS_OR_EQUAL",
922 "GREATER",
923 "GREATER_OR_EQUAL",
924 "EQUAL"
929 "fieldPath": {
930 "type": "string",
931 "required": true,
932 "description": "Json field Path as per CEF message which needs to be analyzed for TCA",
933 "constraints": [
935 "valid_values": [
936 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsDelta",
937 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedOctetsDelta",
938 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedUnicastPacketsDelta",
939 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedMulticastPacketsDelta",
940 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsDelta",
941 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedDiscardedPacketsDelta",
942 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedErrorPacketsDelta",
943 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsAccumulated",
944 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedOctetsAccumulated",
945 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedUnicastPacketsAccumulated",
946 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedMulticastPacketsAccumulated",
947 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsAccumulated",
948 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedDiscardedPacketsAccumulated",
949 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedErrorPacketsAccumulated",
950 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedTotalPacketsDelta",
951 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedOctetsDelta",
952 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedUnicastPacketsDelta",
953 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedMulticastPacketsDelta",
954 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedBroadcastPacketsDelta",
955 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedDiscardedPacketsDelta",
956 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedErrorPacketsDelta",
957 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedTotalPacketsAccumulated",
958 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedOctetsAccumulated",
959 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedUnicastPacketsAccumulated",
960 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedMulticastPacketsAccumulated",
961 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedBroadcastPacketsAccumulated",
962 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedDiscardedPacketsAccumulated",
963 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedErrorPacketsAccumulated",
964 "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuIdle",
965 "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageInterrupt",
966 "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageNice",
967 "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSoftIrq",
968 "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSteal",
969 "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSystem",
970 "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuWait",
971 "$.event.measurementsForVfScalingFields.cpuUsageArray[*].percentUsage",
972 "$.event.measurementsForVfScalingFields.meanRequestLatency",
973 "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryBuffered",
974 "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryCached",
975 "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryConfigured",
976 "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryFree",
977 "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryUsed",
978 "$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value"
983 "severity": {
984 "type": "string",
985 "required": true,
986 "description": "Threshold Event Severity",
987 "constraints": [
989 "valid_values": [
990 "CRITICAL",
991 "MAJOR",
992 "MINOR",
993 "WARNING",
994 "NORMAL"
999 "thresholdValue": {
1000 "type": "integer",
1001 "required": true,
1002 "description": "Threshold value for the field Path inside CEF message"
1004 "version": {
1005 "type": "string",
1006 "required": true,
1007 "description": "Version number associated with the threshold"
1014 <stringProp name="Argument.metadata">=</stringProp>
1018 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
1019 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
1020 <stringProp name="HTTPSampler.protocol">https</stringProp>
1021 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
1022 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes</stringProp>
1023 <stringProp name="HTTPSampler.method">POST</stringProp>
1024 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
1025 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
1026 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
1027 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
1028 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
1029 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
1030 <stringProp name="HTTPSampler.response_timeout"></stringProp>
1033 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
1034 <collectionProp name="Asserion.test_strings">
1035 <stringProp name="49586">200</stringProp>
1037 <stringProp name="Assertion.custom_message"></stringProp>
1038 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
1039 <boolProp name="Assertion.assume_success">false</boolProp>
1040 <intProp name="Assertion.test_type">1</intProp>
1041 </ResponseAssertion>
1043 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
1044 <stringProp name="scriptLanguage">groovy</stringProp>
1045 <stringProp name="parameters"></stringProp>
1046 <stringProp name="filename"></stringProp>
1047 <stringProp name="cacheKey">true</stringProp>
1048 <stringProp name="script">import groovy.json.JsonSlurper;
1051 if (prev.getResponseCode() == '200') {
1052 def jsonSlurper = new JsonSlurper();
1053 res = jsonSlurper.parseText(prev.getResponseDataAsString());
1055 assert res instanceof Map;
1056 assert res.policy_types instanceof List;
1057 assert res.policy_types.size == 2;
1058 assert res.policy_types[0] instanceof Map;
1059 assert res.policy_types[1] instanceof Map;
1064 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create TCA Policy Type V4" enabled="true">
1065 <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
1066 <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
1067 <collectionProp name="Arguments.arguments">
1068 <elementProp name="" elementType="HTTPArgument">
1069 <boolProp name="HTTPArgument.always_encode">false</boolProp>
1070 <stringProp name="Argument.value">{
1071 "tosca_definitions_version": "tosca_simple_yaml_1_0_0",
1072 "policy_types": [
1074 "onap.policies.Monitoring": {
1075 "derived_from": "tosca.policies.Root",
1076 "version": "1.0.0",
1077 "description": "a base policy type for all policies that governs monitoring provisioning"
1081 "onap.policies.monitoring.cdap.tca.hi.lo.app": {
1082 "derived_from": "onap.policies.Monitoring",
1083 "version": "4.0.0",
1084 "properties": {
1085 "tca_policy": {
1086 "type": "map",
1087 "description": "TCA Policy JSON",
1088 "entry_schema": {
1089 "type": "onap.datatypes.monitoring.tca_policy"
1096 "data_types": [
1098 "onap.datatypes.monitoring.metricsPerEventName": {
1099 "derived_from": "tosca.datatypes.Root",
1100 "properties": {
1101 "controlLoopSchemaType": {
1102 "type": "string",
1103 "required": true,
1104 "description": "Specifies Control Loop Schema Type for the event Name e.g. VNF, VM",
1105 "constraints": [
1107 "valid_values": [
1108 "VM",
1109 "VNF"
1114 "eventName": {
1115 "type": "string",
1116 "required": true,
1117 "description": "Event name to which thresholds need to be applied"
1119 "policyName": {
1120 "type": "string",
1121 "required": true,
1122 "description": "TCA Policy Scope Name"
1124 "policyScope": {
1125 "type": "string",
1126 "required": true,
1127 "description": "TCA Policy Scope"
1129 "policyVersion": {
1130 "type": "string",
1131 "required": true,
1132 "description": "TCA Policy Scope Version"
1134 "thresholds": {
1135 "type": "list",
1136 "required": true,
1137 "description": "Thresholds associated with eventName",
1138 "entry_schema": {
1139 "type": "onap.datatypes.monitoring.thresholds"
1146 "onap.datatypes.monitoring.tca_policy": {
1147 "derived_from": "tosca.datatypes.Root",
1148 "properties": {
1149 "domain": {
1150 "type": "string",
1151 "required": true,
1152 "description": "Domain name to which TCA needs to be applied",
1153 "default": "measurementsForVfScaling",
1154 "constraints": [
1156 "equal": "measurementsForVfScaling"
1160 "metricsPerEventName": {
1161 "type": "list",
1162 "required": true,
1163 "description": "Contains eventName and threshold details that need to be applied to given eventName",
1164 "entry_schema": {
1165 "type": "onap.datatypes.monitoring.metricsPerEventName"
1172 "onap.datatypes.monitoring.thresholds": {
1173 "derived_from": "tosca.datatypes.Root",
1174 "properties": {
1175 "closedLoopControlName": {
1176 "type": "string",
1177 "required": true,
1178 "description": "Closed Loop Control Name associated with the threshold"
1180 "closedLoopEventStatus": {
1181 "type": "string",
1182 "required": true,
1183 "description": "Closed Loop Event Status of the threshold",
1184 "constraints": [
1186 "valid_values": [
1187 "ONSET",
1188 "ABATED"
1193 "direction": {
1194 "type": "string",
1195 "required": true,
1196 "description": "Direction of the threshold",
1197 "constraints": [
1199 "valid_values": [
1200 "LESS",
1201 "LESS_OR_EQUAL",
1202 "GREATER",
1203 "GREATER_OR_EQUAL",
1204 "EQUAL"
1209 "fieldPath": {
1210 "type": "string",
1211 "required": true,
1212 "description": "Json field Path as per CEF message which needs to be analyzed for TCA",
1213 "constraints": [
1215 "valid_values": [
1216 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsDelta",
1217 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedOctetsDelta",
1218 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedUnicastPacketsDelta",
1219 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedMulticastPacketsDelta",
1220 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsDelta",
1221 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedDiscardedPacketsDelta",
1222 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedErrorPacketsDelta",
1223 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsAccumulated",
1224 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedOctetsAccumulated",
1225 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedUnicastPacketsAccumulated",
1226 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedMulticastPacketsAccumulated",
1227 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsAccumulated",
1228 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedDiscardedPacketsAccumulated",
1229 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedErrorPacketsAccumulated",
1230 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedTotalPacketsDelta",
1231 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedOctetsDelta",
1232 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedUnicastPacketsDelta",
1233 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedMulticastPacketsDelta",
1234 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedBroadcastPacketsDelta",
1235 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedDiscardedPacketsDelta",
1236 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedErrorPacketsDelta",
1237 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedTotalPacketsAccumulated",
1238 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedOctetsAccumulated",
1239 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedUnicastPacketsAccumulated",
1240 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedMulticastPacketsAccumulated",
1241 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedBroadcastPacketsAccumulated",
1242 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedDiscardedPacketsAccumulated",
1243 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedErrorPacketsAccumulated",
1244 "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuIdle",
1245 "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageInterrupt",
1246 "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageNice",
1247 "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSoftIrq",
1248 "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSteal",
1249 "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSystem",
1250 "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuWait",
1251 "$.event.measurementsForVfScalingFields.cpuUsageArray[*].percentUsage",
1252 "$.event.measurementsForVfScalingFields.meanRequestLatency",
1253 "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryBuffered",
1254 "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryCached",
1255 "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryConfigured",
1256 "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryFree",
1257 "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryUsed",
1258 "$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value"
1263 "severity": {
1264 "type": "string",
1265 "required": true,
1266 "description": "Threshold Event Severity",
1267 "constraints": [
1269 "valid_values": [
1270 "CRITICAL",
1271 "MAJOR",
1272 "MINOR",
1273 "WARNING",
1274 "NORMAL"
1279 "thresholdValue": {
1280 "type": "integer",
1281 "required": true,
1282 "description": "Threshold value for the field Path inside CEF message"
1284 "version": {
1285 "type": "string",
1286 "required": true,
1287 "description": "Version number associated with the threshold"
1294 <stringProp name="Argument.metadata">=</stringProp>
1298 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
1299 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
1300 <stringProp name="HTTPSampler.protocol">https</stringProp>
1301 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
1302 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes</stringProp>
1303 <stringProp name="HTTPSampler.method">POST</stringProp>
1304 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
1305 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
1306 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
1307 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
1308 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
1309 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
1310 <stringProp name="HTTPSampler.response_timeout"></stringProp>
1313 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
1314 <collectionProp name="Asserion.test_strings">
1315 <stringProp name="49586">200</stringProp>
1317 <stringProp name="Assertion.custom_message"></stringProp>
1318 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
1319 <boolProp name="Assertion.assume_success">false</boolProp>
1320 <intProp name="Assertion.test_type">1</intProp>
1321 </ResponseAssertion>
1323 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
1324 <stringProp name="scriptLanguage">groovy</stringProp>
1325 <stringProp name="parameters"></stringProp>
1326 <stringProp name="filename"></stringProp>
1327 <stringProp name="cacheKey">true</stringProp>
1328 <stringProp name="script">import groovy.json.JsonSlurper;
1331 if (prev.getResponseCode() == '200') {
1332 def jsonSlurper = new JsonSlurper();
1333 res = jsonSlurper.parseText(prev.getResponseDataAsString());
1335 assert res instanceof Map;
1336 assert res.policy_types instanceof List;
1337 assert res.policy_types.size == 2;
1338 assert res.policy_types[0] instanceof Map;
1339 assert res.policy_types[1] instanceof Map;
1344 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create TCA Policy Type V5" enabled="true">
1345 <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
1346 <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
1347 <collectionProp name="Arguments.arguments">
1348 <elementProp name="" elementType="HTTPArgument">
1349 <boolProp name="HTTPArgument.always_encode">false</boolProp>
1350 <stringProp name="Argument.value">{
1351 "tosca_definitions_version": "tosca_simple_yaml_1_0_0",
1352 "policy_types": [
1354 "onap.policies.Monitoring": {
1355 "derived_from": "tosca.policies.Root",
1356 "version": "1.0.0",
1357 "description": "a base policy type for all policies that governs monitoring provisioning"
1361 "onap.policies.monitoring.cdap.tca.hi.lo.app": {
1362 "derived_from": "onap.policies.Monitoring",
1363 "version": "5.0.0",
1364 "properties": {
1365 "tca_policy": {
1366 "type": "map",
1367 "description": "TCA Policy JSON",
1368 "entry_schema": {
1369 "type": "onap.datatypes.monitoring.tca_policy"
1376 "data_types": [
1378 "onap.datatypes.monitoring.metricsPerEventName": {
1379 "derived_from": "tosca.datatypes.Root",
1380 "properties": {
1381 "controlLoopSchemaType": {
1382 "type": "string",
1383 "required": true,
1384 "description": "Specifies Control Loop Schema Type for the event Name e.g. VNF, VM",
1385 "constraints": [
1387 "valid_values": [
1388 "VM",
1389 "VNF"
1394 "eventName": {
1395 "type": "string",
1396 "required": true,
1397 "description": "Event name to which thresholds need to be applied"
1399 "policyName": {
1400 "type": "string",
1401 "required": true,
1402 "description": "TCA Policy Scope Name"
1404 "policyScope": {
1405 "type": "string",
1406 "required": true,
1407 "description": "TCA Policy Scope"
1409 "policyVersion": {
1410 "type": "string",
1411 "required": true,
1412 "description": "TCA Policy Scope Version"
1414 "thresholds": {
1415 "type": "list",
1416 "required": true,
1417 "description": "Thresholds associated with eventName",
1418 "entry_schema": {
1419 "type": "onap.datatypes.monitoring.thresholds"
1426 "onap.datatypes.monitoring.tca_policy": {
1427 "derived_from": "tosca.datatypes.Root",
1428 "properties": {
1429 "domain": {
1430 "type": "string",
1431 "required": true,
1432 "description": "Domain name to which TCA needs to be applied",
1433 "default": "measurementsForVfScaling",
1434 "constraints": [
1436 "equal": "measurementsForVfScaling"
1440 "metricsPerEventName": {
1441 "type": "list",
1442 "required": true,
1443 "description": "Contains eventName and threshold details that need to be applied to given eventName",
1444 "entry_schema": {
1445 "type": "onap.datatypes.monitoring.metricsPerEventName"
1452 "onap.datatypes.monitoring.thresholds": {
1453 "derived_from": "tosca.datatypes.Root",
1454 "properties": {
1455 "closedLoopControlName": {
1456 "type": "string",
1457 "required": true,
1458 "description": "Closed Loop Control Name associated with the threshold"
1460 "closedLoopEventStatus": {
1461 "type": "string",
1462 "required": true,
1463 "description": "Closed Loop Event Status of the threshold",
1464 "constraints": [
1466 "valid_values": [
1467 "ONSET",
1468 "ABATED"
1473 "direction": {
1474 "type": "string",
1475 "required": true,
1476 "description": "Direction of the threshold",
1477 "constraints": [
1479 "valid_values": [
1480 "LESS",
1481 "LESS_OR_EQUAL",
1482 "GREATER",
1483 "GREATER_OR_EQUAL",
1484 "EQUAL"
1489 "fieldPath": {
1490 "type": "string",
1491 "required": true,
1492 "description": "Json field Path as per CEF message which needs to be analyzed for TCA",
1493 "constraints": [
1495 "valid_values": [
1496 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsDelta",
1497 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedOctetsDelta",
1498 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedUnicastPacketsDelta",
1499 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedMulticastPacketsDelta",
1500 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsDelta",
1501 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedDiscardedPacketsDelta",
1502 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedErrorPacketsDelta",
1503 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsAccumulated",
1504 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedOctetsAccumulated",
1505 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedUnicastPacketsAccumulated",
1506 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedMulticastPacketsAccumulated",
1507 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsAccumulated",
1508 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedDiscardedPacketsAccumulated",
1509 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedErrorPacketsAccumulated",
1510 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedTotalPacketsDelta",
1511 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedOctetsDelta",
1512 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedUnicastPacketsDelta",
1513 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedMulticastPacketsDelta",
1514 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedBroadcastPacketsDelta",
1515 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedDiscardedPacketsDelta",
1516 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedErrorPacketsDelta",
1517 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedTotalPacketsAccumulated",
1518 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedOctetsAccumulated",
1519 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedUnicastPacketsAccumulated",
1520 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedMulticastPacketsAccumulated",
1521 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedBroadcastPacketsAccumulated",
1522 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedDiscardedPacketsAccumulated",
1523 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedErrorPacketsAccumulated",
1524 "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuIdle",
1525 "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageInterrupt",
1526 "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageNice",
1527 "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSoftIrq",
1528 "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSteal",
1529 "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSystem",
1530 "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuWait",
1531 "$.event.measurementsForVfScalingFields.cpuUsageArray[*].percentUsage",
1532 "$.event.measurementsForVfScalingFields.meanRequestLatency",
1533 "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryBuffered",
1534 "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryCached",
1535 "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryConfigured",
1536 "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryFree",
1537 "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryUsed",
1538 "$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value"
1543 "severity": {
1544 "type": "string",
1545 "required": true,
1546 "description": "Threshold Event Severity",
1547 "constraints": [
1549 "valid_values": [
1550 "CRITICAL",
1551 "MAJOR",
1552 "MINOR",
1553 "WARNING",
1554 "NORMAL"
1559 "thresholdValue": {
1560 "type": "integer",
1561 "required": true,
1562 "description": "Threshold value for the field Path inside CEF message"
1564 "version": {
1565 "type": "string",
1566 "required": true,
1567 "description": "Version number associated with the threshold"
1574 <stringProp name="Argument.metadata">=</stringProp>
1578 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
1579 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
1580 <stringProp name="HTTPSampler.protocol">https</stringProp>
1581 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
1582 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes</stringProp>
1583 <stringProp name="HTTPSampler.method">POST</stringProp>
1584 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
1585 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
1586 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
1587 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
1588 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
1589 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
1590 <stringProp name="HTTPSampler.response_timeout"></stringProp>
1593 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
1594 <collectionProp name="Asserion.test_strings">
1595 <stringProp name="49586">200</stringProp>
1597 <stringProp name="Assertion.custom_message"></stringProp>
1598 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
1599 <boolProp name="Assertion.assume_success">false</boolProp>
1600 <intProp name="Assertion.test_type">1</intProp>
1601 </ResponseAssertion>
1603 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
1604 <stringProp name="scriptLanguage">groovy</stringProp>
1605 <stringProp name="parameters"></stringProp>
1606 <stringProp name="filename"></stringProp>
1607 <stringProp name="cacheKey">true</stringProp>
1608 <stringProp name="script">import groovy.json.JsonSlurper;
1611 if (prev.getResponseCode() == '200') {
1612 def jsonSlurper = new JsonSlurper();
1613 res = jsonSlurper.parseText(prev.getResponseDataAsString());
1615 assert res instanceof Map;
1616 assert res.policy_types instanceof List;
1617 assert res.policy_types.size == 2;
1618 assert res.policy_types[0] instanceof Map;
1619 assert res.policy_types[1] instanceof Map;
1624 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create TCA Policy Type V6" enabled="true">
1625 <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
1626 <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
1627 <collectionProp name="Arguments.arguments">
1628 <elementProp name="" elementType="HTTPArgument">
1629 <boolProp name="HTTPArgument.always_encode">false</boolProp>
1630 <stringProp name="Argument.value">{
1631 "tosca_definitions_version": "tosca_simple_yaml_1_0_0",
1632 "policy_types": [
1634 "onap.policies.Monitoring": {
1635 "derived_from": "tosca.policies.Root",
1636 "version": "1.0.0",
1637 "description": "a base policy type for all policies that governs monitoring provisioning"
1641 "onap.policies.monitoring.cdap.tca.hi.lo.app": {
1642 "derived_from": "onap.policies.Monitoring",
1643 "version": "6.0.0",
1644 "properties": {
1645 "tca_policy": {
1646 "type": "map",
1647 "description": "TCA Policy JSON",
1648 "entry_schema": {
1649 "type": "onap.datatypes.monitoring.tca_policy"
1656 "data_types": [
1658 "onap.datatypes.monitoring.metricsPerEventName": {
1659 "derived_from": "tosca.datatypes.Root",
1660 "properties": {
1661 "controlLoopSchemaType": {
1662 "type": "string",
1663 "required": true,
1664 "description": "Specifies Control Loop Schema Type for the event Name e.g. VNF, VM",
1665 "constraints": [
1667 "valid_values": [
1668 "VM",
1669 "VNF"
1674 "eventName": {
1675 "type": "string",
1676 "required": true,
1677 "description": "Event name to which thresholds need to be applied"
1679 "policyName": {
1680 "type": "string",
1681 "required": true,
1682 "description": "TCA Policy Scope Name"
1684 "policyScope": {
1685 "type": "string",
1686 "required": true,
1687 "description": "TCA Policy Scope"
1689 "policyVersion": {
1690 "type": "string",
1691 "required": true,
1692 "description": "TCA Policy Scope Version"
1694 "thresholds": {
1695 "type": "list",
1696 "required": true,
1697 "description": "Thresholds associated with eventName",
1698 "entry_schema": {
1699 "type": "onap.datatypes.monitoring.thresholds"
1706 "onap.datatypes.monitoring.tca_policy": {
1707 "derived_from": "tosca.datatypes.Root",
1708 "properties": {
1709 "domain": {
1710 "type": "string",
1711 "required": true,
1712 "description": "Domain name to which TCA needs to be applied",
1713 "default": "measurementsForVfScaling",
1714 "constraints": [
1716 "equal": "measurementsForVfScaling"
1720 "metricsPerEventName": {
1721 "type": "list",
1722 "required": true,
1723 "description": "Contains eventName and threshold details that need to be applied to given eventName",
1724 "entry_schema": {
1725 "type": "onap.datatypes.monitoring.metricsPerEventName"
1732 "onap.datatypes.monitoring.thresholds": {
1733 "derived_from": "tosca.datatypes.Root",
1734 "properties": {
1735 "closedLoopControlName": {
1736 "type": "string",
1737 "required": true,
1738 "description": "Closed Loop Control Name associated with the threshold"
1740 "closedLoopEventStatus": {
1741 "type": "string",
1742 "required": true,
1743 "description": "Closed Loop Event Status of the threshold",
1744 "constraints": [
1746 "valid_values": [
1747 "ONSET",
1748 "ABATED"
1753 "direction": {
1754 "type": "string",
1755 "required": true,
1756 "description": "Direction of the threshold",
1757 "constraints": [
1759 "valid_values": [
1760 "LESS",
1761 "LESS_OR_EQUAL",
1762 "GREATER",
1763 "GREATER_OR_EQUAL",
1764 "EQUAL"
1769 "fieldPath": {
1770 "type": "string",
1771 "required": true,
1772 "description": "Json field Path as per CEF message which needs to be analyzed for TCA",
1773 "constraints": [
1775 "valid_values": [
1776 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsDelta",
1777 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedOctetsDelta",
1778 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedUnicastPacketsDelta",
1779 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedMulticastPacketsDelta",
1780 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsDelta",
1781 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedDiscardedPacketsDelta",
1782 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedErrorPacketsDelta",
1783 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsAccumulated",
1784 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedOctetsAccumulated",
1785 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedUnicastPacketsAccumulated",
1786 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedMulticastPacketsAccumulated",
1787 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsAccumulated",
1788 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedDiscardedPacketsAccumulated",
1789 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedErrorPacketsAccumulated",
1790 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedTotalPacketsDelta",
1791 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedOctetsDelta",
1792 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedUnicastPacketsDelta",
1793 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedMulticastPacketsDelta",
1794 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedBroadcastPacketsDelta",
1795 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedDiscardedPacketsDelta",
1796 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedErrorPacketsDelta",
1797 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedTotalPacketsAccumulated",
1798 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedOctetsAccumulated",
1799 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedUnicastPacketsAccumulated",
1800 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedMulticastPacketsAccumulated",
1801 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedBroadcastPacketsAccumulated",
1802 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedDiscardedPacketsAccumulated",
1803 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedErrorPacketsAccumulated",
1804 "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuIdle",
1805 "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageInterrupt",
1806 "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageNice",
1807 "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSoftIrq",
1808 "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSteal",
1809 "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSystem",
1810 "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuWait",
1811 "$.event.measurementsForVfScalingFields.cpuUsageArray[*].percentUsage",
1812 "$.event.measurementsForVfScalingFields.meanRequestLatency",
1813 "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryBuffered",
1814 "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryCached",
1815 "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryConfigured",
1816 "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryFree",
1817 "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryUsed",
1818 "$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value"
1823 "severity": {
1824 "type": "string",
1825 "required": true,
1826 "description": "Threshold Event Severity",
1827 "constraints": [
1829 "valid_values": [
1830 "CRITICAL",
1831 "MAJOR",
1832 "MINOR",
1833 "WARNING",
1834 "NORMAL"
1839 "thresholdValue": {
1840 "type": "integer",
1841 "required": true,
1842 "description": "Threshold value for the field Path inside CEF message"
1844 "version": {
1845 "type": "string",
1846 "required": true,
1847 "description": "Version number associated with the threshold"
1854 <stringProp name="Argument.metadata">=</stringProp>
1858 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
1859 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
1860 <stringProp name="HTTPSampler.protocol">https</stringProp>
1861 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
1862 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes</stringProp>
1863 <stringProp name="HTTPSampler.method">POST</stringProp>
1864 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
1865 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
1866 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
1867 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
1868 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
1869 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
1870 <stringProp name="HTTPSampler.response_timeout"></stringProp>
1873 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
1874 <collectionProp name="Asserion.test_strings">
1875 <stringProp name="49586">200</stringProp>
1877 <stringProp name="Assertion.custom_message"></stringProp>
1878 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
1879 <boolProp name="Assertion.assume_success">false</boolProp>
1880 <intProp name="Assertion.test_type">1</intProp>
1881 </ResponseAssertion>
1883 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
1884 <stringProp name="scriptLanguage">groovy</stringProp>
1885 <stringProp name="parameters"></stringProp>
1886 <stringProp name="filename"></stringProp>
1887 <stringProp name="cacheKey">true</stringProp>
1888 <stringProp name="script">import groovy.json.JsonSlurper;
1891 if (prev.getResponseCode() == '200') {
1892 def jsonSlurper = new JsonSlurper();
1893 res = jsonSlurper.parseText(prev.getResponseDataAsString());
1895 assert res instanceof Map;
1896 assert res.policy_types instanceof List;
1897 assert res.policy_types.size == 2;
1898 assert res.policy_types[0] instanceof Map;
1899 assert res.policy_types[1] instanceof Map;
1904 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create TCA Policy Type V7" enabled="true">
1905 <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
1906 <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
1907 <collectionProp name="Arguments.arguments">
1908 <elementProp name="" elementType="HTTPArgument">
1909 <boolProp name="HTTPArgument.always_encode">false</boolProp>
1910 <stringProp name="Argument.value">{
1911 "tosca_definitions_version": "tosca_simple_yaml_1_0_0",
1912 "policy_types": [
1914 "onap.policies.Monitoring": {
1915 "derived_from": "tosca.policies.Root",
1916 "version": "1.0.0",
1917 "description": "a base policy type for all policies that governs monitoring provisioning"
1921 "onap.policies.monitoring.cdap.tca.hi.lo.app": {
1922 "derived_from": "onap.policies.Monitoring",
1923 "version": "7.0.0",
1924 "properties": {
1925 "tca_policy": {
1926 "type": "map",
1927 "description": "TCA Policy JSON",
1928 "entry_schema": {
1929 "type": "onap.datatypes.monitoring.tca_policy"
1936 "data_types": [
1938 "onap.datatypes.monitoring.metricsPerEventName": {
1939 "derived_from": "tosca.datatypes.Root",
1940 "properties": {
1941 "controlLoopSchemaType": {
1942 "type": "string",
1943 "required": true,
1944 "description": "Specifies Control Loop Schema Type for the event Name e.g. VNF, VM",
1945 "constraints": [
1947 "valid_values": [
1948 "VM",
1949 "VNF"
1954 "eventName": {
1955 "type": "string",
1956 "required": true,
1957 "description": "Event name to which thresholds need to be applied"
1959 "policyName": {
1960 "type": "string",
1961 "required": true,
1962 "description": "TCA Policy Scope Name"
1964 "policyScope": {
1965 "type": "string",
1966 "required": true,
1967 "description": "TCA Policy Scope"
1969 "policyVersion": {
1970 "type": "string",
1971 "required": true,
1972 "description": "TCA Policy Scope Version"
1974 "thresholds": {
1975 "type": "list",
1976 "required": true,
1977 "description": "Thresholds associated with eventName",
1978 "entry_schema": {
1979 "type": "onap.datatypes.monitoring.thresholds"
1986 "onap.datatypes.monitoring.tca_policy": {
1987 "derived_from": "tosca.datatypes.Root",
1988 "properties": {
1989 "domain": {
1990 "type": "string",
1991 "required": true,
1992 "description": "Domain name to which TCA needs to be applied",
1993 "default": "measurementsForVfScaling",
1994 "constraints": [
1996 "equal": "measurementsForVfScaling"
2000 "metricsPerEventName": {
2001 "type": "list",
2002 "required": true,
2003 "description": "Contains eventName and threshold details that need to be applied to given eventName",
2004 "entry_schema": {
2005 "type": "onap.datatypes.monitoring.metricsPerEventName"
2012 "onap.datatypes.monitoring.thresholds": {
2013 "derived_from": "tosca.datatypes.Root",
2014 "properties": {
2015 "closedLoopControlName": {
2016 "type": "string",
2017 "required": true,
2018 "description": "Closed Loop Control Name associated with the threshold"
2020 "closedLoopEventStatus": {
2021 "type": "string",
2022 "required": true,
2023 "description": "Closed Loop Event Status of the threshold",
2024 "constraints": [
2026 "valid_values": [
2027 "ONSET",
2028 "ABATED"
2033 "direction": {
2034 "type": "string",
2035 "required": true,
2036 "description": "Direction of the threshold",
2037 "constraints": [
2039 "valid_values": [
2040 "LESS",
2041 "LESS_OR_EQUAL",
2042 "GREATER",
2043 "GREATER_OR_EQUAL",
2044 "EQUAL"
2049 "fieldPath": {
2050 "type": "string",
2051 "required": true,
2052 "description": "Json field Path as per CEF message which needs to be analyzed for TCA",
2053 "constraints": [
2055 "valid_values": [
2056 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsDelta",
2057 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedOctetsDelta",
2058 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedUnicastPacketsDelta",
2059 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedMulticastPacketsDelta",
2060 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsDelta",
2061 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedDiscardedPacketsDelta",
2062 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedErrorPacketsDelta",
2063 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsAccumulated",
2064 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedOctetsAccumulated",
2065 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedUnicastPacketsAccumulated",
2066 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedMulticastPacketsAccumulated",
2067 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsAccumulated",
2068 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedDiscardedPacketsAccumulated",
2069 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedErrorPacketsAccumulated",
2070 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedTotalPacketsDelta",
2071 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedOctetsDelta",
2072 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedUnicastPacketsDelta",
2073 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedMulticastPacketsDelta",
2074 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedBroadcastPacketsDelta",
2075 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedDiscardedPacketsDelta",
2076 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedErrorPacketsDelta",
2077 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedTotalPacketsAccumulated",
2078 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedOctetsAccumulated",
2079 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedUnicastPacketsAccumulated",
2080 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedMulticastPacketsAccumulated",
2081 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedBroadcastPacketsAccumulated",
2082 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedDiscardedPacketsAccumulated",
2083 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedErrorPacketsAccumulated",
2084 "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuIdle",
2085 "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageInterrupt",
2086 "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageNice",
2087 "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSoftIrq",
2088 "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSteal",
2089 "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSystem",
2090 "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuWait",
2091 "$.event.measurementsForVfScalingFields.cpuUsageArray[*].percentUsage",
2092 "$.event.measurementsForVfScalingFields.meanRequestLatency",
2093 "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryBuffered",
2094 "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryCached",
2095 "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryConfigured",
2096 "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryFree",
2097 "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryUsed",
2098 "$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value"
2103 "severity": {
2104 "type": "string",
2105 "required": true,
2106 "description": "Threshold Event Severity",
2107 "constraints": [
2109 "valid_values": [
2110 "CRITICAL",
2111 "MAJOR",
2112 "MINOR",
2113 "WARNING",
2114 "NORMAL"
2119 "thresholdValue": {
2120 "type": "integer",
2121 "required": true,
2122 "description": "Threshold value for the field Path inside CEF message"
2124 "version": {
2125 "type": "string",
2126 "required": true,
2127 "description": "Version number associated with the threshold"
2134 <stringProp name="Argument.metadata">=</stringProp>
2138 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
2139 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
2140 <stringProp name="HTTPSampler.protocol">https</stringProp>
2141 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
2142 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes</stringProp>
2143 <stringProp name="HTTPSampler.method">POST</stringProp>
2144 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
2145 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
2146 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
2147 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
2148 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
2149 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
2150 <stringProp name="HTTPSampler.response_timeout"></stringProp>
2153 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
2154 <collectionProp name="Asserion.test_strings">
2155 <stringProp name="49586">200</stringProp>
2157 <stringProp name="Assertion.custom_message"></stringProp>
2158 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
2159 <boolProp name="Assertion.assume_success">false</boolProp>
2160 <intProp name="Assertion.test_type">1</intProp>
2161 </ResponseAssertion>
2163 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
2164 <stringProp name="scriptLanguage">groovy</stringProp>
2165 <stringProp name="parameters"></stringProp>
2166 <stringProp name="filename"></stringProp>
2167 <stringProp name="cacheKey">true</stringProp>
2168 <stringProp name="script">import groovy.json.JsonSlurper;
2171 if (prev.getResponseCode() == '200') {
2172 def jsonSlurper = new JsonSlurper();
2173 res = jsonSlurper.parseText(prev.getResponseDataAsString());
2175 assert res instanceof Map;
2176 assert res.policy_types instanceof List;
2177 assert res.policy_types.size == 2;
2178 assert res.policy_types[0] instanceof Map;
2179 assert res.policy_types[1] instanceof Map;
2184 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create TCA Policy Type V8" enabled="true">
2185 <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
2186 <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
2187 <collectionProp name="Arguments.arguments">
2188 <elementProp name="" elementType="HTTPArgument">
2189 <boolProp name="HTTPArgument.always_encode">false</boolProp>
2190 <stringProp name="Argument.value">{
2191 "tosca_definitions_version": "tosca_simple_yaml_1_0_0",
2192 "policy_types": [
2194 "onap.policies.Monitoring": {
2195 "derived_from": "tosca.policies.Root",
2196 "version": "1.0.0",
2197 "description": "a base policy type for all policies that governs monitoring provisioning"
2201 "onap.policies.monitoring.cdap.tca.hi.lo.app": {
2202 "derived_from": "onap.policies.Monitoring",
2203 "version": "8.0.0",
2204 "properties": {
2205 "tca_policy": {
2206 "type": "map",
2207 "description": "TCA Policy JSON",
2208 "entry_schema": {
2209 "type": "onap.datatypes.monitoring.tca_policy"
2216 "data_types": [
2218 "onap.datatypes.monitoring.metricsPerEventName": {
2219 "derived_from": "tosca.datatypes.Root",
2220 "properties": {
2221 "controlLoopSchemaType": {
2222 "type": "string",
2223 "required": true,
2224 "description": "Specifies Control Loop Schema Type for the event Name e.g. VNF, VM",
2225 "constraints": [
2227 "valid_values": [
2228 "VM",
2229 "VNF"
2234 "eventName": {
2235 "type": "string",
2236 "required": true,
2237 "description": "Event name to which thresholds need to be applied"
2239 "policyName": {
2240 "type": "string",
2241 "required": true,
2242 "description": "TCA Policy Scope Name"
2244 "policyScope": {
2245 "type": "string",
2246 "required": true,
2247 "description": "TCA Policy Scope"
2249 "policyVersion": {
2250 "type": "string",
2251 "required": true,
2252 "description": "TCA Policy Scope Version"
2254 "thresholds": {
2255 "type": "list",
2256 "required": true,
2257 "description": "Thresholds associated with eventName",
2258 "entry_schema": {
2259 "type": "onap.datatypes.monitoring.thresholds"
2266 "onap.datatypes.monitoring.tca_policy": {
2267 "derived_from": "tosca.datatypes.Root",
2268 "properties": {
2269 "domain": {
2270 "type": "string",
2271 "required": true,
2272 "description": "Domain name to which TCA needs to be applied",
2273 "default": "measurementsForVfScaling",
2274 "constraints": [
2276 "equal": "measurementsForVfScaling"
2280 "metricsPerEventName": {
2281 "type": "list",
2282 "required": true,
2283 "description": "Contains eventName and threshold details that need to be applied to given eventName",
2284 "entry_schema": {
2285 "type": "onap.datatypes.monitoring.metricsPerEventName"
2292 "onap.datatypes.monitoring.thresholds": {
2293 "derived_from": "tosca.datatypes.Root",
2294 "properties": {
2295 "closedLoopControlName": {
2296 "type": "string",
2297 "required": true,
2298 "description": "Closed Loop Control Name associated with the threshold"
2300 "closedLoopEventStatus": {
2301 "type": "string",
2302 "required": true,
2303 "description": "Closed Loop Event Status of the threshold",
2304 "constraints": [
2306 "valid_values": [
2307 "ONSET",
2308 "ABATED"
2313 "direction": {
2314 "type": "string",
2315 "required": true,
2316 "description": "Direction of the threshold",
2317 "constraints": [
2319 "valid_values": [
2320 "LESS",
2321 "LESS_OR_EQUAL",
2322 "GREATER",
2323 "GREATER_OR_EQUAL",
2324 "EQUAL"
2329 "fieldPath": {
2330 "type": "string",
2331 "required": true,
2332 "description": "Json field Path as per CEF message which needs to be analyzed for TCA",
2333 "constraints": [
2335 "valid_values": [
2336 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsDelta",
2337 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedOctetsDelta",
2338 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedUnicastPacketsDelta",
2339 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedMulticastPacketsDelta",
2340 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsDelta",
2341 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedDiscardedPacketsDelta",
2342 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedErrorPacketsDelta",
2343 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsAccumulated",
2344 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedOctetsAccumulated",
2345 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedUnicastPacketsAccumulated",
2346 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedMulticastPacketsAccumulated",
2347 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsAccumulated",
2348 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedDiscardedPacketsAccumulated",
2349 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedErrorPacketsAccumulated",
2350 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedTotalPacketsDelta",
2351 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedOctetsDelta",
2352 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedUnicastPacketsDelta",
2353 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedMulticastPacketsDelta",
2354 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedBroadcastPacketsDelta",
2355 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedDiscardedPacketsDelta",
2356 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedErrorPacketsDelta",
2357 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedTotalPacketsAccumulated",
2358 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedOctetsAccumulated",
2359 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedUnicastPacketsAccumulated",
2360 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedMulticastPacketsAccumulated",
2361 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedBroadcastPacketsAccumulated",
2362 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedDiscardedPacketsAccumulated",
2363 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedErrorPacketsAccumulated",
2364 "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuIdle",
2365 "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageInterrupt",
2366 "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageNice",
2367 "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSoftIrq",
2368 "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSteal",
2369 "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSystem",
2370 "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuWait",
2371 "$.event.measurementsForVfScalingFields.cpuUsageArray[*].percentUsage",
2372 "$.event.measurementsForVfScalingFields.meanRequestLatency",
2373 "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryBuffered",
2374 "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryCached",
2375 "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryConfigured",
2376 "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryFree",
2377 "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryUsed",
2378 "$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value"
2383 "severity": {
2384 "type": "string",
2385 "required": true,
2386 "description": "Threshold Event Severity",
2387 "constraints": [
2389 "valid_values": [
2390 "CRITICAL",
2391 "MAJOR",
2392 "MINOR",
2393 "WARNING",
2394 "NORMAL"
2399 "thresholdValue": {
2400 "type": "integer",
2401 "required": true,
2402 "description": "Threshold value for the field Path inside CEF message"
2404 "version": {
2405 "type": "string",
2406 "required": true,
2407 "description": "Version number associated with the threshold"
2414 <stringProp name="Argument.metadata">=</stringProp>
2418 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
2419 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
2420 <stringProp name="HTTPSampler.protocol">https</stringProp>
2421 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
2422 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes</stringProp>
2423 <stringProp name="HTTPSampler.method">POST</stringProp>
2424 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
2425 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
2426 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
2427 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
2428 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
2429 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
2430 <stringProp name="HTTPSampler.response_timeout"></stringProp>
2433 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
2434 <collectionProp name="Asserion.test_strings">
2435 <stringProp name="49586">200</stringProp>
2437 <stringProp name="Assertion.custom_message"></stringProp>
2438 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
2439 <boolProp name="Assertion.assume_success">false</boolProp>
2440 <intProp name="Assertion.test_type">1</intProp>
2441 </ResponseAssertion>
2443 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
2444 <stringProp name="scriptLanguage">groovy</stringProp>
2445 <stringProp name="parameters"></stringProp>
2446 <stringProp name="filename"></stringProp>
2447 <stringProp name="cacheKey">true</stringProp>
2448 <stringProp name="script">import groovy.json.JsonSlurper;
2451 if (prev.getResponseCode() == '200') {
2452 def jsonSlurper = new JsonSlurper();
2453 res = jsonSlurper.parseText(prev.getResponseDataAsString());
2455 assert res instanceof Map;
2456 assert res.policy_types instanceof List;
2457 assert res.policy_types.size == 2;
2458 assert res.policy_types[0] instanceof Map;
2459 assert res.policy_types[1] instanceof Map;
2464 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create TCA Policy Type V9" enabled="true">
2465 <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
2466 <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
2467 <collectionProp name="Arguments.arguments">
2468 <elementProp name="" elementType="HTTPArgument">
2469 <boolProp name="HTTPArgument.always_encode">false</boolProp>
2470 <stringProp name="Argument.value">{
2471 "tosca_definitions_version": "tosca_simple_yaml_1_0_0",
2472 "policy_types": [
2474 "onap.policies.Monitoring": {
2475 "derived_from": "tosca.policies.Root",
2476 "version": "1.0.0",
2477 "description": "a base policy type for all policies that governs monitoring provisioning"
2481 "onap.policies.monitoring.cdap.tca.hi.lo.app": {
2482 "derived_from": "onap.policies.Monitoring",
2483 "version": "9.0.0",
2484 "properties": {
2485 "tca_policy": {
2486 "type": "map",
2487 "description": "TCA Policy JSON",
2488 "entry_schema": {
2489 "type": "onap.datatypes.monitoring.tca_policy"
2496 "data_types": [
2498 "onap.datatypes.monitoring.metricsPerEventName": {
2499 "derived_from": "tosca.datatypes.Root",
2500 "properties": {
2501 "controlLoopSchemaType": {
2502 "type": "string",
2503 "required": true,
2504 "description": "Specifies Control Loop Schema Type for the event Name e.g. VNF, VM",
2505 "constraints": [
2507 "valid_values": [
2508 "VM",
2509 "VNF"
2514 "eventName": {
2515 "type": "string",
2516 "required": true,
2517 "description": "Event name to which thresholds need to be applied"
2519 "policyName": {
2520 "type": "string",
2521 "required": true,
2522 "description": "TCA Policy Scope Name"
2524 "policyScope": {
2525 "type": "string",
2526 "required": true,
2527 "description": "TCA Policy Scope"
2529 "policyVersion": {
2530 "type": "string",
2531 "required": true,
2532 "description": "TCA Policy Scope Version"
2534 "thresholds": {
2535 "type": "list",
2536 "required": true,
2537 "description": "Thresholds associated with eventName",
2538 "entry_schema": {
2539 "type": "onap.datatypes.monitoring.thresholds"
2546 "onap.datatypes.monitoring.tca_policy": {
2547 "derived_from": "tosca.datatypes.Root",
2548 "properties": {
2549 "domain": {
2550 "type": "string",
2551 "required": true,
2552 "description": "Domain name to which TCA needs to be applied",
2553 "default": "measurementsForVfScaling",
2554 "constraints": [
2556 "equal": "measurementsForVfScaling"
2560 "metricsPerEventName": {
2561 "type": "list",
2562 "required": true,
2563 "description": "Contains eventName and threshold details that need to be applied to given eventName",
2564 "entry_schema": {
2565 "type": "onap.datatypes.monitoring.metricsPerEventName"
2572 "onap.datatypes.monitoring.thresholds": {
2573 "derived_from": "tosca.datatypes.Root",
2574 "properties": {
2575 "closedLoopControlName": {
2576 "type": "string",
2577 "required": true,
2578 "description": "Closed Loop Control Name associated with the threshold"
2580 "closedLoopEventStatus": {
2581 "type": "string",
2582 "required": true,
2583 "description": "Closed Loop Event Status of the threshold",
2584 "constraints": [
2586 "valid_values": [
2587 "ONSET",
2588 "ABATED"
2593 "direction": {
2594 "type": "string",
2595 "required": true,
2596 "description": "Direction of the threshold",
2597 "constraints": [
2599 "valid_values": [
2600 "LESS",
2601 "LESS_OR_EQUAL",
2602 "GREATER",
2603 "GREATER_OR_EQUAL",
2604 "EQUAL"
2609 "fieldPath": {
2610 "type": "string",
2611 "required": true,
2612 "description": "Json field Path as per CEF message which needs to be analyzed for TCA",
2613 "constraints": [
2615 "valid_values": [
2616 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsDelta",
2617 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedOctetsDelta",
2618 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedUnicastPacketsDelta",
2619 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedMulticastPacketsDelta",
2620 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsDelta",
2621 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedDiscardedPacketsDelta",
2622 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedErrorPacketsDelta",
2623 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsAccumulated",
2624 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedOctetsAccumulated",
2625 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedUnicastPacketsAccumulated",
2626 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedMulticastPacketsAccumulated",
2627 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsAccumulated",
2628 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedDiscardedPacketsAccumulated",
2629 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedErrorPacketsAccumulated",
2630 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedTotalPacketsDelta",
2631 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedOctetsDelta",
2632 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedUnicastPacketsDelta",
2633 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedMulticastPacketsDelta",
2634 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedBroadcastPacketsDelta",
2635 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedDiscardedPacketsDelta",
2636 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedErrorPacketsDelta",
2637 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedTotalPacketsAccumulated",
2638 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedOctetsAccumulated",
2639 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedUnicastPacketsAccumulated",
2640 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedMulticastPacketsAccumulated",
2641 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedBroadcastPacketsAccumulated",
2642 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedDiscardedPacketsAccumulated",
2643 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedErrorPacketsAccumulated",
2644 "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuIdle",
2645 "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageInterrupt",
2646 "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageNice",
2647 "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSoftIrq",
2648 "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSteal",
2649 "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSystem",
2650 "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuWait",
2651 "$.event.measurementsForVfScalingFields.cpuUsageArray[*].percentUsage",
2652 "$.event.measurementsForVfScalingFields.meanRequestLatency",
2653 "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryBuffered",
2654 "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryCached",
2655 "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryConfigured",
2656 "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryFree",
2657 "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryUsed",
2658 "$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value"
2663 "severity": {
2664 "type": "string",
2665 "required": true,
2666 "description": "Threshold Event Severity",
2667 "constraints": [
2669 "valid_values": [
2670 "CRITICAL",
2671 "MAJOR",
2672 "MINOR",
2673 "WARNING",
2674 "NORMAL"
2679 "thresholdValue": {
2680 "type": "integer",
2681 "required": true,
2682 "description": "Threshold value for the field Path inside CEF message"
2684 "version": {
2685 "type": "string",
2686 "required": true,
2687 "description": "Version number associated with the threshold"
2694 <stringProp name="Argument.metadata">=</stringProp>
2698 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
2699 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
2700 <stringProp name="HTTPSampler.protocol">https</stringProp>
2701 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
2702 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes</stringProp>
2703 <stringProp name="HTTPSampler.method">POST</stringProp>
2704 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
2705 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
2706 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
2707 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
2708 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
2709 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
2710 <stringProp name="HTTPSampler.response_timeout"></stringProp>
2713 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
2714 <collectionProp name="Asserion.test_strings">
2715 <stringProp name="49586">200</stringProp>
2717 <stringProp name="Assertion.custom_message"></stringProp>
2718 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
2719 <boolProp name="Assertion.assume_success">false</boolProp>
2720 <intProp name="Assertion.test_type">1</intProp>
2721 </ResponseAssertion>
2723 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
2724 <stringProp name="scriptLanguage">groovy</stringProp>
2725 <stringProp name="parameters"></stringProp>
2726 <stringProp name="filename"></stringProp>
2727 <stringProp name="cacheKey">true</stringProp>
2728 <stringProp name="script">import groovy.json.JsonSlurper;
2731 if (prev.getResponseCode() == '200') {
2732 def jsonSlurper = new JsonSlurper();
2733 res = jsonSlurper.parseText(prev.getResponseDataAsString());
2735 assert res instanceof Map;
2736 assert res.policy_types instanceof List;
2737 assert res.policy_types.size == 2;
2738 assert res.policy_types[0] instanceof Map;
2739 assert res.policy_types[1] instanceof Map;
2744 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create TCA Policy Type V10" enabled="true">
2745 <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
2746 <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
2747 <collectionProp name="Arguments.arguments">
2748 <elementProp name="" elementType="HTTPArgument">
2749 <boolProp name="HTTPArgument.always_encode">false</boolProp>
2750 <stringProp name="Argument.value">{
2751 "tosca_definitions_version": "tosca_simple_yaml_1_0_0",
2752 "policy_types": [
2754 "onap.policies.Monitoring": {
2755 "derived_from": "tosca.policies.Root",
2756 "version": "1.0.0",
2757 "description": "a base policy type for all policies that governs monitoring provisioning"
2761 "onap.policies.monitoring.cdap.tca.hi.lo.app": {
2762 "derived_from": "onap.policies.Monitoring",
2763 "version": "10.0.0",
2764 "properties": {
2765 "tca_policy": {
2766 "type": "map",
2767 "description": "TCA Policy JSON",
2768 "entry_schema": {
2769 "type": "onap.datatypes.monitoring.tca_policy"
2776 "data_types": [
2778 "onap.datatypes.monitoring.metricsPerEventName": {
2779 "derived_from": "tosca.datatypes.Root",
2780 "properties": {
2781 "controlLoopSchemaType": {
2782 "type": "string",
2783 "required": true,
2784 "description": "Specifies Control Loop Schema Type for the event Name e.g. VNF, VM",
2785 "constraints": [
2787 "valid_values": [
2788 "VM",
2789 "VNF"
2794 "eventName": {
2795 "type": "string",
2796 "required": true,
2797 "description": "Event name to which thresholds need to be applied"
2799 "policyName": {
2800 "type": "string",
2801 "required": true,
2802 "description": "TCA Policy Scope Name"
2804 "policyScope": {
2805 "type": "string",
2806 "required": true,
2807 "description": "TCA Policy Scope"
2809 "policyVersion": {
2810 "type": "string",
2811 "required": true,
2812 "description": "TCA Policy Scope Version"
2814 "thresholds": {
2815 "type": "list",
2816 "required": true,
2817 "description": "Thresholds associated with eventName",
2818 "entry_schema": {
2819 "type": "onap.datatypes.monitoring.thresholds"
2826 "onap.datatypes.monitoring.tca_policy": {
2827 "derived_from": "tosca.datatypes.Root",
2828 "properties": {
2829 "domain": {
2830 "type": "string",
2831 "required": true,
2832 "description": "Domain name to which TCA needs to be applied",
2833 "default": "measurementsForVfScaling",
2834 "constraints": [
2836 "equal": "measurementsForVfScaling"
2840 "metricsPerEventName": {
2841 "type": "list",
2842 "required": true,
2843 "description": "Contains eventName and threshold details that need to be applied to given eventName",
2844 "entry_schema": {
2845 "type": "onap.datatypes.monitoring.metricsPerEventName"
2852 "onap.datatypes.monitoring.thresholds": {
2853 "derived_from": "tosca.datatypes.Root",
2854 "properties": {
2855 "closedLoopControlName": {
2856 "type": "string",
2857 "required": true,
2858 "description": "Closed Loop Control Name associated with the threshold"
2860 "closedLoopEventStatus": {
2861 "type": "string",
2862 "required": true,
2863 "description": "Closed Loop Event Status of the threshold",
2864 "constraints": [
2866 "valid_values": [
2867 "ONSET",
2868 "ABATED"
2873 "direction": {
2874 "type": "string",
2875 "required": true,
2876 "description": "Direction of the threshold",
2877 "constraints": [
2879 "valid_values": [
2880 "LESS",
2881 "LESS_OR_EQUAL",
2882 "GREATER",
2883 "GREATER_OR_EQUAL",
2884 "EQUAL"
2889 "fieldPath": {
2890 "type": "string",
2891 "required": true,
2892 "description": "Json field Path as per CEF message which needs to be analyzed for TCA",
2893 "constraints": [
2895 "valid_values": [
2896 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsDelta",
2897 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedOctetsDelta",
2898 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedUnicastPacketsDelta",
2899 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedMulticastPacketsDelta",
2900 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsDelta",
2901 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedDiscardedPacketsDelta",
2902 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedErrorPacketsDelta",
2903 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsAccumulated",
2904 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedOctetsAccumulated",
2905 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedUnicastPacketsAccumulated",
2906 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedMulticastPacketsAccumulated",
2907 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsAccumulated",
2908 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedDiscardedPacketsAccumulated",
2909 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedErrorPacketsAccumulated",
2910 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedTotalPacketsDelta",
2911 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedOctetsDelta",
2912 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedUnicastPacketsDelta",
2913 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedMulticastPacketsDelta",
2914 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedBroadcastPacketsDelta",
2915 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedDiscardedPacketsDelta",
2916 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedErrorPacketsDelta",
2917 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedTotalPacketsAccumulated",
2918 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedOctetsAccumulated",
2919 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedUnicastPacketsAccumulated",
2920 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedMulticastPacketsAccumulated",
2921 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedBroadcastPacketsAccumulated",
2922 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedDiscardedPacketsAccumulated",
2923 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedErrorPacketsAccumulated",
2924 "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuIdle",
2925 "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageInterrupt",
2926 "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageNice",
2927 "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSoftIrq",
2928 "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSteal",
2929 "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSystem",
2930 "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuWait",
2931 "$.event.measurementsForVfScalingFields.cpuUsageArray[*].percentUsage",
2932 "$.event.measurementsForVfScalingFields.meanRequestLatency",
2933 "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryBuffered",
2934 "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryCached",
2935 "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryConfigured",
2936 "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryFree",
2937 "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryUsed",
2938 "$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value"
2943 "severity": {
2944 "type": "string",
2945 "required": true,
2946 "description": "Threshold Event Severity",
2947 "constraints": [
2949 "valid_values": [
2950 "CRITICAL",
2951 "MAJOR",
2952 "MINOR",
2953 "WARNING",
2954 "NORMAL"
2959 "thresholdValue": {
2960 "type": "integer",
2961 "required": true,
2962 "description": "Threshold value for the field Path inside CEF message"
2964 "version": {
2965 "type": "string",
2966 "required": true,
2967 "description": "Version number associated with the threshold"
2974 <stringProp name="Argument.metadata">=</stringProp>
2978 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
2979 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
2980 <stringProp name="HTTPSampler.protocol">https</stringProp>
2981 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
2982 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes</stringProp>
2983 <stringProp name="HTTPSampler.method">POST</stringProp>
2984 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
2985 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
2986 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
2987 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
2988 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
2989 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
2990 <stringProp name="HTTPSampler.response_timeout"></stringProp>
2993 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
2994 <collectionProp name="Asserion.test_strings">
2995 <stringProp name="49586">200</stringProp>
2997 <stringProp name="Assertion.custom_message"></stringProp>
2998 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
2999 <boolProp name="Assertion.assume_success">false</boolProp>
3000 <intProp name="Assertion.test_type">1</intProp>
3001 </ResponseAssertion>
3003 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
3004 <stringProp name="scriptLanguage">groovy</stringProp>
3005 <stringProp name="parameters"></stringProp>
3006 <stringProp name="filename"></stringProp>
3007 <stringProp name="cacheKey">true</stringProp>
3008 <stringProp name="script">import groovy.json.JsonSlurper;
3011 if (prev.getResponseCode() == '200') {
3012 def jsonSlurper = new JsonSlurper();
3013 res = jsonSlurper.parseText(prev.getResponseDataAsString());
3015 assert res instanceof Map;
3016 assert res.policy_types instanceof List;
3017 assert res.policy_types.size == 2;
3018 assert res.policy_types[0] instanceof Map;
3019 assert res.policy_types[1] instanceof Map;
3024 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create TCA Policy Type V11" enabled="true">
3025 <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
3026 <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
3027 <collectionProp name="Arguments.arguments">
3028 <elementProp name="" elementType="HTTPArgument">
3029 <boolProp name="HTTPArgument.always_encode">false</boolProp>
3030 <stringProp name="Argument.value">{
3031 "tosca_definitions_version": "tosca_simple_yaml_1_0_0",
3032 "policy_types": [
3034 "onap.policies.Monitoring": {
3035 "derived_from": "tosca.policies.Root",
3036 "version": "1.0.0",
3037 "description": "a base policy type for all policies that governs monitoring provisioning"
3041 "onap.policies.monitoring.cdap.tca.hi.lo.app": {
3042 "derived_from": "onap.policies.Monitoring",
3043 "version": "11.0.0",
3044 "properties": {
3045 "tca_policy": {
3046 "type": "map",
3047 "description": "TCA Policy JSON",
3048 "entry_schema": {
3049 "type": "onap.datatypes.monitoring.tca_policy"
3056 "data_types": [
3058 "onap.datatypes.monitoring.metricsPerEventName": {
3059 "derived_from": "tosca.datatypes.Root",
3060 "properties": {
3061 "controlLoopSchemaType": {
3062 "type": "string",
3063 "required": true,
3064 "description": "Specifies Control Loop Schema Type for the event Name e.g. VNF, VM",
3065 "constraints": [
3067 "valid_values": [
3068 "VM",
3069 "VNF"
3074 "eventName": {
3075 "type": "string",
3076 "required": true,
3077 "description": "Event name to which thresholds need to be applied"
3079 "policyName": {
3080 "type": "string",
3081 "required": true,
3082 "description": "TCA Policy Scope Name"
3084 "policyScope": {
3085 "type": "string",
3086 "required": true,
3087 "description": "TCA Policy Scope"
3089 "policyVersion": {
3090 "type": "string",
3091 "required": true,
3092 "description": "TCA Policy Scope Version"
3094 "thresholds": {
3095 "type": "list",
3096 "required": true,
3097 "description": "Thresholds associated with eventName",
3098 "entry_schema": {
3099 "type": "onap.datatypes.monitoring.thresholds"
3106 "onap.datatypes.monitoring.tca_policy": {
3107 "derived_from": "tosca.datatypes.Root",
3108 "properties": {
3109 "domain": {
3110 "type": "string",
3111 "required": true,
3112 "description": "Domain name to which TCA needs to be applied",
3113 "default": "measurementsForVfScaling",
3114 "constraints": [
3116 "equal": "measurementsForVfScaling"
3120 "metricsPerEventName": {
3121 "type": "list",
3122 "required": true,
3123 "description": "Contains eventName and threshold details that need to be applied to given eventName",
3124 "entry_schema": {
3125 "type": "onap.datatypes.monitoring.metricsPerEventName"
3132 "onap.datatypes.monitoring.thresholds": {
3133 "derived_from": "tosca.datatypes.Root",
3134 "properties": {
3135 "closedLoopControlName": {
3136 "type": "string",
3137 "required": true,
3138 "description": "Closed Loop Control Name associated with the threshold"
3140 "closedLoopEventStatus": {
3141 "type": "string",
3142 "required": true,
3143 "description": "Closed Loop Event Status of the threshold",
3144 "constraints": [
3146 "valid_values": [
3147 "ONSET",
3148 "ABATED"
3153 "direction": {
3154 "type": "string",
3155 "required": true,
3156 "description": "Direction of the threshold",
3157 "constraints": [
3159 "valid_values": [
3160 "LESS",
3161 "LESS_OR_EQUAL",
3162 "GREATER",
3163 "GREATER_OR_EQUAL",
3164 "EQUAL"
3169 "fieldPath": {
3170 "type": "string",
3171 "required": true,
3172 "description": "Json field Path as per CEF message which needs to be analyzed for TCA",
3173 "constraints": [
3175 "valid_values": [
3176 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsDelta",
3177 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedOctetsDelta",
3178 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedUnicastPacketsDelta",
3179 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedMulticastPacketsDelta",
3180 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsDelta",
3181 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedDiscardedPacketsDelta",
3182 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedErrorPacketsDelta",
3183 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsAccumulated",
3184 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedOctetsAccumulated",
3185 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedUnicastPacketsAccumulated",
3186 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedMulticastPacketsAccumulated",
3187 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsAccumulated",
3188 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedDiscardedPacketsAccumulated",
3189 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedErrorPacketsAccumulated",
3190 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedTotalPacketsDelta",
3191 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedOctetsDelta",
3192 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedUnicastPacketsDelta",
3193 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedMulticastPacketsDelta",
3194 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedBroadcastPacketsDelta",
3195 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedDiscardedPacketsDelta",
3196 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedErrorPacketsDelta",
3197 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedTotalPacketsAccumulated",
3198 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedOctetsAccumulated",
3199 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedUnicastPacketsAccumulated",
3200 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedMulticastPacketsAccumulated",
3201 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedBroadcastPacketsAccumulated",
3202 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedDiscardedPacketsAccumulated",
3203 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedErrorPacketsAccumulated",
3204 "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuIdle",
3205 "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageInterrupt",
3206 "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageNice",
3207 "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSoftIrq",
3208 "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSteal",
3209 "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSystem",
3210 "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuWait",
3211 "$.event.measurementsForVfScalingFields.cpuUsageArray[*].percentUsage",
3212 "$.event.measurementsForVfScalingFields.meanRequestLatency",
3213 "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryBuffered",
3214 "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryCached",
3215 "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryConfigured",
3216 "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryFree",
3217 "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryUsed",
3218 "$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value"
3223 "severity": {
3224 "type": "string",
3225 "required": true,
3226 "description": "Threshold Event Severity",
3227 "constraints": [
3229 "valid_values": [
3230 "CRITICAL",
3231 "MAJOR",
3232 "MINOR",
3233 "WARNING",
3234 "NORMAL"
3239 "thresholdValue": {
3240 "type": "integer",
3241 "required": true,
3242 "description": "Threshold value for the field Path inside CEF message"
3244 "version": {
3245 "type": "string",
3246 "required": true,
3247 "description": "Version number associated with the threshold"
3254 <stringProp name="Argument.metadata">=</stringProp>
3258 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
3259 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
3260 <stringProp name="HTTPSampler.protocol">https</stringProp>
3261 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
3262 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes</stringProp>
3263 <stringProp name="HTTPSampler.method">POST</stringProp>
3264 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
3265 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
3266 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
3267 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
3268 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
3269 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
3270 <stringProp name="HTTPSampler.response_timeout"></stringProp>
3273 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
3274 <collectionProp name="Asserion.test_strings">
3275 <stringProp name="49586">200</stringProp>
3277 <stringProp name="Assertion.custom_message"></stringProp>
3278 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
3279 <boolProp name="Assertion.assume_success">false</boolProp>
3280 <intProp name="Assertion.test_type">1</intProp>
3281 </ResponseAssertion>
3283 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
3284 <stringProp name="scriptLanguage">groovy</stringProp>
3285 <stringProp name="parameters"></stringProp>
3286 <stringProp name="filename"></stringProp>
3287 <stringProp name="cacheKey">true</stringProp>
3288 <stringProp name="script">import groovy.json.JsonSlurper;
3291 if (prev.getResponseCode() == '200') {
3292 def jsonSlurper = new JsonSlurper();
3293 res = jsonSlurper.parseText(prev.getResponseDataAsString());
3295 assert res instanceof Map;
3296 assert res.policy_types instanceof List;
3297 assert res.policy_types.size == 2;
3298 assert res.policy_types[0] instanceof Map;
3299 assert res.policy_types[1] instanceof Map;
3304 <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="Constant Timer" enabled="true">
3305 <stringProp name="ConstantTimer.delay">10000</stringProp>
3308 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get All Policy Types" enabled="true">
3309 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
3310 <collectionProp name="Arguments.arguments"/>
3312 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
3313 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
3314 <stringProp name="HTTPSampler.protocol">https</stringProp>
3315 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
3316 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes</stringProp>
3317 <stringProp name="HTTPSampler.method">GET</stringProp>
3318 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
3319 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
3320 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
3321 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
3322 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
3323 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
3324 <stringProp name="HTTPSampler.response_timeout"></stringProp>
3327 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
3328 <collectionProp name="Asserion.test_strings">
3329 <stringProp name="49586">200</stringProp>
3331 <stringProp name="Assertion.custom_message"></stringProp>
3332 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
3333 <boolProp name="Assertion.assume_success">false</boolProp>
3334 <intProp name="Assertion.test_type">1</intProp>
3335 </ResponseAssertion>
3337 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
3338 <stringProp name="scriptLanguage">groovy</stringProp>
3339 <stringProp name="parameters"></stringProp>
3340 <stringProp name="filename"></stringProp>
3341 <stringProp name="cacheKey">true</stringProp>
3342 <stringProp name="script">import groovy.json.JsonSlurper;
3345 if (prev.getResponseCode() == '200') {
3346 def jsonSlurper = new JsonSlurper();
3347 res = jsonSlurper.parseText(prev.getResponseDataAsString());
3349 assert res instanceof Map;
3350 assert res.policy_types instanceof List;
3351 assert res.policy_types.size == 28;
3354 for (i=0; i<n; i++) {
3355 assert res.policy_types[i] instanceof Map;
3361 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get All Versions of TCA Policy Type" enabled="true">
3362 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
3363 <collectionProp name="Arguments.arguments"/>
3365 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
3366 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
3367 <stringProp name="HTTPSampler.protocol">https</stringProp>
3368 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
3369 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app</stringProp>
3370 <stringProp name="HTTPSampler.method">GET</stringProp>
3371 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
3372 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
3373 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
3374 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
3375 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
3376 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
3377 <stringProp name="HTTPSampler.response_timeout"></stringProp>
3380 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
3381 <collectionProp name="Asserion.test_strings">
3382 <stringProp name="49586">200</stringProp>
3384 <stringProp name="Assertion.custom_message"></stringProp>
3385 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
3386 <boolProp name="Assertion.assume_success">false</boolProp>
3387 <intProp name="Assertion.test_type">1</intProp>
3388 </ResponseAssertion>
3390 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
3391 <stringProp name="scriptLanguage">groovy</stringProp>
3392 <stringProp name="parameters"></stringProp>
3393 <stringProp name="filename"></stringProp>
3394 <stringProp name="cacheKey">true</stringProp>
3395 <stringProp name="script">import groovy.json.JsonSlurper;
3398 if (prev.getResponseCode() == '200') {
3399 def jsonSlurper = new JsonSlurper();
3400 res = jsonSlurper.parseText(prev.getResponseDataAsString());
3402 assert res instanceof Map;
3403 assert res.policy_types instanceof List;
3404 assert res.policy_types.size == 11;
3407 for (i=0; i<n; i++) {
3408 assert res.policy_types[i] instanceof Map;
3414 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get TCA Policy Type V1" enabled="true">
3415 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
3416 <collectionProp name="Arguments.arguments"/>
3418 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
3419 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
3420 <stringProp name="HTTPSampler.protocol">https</stringProp>
3421 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
3422 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/1.0.0</stringProp>
3423 <stringProp name="HTTPSampler.method">GET</stringProp>
3424 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
3425 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
3426 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
3427 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
3428 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
3429 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
3430 <stringProp name="HTTPSampler.response_timeout"></stringProp>
3433 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
3434 <collectionProp name="Asserion.test_strings">
3435 <stringProp name="49586">200</stringProp>
3437 <stringProp name="Assertion.custom_message"></stringProp>
3438 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
3439 <boolProp name="Assertion.assume_success">false</boolProp>
3440 <intProp name="Assertion.test_type">1</intProp>
3441 </ResponseAssertion>
3443 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
3444 <stringProp name="scriptLanguage">groovy</stringProp>
3445 <stringProp name="parameters"></stringProp>
3446 <stringProp name="filename"></stringProp>
3447 <stringProp name="cacheKey">true</stringProp>
3448 <stringProp name="script">import groovy.json.JsonSlurper;
3451 if (prev.getResponseCode() == '200') {
3452 def jsonSlurper = new JsonSlurper();
3453 res = jsonSlurper.parseText(prev.getResponseDataAsString());
3455 assert res instanceof Map;
3456 assert res.policy_types instanceof List;
3457 assert res.policy_types.size == 1;
3459 assert res.policy_types[0] instanceof Map;
3460 assert res.policy_types[0].get('onap.policies.monitoring.cdap.tca.hi.lo.app').version == "1.0.0";
3465 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get TCA Policy Type V2" enabled="true">
3466 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
3467 <collectionProp name="Arguments.arguments"/>
3469 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
3470 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
3471 <stringProp name="HTTPSampler.protocol">https</stringProp>
3472 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
3473 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/2.0.0</stringProp>
3474 <stringProp name="HTTPSampler.method">GET</stringProp>
3475 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
3476 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
3477 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
3478 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
3479 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
3480 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
3481 <stringProp name="HTTPSampler.response_timeout"></stringProp>
3484 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
3485 <collectionProp name="Asserion.test_strings">
3486 <stringProp name="49586">200</stringProp>
3488 <stringProp name="Assertion.custom_message"></stringProp>
3489 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
3490 <boolProp name="Assertion.assume_success">false</boolProp>
3491 <intProp name="Assertion.test_type">1</intProp>
3492 </ResponseAssertion>
3494 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
3495 <stringProp name="scriptLanguage">groovy</stringProp>
3496 <stringProp name="parameters"></stringProp>
3497 <stringProp name="filename"></stringProp>
3498 <stringProp name="cacheKey">true</stringProp>
3499 <stringProp name="script">import groovy.json.JsonSlurper;
3502 if (prev.getResponseCode() == '200') {
3503 def jsonSlurper = new JsonSlurper();
3504 res = jsonSlurper.parseText(prev.getResponseDataAsString());
3506 assert res instanceof Map;
3507 assert res.policy_types instanceof List;
3508 assert res.policy_types.size == 1;
3510 assert res.policy_types[0] instanceof Map;
3511 assert res.policy_types[0].get('onap.policies.monitoring.cdap.tca.hi.lo.app').version == "2.0.0";
3516 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get TCA Policy Type V3" enabled="true">
3517 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
3518 <collectionProp name="Arguments.arguments"/>
3520 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
3521 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
3522 <stringProp name="HTTPSampler.protocol">https</stringProp>
3523 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
3524 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/3.0.0</stringProp>
3525 <stringProp name="HTTPSampler.method">GET</stringProp>
3526 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
3527 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
3528 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
3529 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
3530 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
3531 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
3532 <stringProp name="HTTPSampler.response_timeout"></stringProp>
3535 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
3536 <collectionProp name="Asserion.test_strings">
3537 <stringProp name="49586">200</stringProp>
3539 <stringProp name="Assertion.custom_message"></stringProp>
3540 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
3541 <boolProp name="Assertion.assume_success">false</boolProp>
3542 <intProp name="Assertion.test_type">1</intProp>
3543 </ResponseAssertion>
3545 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
3546 <stringProp name="scriptLanguage">groovy</stringProp>
3547 <stringProp name="parameters"></stringProp>
3548 <stringProp name="filename"></stringProp>
3549 <stringProp name="cacheKey">true</stringProp>
3550 <stringProp name="script">import groovy.json.JsonSlurper;
3553 if (prev.getResponseCode() == '200') {
3554 def jsonSlurper = new JsonSlurper();
3555 res = jsonSlurper.parseText(prev.getResponseDataAsString());
3557 assert res instanceof Map;
3558 assert res.policy_types instanceof List;
3559 assert res.policy_types.size == 1;
3561 assert res.policy_types[0] instanceof Map;
3562 assert res.policy_types[0].get('onap.policies.monitoring.cdap.tca.hi.lo.app').version == "3.0.0";
3567 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get TCA Policy Type V4" enabled="true">
3568 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
3569 <collectionProp name="Arguments.arguments"/>
3571 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
3572 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
3573 <stringProp name="HTTPSampler.protocol">https</stringProp>
3574 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
3575 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/4.0.0</stringProp>
3576 <stringProp name="HTTPSampler.method">GET</stringProp>
3577 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
3578 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
3579 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
3580 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
3581 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
3582 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
3583 <stringProp name="HTTPSampler.response_timeout"></stringProp>
3586 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
3587 <collectionProp name="Asserion.test_strings">
3588 <stringProp name="49586">200</stringProp>
3590 <stringProp name="Assertion.custom_message"></stringProp>
3591 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
3592 <boolProp name="Assertion.assume_success">false</boolProp>
3593 <intProp name="Assertion.test_type">1</intProp>
3594 </ResponseAssertion>
3596 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
3597 <stringProp name="scriptLanguage">groovy</stringProp>
3598 <stringProp name="parameters"></stringProp>
3599 <stringProp name="filename"></stringProp>
3600 <stringProp name="cacheKey">true</stringProp>
3601 <stringProp name="script">import groovy.json.JsonSlurper;
3604 if (prev.getResponseCode() == '200') {
3605 def jsonSlurper = new JsonSlurper();
3606 res = jsonSlurper.parseText(prev.getResponseDataAsString());
3608 assert res instanceof Map;
3609 assert res.policy_types instanceof List;
3610 assert res.policy_types.size == 1;
3612 assert res.policy_types[0] instanceof Map;
3613 assert res.policy_types[0].get('onap.policies.monitoring.cdap.tca.hi.lo.app').version == "4.0.0";
3618 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get TCA Policy Type V5" enabled="true">
3619 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
3620 <collectionProp name="Arguments.arguments"/>
3622 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
3623 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
3624 <stringProp name="HTTPSampler.protocol">https</stringProp>
3625 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
3626 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/5.0.0</stringProp>
3627 <stringProp name="HTTPSampler.method">GET</stringProp>
3628 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
3629 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
3630 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
3631 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
3632 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
3633 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
3634 <stringProp name="HTTPSampler.response_timeout"></stringProp>
3637 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
3638 <collectionProp name="Asserion.test_strings">
3639 <stringProp name="49586">200</stringProp>
3641 <stringProp name="Assertion.custom_message"></stringProp>
3642 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
3643 <boolProp name="Assertion.assume_success">false</boolProp>
3644 <intProp name="Assertion.test_type">1</intProp>
3645 </ResponseAssertion>
3647 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
3648 <stringProp name="scriptLanguage">groovy</stringProp>
3649 <stringProp name="parameters"></stringProp>
3650 <stringProp name="filename"></stringProp>
3651 <stringProp name="cacheKey">true</stringProp>
3652 <stringProp name="script">import groovy.json.JsonSlurper;
3655 if (prev.getResponseCode() == '200') {
3656 def jsonSlurper = new JsonSlurper();
3657 res = jsonSlurper.parseText(prev.getResponseDataAsString());
3659 assert res instanceof Map;
3660 assert res.policy_types instanceof List;
3661 assert res.policy_types.size == 1;
3663 assert res.policy_types[0] instanceof Map;
3664 assert res.policy_types[0].get('onap.policies.monitoring.cdap.tca.hi.lo.app').version == "5.0.0";
3669 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get TCA Policy Type V6" enabled="true">
3670 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
3671 <collectionProp name="Arguments.arguments"/>
3673 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
3674 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
3675 <stringProp name="HTTPSampler.protocol">https</stringProp>
3676 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
3677 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/6.0.0</stringProp>
3678 <stringProp name="HTTPSampler.method">GET</stringProp>
3679 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
3680 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
3681 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
3682 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
3683 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
3684 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
3685 <stringProp name="HTTPSampler.response_timeout"></stringProp>
3688 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
3689 <collectionProp name="Asserion.test_strings">
3690 <stringProp name="49586">200</stringProp>
3692 <stringProp name="Assertion.custom_message"></stringProp>
3693 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
3694 <boolProp name="Assertion.assume_success">false</boolProp>
3695 <intProp name="Assertion.test_type">1</intProp>
3696 </ResponseAssertion>
3698 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
3699 <stringProp name="scriptLanguage">groovy</stringProp>
3700 <stringProp name="parameters"></stringProp>
3701 <stringProp name="filename"></stringProp>
3702 <stringProp name="cacheKey">true</stringProp>
3703 <stringProp name="script">import groovy.json.JsonSlurper;
3706 if (prev.getResponseCode() == '200') {
3707 def jsonSlurper = new JsonSlurper();
3708 res = jsonSlurper.parseText(prev.getResponseDataAsString());
3710 assert res instanceof Map;
3711 assert res.policy_types instanceof List;
3712 assert res.policy_types.size == 1;
3714 assert res.policy_types[0] instanceof Map;
3715 assert res.policy_types[0].get('onap.policies.monitoring.cdap.tca.hi.lo.app').version == "6.0.0";
3720 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get TCA Policy Type V7" enabled="true">
3721 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
3722 <collectionProp name="Arguments.arguments"/>
3724 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
3725 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
3726 <stringProp name="HTTPSampler.protocol">https</stringProp>
3727 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
3728 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/7.0.0</stringProp>
3729 <stringProp name="HTTPSampler.method">GET</stringProp>
3730 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
3731 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
3732 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
3733 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
3734 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
3735 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
3736 <stringProp name="HTTPSampler.response_timeout"></stringProp>
3739 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
3740 <collectionProp name="Asserion.test_strings">
3741 <stringProp name="49586">200</stringProp>
3743 <stringProp name="Assertion.custom_message"></stringProp>
3744 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
3745 <boolProp name="Assertion.assume_success">false</boolProp>
3746 <intProp name="Assertion.test_type">1</intProp>
3747 </ResponseAssertion>
3749 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
3750 <stringProp name="scriptLanguage">groovy</stringProp>
3751 <stringProp name="parameters"></stringProp>
3752 <stringProp name="filename"></stringProp>
3753 <stringProp name="cacheKey">true</stringProp>
3754 <stringProp name="script">import groovy.json.JsonSlurper;
3757 if (prev.getResponseCode() == '200') {
3758 def jsonSlurper = new JsonSlurper();
3759 res = jsonSlurper.parseText(prev.getResponseDataAsString());
3761 assert res instanceof Map;
3762 assert res.policy_types instanceof List;
3763 assert res.policy_types.size == 1;
3765 assert res.policy_types[0] instanceof Map;
3766 assert res.policy_types[0].get('onap.policies.monitoring.cdap.tca.hi.lo.app').version == "7.0.0";
3771 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get TCA Policy Type V8" enabled="true">
3772 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
3773 <collectionProp name="Arguments.arguments"/>
3775 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
3776 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
3777 <stringProp name="HTTPSampler.protocol">https</stringProp>
3778 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
3779 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/8.0.0</stringProp>
3780 <stringProp name="HTTPSampler.method">GET</stringProp>
3781 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
3782 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
3783 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
3784 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
3785 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
3786 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
3787 <stringProp name="HTTPSampler.response_timeout"></stringProp>
3790 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
3791 <collectionProp name="Asserion.test_strings">
3792 <stringProp name="49586">200</stringProp>
3794 <stringProp name="Assertion.custom_message"></stringProp>
3795 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
3796 <boolProp name="Assertion.assume_success">false</boolProp>
3797 <intProp name="Assertion.test_type">1</intProp>
3798 </ResponseAssertion>
3800 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
3801 <stringProp name="scriptLanguage">groovy</stringProp>
3802 <stringProp name="parameters"></stringProp>
3803 <stringProp name="filename"></stringProp>
3804 <stringProp name="cacheKey">true</stringProp>
3805 <stringProp name="script">import groovy.json.JsonSlurper;
3808 if (prev.getResponseCode() == '200') {
3809 def jsonSlurper = new JsonSlurper();
3810 res = jsonSlurper.parseText(prev.getResponseDataAsString());
3812 assert res instanceof Map;
3813 assert res.policy_types instanceof List;
3814 assert res.policy_types.size == 1;
3816 assert res.policy_types[0] instanceof Map;
3817 assert res.policy_types[0].get('onap.policies.monitoring.cdap.tca.hi.lo.app').version == "8.0.0";
3822 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get TCA Policy Type V9" enabled="true">
3823 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
3824 <collectionProp name="Arguments.arguments"/>
3826 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
3827 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
3828 <stringProp name="HTTPSampler.protocol">https</stringProp>
3829 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
3830 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/9.0.0</stringProp>
3831 <stringProp name="HTTPSampler.method">GET</stringProp>
3832 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
3833 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
3834 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
3835 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
3836 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
3837 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
3838 <stringProp name="HTTPSampler.response_timeout"></stringProp>
3841 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
3842 <collectionProp name="Asserion.test_strings">
3843 <stringProp name="49586">200</stringProp>
3845 <stringProp name="Assertion.custom_message"></stringProp>
3846 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
3847 <boolProp name="Assertion.assume_success">false</boolProp>
3848 <intProp name="Assertion.test_type">1</intProp>
3849 </ResponseAssertion>
3851 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
3852 <stringProp name="scriptLanguage">groovy</stringProp>
3853 <stringProp name="parameters"></stringProp>
3854 <stringProp name="filename"></stringProp>
3855 <stringProp name="cacheKey">true</stringProp>
3856 <stringProp name="script">import groovy.json.JsonSlurper;
3859 if (prev.getResponseCode() == '200') {
3860 def jsonSlurper = new JsonSlurper();
3861 res = jsonSlurper.parseText(prev.getResponseDataAsString());
3863 assert res instanceof Map;
3864 assert res.policy_types instanceof List;
3865 assert res.policy_types.size == 1;
3867 assert res.policy_types[0] instanceof Map;
3868 assert res.policy_types[0].get('onap.policies.monitoring.cdap.tca.hi.lo.app').version == "9.0.0";
3873 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get TCA Policy Type V10" enabled="true">
3874 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
3875 <collectionProp name="Arguments.arguments"/>
3877 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
3878 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
3879 <stringProp name="HTTPSampler.protocol">https</stringProp>
3880 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
3881 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/10.0.0</stringProp>
3882 <stringProp name="HTTPSampler.method">GET</stringProp>
3883 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
3884 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
3885 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
3886 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
3887 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
3888 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
3889 <stringProp name="HTTPSampler.response_timeout"></stringProp>
3892 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
3893 <collectionProp name="Asserion.test_strings">
3894 <stringProp name="49586">200</stringProp>
3896 <stringProp name="Assertion.custom_message"></stringProp>
3897 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
3898 <boolProp name="Assertion.assume_success">false</boolProp>
3899 <intProp name="Assertion.test_type">1</intProp>
3900 </ResponseAssertion>
3902 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
3903 <stringProp name="scriptLanguage">groovy</stringProp>
3904 <stringProp name="parameters"></stringProp>
3905 <stringProp name="filename"></stringProp>
3906 <stringProp name="cacheKey">true</stringProp>
3907 <stringProp name="script">import groovy.json.JsonSlurper;
3910 if (prev.getResponseCode() == '200') {
3911 def jsonSlurper = new JsonSlurper();
3912 res = jsonSlurper.parseText(prev.getResponseDataAsString());
3914 assert res instanceof Map;
3915 assert res.policy_types instanceof List;
3916 assert res.policy_types.size == 1;
3918 assert res.policy_types[0] instanceof Map;
3919 assert res.policy_types[0].get('onap.policies.monitoring.cdap.tca.hi.lo.app').version == "10.0.0";
3924 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get TCA Policy Type V11" enabled="true">
3925 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
3926 <collectionProp name="Arguments.arguments"/>
3928 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
3929 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
3930 <stringProp name="HTTPSampler.protocol">https</stringProp>
3931 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
3932 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/11.0.0</stringProp>
3933 <stringProp name="HTTPSampler.method">GET</stringProp>
3934 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
3935 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
3936 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
3937 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
3938 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
3939 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
3940 <stringProp name="HTTPSampler.response_timeout"></stringProp>
3943 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
3944 <collectionProp name="Asserion.test_strings">
3945 <stringProp name="49586">200</stringProp>
3947 <stringProp name="Assertion.custom_message"></stringProp>
3948 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
3949 <boolProp name="Assertion.assume_success">false</boolProp>
3950 <intProp name="Assertion.test_type">1</intProp>
3951 </ResponseAssertion>
3953 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
3954 <stringProp name="scriptLanguage">groovy</stringProp>
3955 <stringProp name="parameters"></stringProp>
3956 <stringProp name="filename"></stringProp>
3957 <stringProp name="cacheKey">true</stringProp>
3958 <stringProp name="script">import groovy.json.JsonSlurper;
3961 if (prev.getResponseCode() == '200') {
3962 def jsonSlurper = new JsonSlurper();
3963 res = jsonSlurper.parseText(prev.getResponseDataAsString());
3965 assert res instanceof Map;
3966 assert res.policy_types instanceof List;
3967 assert res.policy_types.size == 1;
3969 assert res.policy_types[0] instanceof Map;
3970 assert res.policy_types[0].get('onap.policies.monitoring.cdap.tca.hi.lo.app').version == "11.0.0";
3975 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get Latest TCA Policy Type" enabled="true">
3976 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
3977 <collectionProp name="Arguments.arguments"/>
3979 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
3980 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
3981 <stringProp name="HTTPSampler.protocol">https</stringProp>
3982 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
3983 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/latest</stringProp>
3984 <stringProp name="HTTPSampler.method">GET</stringProp>
3985 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
3986 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
3987 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
3988 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
3989 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
3990 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
3991 <stringProp name="HTTPSampler.response_timeout"></stringProp>
3994 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
3995 <collectionProp name="Asserion.test_strings">
3996 <stringProp name="49586">200</stringProp>
3998 <stringProp name="Assertion.custom_message"></stringProp>
3999 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
4000 <boolProp name="Assertion.assume_success">false</boolProp>
4001 <intProp name="Assertion.test_type">1</intProp>
4002 </ResponseAssertion>
4004 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
4005 <stringProp name="scriptLanguage">groovy</stringProp>
4006 <stringProp name="parameters"></stringProp>
4007 <stringProp name="filename"></stringProp>
4008 <stringProp name="cacheKey">true</stringProp>
4009 <stringProp name="script">import groovy.json.JsonSlurper;
4012 if (prev.getResponseCode() == '200') {
4013 def jsonSlurper = new JsonSlurper();
4014 res = jsonSlurper.parseText(prev.getResponseDataAsString());
4016 assert res instanceof Map;
4017 assert res.policy_types instanceof List;
4018 assert res.policy_types.size == 1;
4020 assert res.policy_types[0] instanceof Map;
4021 assert res.policy_types[0].get('onap.policies.monitoring.cdap.tca.hi.lo.app').version == "11.0.0";
4026 <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="Constant Timer" enabled="true">
4027 <stringProp name="ConstantTimer.delay">10000</stringProp>
4030 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create TCA Policy V1 " enabled="true">
4031 <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
4032 <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
4033 <collectionProp name="Arguments.arguments">
4034 <elementProp name="" elementType="HTTPArgument">
4035 <boolProp name="HTTPArgument.always_encode">false</boolProp>
4036 <stringProp name="Argument.value">{
4037 "tosca_definitions_version": "tosca_simple_yaml_1_0_0",
4038 "topology_template": {
4039 "policies": [
4041 "onap.restart.tca": {
4042 "type": "onap.policies.monitoring.cdap.tca.hi.lo.app",
4043 "version": "1.0.0",
4044 "type_version": "2.0.0",
4045 "metadata": {
4046 "policy-id": "onap.restart.tca"
4048 "properties": {
4049 "tca_policy" : {
4050 "domain": "measurementsForVfScaling",
4051 "metricsPerEventName": [
4053 "eventName": "Measurement_vGMUX",
4054 "controlLoopSchemaType": "VNF",
4055 "policyScope": "DCAE",
4056 "policyName": "DCAE.Config_tca-hi-lo",
4057 "policyVersion": "v0.0.1",
4058 "thresholds": [
4060 "closedLoopControlName": "ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e",
4061 "version": "1.0.2",
4062 "fieldPath": "$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value",
4063 "thresholdValue": 0,
4064 "direction": "EQUAL",
4065 "severity": "MAJOR",
4066 "closedLoopEventStatus": "ABATED"
4069 "closedLoopControlName": "ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e",
4070 "version": "1.0.2",
4071 "fieldPath": "$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value",
4072 "thresholdValue": 0,
4073 "direction": "GREATER",
4074 "severity": "CRITICAL",
4075 "closedLoopEventStatus": "ONSET"
4087 <stringProp name="Argument.metadata">=</stringProp>
4091 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
4092 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
4093 <stringProp name="HTTPSampler.protocol">https</stringProp>
4094 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
4095 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/2.0.0/policies</stringProp>
4096 <stringProp name="HTTPSampler.method">POST</stringProp>
4097 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
4098 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
4099 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
4100 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
4101 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
4102 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
4103 <stringProp name="HTTPSampler.response_timeout"></stringProp>
4106 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
4107 <collectionProp name="Asserion.test_strings">
4108 <stringProp name="49586">200</stringProp>
4110 <stringProp name="Assertion.custom_message"></stringProp>
4111 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
4112 <boolProp name="Assertion.assume_success">false</boolProp>
4113 <intProp name="Assertion.test_type">1</intProp>
4114 </ResponseAssertion>
4116 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
4117 <stringProp name="scriptLanguage">groovy</stringProp>
4118 <stringProp name="parameters"></stringProp>
4119 <stringProp name="filename"></stringProp>
4120 <stringProp name="cacheKey">true</stringProp>
4121 <stringProp name="script">import groovy.json.JsonSlurper;
4124 if (prev.getResponseCode() == '200') {
4125 def jsonSlurper = new JsonSlurper();
4126 res = jsonSlurper.parseText(prev.getResponseDataAsString());
4128 assert res instanceof Map;
4129 assert res.topology_template.policies instanceof List;
4130 assert res.topology_template.policies.size == 1;
4131 assert res.topology_template.policies[0] instanceof Map;
4136 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create TCA Policy V2" enabled="true">
4137 <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
4138 <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
4139 <collectionProp name="Arguments.arguments">
4140 <elementProp name="" elementType="HTTPArgument">
4141 <boolProp name="HTTPArgument.always_encode">false</boolProp>
4142 <stringProp name="Argument.value">{
4143 "tosca_definitions_version": "tosca_simple_yaml_1_0_0",
4144 "topology_template": {
4145 "policies": [
4147 "onap.restart.tca": {
4148 "type": "onap.policies.monitoring.cdap.tca.hi.lo.app",
4149 "version": "2.0.0",
4150 "type_version": "2.0.0",
4151 "metadata": {
4152 "policy-id": "onap.restart.tca"
4154 "properties": {
4155 "tca_policy" : {
4156 "domain": "measurementsForVfScaling",
4157 "metricsPerEventName": [
4159 "eventName": "Measurement_vGMUX",
4160 "controlLoopSchemaType": "VNF",
4161 "policyScope": "DCAE",
4162 "policyName": "DCAE.Config_tca-hi-lo",
4163 "policyVersion": "v0.0.1",
4164 "thresholds": [
4166 "closedLoopControlName": "ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e",
4167 "version": "1.0.2",
4168 "fieldPath": "$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value",
4169 "thresholdValue": 0,
4170 "direction": "EQUAL",
4171 "severity": "MAJOR",
4172 "closedLoopEventStatus": "ABATED"
4175 "closedLoopControlName": "ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e",
4176 "version": "1.0.2",
4177 "fieldPath": "$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value",
4178 "thresholdValue": 0,
4179 "direction": "GREATER",
4180 "severity": "CRITICAL",
4181 "closedLoopEventStatus": "ONSET"
4193 <stringProp name="Argument.metadata">=</stringProp>
4197 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
4198 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
4199 <stringProp name="HTTPSampler.protocol">https</stringProp>
4200 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
4201 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/2.0.0/policies</stringProp>
4202 <stringProp name="HTTPSampler.method">POST</stringProp>
4203 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
4204 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
4205 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
4206 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
4207 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
4208 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
4209 <stringProp name="HTTPSampler.response_timeout"></stringProp>
4212 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
4213 <collectionProp name="Asserion.test_strings">
4214 <stringProp name="49586">200</stringProp>
4216 <stringProp name="Assertion.custom_message"></stringProp>
4217 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
4218 <boolProp name="Assertion.assume_success">false</boolProp>
4219 <intProp name="Assertion.test_type">1</intProp>
4220 </ResponseAssertion>
4222 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
4223 <stringProp name="scriptLanguage">groovy</stringProp>
4224 <stringProp name="parameters"></stringProp>
4225 <stringProp name="filename"></stringProp>
4226 <stringProp name="cacheKey">true</stringProp>
4227 <stringProp name="script">import groovy.json.JsonSlurper;
4230 if (prev.getResponseCode() == '200') {
4231 def jsonSlurper = new JsonSlurper();
4232 res = jsonSlurper.parseText(prev.getResponseDataAsString());
4234 assert res instanceof Map;
4235 assert res.topology_template.policies instanceof List;
4236 assert res.topology_template.policies.size == 1;
4237 assert res.topology_template.policies[0] instanceof Map;
4242 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create TCA Policy V3" enabled="true">
4243 <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
4244 <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
4245 <collectionProp name="Arguments.arguments">
4246 <elementProp name="" elementType="HTTPArgument">
4247 <boolProp name="HTTPArgument.always_encode">false</boolProp>
4248 <stringProp name="Argument.value">{
4249 "tosca_definitions_version": "tosca_simple_yaml_1_0_0",
4250 "topology_template": {
4251 "policies": [
4253 "onap.restart.tca": {
4254 "type": "onap.policies.monitoring.cdap.tca.hi.lo.app",
4255 "version": "3.0.0",
4256 "type_version": "2.0.0",
4257 "metadata": {
4258 "policy-id": "onap.restart.tca"
4260 "properties": {
4261 "tca_policy" : {
4262 "domain": "measurementsForVfScaling",
4263 "metricsPerEventName": [
4265 "eventName": "Measurement_vGMUX",
4266 "controlLoopSchemaType": "VNF",
4267 "policyScope": "DCAE",
4268 "policyName": "DCAE.Config_tca-hi-lo",
4269 "policyVersion": "v0.0.1",
4270 "thresholds": [
4272 "closedLoopControlName": "ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e",
4273 "version": "1.0.2",
4274 "fieldPath": "$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value",
4275 "thresholdValue": 0,
4276 "direction": "EQUAL",
4277 "severity": "MAJOR",
4278 "closedLoopEventStatus": "ABATED"
4281 "closedLoopControlName": "ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e",
4282 "version": "1.0.2",
4283 "fieldPath": "$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value",
4284 "thresholdValue": 0,
4285 "direction": "GREATER",
4286 "severity": "CRITICAL",
4287 "closedLoopEventStatus": "ONSET"
4299 <stringProp name="Argument.metadata">=</stringProp>
4303 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
4304 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
4305 <stringProp name="HTTPSampler.protocol">https</stringProp>
4306 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
4307 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/2.0.0/policies</stringProp>
4308 <stringProp name="HTTPSampler.method">POST</stringProp>
4309 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
4310 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
4311 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
4312 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
4313 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
4314 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
4315 <stringProp name="HTTPSampler.response_timeout"></stringProp>
4318 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
4319 <collectionProp name="Asserion.test_strings">
4320 <stringProp name="49586">200</stringProp>
4322 <stringProp name="Assertion.custom_message"></stringProp>
4323 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
4324 <boolProp name="Assertion.assume_success">false</boolProp>
4325 <intProp name="Assertion.test_type">1</intProp>
4326 </ResponseAssertion>
4328 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
4329 <stringProp name="scriptLanguage">groovy</stringProp>
4330 <stringProp name="parameters"></stringProp>
4331 <stringProp name="filename"></stringProp>
4332 <stringProp name="cacheKey">true</stringProp>
4333 <stringProp name="script">import groovy.json.JsonSlurper;
4336 if (prev.getResponseCode() == '200') {
4337 def jsonSlurper = new JsonSlurper();
4338 res = jsonSlurper.parseText(prev.getResponseDataAsString());
4340 assert res instanceof Map;
4341 assert res.topology_template.policies instanceof List;
4342 assert res.topology_template.policies.size == 1;
4343 assert res.topology_template.policies[0] instanceof Map;
4348 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create TCA Policy V4" enabled="true">
4349 <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
4350 <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
4351 <collectionProp name="Arguments.arguments">
4352 <elementProp name="" elementType="HTTPArgument">
4353 <boolProp name="HTTPArgument.always_encode">false</boolProp>
4354 <stringProp name="Argument.value">{
4355 "tosca_definitions_version": "tosca_simple_yaml_1_0_0",
4356 "topology_template": {
4357 "policies": [
4359 "onap.restart.tca": {
4360 "type": "onap.policies.monitoring.cdap.tca.hi.lo.app",
4361 "version": "4.0.0",
4362 "type_version": "2.0.0",
4363 "metadata": {
4364 "policy-id": "onap.restart.tca"
4366 "properties": {
4367 "tca_policy" : {
4368 "domain": "measurementsForVfScaling",
4369 "metricsPerEventName": [
4371 "eventName": "Measurement_vGMUX",
4372 "controlLoopSchemaType": "VNF",
4373 "policyScope": "DCAE",
4374 "policyName": "DCAE.Config_tca-hi-lo",
4375 "policyVersion": "v0.0.1",
4376 "thresholds": [
4378 "closedLoopControlName": "ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e",
4379 "version": "1.0.2",
4380 "fieldPath": "$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value",
4381 "thresholdValue": 0,
4382 "direction": "EQUAL",
4383 "severity": "MAJOR",
4384 "closedLoopEventStatus": "ABATED"
4387 "closedLoopControlName": "ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e",
4388 "version": "1.0.2",
4389 "fieldPath": "$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value",
4390 "thresholdValue": 0,
4391 "direction": "GREATER",
4392 "severity": "CRITICAL",
4393 "closedLoopEventStatus": "ONSET"
4405 <stringProp name="Argument.metadata">=</stringProp>
4409 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
4410 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
4411 <stringProp name="HTTPSampler.protocol">https</stringProp>
4412 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
4413 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/2.0.0/policies</stringProp>
4414 <stringProp name="HTTPSampler.method">POST</stringProp>
4415 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
4416 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
4417 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
4418 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
4419 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
4420 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
4421 <stringProp name="HTTPSampler.response_timeout"></stringProp>
4424 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
4425 <collectionProp name="Asserion.test_strings">
4426 <stringProp name="49586">200</stringProp>
4428 <stringProp name="Assertion.custom_message"></stringProp>
4429 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
4430 <boolProp name="Assertion.assume_success">false</boolProp>
4431 <intProp name="Assertion.test_type">1</intProp>
4432 </ResponseAssertion>
4434 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
4435 <stringProp name="scriptLanguage">groovy</stringProp>
4436 <stringProp name="parameters"></stringProp>
4437 <stringProp name="filename"></stringProp>
4438 <stringProp name="cacheKey">true</stringProp>
4439 <stringProp name="script">import groovy.json.JsonSlurper;
4442 if (prev.getResponseCode() == '200') {
4443 def jsonSlurper = new JsonSlurper();
4444 res = jsonSlurper.parseText(prev.getResponseDataAsString());
4446 assert res instanceof Map;
4447 assert res.topology_template.policies instanceof List;
4448 assert res.topology_template.policies.size == 1;
4449 assert res.topology_template.policies[0] instanceof Map;
4454 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create TCA Policy V5" enabled="true">
4455 <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
4456 <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
4457 <collectionProp name="Arguments.arguments">
4458 <elementProp name="" elementType="HTTPArgument">
4459 <boolProp name="HTTPArgument.always_encode">false</boolProp>
4460 <stringProp name="Argument.value">{
4461 "tosca_definitions_version": "tosca_simple_yaml_1_0_0",
4462 "topology_template": {
4463 "policies": [
4465 "onap.restart.tca": {
4466 "type": "onap.policies.monitoring.cdap.tca.hi.lo.app",
4467 "version": "5.0.0",
4468 "type_version": "2.0.0",
4469 "metadata": {
4470 "policy-id": "onap.restart.tca"
4472 "properties": {
4473 "tca_policy" : {
4474 "domain": "measurementsForVfScaling",
4475 "metricsPerEventName": [
4477 "eventName": "Measurement_vGMUX",
4478 "controlLoopSchemaType": "VNF",
4479 "policyScope": "DCAE",
4480 "policyName": "DCAE.Config_tca-hi-lo",
4481 "policyVersion": "v0.0.1",
4482 "thresholds": [
4484 "closedLoopControlName": "ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e",
4485 "version": "1.0.2",
4486 "fieldPath": "$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value",
4487 "thresholdValue": 0,
4488 "direction": "EQUAL",
4489 "severity": "MAJOR",
4490 "closedLoopEventStatus": "ABATED"
4493 "closedLoopControlName": "ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e",
4494 "version": "1.0.2",
4495 "fieldPath": "$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value",
4496 "thresholdValue": 0,
4497 "direction": "GREATER",
4498 "severity": "CRITICAL",
4499 "closedLoopEventStatus": "ONSET"
4511 <stringProp name="Argument.metadata">=</stringProp>
4515 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
4516 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
4517 <stringProp name="HTTPSampler.protocol">https</stringProp>
4518 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
4519 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/2.0.0/policies</stringProp>
4520 <stringProp name="HTTPSampler.method">POST</stringProp>
4521 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
4522 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
4523 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
4524 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
4525 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
4526 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
4527 <stringProp name="HTTPSampler.response_timeout"></stringProp>
4530 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
4531 <collectionProp name="Asserion.test_strings">
4532 <stringProp name="49586">200</stringProp>
4534 <stringProp name="Assertion.custom_message"></stringProp>
4535 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
4536 <boolProp name="Assertion.assume_success">false</boolProp>
4537 <intProp name="Assertion.test_type">1</intProp>
4538 </ResponseAssertion>
4540 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
4541 <stringProp name="scriptLanguage">groovy</stringProp>
4542 <stringProp name="parameters"></stringProp>
4543 <stringProp name="filename"></stringProp>
4544 <stringProp name="cacheKey">true</stringProp>
4545 <stringProp name="script">import groovy.json.JsonSlurper;
4548 if (prev.getResponseCode() == '200') {
4549 def jsonSlurper = new JsonSlurper();
4550 res = jsonSlurper.parseText(prev.getResponseDataAsString());
4552 assert res instanceof Map;
4553 assert res.topology_template.policies instanceof List;
4554 assert res.topology_template.policies.size == 1;
4555 assert res.topology_template.policies[0] instanceof Map;
4560 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create TCA Policy V6" enabled="true">
4561 <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
4562 <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
4563 <collectionProp name="Arguments.arguments">
4564 <elementProp name="" elementType="HTTPArgument">
4565 <boolProp name="HTTPArgument.always_encode">false</boolProp>
4566 <stringProp name="Argument.value">{
4567 "tosca_definitions_version": "tosca_simple_yaml_1_0_0",
4568 "topology_template": {
4569 "policies": [
4571 "onap.restart.tca": {
4572 "type": "onap.policies.monitoring.cdap.tca.hi.lo.app",
4573 "version": "6.0.0",
4574 "type_version": "2.0.0",
4575 "metadata": {
4576 "policy-id": "onap.restart.tca"
4578 "properties": {
4579 "tca_policy" : {
4580 "domain": "measurementsForVfScaling",
4581 "metricsPerEventName": [
4583 "eventName": "Measurement_vGMUX",
4584 "controlLoopSchemaType": "VNF",
4585 "policyScope": "DCAE",
4586 "policyName": "DCAE.Config_tca-hi-lo",
4587 "policyVersion": "v0.0.1",
4588 "thresholds": [
4590 "closedLoopControlName": "ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e",
4591 "version": "1.0.2",
4592 "fieldPath": "$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value",
4593 "thresholdValue": 0,
4594 "direction": "EQUAL",
4595 "severity": "MAJOR",
4596 "closedLoopEventStatus": "ABATED"
4599 "closedLoopControlName": "ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e",
4600 "version": "1.0.2",
4601 "fieldPath": "$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value",
4602 "thresholdValue": 0,
4603 "direction": "GREATER",
4604 "severity": "CRITICAL",
4605 "closedLoopEventStatus": "ONSET"
4617 <stringProp name="Argument.metadata">=</stringProp>
4621 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
4622 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
4623 <stringProp name="HTTPSampler.protocol">https</stringProp>
4624 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
4625 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/2.0.0/policies</stringProp>
4626 <stringProp name="HTTPSampler.method">POST</stringProp>
4627 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
4628 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
4629 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
4630 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
4631 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
4632 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
4633 <stringProp name="HTTPSampler.response_timeout"></stringProp>
4636 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
4637 <collectionProp name="Asserion.test_strings">
4638 <stringProp name="49586">200</stringProp>
4640 <stringProp name="Assertion.custom_message"></stringProp>
4641 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
4642 <boolProp name="Assertion.assume_success">false</boolProp>
4643 <intProp name="Assertion.test_type">1</intProp>
4644 </ResponseAssertion>
4646 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
4647 <stringProp name="scriptLanguage">groovy</stringProp>
4648 <stringProp name="parameters"></stringProp>
4649 <stringProp name="filename"></stringProp>
4650 <stringProp name="cacheKey">true</stringProp>
4651 <stringProp name="script">import groovy.json.JsonSlurper;
4654 if (prev.getResponseCode() == '200') {
4655 def jsonSlurper = new JsonSlurper();
4656 res = jsonSlurper.parseText(prev.getResponseDataAsString());
4658 assert res instanceof Map;
4659 assert res.topology_template.policies instanceof List;
4660 assert res.topology_template.policies.size == 1;
4661 assert res.topology_template.policies[0] instanceof Map;
4666 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create TCA Policy V7" enabled="true">
4667 <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
4668 <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
4669 <collectionProp name="Arguments.arguments">
4670 <elementProp name="" elementType="HTTPArgument">
4671 <boolProp name="HTTPArgument.always_encode">false</boolProp>
4672 <stringProp name="Argument.value">{
4673 "tosca_definitions_version": "tosca_simple_yaml_1_0_0",
4674 "topology_template": {
4675 "policies": [
4677 "onap.restart.tca": {
4678 "type": "onap.policies.monitoring.cdap.tca.hi.lo.app",
4679 "version": "7.0.0",
4680 "type_version": "2.0.0",
4681 "metadata": {
4682 "policy-id": "onap.restart.tca"
4684 "properties": {
4685 "tca_policy" : {
4686 "domain": "measurementsForVfScaling",
4687 "metricsPerEventName": [
4689 "eventName": "Measurement_vGMUX",
4690 "controlLoopSchemaType": "VNF",
4691 "policyScope": "DCAE",
4692 "policyName": "DCAE.Config_tca-hi-lo",
4693 "policyVersion": "v0.0.1",
4694 "thresholds": [
4696 "closedLoopControlName": "ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e",
4697 "version": "1.0.2",
4698 "fieldPath": "$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value",
4699 "thresholdValue": 0,
4700 "direction": "EQUAL",
4701 "severity": "MAJOR",
4702 "closedLoopEventStatus": "ABATED"
4705 "closedLoopControlName": "ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e",
4706 "version": "1.0.2",
4707 "fieldPath": "$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value",
4708 "thresholdValue": 0,
4709 "direction": "GREATER",
4710 "severity": "CRITICAL",
4711 "closedLoopEventStatus": "ONSET"
4723 <stringProp name="Argument.metadata">=</stringProp>
4727 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
4728 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
4729 <stringProp name="HTTPSampler.protocol">https</stringProp>
4730 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
4731 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/2.0.0/policies</stringProp>
4732 <stringProp name="HTTPSampler.method">POST</stringProp>
4733 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
4734 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
4735 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
4736 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
4737 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
4738 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
4739 <stringProp name="HTTPSampler.response_timeout"></stringProp>
4742 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
4743 <collectionProp name="Asserion.test_strings">
4744 <stringProp name="49586">200</stringProp>
4746 <stringProp name="Assertion.custom_message"></stringProp>
4747 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
4748 <boolProp name="Assertion.assume_success">false</boolProp>
4749 <intProp name="Assertion.test_type">1</intProp>
4750 </ResponseAssertion>
4752 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
4753 <stringProp name="scriptLanguage">groovy</stringProp>
4754 <stringProp name="parameters"></stringProp>
4755 <stringProp name="filename"></stringProp>
4756 <stringProp name="cacheKey">true</stringProp>
4757 <stringProp name="script">import groovy.json.JsonSlurper;
4760 if (prev.getResponseCode() == '200') {
4761 def jsonSlurper = new JsonSlurper();
4762 res = jsonSlurper.parseText(prev.getResponseDataAsString());
4764 assert res instanceof Map;
4765 assert res.topology_template.policies instanceof List;
4766 assert res.topology_template.policies.size == 1;
4767 assert res.topology_template.policies[0] instanceof Map;
4772 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create TCA Policy V8" enabled="true">
4773 <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
4774 <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
4775 <collectionProp name="Arguments.arguments">
4776 <elementProp name="" elementType="HTTPArgument">
4777 <boolProp name="HTTPArgument.always_encode">false</boolProp>
4778 <stringProp name="Argument.value">{
4779 "tosca_definitions_version": "tosca_simple_yaml_1_0_0",
4780 "topology_template": {
4781 "policies": [
4783 "onap.restart.tca": {
4784 "type": "onap.policies.monitoring.cdap.tca.hi.lo.app",
4785 "version": "8.0.0",
4786 "type_version": "2.0.0",
4787 "metadata": {
4788 "policy-id": "onap.restart.tca"
4790 "properties": {
4791 "tca_policy" : {
4792 "domain": "measurementsForVfScaling",
4793 "metricsPerEventName": [
4795 "eventName": "Measurement_vGMUX",
4796 "controlLoopSchemaType": "VNF",
4797 "policyScope": "DCAE",
4798 "policyName": "DCAE.Config_tca-hi-lo",
4799 "policyVersion": "v0.0.1",
4800 "thresholds": [
4802 "closedLoopControlName": "ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e",
4803 "version": "1.0.2",
4804 "fieldPath": "$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value",
4805 "thresholdValue": 0,
4806 "direction": "EQUAL",
4807 "severity": "MAJOR",
4808 "closedLoopEventStatus": "ABATED"
4811 "closedLoopControlName": "ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e",
4812 "version": "1.0.2",
4813 "fieldPath": "$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value",
4814 "thresholdValue": 0,
4815 "direction": "GREATER",
4816 "severity": "CRITICAL",
4817 "closedLoopEventStatus": "ONSET"
4829 <stringProp name="Argument.metadata">=</stringProp>
4833 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
4834 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
4835 <stringProp name="HTTPSampler.protocol">https</stringProp>
4836 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
4837 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/2.0.0/policies</stringProp>
4838 <stringProp name="HTTPSampler.method">POST</stringProp>
4839 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
4840 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
4841 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
4842 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
4843 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
4844 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
4845 <stringProp name="HTTPSampler.response_timeout"></stringProp>
4848 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
4849 <collectionProp name="Asserion.test_strings">
4850 <stringProp name="49586">200</stringProp>
4852 <stringProp name="Assertion.custom_message"></stringProp>
4853 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
4854 <boolProp name="Assertion.assume_success">false</boolProp>
4855 <intProp name="Assertion.test_type">1</intProp>
4856 </ResponseAssertion>
4858 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
4859 <stringProp name="scriptLanguage">groovy</stringProp>
4860 <stringProp name="parameters"></stringProp>
4861 <stringProp name="filename"></stringProp>
4862 <stringProp name="cacheKey">true</stringProp>
4863 <stringProp name="script">import groovy.json.JsonSlurper;
4866 if (prev.getResponseCode() == '200') {
4867 def jsonSlurper = new JsonSlurper();
4868 res = jsonSlurper.parseText(prev.getResponseDataAsString());
4870 assert res instanceof Map;
4871 assert res.topology_template.policies instanceof List;
4872 assert res.topology_template.policies.size == 1;
4873 assert res.topology_template.policies[0] instanceof Map;
4878 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create TCA Policy V9" enabled="true">
4879 <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
4880 <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
4881 <collectionProp name="Arguments.arguments">
4882 <elementProp name="" elementType="HTTPArgument">
4883 <boolProp name="HTTPArgument.always_encode">false</boolProp>
4884 <stringProp name="Argument.value">{
4885 "tosca_definitions_version": "tosca_simple_yaml_1_0_0",
4886 "topology_template": {
4887 "policies": [
4889 "onap.restart.tca": {
4890 "type": "onap.policies.monitoring.cdap.tca.hi.lo.app",
4891 "version": "9.0.0",
4892 "type_version": "2.0.0",
4893 "metadata": {
4894 "policy-id": "onap.restart.tca"
4896 "properties": {
4897 "tca_policy" : {
4898 "domain": "measurementsForVfScaling",
4899 "metricsPerEventName": [
4901 "eventName": "Measurement_vGMUX",
4902 "controlLoopSchemaType": "VNF",
4903 "policyScope": "DCAE",
4904 "policyName": "DCAE.Config_tca-hi-lo",
4905 "policyVersion": "v0.0.1",
4906 "thresholds": [
4908 "closedLoopControlName": "ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e",
4909 "version": "1.0.2",
4910 "fieldPath": "$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value",
4911 "thresholdValue": 0,
4912 "direction": "EQUAL",
4913 "severity": "MAJOR",
4914 "closedLoopEventStatus": "ABATED"
4917 "closedLoopControlName": "ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e",
4918 "version": "1.0.2",
4919 "fieldPath": "$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value",
4920 "thresholdValue": 0,
4921 "direction": "GREATER",
4922 "severity": "CRITICAL",
4923 "closedLoopEventStatus": "ONSET"
4935 <stringProp name="Argument.metadata">=</stringProp>
4939 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
4940 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
4941 <stringProp name="HTTPSampler.protocol">https</stringProp>
4942 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
4943 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/2.0.0/policies</stringProp>
4944 <stringProp name="HTTPSampler.method">POST</stringProp>
4945 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
4946 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
4947 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
4948 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
4949 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
4950 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
4951 <stringProp name="HTTPSampler.response_timeout"></stringProp>
4954 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
4955 <collectionProp name="Asserion.test_strings">
4956 <stringProp name="49586">200</stringProp>
4958 <stringProp name="Assertion.custom_message"></stringProp>
4959 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
4960 <boolProp name="Assertion.assume_success">false</boolProp>
4961 <intProp name="Assertion.test_type">1</intProp>
4962 </ResponseAssertion>
4964 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
4965 <stringProp name="scriptLanguage">groovy</stringProp>
4966 <stringProp name="parameters"></stringProp>
4967 <stringProp name="filename"></stringProp>
4968 <stringProp name="cacheKey">true</stringProp>
4969 <stringProp name="script">import groovy.json.JsonSlurper;
4972 if (prev.getResponseCode() == '200') {
4973 def jsonSlurper = new JsonSlurper();
4974 res = jsonSlurper.parseText(prev.getResponseDataAsString());
4976 assert res instanceof Map;
4977 assert res.topology_template.policies instanceof List;
4978 assert res.topology_template.policies.size == 1;
4979 assert res.topology_template.policies[0] instanceof Map;
4984 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create TCA Policy V10" enabled="true">
4985 <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
4986 <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
4987 <collectionProp name="Arguments.arguments">
4988 <elementProp name="" elementType="HTTPArgument">
4989 <boolProp name="HTTPArgument.always_encode">false</boolProp>
4990 <stringProp name="Argument.value">{
4991 "tosca_definitions_version": "tosca_simple_yaml_1_0_0",
4992 "topology_template": {
4993 "policies": [
4995 "onap.restart.tca": {
4996 "type": "onap.policies.monitoring.cdap.tca.hi.lo.app",
4997 "version": "10.0.0",
4998 "type_version": "2.0.0",
4999 "metadata": {
5000 "policy-id": "onap.restart.tca"
5002 "properties": {
5003 "tca_policy" : {
5004 "domain": "measurementsForVfScaling",
5005 "metricsPerEventName": [
5007 "eventName": "Measurement_vGMUX",
5008 "controlLoopSchemaType": "VNF",
5009 "policyScope": "DCAE",
5010 "policyName": "DCAE.Config_tca-hi-lo",
5011 "policyVersion": "v0.0.1",
5012 "thresholds": [
5014 "closedLoopControlName": "ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e",
5015 "version": "1.0.2",
5016 "fieldPath": "$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value",
5017 "thresholdValue": 0,
5018 "direction": "EQUAL",
5019 "severity": "MAJOR",
5020 "closedLoopEventStatus": "ABATED"
5023 "closedLoopControlName": "ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e",
5024 "version": "1.0.2",
5025 "fieldPath": "$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value",
5026 "thresholdValue": 0,
5027 "direction": "GREATER",
5028 "severity": "CRITICAL",
5029 "closedLoopEventStatus": "ONSET"
5041 <stringProp name="Argument.metadata">=</stringProp>
5045 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
5046 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
5047 <stringProp name="HTTPSampler.protocol">https</stringProp>
5048 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
5049 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/2.0.0/policies</stringProp>
5050 <stringProp name="HTTPSampler.method">POST</stringProp>
5051 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
5052 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
5053 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
5054 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
5055 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
5056 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
5057 <stringProp name="HTTPSampler.response_timeout"></stringProp>
5060 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
5061 <collectionProp name="Asserion.test_strings">
5062 <stringProp name="49586">200</stringProp>
5064 <stringProp name="Assertion.custom_message"></stringProp>
5065 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
5066 <boolProp name="Assertion.assume_success">false</boolProp>
5067 <intProp name="Assertion.test_type">1</intProp>
5068 </ResponseAssertion>
5070 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
5071 <stringProp name="scriptLanguage">groovy</stringProp>
5072 <stringProp name="parameters"></stringProp>
5073 <stringProp name="filename"></stringProp>
5074 <stringProp name="cacheKey">true</stringProp>
5075 <stringProp name="script">import groovy.json.JsonSlurper;
5078 if (prev.getResponseCode() == '200') {
5079 def jsonSlurper = new JsonSlurper();
5080 res = jsonSlurper.parseText(prev.getResponseDataAsString());
5082 assert res instanceof Map;
5083 assert res.topology_template.policies instanceof List;
5084 assert res.topology_template.policies.size == 1;
5085 assert res.topology_template.policies[0] instanceof Map;
5090 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create TCA Policy V11" enabled="true">
5091 <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
5092 <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
5093 <collectionProp name="Arguments.arguments">
5094 <elementProp name="" elementType="HTTPArgument">
5095 <boolProp name="HTTPArgument.always_encode">false</boolProp>
5096 <stringProp name="Argument.value">{
5097 "tosca_definitions_version": "tosca_simple_yaml_1_0_0",
5098 "topology_template": {
5099 "policies": [
5101 "onap.restart.tca": {
5102 "type": "onap.policies.monitoring.cdap.tca.hi.lo.app",
5103 "version": "11.0.0",
5104 "type_version": "2.0.0",
5105 "metadata": {
5106 "policy-id": "onap.restart.tca"
5108 "properties": {
5109 "tca_policy" : {
5110 "domain": "measurementsForVfScaling",
5111 "metricsPerEventName": [
5113 "eventName": "Measurement_vGMUX",
5114 "controlLoopSchemaType": "VNF",
5115 "policyScope": "DCAE",
5116 "policyName": "DCAE.Config_tca-hi-lo",
5117 "policyVersion": "v0.0.1",
5118 "thresholds": [
5120 "closedLoopControlName": "ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e",
5121 "version": "1.0.2",
5122 "fieldPath": "$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value",
5123 "thresholdValue": 0,
5124 "direction": "EQUAL",
5125 "severity": "MAJOR",
5126 "closedLoopEventStatus": "ABATED"
5129 "closedLoopControlName": "ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e",
5130 "version": "1.0.2",
5131 "fieldPath": "$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value",
5132 "thresholdValue": 0,
5133 "direction": "GREATER",
5134 "severity": "CRITICAL",
5135 "closedLoopEventStatus": "ONSET"
5147 <stringProp name="Argument.metadata">=</stringProp>
5151 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
5152 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
5153 <stringProp name="HTTPSampler.protocol">https</stringProp>
5154 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
5155 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/2.0.0/policies</stringProp>
5156 <stringProp name="HTTPSampler.method">POST</stringProp>
5157 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
5158 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
5159 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
5160 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
5161 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
5162 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
5163 <stringProp name="HTTPSampler.response_timeout"></stringProp>
5166 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
5167 <collectionProp name="Asserion.test_strings">
5168 <stringProp name="49586">200</stringProp>
5170 <stringProp name="Assertion.custom_message"></stringProp>
5171 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
5172 <boolProp name="Assertion.assume_success">false</boolProp>
5173 <intProp name="Assertion.test_type">1</intProp>
5174 </ResponseAssertion>
5176 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
5177 <stringProp name="scriptLanguage">groovy</stringProp>
5178 <stringProp name="parameters"></stringProp>
5179 <stringProp name="filename"></stringProp>
5180 <stringProp name="cacheKey">true</stringProp>
5181 <stringProp name="script">import groovy.json.JsonSlurper;
5184 if (prev.getResponseCode() == '200') {
5185 def jsonSlurper = new JsonSlurper();
5186 res = jsonSlurper.parseText(prev.getResponseDataAsString());
5188 assert res instanceof Map;
5189 assert res.topology_template.policies instanceof List;
5190 assert res.topology_template.policies.size == 1;
5191 assert res.topology_template.policies[0] instanceof Map;
5196 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Simple Create TCA Policies" enabled="true">
5197 <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
5198 <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
5199 <collectionProp name="Arguments.arguments">
5200 <elementProp name="" elementType="HTTPArgument">
5201 <boolProp name="HTTPArgument.always_encode">false</boolProp>
5202 <stringProp name="Argument.value">{
5203 "tosca_definitions_version": "tosca_simple_yaml_1_0_0",
5204 "topology_template": {
5205 "policies": [
5207 "onap.restart.tca": {
5208 "type": "onap.policies.monitoring.cdap.tca.hi.lo.app",
5209 "version": "1.0.0",
5210 "type_version": "2.0.0",
5211 "metadata": {
5212 "policy-id": "onap.restart.tca"
5214 "properties": {
5215 "tca_policy": {
5216 "domain": "measurementsForVfScaling",
5217 "metricsPerEventName": [
5219 "eventName": "Measurement_vGMUX",
5220 "controlLoopSchemaType": "VNF",
5221 "policyScope": "DCAE",
5222 "policyName": "DCAE.Config_tca-hi-lo",
5223 "policyVersion": "v0.0.1",
5224 "thresholds": [
5226 "closedLoopControlName": "ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e",
5227 "version": "1.0.2",
5228 "fieldPath": "$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value",
5229 "thresholdValue": 0,
5230 "direction": "EQUAL",
5231 "severity": "MAJOR",
5232 "closedLoopEventStatus": "ABATED"
5235 "closedLoopControlName": "ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e",
5236 "version": "1.0.2",
5237 "fieldPath": "$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value",
5238 "thresholdValue": 0,
5239 "direction": "GREATER",
5240 "severity": "CRITICAL",
5241 "closedLoopEventStatus": "ONSET"
5251 "onap.restart.tca": {
5252 "type": "onap.policies.monitoring.cdap.tca.hi.lo.app",
5253 "version": "2.0.0",
5254 "type_version": "2.0.0",
5255 "metadata": {
5256 "policy-id": "onap.restart.tca"
5258 "properties": {
5259 "tca_policy": {
5260 "domain": "measurementsForVfScaling",
5261 "metricsPerEventName": [
5263 "eventName": "Measurement_vGMUX",
5264 "controlLoopSchemaType": "VNF",
5265 "policyScope": "DCAE",
5266 "policyName": "DCAE.Config_tca-hi-lo",
5267 "policyVersion": "v0.0.1",
5268 "thresholds": [
5270 "closedLoopControlName": "ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e",
5271 "version": "1.0.2",
5272 "fieldPath": "$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value",
5273 "thresholdValue": 0,
5274 "direction": "EQUAL",
5275 "severity": "MAJOR",
5276 "closedLoopEventStatus": "ABATED"
5279 "closedLoopControlName": "ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e",
5280 "version": "1.0.2",
5281 "fieldPath": "$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value",
5282 "thresholdValue": 0,
5283 "direction": "GREATER",
5284 "severity": "CRITICAL",
5285 "closedLoopEventStatus": "ONSET"
5295 "onap.restart.tca": {
5296 "type": "onap.policies.monitoring.cdap.tca.hi.lo.app",
5297 "version": "3.0.0",
5298 "type_version": "2.0.0",
5299 "metadata": {
5300 "policy-id": "onap.restart.tca"
5302 "properties": {
5303 "tca_policy": {
5304 "domain": "measurementsForVfScaling",
5305 "metricsPerEventName": [
5307 "eventName": "Measurement_vGMUX",
5308 "controlLoopSchemaType": "VNF",
5309 "policyScope": "DCAE",
5310 "policyName": "DCAE.Config_tca-hi-lo",
5311 "policyVersion": "v0.0.1",
5312 "thresholds": [
5314 "closedLoopControlName": "ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e",
5315 "version": "1.0.2",
5316 "fieldPath": "$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value",
5317 "thresholdValue": 0,
5318 "direction": "EQUAL",
5319 "severity": "MAJOR",
5320 "closedLoopEventStatus": "ABATED"
5323 "closedLoopControlName": "ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e",
5324 "version": "1.0.2",
5325 "fieldPath": "$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value",
5326 "thresholdValue": 0,
5327 "direction": "GREATER",
5328 "severity": "CRITICAL",
5329 "closedLoopEventStatus": "ONSET"
5339 "onap.restart.tca": {
5340 "type": "onap.policies.monitoring.cdap.tca.hi.lo.app",
5341 "version": "4.0.0",
5342 "type_version": "2.0.0",
5343 "metadata": {
5344 "policy-id": "onap.restart.tca"
5346 "properties": {
5347 "tca_policy": {
5348 "domain": "measurementsForVfScaling",
5349 "metricsPerEventName": [
5351 "eventName": "Measurement_vGMUX",
5352 "controlLoopSchemaType": "VNF",
5353 "policyScope": "DCAE",
5354 "policyName": "DCAE.Config_tca-hi-lo",
5355 "policyVersion": "v0.0.1",
5356 "thresholds": [
5358 "closedLoopControlName": "ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e",
5359 "version": "1.0.2",
5360 "fieldPath": "$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value",
5361 "thresholdValue": 0,
5362 "direction": "EQUAL",
5363 "severity": "MAJOR",
5364 "closedLoopEventStatus": "ABATED"
5367 "closedLoopControlName": "ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e",
5368 "version": "1.0.2",
5369 "fieldPath": "$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value",
5370 "thresholdValue": 0,
5371 "direction": "GREATER",
5372 "severity": "CRITICAL",
5373 "closedLoopEventStatus": "ONSET"
5383 "onap.restart.tca": {
5384 "type": "onap.policies.monitoring.cdap.tca.hi.lo.app",
5385 "version": "5.0.0",
5386 "type_version": "2.0.0",
5387 "metadata": {
5388 "policy-id": "onap.restart.tca"
5390 "properties": {
5391 "tca_policy": {
5392 "domain": "measurementsForVfScaling",
5393 "metricsPerEventName": [
5395 "eventName": "Measurement_vGMUX",
5396 "controlLoopSchemaType": "VNF",
5397 "policyScope": "DCAE",
5398 "policyName": "DCAE.Config_tca-hi-lo",
5399 "policyVersion": "v0.0.1",
5400 "thresholds": [
5402 "closedLoopControlName": "ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e",
5403 "version": "1.0.2",
5404 "fieldPath": "$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value",
5405 "thresholdValue": 0,
5406 "direction": "EQUAL",
5407 "severity": "MAJOR",
5408 "closedLoopEventStatus": "ABATED"
5411 "closedLoopControlName": "ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e",
5412 "version": "1.0.2",
5413 "fieldPath": "$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value",
5414 "thresholdValue": 0,
5415 "direction": "GREATER",
5416 "severity": "CRITICAL",
5417 "closedLoopEventStatus": "ONSET"
5427 "onap.restart.tca": {
5428 "type": "onap.policies.monitoring.cdap.tca.hi.lo.app",
5429 "version": "6.0.0",
5430 "type_version": "2.0.0",
5431 "metadata": {
5432 "policy-id": "onap.restart.tca"
5434 "properties": {
5435 "tca_policy": {
5436 "domain": "measurementsForVfScaling",
5437 "metricsPerEventName": [
5439 "eventName": "Measurement_vGMUX",
5440 "controlLoopSchemaType": "VNF",
5441 "policyScope": "DCAE",
5442 "policyName": "DCAE.Config_tca-hi-lo",
5443 "policyVersion": "v0.0.1",
5444 "thresholds": [
5446 "closedLoopControlName": "ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e",
5447 "version": "1.0.2",
5448 "fieldPath": "$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value",
5449 "thresholdValue": 0,
5450 "direction": "EQUAL",
5451 "severity": "MAJOR",
5452 "closedLoopEventStatus": "ABATED"
5455 "closedLoopControlName": "ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e",
5456 "version": "1.0.2",
5457 "fieldPath": "$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value",
5458 "thresholdValue": 0,
5459 "direction": "GREATER",
5460 "severity": "CRITICAL",
5461 "closedLoopEventStatus": "ONSET"
5471 "onap.restart.tca": {
5472 "type": "onap.policies.monitoring.cdap.tca.hi.lo.app",
5473 "version": "7.0.0",
5474 "type_version": "2.0.0",
5475 "metadata": {
5476 "policy-id": "onap.restart.tca"
5478 "properties": {
5479 "tca_policy": {
5480 "domain": "measurementsForVfScaling",
5481 "metricsPerEventName": [
5483 "eventName": "Measurement_vGMUX",
5484 "controlLoopSchemaType": "VNF",
5485 "policyScope": "DCAE",
5486 "policyName": "DCAE.Config_tca-hi-lo",
5487 "policyVersion": "v0.0.1",
5488 "thresholds": [
5490 "closedLoopControlName": "ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e",
5491 "version": "1.0.2",
5492 "fieldPath": "$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value",
5493 "thresholdValue": 0,
5494 "direction": "EQUAL",
5495 "severity": "MAJOR",
5496 "closedLoopEventStatus": "ABATED"
5499 "closedLoopControlName": "ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e",
5500 "version": "1.0.2",
5501 "fieldPath": "$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value",
5502 "thresholdValue": 0,
5503 "direction": "GREATER",
5504 "severity": "CRITICAL",
5505 "closedLoopEventStatus": "ONSET"
5515 "onap.restart.tca": {
5516 "type": "onap.policies.monitoring.cdap.tca.hi.lo.app",
5517 "version": "8.0.0",
5518 "type_version": "2.0.0",
5519 "metadata": {
5520 "policy-id": "onap.restart.tca"
5522 "properties": {
5523 "tca_policy": {
5524 "domain": "measurementsForVfScaling",
5525 "metricsPerEventName": [
5527 "eventName": "Measurement_vGMUX",
5528 "controlLoopSchemaType": "VNF",
5529 "policyScope": "DCAE",
5530 "policyName": "DCAE.Config_tca-hi-lo",
5531 "policyVersion": "v0.0.1",
5532 "thresholds": [
5534 "closedLoopControlName": "ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e",
5535 "version": "1.0.2",
5536 "fieldPath": "$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value",
5537 "thresholdValue": 0,
5538 "direction": "EQUAL",
5539 "severity": "MAJOR",
5540 "closedLoopEventStatus": "ABATED"
5543 "closedLoopControlName": "ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e",
5544 "version": "1.0.2",
5545 "fieldPath": "$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value",
5546 "thresholdValue": 0,
5547 "direction": "GREATER",
5548 "severity": "CRITICAL",
5549 "closedLoopEventStatus": "ONSET"
5559 "onap.restart.tca": {
5560 "type": "onap.policies.monitoring.cdap.tca.hi.lo.app",
5561 "version": "9.0.0",
5562 "type_version": "2.0.0",
5563 "metadata": {
5564 "policy-id": "onap.restart.tca"
5566 "properties": {
5567 "tca_policy": {
5568 "domain": "measurementsForVfScaling",
5569 "metricsPerEventName": [
5571 "eventName": "Measurement_vGMUX",
5572 "controlLoopSchemaType": "VNF",
5573 "policyScope": "DCAE",
5574 "policyName": "DCAE.Config_tca-hi-lo",
5575 "policyVersion": "v0.0.1",
5576 "thresholds": [
5578 "closedLoopControlName": "ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e",
5579 "version": "1.0.2",
5580 "fieldPath": "$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value",
5581 "thresholdValue": 0,
5582 "direction": "EQUAL",
5583 "severity": "MAJOR",
5584 "closedLoopEventStatus": "ABATED"
5587 "closedLoopControlName": "ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e",
5588 "version": "1.0.2",
5589 "fieldPath": "$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value",
5590 "thresholdValue": 0,
5591 "direction": "GREATER",
5592 "severity": "CRITICAL",
5593 "closedLoopEventStatus": "ONSET"
5603 "onap.restart.tca": {
5604 "type": "onap.policies.monitoring.cdap.tca.hi.lo.app",
5605 "version": "10.0.0",
5606 "type_version": "2.0.0",
5607 "metadata": {
5608 "policy-id": "onap.restart.tca"
5610 "properties": {
5611 "tca_policy": {
5612 "domain": "measurementsForVfScaling",
5613 "metricsPerEventName": [
5615 "eventName": "Measurement_vGMUX",
5616 "controlLoopSchemaType": "VNF",
5617 "policyScope": "DCAE",
5618 "policyName": "DCAE.Config_tca-hi-lo",
5619 "policyVersion": "v0.0.1",
5620 "thresholds": [
5622 "closedLoopControlName": "ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e",
5623 "version": "1.0.2",
5624 "fieldPath": "$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value",
5625 "thresholdValue": 0,
5626 "direction": "EQUAL",
5627 "severity": "MAJOR",
5628 "closedLoopEventStatus": "ABATED"
5631 "closedLoopControlName": "ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e",
5632 "version": "1.0.2",
5633 "fieldPath": "$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value",
5634 "thresholdValue": 0,
5635 "direction": "GREATER",
5636 "severity": "CRITICAL",
5637 "closedLoopEventStatus": "ONSET"
5647 "onap.restart.tca": {
5648 "type": "onap.policies.monitoring.cdap.tca.hi.lo.app",
5649 "version": "11.0.0",
5650 "type_version": "2.0.0",
5651 "metadata": {
5652 "policy-id": "onap.restart.tca"
5654 "properties": {
5655 "tca_policy": {
5656 "domain": "measurementsForVfScaling",
5657 "metricsPerEventName": [
5659 "eventName": "Measurement_vGMUX",
5660 "controlLoopSchemaType": "VNF",
5661 "policyScope": "DCAE",
5662 "policyName": "DCAE.Config_tca-hi-lo",
5663 "policyVersion": "v0.0.1",
5664 "thresholds": [
5666 "closedLoopControlName": "ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e",
5667 "version": "1.0.2",
5668 "fieldPath": "$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value",
5669 "thresholdValue": 0,
5670 "direction": "EQUAL",
5671 "severity": "MAJOR",
5672 "closedLoopEventStatus": "ABATED"
5675 "closedLoopControlName": "ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e",
5676 "version": "1.0.2",
5677 "fieldPath": "$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value",
5678 "thresholdValue": 0,
5679 "direction": "GREATER",
5680 "severity": "CRITICAL",
5681 "closedLoopEventStatus": "ONSET"
5693 <stringProp name="Argument.metadata">=</stringProp>
5697 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
5698 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
5699 <stringProp name="HTTPSampler.protocol">https</stringProp>
5700 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
5701 <stringProp name="HTTPSampler.path">/policy/api/v1/policies</stringProp>
5702 <stringProp name="HTTPSampler.method">POST</stringProp>
5703 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
5704 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
5705 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
5706 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
5707 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
5708 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
5709 <stringProp name="HTTPSampler.response_timeout"></stringProp>
5712 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
5713 <collectionProp name="Asserion.test_strings">
5714 <stringProp name="49586">200</stringProp>
5716 <stringProp name="Assertion.custom_message"></stringProp>
5717 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
5718 <boolProp name="Assertion.assume_success">false</boolProp>
5719 <intProp name="Assertion.test_type">1</intProp>
5720 </ResponseAssertion>
5722 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
5723 <stringProp name="scriptLanguage">groovy</stringProp>
5724 <stringProp name="parameters"></stringProp>
5725 <stringProp name="filename"></stringProp>
5726 <stringProp name="cacheKey">true</stringProp>
5727 <stringProp name="script">import groovy.json.JsonSlurper;
5730 if (prev.getResponseCode() == '200') {
5731 def jsonSlurper = new JsonSlurper();
5732 res = jsonSlurper.parseText(prev.getResponseDataAsString());
5734 assert res instanceof Map;
5735 assert res.topology_template.policies instanceof List;
5736 assert res.topology_template.policies.size == 11;
5737 assert res.topology_template.policies[0] instanceof Map;
5742 <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="Constant Timer" enabled="true">
5743 <stringProp name="ConstantTimer.delay">10000</stringProp>
5746 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get All TCA Policies" enabled="true">
5747 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
5748 <collectionProp name="Arguments.arguments"/>
5750 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
5751 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
5752 <stringProp name="HTTPSampler.protocol">https</stringProp>
5753 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
5754 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/2.0.0/policies</stringProp>
5755 <stringProp name="HTTPSampler.method">GET</stringProp>
5756 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
5757 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
5758 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
5759 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
5760 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
5761 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
5762 <stringProp name="HTTPSampler.response_timeout"></stringProp>
5765 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
5766 <collectionProp name="Asserion.test_strings">
5767 <stringProp name="49586">200</stringProp>
5769 <stringProp name="Assertion.custom_message"></stringProp>
5770 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
5771 <boolProp name="Assertion.assume_success">false</boolProp>
5772 <intProp name="Assertion.test_type">1</intProp>
5773 </ResponseAssertion>
5775 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
5776 <stringProp name="scriptLanguage">groovy</stringProp>
5777 <stringProp name="parameters"></stringProp>
5778 <stringProp name="filename"></stringProp>
5779 <stringProp name="cacheKey">true</stringProp>
5780 <stringProp name="script">import groovy.json.JsonSlurper;
5783 if (prev.getResponseCode() == '200') {
5784 def jsonSlurper = new JsonSlurper();
5785 res = jsonSlurper.parseText(prev.getResponseDataAsString());
5787 assert res instanceof Map;
5788 assert res.topology_template.policies instanceof List;
5789 assert res.topology_template.policies.size == 11;
5792 for (i=0; i<n; i++) {
5793 assert res.topology_template.policies[i] instanceof Map;
5799 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get All Versions of TCA Policy" enabled="true">
5800 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
5801 <collectionProp name="Arguments.arguments"/>
5803 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
5804 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
5805 <stringProp name="HTTPSampler.protocol">https</stringProp>
5806 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
5807 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/2.0.0/policies</stringProp>
5808 <stringProp name="HTTPSampler.method">GET</stringProp>
5809 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
5810 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
5811 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
5812 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
5813 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
5814 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
5815 <stringProp name="HTTPSampler.response_timeout"></stringProp>
5818 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
5819 <collectionProp name="Asserion.test_strings">
5820 <stringProp name="49586">200</stringProp>
5822 <stringProp name="Assertion.custom_message"></stringProp>
5823 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
5824 <boolProp name="Assertion.assume_success">false</boolProp>
5825 <intProp name="Assertion.test_type">1</intProp>
5826 </ResponseAssertion>
5828 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
5829 <stringProp name="scriptLanguage">groovy</stringProp>
5830 <stringProp name="parameters"></stringProp>
5831 <stringProp name="filename"></stringProp>
5832 <stringProp name="cacheKey">true</stringProp>
5833 <stringProp name="script">import groovy.json.JsonSlurper;
5836 if (prev.getResponseCode() == '200') {
5837 def jsonSlurper = new JsonSlurper();
5838 res = jsonSlurper.parseText(prev.getResponseDataAsString());
5840 assert res instanceof Map;
5841 assert res.topology_template.policies instanceof List;
5842 assert res.topology_template.policies.size == 11;
5845 for (i=0; i<n; i++) {
5846 assert res.topology_template.policies[i] instanceof Map;
5852 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get TCA Policy V1" enabled="true">
5853 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
5854 <collectionProp name="Arguments.arguments"/>
5856 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
5857 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
5858 <stringProp name="HTTPSampler.protocol">https</stringProp>
5859 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
5860 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/2.0.0/policies/onap.restart.tca/versions/1.0.0</stringProp>
5861 <stringProp name="HTTPSampler.method">GET</stringProp>
5862 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
5863 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
5864 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
5865 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
5866 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
5867 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
5868 <stringProp name="HTTPSampler.response_timeout"></stringProp>
5871 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
5872 <collectionProp name="Asserion.test_strings">
5873 <stringProp name="49586">200</stringProp>
5875 <stringProp name="Assertion.custom_message"></stringProp>
5876 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
5877 <boolProp name="Assertion.assume_success">false</boolProp>
5878 <intProp name="Assertion.test_type">1</intProp>
5879 </ResponseAssertion>
5881 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
5882 <stringProp name="scriptLanguage">groovy</stringProp>
5883 <stringProp name="parameters"></stringProp>
5884 <stringProp name="filename"></stringProp>
5885 <stringProp name="cacheKey">true</stringProp>
5886 <stringProp name="script">import groovy.json.JsonSlurper;
5889 if (prev.getResponseCode() == '200') {
5890 def jsonSlurper = new JsonSlurper();
5891 res = jsonSlurper.parseText(prev.getResponseDataAsString());
5893 assert res instanceof Map;
5894 assert res.topology_template.policies instanceof List;
5895 assert res.topology_template.policies.size == 1;
5897 assert res.topology_template.policies[0] instanceof Map;
5898 assert res.topology_template.policies [0].get('onap.restart.tca').version == "1.0.0";
5903 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get TCA Policy V2" enabled="true">
5904 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
5905 <collectionProp name="Arguments.arguments"/>
5907 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
5908 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
5909 <stringProp name="HTTPSampler.protocol">https</stringProp>
5910 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
5911 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/2.0.0/policies/onap.restart.tca/versions/2.0.0</stringProp>
5912 <stringProp name="HTTPSampler.method">GET</stringProp>
5913 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
5914 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
5915 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
5916 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
5917 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
5918 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
5919 <stringProp name="HTTPSampler.response_timeout"></stringProp>
5922 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
5923 <collectionProp name="Asserion.test_strings">
5924 <stringProp name="49586">200</stringProp>
5926 <stringProp name="Assertion.custom_message"></stringProp>
5927 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
5928 <boolProp name="Assertion.assume_success">false</boolProp>
5929 <intProp name="Assertion.test_type">1</intProp>
5930 </ResponseAssertion>
5932 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
5933 <stringProp name="scriptLanguage">groovy</stringProp>
5934 <stringProp name="parameters"></stringProp>
5935 <stringProp name="filename"></stringProp>
5936 <stringProp name="cacheKey">true</stringProp>
5937 <stringProp name="script">import groovy.json.JsonSlurper;
5940 if (prev.getResponseCode() == '200') {
5941 def jsonSlurper = new JsonSlurper();
5942 res = jsonSlurper.parseText(prev.getResponseDataAsString());
5944 assert res instanceof Map;
5945 assert res.topology_template.policies instanceof List;
5946 assert res.topology_template.policies.size == 1;
5948 assert res.topology_template.policies[0] instanceof Map;
5949 assert res.topology_template.policies [0].get('onap.restart.tca').version == "2.0.0";
5954 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get TCA Policy V3" enabled="true">
5955 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
5956 <collectionProp name="Arguments.arguments"/>
5958 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
5959 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
5960 <stringProp name="HTTPSampler.protocol">https</stringProp>
5961 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
5962 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/2.0.0/policies/onap.restart.tca/versions/3.0.0</stringProp>
5963 <stringProp name="HTTPSampler.method">GET</stringProp>
5964 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
5965 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
5966 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
5967 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
5968 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
5969 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
5970 <stringProp name="HTTPSampler.response_timeout"></stringProp>
5973 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
5974 <collectionProp name="Asserion.test_strings">
5975 <stringProp name="49586">200</stringProp>
5977 <stringProp name="Assertion.custom_message"></stringProp>
5978 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
5979 <boolProp name="Assertion.assume_success">false</boolProp>
5980 <intProp name="Assertion.test_type">1</intProp>
5981 </ResponseAssertion>
5983 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
5984 <stringProp name="scriptLanguage">groovy</stringProp>
5985 <stringProp name="parameters"></stringProp>
5986 <stringProp name="filename"></stringProp>
5987 <stringProp name="cacheKey">true</stringProp>
5988 <stringProp name="script">import groovy.json.JsonSlurper;
5991 if (prev.getResponseCode() == '200') {
5992 def jsonSlurper = new JsonSlurper();
5993 res = jsonSlurper.parseText(prev.getResponseDataAsString());
5995 assert res instanceof Map;
5996 assert res.topology_template.policies instanceof List;
5997 assert res.topology_template.policies.size == 1;
5999 assert res.topology_template.policies[0] instanceof Map;
6000 assert res.topology_template.policies [0].get('onap.restart.tca').version == "3.0.0";
6005 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get TCA Policy V4" enabled="true">
6006 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
6007 <collectionProp name="Arguments.arguments"/>
6009 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
6010 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
6011 <stringProp name="HTTPSampler.protocol">https</stringProp>
6012 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
6013 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/2.0.0/policies/onap.restart.tca/versions/4.0.0</stringProp>
6014 <stringProp name="HTTPSampler.method">GET</stringProp>
6015 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
6016 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
6017 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
6018 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
6019 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
6020 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
6021 <stringProp name="HTTPSampler.response_timeout"></stringProp>
6024 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
6025 <collectionProp name="Asserion.test_strings">
6026 <stringProp name="49586">200</stringProp>
6028 <stringProp name="Assertion.custom_message"></stringProp>
6029 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
6030 <boolProp name="Assertion.assume_success">false</boolProp>
6031 <intProp name="Assertion.test_type">1</intProp>
6032 </ResponseAssertion>
6034 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
6035 <stringProp name="scriptLanguage">groovy</stringProp>
6036 <stringProp name="parameters"></stringProp>
6037 <stringProp name="filename"></stringProp>
6038 <stringProp name="cacheKey">true</stringProp>
6039 <stringProp name="script">import groovy.json.JsonSlurper;
6042 if (prev.getResponseCode() == '200') {
6043 def jsonSlurper = new JsonSlurper();
6044 res = jsonSlurper.parseText(prev.getResponseDataAsString());
6046 assert res instanceof Map;
6047 assert res.topology_template.policies instanceof List;
6048 assert res.topology_template.policies.size == 1;
6050 assert res.topology_template.policies[0] instanceof Map;
6051 assert res.topology_template.policies [0].get('onap.restart.tca').version == "4.0.0";
6056 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get TCA Policy V5" enabled="true">
6057 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
6058 <collectionProp name="Arguments.arguments"/>
6060 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
6061 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
6062 <stringProp name="HTTPSampler.protocol">https</stringProp>
6063 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
6064 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/2.0.0/policies/onap.restart.tca/versions/5.0.0</stringProp>
6065 <stringProp name="HTTPSampler.method">GET</stringProp>
6066 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
6067 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
6068 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
6069 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
6070 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
6071 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
6072 <stringProp name="HTTPSampler.response_timeout"></stringProp>
6075 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
6076 <collectionProp name="Asserion.test_strings">
6077 <stringProp name="49586">200</stringProp>
6079 <stringProp name="Assertion.custom_message"></stringProp>
6080 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
6081 <boolProp name="Assertion.assume_success">false</boolProp>
6082 <intProp name="Assertion.test_type">1</intProp>
6083 </ResponseAssertion>
6085 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
6086 <stringProp name="scriptLanguage">groovy</stringProp>
6087 <stringProp name="parameters"></stringProp>
6088 <stringProp name="filename"></stringProp>
6089 <stringProp name="cacheKey">true</stringProp>
6090 <stringProp name="script">import groovy.json.JsonSlurper;
6093 if (prev.getResponseCode() == '200') {
6094 def jsonSlurper = new JsonSlurper();
6095 res = jsonSlurper.parseText(prev.getResponseDataAsString());
6097 assert res instanceof Map;
6098 assert res.topology_template.policies instanceof List;
6099 assert res.topology_template.policies.size == 1;
6101 assert res.topology_template.policies[0] instanceof Map;
6102 assert res.topology_template.policies [0].get('onap.restart.tca').version == "5.0.0";
6107 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get TCA Policy V6" enabled="true">
6108 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
6109 <collectionProp name="Arguments.arguments"/>
6111 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
6112 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
6113 <stringProp name="HTTPSampler.protocol">https</stringProp>
6114 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
6115 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/2.0.0/policies/onap.restart.tca/versions/6.0.0</stringProp>
6116 <stringProp name="HTTPSampler.method">GET</stringProp>
6117 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
6118 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
6119 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
6120 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
6121 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
6122 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
6123 <stringProp name="HTTPSampler.response_timeout"></stringProp>
6126 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
6127 <collectionProp name="Asserion.test_strings">
6128 <stringProp name="49586">200</stringProp>
6130 <stringProp name="Assertion.custom_message"></stringProp>
6131 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
6132 <boolProp name="Assertion.assume_success">false</boolProp>
6133 <intProp name="Assertion.test_type">1</intProp>
6134 </ResponseAssertion>
6136 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
6137 <stringProp name="scriptLanguage">groovy</stringProp>
6138 <stringProp name="parameters"></stringProp>
6139 <stringProp name="filename"></stringProp>
6140 <stringProp name="cacheKey">true</stringProp>
6141 <stringProp name="script">import groovy.json.JsonSlurper;
6144 if (prev.getResponseCode() == '200') {
6145 def jsonSlurper = new JsonSlurper();
6146 res = jsonSlurper.parseText(prev.getResponseDataAsString());
6148 assert res instanceof Map;
6149 assert res.topology_template.policies instanceof List;
6150 assert res.topology_template.policies.size == 1;
6152 assert res.topology_template.policies[0] instanceof Map;
6153 assert res.topology_template.policies [0].get('onap.restart.tca').version == "6.0.0";
6158 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get TCA Policy V7" enabled="true">
6159 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
6160 <collectionProp name="Arguments.arguments"/>
6162 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
6163 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
6164 <stringProp name="HTTPSampler.protocol">https</stringProp>
6165 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
6166 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/2.0.0/policies/onap.restart.tca/versions/7.0.0</stringProp>
6167 <stringProp name="HTTPSampler.method">GET</stringProp>
6168 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
6169 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
6170 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
6171 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
6172 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
6173 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
6174 <stringProp name="HTTPSampler.response_timeout"></stringProp>
6177 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
6178 <collectionProp name="Asserion.test_strings">
6179 <stringProp name="49586">200</stringProp>
6181 <stringProp name="Assertion.custom_message"></stringProp>
6182 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
6183 <boolProp name="Assertion.assume_success">false</boolProp>
6184 <intProp name="Assertion.test_type">1</intProp>
6185 </ResponseAssertion>
6187 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
6188 <stringProp name="scriptLanguage">groovy</stringProp>
6189 <stringProp name="parameters"></stringProp>
6190 <stringProp name="filename"></stringProp>
6191 <stringProp name="cacheKey">true</stringProp>
6192 <stringProp name="script">import groovy.json.JsonSlurper;
6195 if (prev.getResponseCode() == '200') {
6196 def jsonSlurper = new JsonSlurper();
6197 res = jsonSlurper.parseText(prev.getResponseDataAsString());
6199 assert res instanceof Map;
6200 assert res.topology_template.policies instanceof List;
6201 assert res.topology_template.policies.size == 1;
6203 assert res.topology_template.policies[0] instanceof Map;
6204 assert res.topology_template.policies [0].get('onap.restart.tca').version == "7.0.0";
6209 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get TCA Policy V8" enabled="true">
6210 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
6211 <collectionProp name="Arguments.arguments"/>
6213 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
6214 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
6215 <stringProp name="HTTPSampler.protocol">https</stringProp>
6216 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
6217 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/2.0.0/policies/onap.restart.tca/versions/8.0.0</stringProp>
6218 <stringProp name="HTTPSampler.method">GET</stringProp>
6219 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
6220 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
6221 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
6222 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
6223 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
6224 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
6225 <stringProp name="HTTPSampler.response_timeout"></stringProp>
6228 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
6229 <collectionProp name="Asserion.test_strings">
6230 <stringProp name="49586">200</stringProp>
6232 <stringProp name="Assertion.custom_message"></stringProp>
6233 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
6234 <boolProp name="Assertion.assume_success">false</boolProp>
6235 <intProp name="Assertion.test_type">1</intProp>
6236 </ResponseAssertion>
6238 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
6239 <stringProp name="scriptLanguage">groovy</stringProp>
6240 <stringProp name="parameters"></stringProp>
6241 <stringProp name="filename"></stringProp>
6242 <stringProp name="cacheKey">true</stringProp>
6243 <stringProp name="script">import groovy.json.JsonSlurper;
6246 if (prev.getResponseCode() == '200') {
6247 def jsonSlurper = new JsonSlurper();
6248 res = jsonSlurper.parseText(prev.getResponseDataAsString());
6250 assert res instanceof Map;
6251 assert res.topology_template.policies instanceof List;
6252 assert res.topology_template.policies.size == 1;
6254 assert res.topology_template.policies[0] instanceof Map;
6255 assert res.topology_template.policies [0].get('onap.restart.tca').version == "8.0.0";
6260 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get TCA Policy V9" enabled="true">
6261 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
6262 <collectionProp name="Arguments.arguments"/>
6264 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
6265 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
6266 <stringProp name="HTTPSampler.protocol">https</stringProp>
6267 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
6268 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/2.0.0/policies/onap.restart.tca/versions/9.0.0</stringProp>
6269 <stringProp name="HTTPSampler.method">GET</stringProp>
6270 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
6271 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
6272 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
6273 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
6274 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
6275 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
6276 <stringProp name="HTTPSampler.response_timeout"></stringProp>
6279 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
6280 <collectionProp name="Asserion.test_strings">
6281 <stringProp name="49586">200</stringProp>
6283 <stringProp name="Assertion.custom_message"></stringProp>
6284 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
6285 <boolProp name="Assertion.assume_success">false</boolProp>
6286 <intProp name="Assertion.test_type">1</intProp>
6287 </ResponseAssertion>
6289 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
6290 <stringProp name="scriptLanguage">groovy</stringProp>
6291 <stringProp name="parameters"></stringProp>
6292 <stringProp name="filename"></stringProp>
6293 <stringProp name="cacheKey">true</stringProp>
6294 <stringProp name="script">import groovy.json.JsonSlurper;
6297 if (prev.getResponseCode() == '200') {
6298 def jsonSlurper = new JsonSlurper();
6299 res = jsonSlurper.parseText(prev.getResponseDataAsString());
6301 assert res instanceof Map;
6302 assert res.topology_template.policies instanceof List;
6303 assert res.topology_template.policies.size == 1;
6305 assert res.topology_template.policies[0] instanceof Map;
6306 assert res.topology_template.policies [0].get('onap.restart.tca').version == "9.0.0";
6311 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get TCA Policy V10" enabled="true">
6312 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
6313 <collectionProp name="Arguments.arguments"/>
6315 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
6316 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
6317 <stringProp name="HTTPSampler.protocol">https</stringProp>
6318 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
6319 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/2.0.0/policies/onap.restart.tca/versions/10.0.0</stringProp>
6320 <stringProp name="HTTPSampler.method">GET</stringProp>
6321 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
6322 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
6323 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
6324 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
6325 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
6326 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
6327 <stringProp name="HTTPSampler.response_timeout"></stringProp>
6330 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
6331 <collectionProp name="Asserion.test_strings">
6332 <stringProp name="49586">200</stringProp>
6334 <stringProp name="Assertion.custom_message"></stringProp>
6335 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
6336 <boolProp name="Assertion.assume_success">false</boolProp>
6337 <intProp name="Assertion.test_type">1</intProp>
6338 </ResponseAssertion>
6340 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
6341 <stringProp name="scriptLanguage">groovy</stringProp>
6342 <stringProp name="parameters"></stringProp>
6343 <stringProp name="filename"></stringProp>
6344 <stringProp name="cacheKey">true</stringProp>
6345 <stringProp name="script">import groovy.json.JsonSlurper;
6348 if (prev.getResponseCode() == '200') {
6349 def jsonSlurper = new JsonSlurper();
6350 res = jsonSlurper.parseText(prev.getResponseDataAsString());
6352 assert res instanceof Map;
6353 assert res.topology_template.policies instanceof List;
6354 assert res.topology_template.policies.size == 1;
6356 assert res.topology_template.policies[0] instanceof Map;
6357 assert res.topology_template.policies [0].get('onap.restart.tca').version == "10.0.0";
6362 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get TCA Policy V11" enabled="true">
6363 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
6364 <collectionProp name="Arguments.arguments"/>
6366 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
6367 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
6368 <stringProp name="HTTPSampler.protocol">https</stringProp>
6369 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
6370 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/2.0.0/policies/onap.restart.tca/versions/11.0.0</stringProp>
6371 <stringProp name="HTTPSampler.method">GET</stringProp>
6372 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
6373 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
6374 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
6375 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
6376 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
6377 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
6378 <stringProp name="HTTPSampler.response_timeout"></stringProp>
6381 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
6382 <collectionProp name="Asserion.test_strings">
6383 <stringProp name="49586">200</stringProp>
6385 <stringProp name="Assertion.custom_message"></stringProp>
6386 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
6387 <boolProp name="Assertion.assume_success">false</boolProp>
6388 <intProp name="Assertion.test_type">1</intProp>
6389 </ResponseAssertion>
6391 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
6392 <stringProp name="scriptLanguage">groovy</stringProp>
6393 <stringProp name="parameters"></stringProp>
6394 <stringProp name="filename"></stringProp>
6395 <stringProp name="cacheKey">true</stringProp>
6396 <stringProp name="script">import groovy.json.JsonSlurper;
6399 if (prev.getResponseCode() == '200') {
6400 def jsonSlurper = new JsonSlurper();
6401 res = jsonSlurper.parseText(prev.getResponseDataAsString());
6403 assert res instanceof Map;
6404 assert res.topology_template.policies instanceof List;
6405 assert res.topology_template.policies.size == 1;
6407 assert res.topology_template.policies[0] instanceof Map;
6408 assert res.topology_template.policies [0].get('onap.restart.tca').version == "11.0.0";
6413 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get latest TCA Policy" enabled="true">
6414 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
6415 <collectionProp name="Arguments.arguments"/>
6417 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
6418 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
6419 <stringProp name="HTTPSampler.protocol">https</stringProp>
6420 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
6421 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/2.0.0/policies/onap.restart.tca/versions/latest</stringProp>
6422 <stringProp name="HTTPSampler.method">GET</stringProp>
6423 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
6424 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
6425 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
6426 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
6427 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
6428 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
6429 <stringProp name="HTTPSampler.response_timeout"></stringProp>
6432 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
6433 <collectionProp name="Asserion.test_strings">
6434 <stringProp name="49586">200</stringProp>
6436 <stringProp name="Assertion.custom_message"></stringProp>
6437 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
6438 <boolProp name="Assertion.assume_success">false</boolProp>
6439 <intProp name="Assertion.test_type">1</intProp>
6440 </ResponseAssertion>
6442 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
6443 <stringProp name="scriptLanguage">groovy</stringProp>
6444 <stringProp name="parameters"></stringProp>
6445 <stringProp name="filename"></stringProp>
6446 <stringProp name="cacheKey">true</stringProp>
6447 <stringProp name="script">import groovy.json.JsonSlurper;
6450 if (prev.getResponseCode() == '200') {
6451 def jsonSlurper = new JsonSlurper();
6452 res = jsonSlurper.parseText(prev.getResponseDataAsString());
6454 assert res instanceof Map;
6455 assert res.topology_template.policies instanceof List;
6456 assert res.topology_template.policies.size == 1;
6458 assert res.topology_template.policies[0] instanceof Map;
6459 assert res.topology_template.policies [0].get('onap.restart.tca').version == "11.0.0";
6464 <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="Constant Timer" enabled="true">
6465 <stringProp name="ConstantTimer.delay">10000</stringProp>
6468 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create Guard Policy V1" enabled="true">
6469 <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
6470 <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
6471 <collectionProp name="Arguments.arguments">
6472 <elementProp name="" elementType="HTTPArgument">
6473 <boolProp name="HTTPArgument.always_encode">false</boolProp>
6474 <stringProp name="Argument.value">{
6475 "policy-id" : "guard.frequency.scaleout",
6476 "policy-version" : "1",
6477 "content" : {
6478 "actor": "SO",
6479 "recipe": "scaleOut",
6480 "targets": ".*",
6481 "clname": "ControlLoop-vDNS-6f37f56d-a87d-4b85-b6a9-cc953cf779b3",
6482 "limit": "1",
6483 "timeWindow": "10",
6484 "timeUnits": "minute",
6485 "guardActiveStart": "00:00:01-05:00",
6486 "guardActiveEnd": "23:59:59-05:00"
6489 <stringProp name="Argument.metadata">=</stringProp>
6493 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
6494 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
6495 <stringProp name="HTTPSampler.protocol">https</stringProp>
6496 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
6497 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.controlloop.Guard/versions/1.0.0/policies</stringProp>
6498 <stringProp name="HTTPSampler.method">POST</stringProp>
6499 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
6500 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
6501 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
6502 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
6503 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
6504 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
6505 <stringProp name="HTTPSampler.response_timeout"></stringProp>
6508 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
6509 <collectionProp name="Asserion.test_strings">
6510 <stringProp name="49586">200</stringProp>
6512 <stringProp name="Assertion.custom_message"></stringProp>
6513 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
6514 <boolProp name="Assertion.assume_success">false</boolProp>
6515 <intProp name="Assertion.test_type">1</intProp>
6516 </ResponseAssertion>
6518 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
6519 <stringProp name="scriptLanguage">groovy</stringProp>
6520 <stringProp name="parameters"></stringProp>
6521 <stringProp name="filename"></stringProp>
6522 <stringProp name="cacheKey">true</stringProp>
6523 <stringProp name="script">import groovy.json.JsonSlurper;
6526 if (prev.getResponseCode() == '200') {
6527 def jsonSlurper = new JsonSlurper();
6528 res = jsonSlurper.parseText(prev.getResponseDataAsString());
6530 assert res instanceof Map;
6531 assert res.get('guard.frequency.scaleout').version == "1.0.0";
6536 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create Guard Policy V5" enabled="true">
6537 <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
6538 <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
6539 <collectionProp name="Arguments.arguments">
6540 <elementProp name="" elementType="HTTPArgument">
6541 <boolProp name="HTTPArgument.always_encode">false</boolProp>
6542 <stringProp name="Argument.value">{
6543 "policy-id" : "guard.frequency.scaleout",
6544 "policy-version" : "5",
6545 "content" : {
6546 "actor": "SO",
6547 "recipe": "scaleOut",
6548 "targets": ".*",
6549 "clname": "ControlLoop-vDNS-6f37f56d-a87d-4b85-b6a9-cc953cf779b3",
6550 "limit": "1",
6551 "timeWindow": "10",
6552 "timeUnits": "minute",
6553 "guardActiveStart": "00:00:01-05:00",
6554 "guardActiveEnd": "23:59:59-05:00"
6557 <stringProp name="Argument.metadata">=</stringProp>
6561 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
6562 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
6563 <stringProp name="HTTPSampler.protocol">https</stringProp>
6564 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
6565 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.controlloop.Guard/versions/1.0.0/policies</stringProp>
6566 <stringProp name="HTTPSampler.method">POST</stringProp>
6567 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
6568 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
6569 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
6570 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
6571 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
6572 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
6573 <stringProp name="HTTPSampler.response_timeout"></stringProp>
6576 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
6577 <collectionProp name="Asserion.test_strings">
6578 <stringProp name="49586">200</stringProp>
6580 <stringProp name="Assertion.custom_message"></stringProp>
6581 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
6582 <boolProp name="Assertion.assume_success">false</boolProp>
6583 <intProp name="Assertion.test_type">1</intProp>
6584 </ResponseAssertion>
6586 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
6587 <stringProp name="scriptLanguage">groovy</stringProp>
6588 <stringProp name="parameters"></stringProp>
6589 <stringProp name="filename"></stringProp>
6590 <stringProp name="cacheKey">true</stringProp>
6591 <stringProp name="script">import groovy.json.JsonSlurper;
6594 if (prev.getResponseCode() == '200') {
6595 def jsonSlurper = new JsonSlurper();
6596 res = jsonSlurper.parseText(prev.getResponseDataAsString());
6598 assert res instanceof Map;
6599 assert res.get('guard.frequency.scaleout').version == "5.0.0";
6604 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create Guard Policy V9" enabled="true">
6605 <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
6606 <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
6607 <collectionProp name="Arguments.arguments">
6608 <elementProp name="" elementType="HTTPArgument">
6609 <boolProp name="HTTPArgument.always_encode">false</boolProp>
6610 <stringProp name="Argument.value">{
6611 "policy-id" : "guard.frequency.scaleout",
6612 "policy-version" : "9",
6613 "content" : {
6614 "actor": "SO",
6615 "recipe": "scaleOut",
6616 "targets": ".*",
6617 "clname": "ControlLoop-vDNS-6f37f56d-a87d-4b85-b6a9-cc953cf779b3",
6618 "limit": "1",
6619 "timeWindow": "10",
6620 "timeUnits": "minute",
6621 "guardActiveStart": "00:00:01-05:00",
6622 "guardActiveEnd": "23:59:59-05:00"
6625 <stringProp name="Argument.metadata">=</stringProp>
6629 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
6630 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
6631 <stringProp name="HTTPSampler.protocol">https</stringProp>
6632 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
6633 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.controlloop.Guard/versions/1.0.0/policies</stringProp>
6634 <stringProp name="HTTPSampler.method">POST</stringProp>
6635 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
6636 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
6637 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
6638 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
6639 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
6640 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
6641 <stringProp name="HTTPSampler.response_timeout"></stringProp>
6644 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
6645 <collectionProp name="Asserion.test_strings">
6646 <stringProp name="49586">200</stringProp>
6648 <stringProp name="Assertion.custom_message"></stringProp>
6649 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
6650 <boolProp name="Assertion.assume_success">false</boolProp>
6651 <intProp name="Assertion.test_type">1</intProp>
6652 </ResponseAssertion>
6654 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
6655 <stringProp name="scriptLanguage">groovy</stringProp>
6656 <stringProp name="parameters"></stringProp>
6657 <stringProp name="filename"></stringProp>
6658 <stringProp name="cacheKey">true</stringProp>
6659 <stringProp name="script">import groovy.json.JsonSlurper;
6662 if (prev.getResponseCode() == '200') {
6663 def jsonSlurper = new JsonSlurper();
6664 res = jsonSlurper.parseText(prev.getResponseDataAsString());
6666 assert res instanceof Map;
6667 assert res.get('guard.frequency.scaleout').version == "9.0.0";
6672 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create Guard Policy V12" enabled="true">
6673 <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
6674 <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
6675 <collectionProp name="Arguments.arguments">
6676 <elementProp name="" elementType="HTTPArgument">
6677 <boolProp name="HTTPArgument.always_encode">false</boolProp>
6678 <stringProp name="Argument.value">{
6679 "policy-id" : "guard.frequency.scaleout",
6680 "policy-version" : "12",
6681 "content" : {
6682 "actor": "SO",
6683 "recipe": "scaleOut",
6684 "targets": ".*",
6685 "clname": "ControlLoop-vDNS-6f37f56d-a87d-4b85-b6a9-cc953cf779b3",
6686 "limit": "1",
6687 "timeWindow": "10",
6688 "timeUnits": "minute",
6689 "guardActiveStart": "00:00:01-05:00",
6690 "guardActiveEnd": "23:59:59-05:00"
6693 <stringProp name="Argument.metadata">=</stringProp>
6697 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
6698 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
6699 <stringProp name="HTTPSampler.protocol">https</stringProp>
6700 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
6701 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.controlloop.Guard/versions/1.0.0/policies</stringProp>
6702 <stringProp name="HTTPSampler.method">POST</stringProp>
6703 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
6704 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
6705 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
6706 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
6707 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
6708 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
6709 <stringProp name="HTTPSampler.response_timeout"></stringProp>
6712 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
6713 <collectionProp name="Asserion.test_strings">
6714 <stringProp name="49586">200</stringProp>
6716 <stringProp name="Assertion.custom_message"></stringProp>
6717 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
6718 <boolProp name="Assertion.assume_success">false</boolProp>
6719 <intProp name="Assertion.test_type">1</intProp>
6720 </ResponseAssertion>
6722 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
6723 <stringProp name="scriptLanguage">groovy</stringProp>
6724 <stringProp name="parameters"></stringProp>
6725 <stringProp name="filename"></stringProp>
6726 <stringProp name="cacheKey">true</stringProp>
6727 <stringProp name="script">import groovy.json.JsonSlurper;
6730 if (prev.getResponseCode() == '200') {
6731 def jsonSlurper = new JsonSlurper();
6732 res = jsonSlurper.parseText(prev.getResponseDataAsString());
6734 assert res instanceof Map;
6735 assert res.get('guard.frequency.scaleout').version == "12.0.0";
6740 <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="Constant Timer" enabled="true">
6741 <stringProp name="ConstantTimer.delay">10000</stringProp>
6744 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get Guard Policy V1" enabled="true">
6745 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
6746 <collectionProp name="Arguments.arguments"/>
6748 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
6749 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
6750 <stringProp name="HTTPSampler.protocol">https</stringProp>
6751 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
6752 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.controlloop.Guard/versions/1.0.0/policies/guard.frequency.scaleout/versions/1</stringProp>
6753 <stringProp name="HTTPSampler.method">GET</stringProp>
6754 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
6755 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
6756 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
6757 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
6758 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
6759 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
6760 <stringProp name="HTTPSampler.response_timeout"></stringProp>
6763 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
6764 <collectionProp name="Asserion.test_strings">
6765 <stringProp name="49586">200</stringProp>
6767 <stringProp name="Assertion.custom_message"></stringProp>
6768 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
6769 <boolProp name="Assertion.assume_success">false</boolProp>
6770 <intProp name="Assertion.test_type">1</intProp>
6771 </ResponseAssertion>
6773 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
6774 <stringProp name="scriptLanguage">groovy</stringProp>
6775 <stringProp name="parameters"></stringProp>
6776 <stringProp name="filename"></stringProp>
6777 <stringProp name="cacheKey">true</stringProp>
6778 <stringProp name="script">import groovy.json.JsonSlurper;
6781 if (prev.getResponseCode() == '200') {
6782 def jsonSlurper = new JsonSlurper();
6783 res = jsonSlurper.parseText(prev.getResponseDataAsString());
6785 assert res instanceof Map;
6786 assert res.get('guard.frequency.scaleout').version == "1.0.0";
6791 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get Guard Policy V5" enabled="true">
6792 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
6793 <collectionProp name="Arguments.arguments"/>
6795 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
6796 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
6797 <stringProp name="HTTPSampler.protocol">https</stringProp>
6798 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
6799 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.controlloop.Guard/versions/1.0.0/policies/guard.frequency.scaleout/versions/5</stringProp>
6800 <stringProp name="HTTPSampler.method">GET</stringProp>
6801 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
6802 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
6803 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
6804 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
6805 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
6806 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
6807 <stringProp name="HTTPSampler.response_timeout"></stringProp>
6810 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
6811 <collectionProp name="Asserion.test_strings">
6812 <stringProp name="49586">200</stringProp>
6814 <stringProp name="Assertion.custom_message"></stringProp>
6815 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
6816 <boolProp name="Assertion.assume_success">false</boolProp>
6817 <intProp name="Assertion.test_type">1</intProp>
6818 </ResponseAssertion>
6820 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
6821 <stringProp name="scriptLanguage">groovy</stringProp>
6822 <stringProp name="parameters"></stringProp>
6823 <stringProp name="filename"></stringProp>
6824 <stringProp name="cacheKey">true</stringProp>
6825 <stringProp name="script">import groovy.json.JsonSlurper;
6828 if (prev.getResponseCode() == '200') {
6829 def jsonSlurper = new JsonSlurper();
6830 res = jsonSlurper.parseText(prev.getResponseDataAsString());
6832 assert res instanceof Map;
6833 assert res.get('guard.frequency.scaleout').version == "5.0.0";
6838 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get Guard Policy V9" enabled="true">
6839 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
6840 <collectionProp name="Arguments.arguments"/>
6842 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
6843 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
6844 <stringProp name="HTTPSampler.protocol">https</stringProp>
6845 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
6846 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.controlloop.Guard/versions/1.0.0/policies/guard.frequency.scaleout/versions/9</stringProp>
6847 <stringProp name="HTTPSampler.method">GET</stringProp>
6848 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
6849 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
6850 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
6851 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
6852 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
6853 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
6854 <stringProp name="HTTPSampler.response_timeout"></stringProp>
6857 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
6858 <collectionProp name="Asserion.test_strings">
6859 <stringProp name="49586">200</stringProp>
6861 <stringProp name="Assertion.custom_message"></stringProp>
6862 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
6863 <boolProp name="Assertion.assume_success">false</boolProp>
6864 <intProp name="Assertion.test_type">1</intProp>
6865 </ResponseAssertion>
6867 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
6868 <stringProp name="scriptLanguage">groovy</stringProp>
6869 <stringProp name="parameters"></stringProp>
6870 <stringProp name="filename"></stringProp>
6871 <stringProp name="cacheKey">true</stringProp>
6872 <stringProp name="script">import groovy.json.JsonSlurper;
6875 if (prev.getResponseCode() == '200') {
6876 def jsonSlurper = new JsonSlurper();
6877 res = jsonSlurper.parseText(prev.getResponseDataAsString());
6879 assert res instanceof Map;
6880 assert res.get('guard.frequency.scaleout').version == "9.0.0";
6885 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get Guard Policy V12" enabled="true">
6886 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
6887 <collectionProp name="Arguments.arguments"/>
6889 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
6890 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
6891 <stringProp name="HTTPSampler.protocol">https</stringProp>
6892 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
6893 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.controlloop.Guard/versions/1.0.0/policies/guard.frequency.scaleout/versions/12</stringProp>
6894 <stringProp name="HTTPSampler.method">GET</stringProp>
6895 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
6896 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
6897 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
6898 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
6899 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
6900 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
6901 <stringProp name="HTTPSampler.response_timeout"></stringProp>
6904 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
6905 <collectionProp name="Asserion.test_strings">
6906 <stringProp name="49586">200</stringProp>
6908 <stringProp name="Assertion.custom_message"></stringProp>
6909 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
6910 <boolProp name="Assertion.assume_success">false</boolProp>
6911 <intProp name="Assertion.test_type">1</intProp>
6912 </ResponseAssertion>
6914 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
6915 <stringProp name="scriptLanguage">groovy</stringProp>
6916 <stringProp name="parameters"></stringProp>
6917 <stringProp name="filename"></stringProp>
6918 <stringProp name="cacheKey">true</stringProp>
6919 <stringProp name="script">import groovy.json.JsonSlurper;
6922 if (prev.getResponseCode() == '200') {
6923 def jsonSlurper = new JsonSlurper();
6924 res = jsonSlurper.parseText(prev.getResponseDataAsString());
6926 assert res instanceof Map;
6927 assert res.get('guard.frequency.scaleout').version == "12.0.0";
6932 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get Latest Guard Policy" enabled="true">
6933 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
6934 <collectionProp name="Arguments.arguments"/>
6936 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
6937 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
6938 <stringProp name="HTTPSampler.protocol">https</stringProp>
6939 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
6940 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.controlloop.Guard/versions/1.0.0/policies/guard.frequency.scaleout/versions/latest</stringProp>
6941 <stringProp name="HTTPSampler.method">GET</stringProp>
6942 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
6943 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
6944 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
6945 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
6946 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
6947 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
6948 <stringProp name="HTTPSampler.response_timeout"></stringProp>
6951 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
6952 <collectionProp name="Asserion.test_strings">
6953 <stringProp name="49586">200</stringProp>
6955 <stringProp name="Assertion.custom_message"></stringProp>
6956 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
6957 <boolProp name="Assertion.assume_success">false</boolProp>
6958 <intProp name="Assertion.test_type">1</intProp>
6959 </ResponseAssertion>
6961 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
6962 <stringProp name="scriptLanguage">groovy</stringProp>
6963 <stringProp name="parameters"></stringProp>
6964 <stringProp name="filename"></stringProp>
6965 <stringProp name="cacheKey">true</stringProp>
6966 <stringProp name="script">import groovy.json.JsonSlurper;
6969 if (prev.getResponseCode() == '200') {
6970 def jsonSlurper = new JsonSlurper();
6971 res = jsonSlurper.parseText(prev.getResponseDataAsString());
6973 assert res instanceof Map;
6974 assert res.get('guard.frequency.scaleout').version == "12.0.0";
6979 <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="Constant Timer" enabled="true">
6980 <stringProp name="ConstantTimer.delay">10000</stringProp>
6984 <PostThreadGroup guiclass="PostThreadGroupGui" testclass="PostThreadGroup" testname="tearDown Thread Group" enabled="true">
6985 <stringProp name="ThreadGroup.on_sample_error">stoptest</stringProp>
6986 <elementProp name="ThreadGroup.main_controller" elementType="LoopController" guiclass="LoopControlPanel" testclass="LoopController" testname="Loop Controller" enabled="true">
6987 <boolProp name="LoopController.continue_forever">false</boolProp>
6988 <stringProp name="LoopController.loops">1</stringProp>
6990 <stringProp name="ThreadGroup.num_threads">1</stringProp>
6991 <stringProp name="ThreadGroup.ramp_time">1</stringProp>
6992 <boolProp name="ThreadGroup.scheduler">false</boolProp>
6993 <stringProp name="ThreadGroup.duration"></stringProp>
6994 <stringProp name="ThreadGroup.delay"></stringProp>
6997 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete TCA Policy Type V2" enabled="true">
6998 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
6999 <collectionProp name="Arguments.arguments"/>
7001 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
7002 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
7003 <stringProp name="HTTPSampler.protocol">https</stringProp>
7004 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
7005 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/2.0.0</stringProp>
7006 <stringProp name="HTTPSampler.method">DELETE</stringProp>
7007 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
7008 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
7009 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
7010 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
7011 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
7012 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
7013 <stringProp name="HTTPSampler.response_timeout"></stringProp>
7016 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
7017 <collectionProp name="Asserion.test_strings">
7018 <stringProp name="51517">409</stringProp>
7020 <stringProp name="Assertion.custom_message"></stringProp>
7021 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
7022 <boolProp name="Assertion.assume_success">false</boolProp>
7023 <intProp name="Assertion.test_type">1</intProp>
7024 </ResponseAssertion>
7026 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
7027 <stringProp name="scriptLanguage">groovy</stringProp>
7028 <stringProp name="parameters"></stringProp>
7029 <stringProp name="filename"></stringProp>
7030 <stringProp name="cacheKey">true</stringProp>
7031 <stringProp name="script">import groovy.json.JsonSlurper;
7034 if (prev.getResponseCode() == '409') {
7035 def jsonSlurper = new JsonSlurper();
7036 res = jsonSlurper.parseText(prev.getResponseDataAsString());
7038 assert res instanceof Map;
7039 assert res.code == "CONFLICT";
7044 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete TCA Policy Type V3" enabled="true">
7045 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
7046 <collectionProp name="Arguments.arguments"/>
7048 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
7049 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
7050 <stringProp name="HTTPSampler.protocol">https</stringProp>
7051 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
7052 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/3.0.0</stringProp>
7053 <stringProp name="HTTPSampler.method">DELETE</stringProp>
7054 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
7055 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
7056 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
7057 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
7058 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
7059 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
7060 <stringProp name="HTTPSampler.response_timeout"></stringProp>
7063 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
7064 <collectionProp name="Asserion.test_strings">
7065 <stringProp name="49586">200</stringProp>
7067 <stringProp name="Assertion.custom_message"></stringProp>
7068 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
7069 <boolProp name="Assertion.assume_success">false</boolProp>
7070 <intProp name="Assertion.test_type">1</intProp>
7071 </ResponseAssertion>
7073 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
7074 <stringProp name="scriptLanguage">groovy</stringProp>
7075 <stringProp name="parameters"></stringProp>
7076 <stringProp name="filename"></stringProp>
7077 <stringProp name="cacheKey">true</stringProp>
7078 <stringProp name="script">import groovy.json.JsonSlurper;
7081 if (prev.getResponseCode() == '200') {
7082 def jsonSlurper = new JsonSlurper();
7083 res = jsonSlurper.parseText(prev.getResponseDataAsString());
7085 assert res instanceof Map;
7086 assert res.policy_types instanceof List;
7087 assert res.policy_types.size == 1;
7088 assert res.policy_types[0] instanceof Map;
7089 assert res.policy_types[0].get('onap.policies.monitoring.cdap.tca.hi.lo.app').version == "3.0.0";
7094 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete TCA Policy Type V4" enabled="true">
7095 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
7096 <collectionProp name="Arguments.arguments"/>
7098 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
7099 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
7100 <stringProp name="HTTPSampler.protocol">https</stringProp>
7101 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
7102 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/4.0.0</stringProp>
7103 <stringProp name="HTTPSampler.method">DELETE</stringProp>
7104 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
7105 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
7106 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
7107 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
7108 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
7109 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
7110 <stringProp name="HTTPSampler.response_timeout"></stringProp>
7113 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
7114 <collectionProp name="Asserion.test_strings">
7115 <stringProp name="49586">200</stringProp>
7117 <stringProp name="Assertion.custom_message"></stringProp>
7118 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
7119 <boolProp name="Assertion.assume_success">false</boolProp>
7120 <intProp name="Assertion.test_type">1</intProp>
7121 </ResponseAssertion>
7123 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
7124 <stringProp name="scriptLanguage">groovy</stringProp>
7125 <stringProp name="parameters"></stringProp>
7126 <stringProp name="filename"></stringProp>
7127 <stringProp name="cacheKey">true</stringProp>
7128 <stringProp name="script">import groovy.json.JsonSlurper;
7131 if (prev.getResponseCode() == '200') {
7132 def jsonSlurper = new JsonSlurper();
7133 res = jsonSlurper.parseText(prev.getResponseDataAsString());
7135 assert res instanceof Map;
7136 assert res.policy_types instanceof List;
7137 assert res.policy_types.size == 1;
7138 assert res.policy_types[0] instanceof Map;
7139 assert res.policy_types[0].get('onap.policies.monitoring.cdap.tca.hi.lo.app').version == "4.0.0";
7144 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete TCA Policy Type V5" enabled="true">
7145 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
7146 <collectionProp name="Arguments.arguments"/>
7148 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
7149 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
7150 <stringProp name="HTTPSampler.protocol">https</stringProp>
7151 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
7152 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/5.0.0</stringProp>
7153 <stringProp name="HTTPSampler.method">DELETE</stringProp>
7154 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
7155 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
7156 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
7157 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
7158 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
7159 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
7160 <stringProp name="HTTPSampler.response_timeout"></stringProp>
7163 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
7164 <collectionProp name="Asserion.test_strings">
7165 <stringProp name="49586">200</stringProp>
7167 <stringProp name="Assertion.custom_message"></stringProp>
7168 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
7169 <boolProp name="Assertion.assume_success">false</boolProp>
7170 <intProp name="Assertion.test_type">1</intProp>
7171 </ResponseAssertion>
7173 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
7174 <stringProp name="scriptLanguage">groovy</stringProp>
7175 <stringProp name="parameters"></stringProp>
7176 <stringProp name="filename"></stringProp>
7177 <stringProp name="cacheKey">true</stringProp>
7178 <stringProp name="script">import groovy.json.JsonSlurper;
7181 if (prev.getResponseCode() == '200') {
7182 def jsonSlurper = new JsonSlurper();
7183 res = jsonSlurper.parseText(prev.getResponseDataAsString());
7185 assert res instanceof Map;
7186 assert res.policy_types instanceof List;
7187 assert res.policy_types.size == 1;
7188 assert res.policy_types[0] instanceof Map;
7189 assert res.policy_types[0].get('onap.policies.monitoring.cdap.tca.hi.lo.app').version == "5.0.0";
7194 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete TCA Policy Type V6" enabled="true">
7195 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
7196 <collectionProp name="Arguments.arguments"/>
7198 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
7199 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
7200 <stringProp name="HTTPSampler.protocol">https</stringProp>
7201 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
7202 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/6.0.0</stringProp>
7203 <stringProp name="HTTPSampler.method">DELETE</stringProp>
7204 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
7205 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
7206 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
7207 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
7208 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
7209 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
7210 <stringProp name="HTTPSampler.response_timeout"></stringProp>
7213 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
7214 <collectionProp name="Asserion.test_strings">
7215 <stringProp name="49586">200</stringProp>
7217 <stringProp name="Assertion.custom_message"></stringProp>
7218 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
7219 <boolProp name="Assertion.assume_success">false</boolProp>
7220 <intProp name="Assertion.test_type">1</intProp>
7221 </ResponseAssertion>
7223 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
7224 <stringProp name="scriptLanguage">groovy</stringProp>
7225 <stringProp name="parameters"></stringProp>
7226 <stringProp name="filename"></stringProp>
7227 <stringProp name="cacheKey">true</stringProp>
7228 <stringProp name="script">import groovy.json.JsonSlurper;
7231 if (prev.getResponseCode() == '200') {
7232 def jsonSlurper = new JsonSlurper();
7233 res = jsonSlurper.parseText(prev.getResponseDataAsString());
7235 assert res instanceof Map;
7236 assert res.policy_types instanceof List;
7237 assert res.policy_types.size == 1;
7238 assert res.policy_types[0] instanceof Map;
7239 assert res.policy_types[0].get('onap.policies.monitoring.cdap.tca.hi.lo.app').version == "6.0.0";
7244 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete TCA Policy Type V7" enabled="true">
7245 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
7246 <collectionProp name="Arguments.arguments"/>
7248 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
7249 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
7250 <stringProp name="HTTPSampler.protocol">https</stringProp>
7251 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
7252 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/7.0.0</stringProp>
7253 <stringProp name="HTTPSampler.method">DELETE</stringProp>
7254 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
7255 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
7256 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
7257 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
7258 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
7259 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
7260 <stringProp name="HTTPSampler.response_timeout"></stringProp>
7263 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
7264 <collectionProp name="Asserion.test_strings">
7265 <stringProp name="49586">200</stringProp>
7267 <stringProp name="Assertion.custom_message"></stringProp>
7268 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
7269 <boolProp name="Assertion.assume_success">false</boolProp>
7270 <intProp name="Assertion.test_type">1</intProp>
7271 </ResponseAssertion>
7273 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
7274 <stringProp name="scriptLanguage">groovy</stringProp>
7275 <stringProp name="parameters"></stringProp>
7276 <stringProp name="filename"></stringProp>
7277 <stringProp name="cacheKey">true</stringProp>
7278 <stringProp name="script">import groovy.json.JsonSlurper;
7281 if (prev.getResponseCode() == '200') {
7282 def jsonSlurper = new JsonSlurper();
7283 res = jsonSlurper.parseText(prev.getResponseDataAsString());
7285 assert res instanceof Map;
7286 assert res.policy_types instanceof List;
7287 assert res.policy_types.size == 1;
7288 assert res.policy_types[0] instanceof Map;
7289 assert res.policy_types[0].get('onap.policies.monitoring.cdap.tca.hi.lo.app').version == "7.0.0";
7294 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete TCA Policy Type V8" enabled="true">
7295 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
7296 <collectionProp name="Arguments.arguments"/>
7298 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
7299 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
7300 <stringProp name="HTTPSampler.protocol">https</stringProp>
7301 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
7302 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/8.0.0</stringProp>
7303 <stringProp name="HTTPSampler.method">DELETE</stringProp>
7304 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
7305 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
7306 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
7307 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
7308 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
7309 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
7310 <stringProp name="HTTPSampler.response_timeout"></stringProp>
7313 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
7314 <collectionProp name="Asserion.test_strings">
7315 <stringProp name="49586">200</stringProp>
7317 <stringProp name="Assertion.custom_message"></stringProp>
7318 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
7319 <boolProp name="Assertion.assume_success">false</boolProp>
7320 <intProp name="Assertion.test_type">1</intProp>
7321 </ResponseAssertion>
7323 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
7324 <stringProp name="scriptLanguage">groovy</stringProp>
7325 <stringProp name="parameters"></stringProp>
7326 <stringProp name="filename"></stringProp>
7327 <stringProp name="cacheKey">true</stringProp>
7328 <stringProp name="script">import groovy.json.JsonSlurper;
7331 if (prev.getResponseCode() == '200') {
7332 def jsonSlurper = new JsonSlurper();
7333 res = jsonSlurper.parseText(prev.getResponseDataAsString());
7335 assert res instanceof Map;
7336 assert res.policy_types instanceof List;
7337 assert res.policy_types.size == 1;
7338 assert res.policy_types[0] instanceof Map;
7339 assert res.policy_types[0].get('onap.policies.monitoring.cdap.tca.hi.lo.app').version == "8.0.0";
7344 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete TCA Policy Type V9" enabled="true">
7345 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
7346 <collectionProp name="Arguments.arguments"/>
7348 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
7349 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
7350 <stringProp name="HTTPSampler.protocol">https</stringProp>
7351 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
7352 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/9.0.0</stringProp>
7353 <stringProp name="HTTPSampler.method">DELETE</stringProp>
7354 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
7355 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
7356 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
7357 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
7358 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
7359 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
7360 <stringProp name="HTTPSampler.response_timeout"></stringProp>
7363 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
7364 <collectionProp name="Asserion.test_strings">
7365 <stringProp name="49586">200</stringProp>
7367 <stringProp name="Assertion.custom_message"></stringProp>
7368 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
7369 <boolProp name="Assertion.assume_success">false</boolProp>
7370 <intProp name="Assertion.test_type">1</intProp>
7371 </ResponseAssertion>
7373 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
7374 <stringProp name="scriptLanguage">groovy</stringProp>
7375 <stringProp name="parameters"></stringProp>
7376 <stringProp name="filename"></stringProp>
7377 <stringProp name="cacheKey">true</stringProp>
7378 <stringProp name="script">import groovy.json.JsonSlurper;
7381 if (prev.getResponseCode() == '200') {
7382 def jsonSlurper = new JsonSlurper();
7383 res = jsonSlurper.parseText(prev.getResponseDataAsString());
7385 assert res instanceof Map;
7386 assert res.policy_types instanceof List;
7387 assert res.policy_types.size == 1;
7388 assert res.policy_types[0] instanceof Map;
7389 assert res.policy_types[0].get('onap.policies.monitoring.cdap.tca.hi.lo.app').version == "9.0.0";
7394 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete TCA Policy Type V10" enabled="true">
7395 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
7396 <collectionProp name="Arguments.arguments"/>
7398 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
7399 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
7400 <stringProp name="HTTPSampler.protocol">https</stringProp>
7401 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
7402 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/10.0.0</stringProp>
7403 <stringProp name="HTTPSampler.method">DELETE</stringProp>
7404 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
7405 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
7406 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
7407 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
7408 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
7409 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
7410 <stringProp name="HTTPSampler.response_timeout"></stringProp>
7413 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
7414 <collectionProp name="Asserion.test_strings">
7415 <stringProp name="49586">200</stringProp>
7417 <stringProp name="Assertion.custom_message"></stringProp>
7418 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
7419 <boolProp name="Assertion.assume_success">false</boolProp>
7420 <intProp name="Assertion.test_type">1</intProp>
7421 </ResponseAssertion>
7423 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
7424 <stringProp name="scriptLanguage">groovy</stringProp>
7425 <stringProp name="parameters"></stringProp>
7426 <stringProp name="filename"></stringProp>
7427 <stringProp name="cacheKey">true</stringProp>
7428 <stringProp name="script">import groovy.json.JsonSlurper;
7431 if (prev.getResponseCode() == '200') {
7432 def jsonSlurper = new JsonSlurper();
7433 res = jsonSlurper.parseText(prev.getResponseDataAsString());
7435 assert res instanceof Map;
7436 assert res.policy_types instanceof List;
7437 assert res.policy_types.size == 1;
7438 assert res.policy_types[0] instanceof Map;
7439 assert res.policy_types[0].get('onap.policies.monitoring.cdap.tca.hi.lo.app').version == "10.0.0";
7444 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete TCA Policy Type V11" enabled="true">
7445 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
7446 <collectionProp name="Arguments.arguments"/>
7448 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
7449 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
7450 <stringProp name="HTTPSampler.protocol">https</stringProp>
7451 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
7452 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/11.0.0</stringProp>
7453 <stringProp name="HTTPSampler.method">DELETE</stringProp>
7454 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
7455 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
7456 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
7457 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
7458 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
7459 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
7460 <stringProp name="HTTPSampler.response_timeout"></stringProp>
7463 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
7464 <collectionProp name="Asserion.test_strings">
7465 <stringProp name="49586">200</stringProp>
7467 <stringProp name="Assertion.custom_message"></stringProp>
7468 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
7469 <boolProp name="Assertion.assume_success">false</boolProp>
7470 <intProp name="Assertion.test_type">1</intProp>
7471 </ResponseAssertion>
7473 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
7474 <stringProp name="scriptLanguage">groovy</stringProp>
7475 <stringProp name="parameters"></stringProp>
7476 <stringProp name="filename"></stringProp>
7477 <stringProp name="cacheKey">true</stringProp>
7478 <stringProp name="script">import groovy.json.JsonSlurper;
7481 if (prev.getResponseCode() == '200') {
7482 def jsonSlurper = new JsonSlurper();
7483 res = jsonSlurper.parseText(prev.getResponseDataAsString());
7485 assert res instanceof Map;
7486 assert res.policy_types instanceof List;
7487 assert res.policy_types.size == 1;
7488 assert res.policy_types[0] instanceof Map;
7489 assert res.policy_types[0].get('onap.policies.monitoring.cdap.tca.hi.lo.app').version == "11.0.0";
7494 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete TCA Policy V1" enabled="true">
7495 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
7496 <collectionProp name="Arguments.arguments"/>
7498 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
7499 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
7500 <stringProp name="HTTPSampler.protocol">https</stringProp>
7501 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
7502 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/2.0.0/policies/onap.restart.tca/versions/1.0.0</stringProp>
7503 <stringProp name="HTTPSampler.method">DELETE</stringProp>
7504 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
7505 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
7506 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
7507 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
7508 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
7509 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
7510 <stringProp name="HTTPSampler.response_timeout"></stringProp>
7513 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
7514 <collectionProp name="Asserion.test_strings">
7515 <stringProp name="49586">200</stringProp>
7517 <stringProp name="Assertion.custom_message"></stringProp>
7518 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
7519 <boolProp name="Assertion.assume_success">false</boolProp>
7520 <intProp name="Assertion.test_type">1</intProp>
7521 </ResponseAssertion>
7523 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
7524 <stringProp name="scriptLanguage">groovy</stringProp>
7525 <stringProp name="parameters"></stringProp>
7526 <stringProp name="filename"></stringProp>
7527 <stringProp name="cacheKey">true</stringProp>
7528 <stringProp name="script">import groovy.json.JsonSlurper;
7531 if (prev.getResponseCode() == '200') {
7532 def jsonSlurper = new JsonSlurper();
7533 res = jsonSlurper.parseText(prev.getResponseDataAsString());
7535 assert res instanceof Map;
7536 assert res.topology_template.policies instanceof List;
7537 assert res.topology_template.policies.size == 1;
7538 assert res.topology_template.policies[0] instanceof Map;
7539 assert res.topology_template.policies[0].get('onap.restart.tca').version == "1.0.0";
7544 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete TCA Policy V2" enabled="true">
7545 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
7546 <collectionProp name="Arguments.arguments"/>
7548 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
7549 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
7550 <stringProp name="HTTPSampler.protocol">https</stringProp>
7551 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
7552 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/2.0.0/policies/onap.restart.tca/versions/2.0.0</stringProp>
7553 <stringProp name="HTTPSampler.method">DELETE</stringProp>
7554 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
7555 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
7556 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
7557 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
7558 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
7559 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
7560 <stringProp name="HTTPSampler.response_timeout"></stringProp>
7563 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
7564 <collectionProp name="Asserion.test_strings">
7565 <stringProp name="49586">200</stringProp>
7567 <stringProp name="Assertion.custom_message"></stringProp>
7568 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
7569 <boolProp name="Assertion.assume_success">false</boolProp>
7570 <intProp name="Assertion.test_type">1</intProp>
7571 </ResponseAssertion>
7573 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
7574 <stringProp name="scriptLanguage">groovy</stringProp>
7575 <stringProp name="parameters"></stringProp>
7576 <stringProp name="filename"></stringProp>
7577 <stringProp name="cacheKey">true</stringProp>
7578 <stringProp name="script">import groovy.json.JsonSlurper;
7581 if (prev.getResponseCode() == '200') {
7582 def jsonSlurper = new JsonSlurper();
7583 res = jsonSlurper.parseText(prev.getResponseDataAsString());
7585 assert res instanceof Map;
7586 assert res.topology_template.policies instanceof List;
7587 assert res.topology_template.policies.size == 1;
7588 assert res.topology_template.policies[0] instanceof Map;
7589 assert res.topology_template.policies[0].get('onap.restart.tca').version == "2.0.0";
7594 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete TCA Policy V3" enabled="true">
7595 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
7596 <collectionProp name="Arguments.arguments"/>
7598 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
7599 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
7600 <stringProp name="HTTPSampler.protocol">https</stringProp>
7601 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
7602 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/2.0.0/policies/onap.restart.tca/versions/3.0.0</stringProp>
7603 <stringProp name="HTTPSampler.method">DELETE</stringProp>
7604 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
7605 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
7606 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
7607 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
7608 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
7609 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
7610 <stringProp name="HTTPSampler.response_timeout"></stringProp>
7613 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
7614 <collectionProp name="Asserion.test_strings">
7615 <stringProp name="49586">200</stringProp>
7617 <stringProp name="Assertion.custom_message"></stringProp>
7618 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
7619 <boolProp name="Assertion.assume_success">false</boolProp>
7620 <intProp name="Assertion.test_type">1</intProp>
7621 </ResponseAssertion>
7623 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
7624 <stringProp name="scriptLanguage">groovy</stringProp>
7625 <stringProp name="parameters"></stringProp>
7626 <stringProp name="filename"></stringProp>
7627 <stringProp name="cacheKey">true</stringProp>
7628 <stringProp name="script">import groovy.json.JsonSlurper;
7631 if (prev.getResponseCode() == '200') {
7632 def jsonSlurper = new JsonSlurper();
7633 res = jsonSlurper.parseText(prev.getResponseDataAsString());
7635 assert res instanceof Map;
7636 assert res.topology_template.policies instanceof List;
7637 assert res.topology_template.policies.size == 1;
7638 assert res.topology_template.policies[0] instanceof Map;
7639 assert res.topology_template.policies[0].get('onap.restart.tca').version == "3.0.0";
7644 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete TCA Policy V4" enabled="true">
7645 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
7646 <collectionProp name="Arguments.arguments"/>
7648 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
7649 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
7650 <stringProp name="HTTPSampler.protocol">https</stringProp>
7651 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
7652 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/2.0.0/policies/onap.restart.tca/versions/4.0.0</stringProp>
7653 <stringProp name="HTTPSampler.method">DELETE</stringProp>
7654 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
7655 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
7656 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
7657 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
7658 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
7659 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
7660 <stringProp name="HTTPSampler.response_timeout"></stringProp>
7663 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
7664 <collectionProp name="Asserion.test_strings">
7665 <stringProp name="49586">200</stringProp>
7667 <stringProp name="Assertion.custom_message"></stringProp>
7668 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
7669 <boolProp name="Assertion.assume_success">false</boolProp>
7670 <intProp name="Assertion.test_type">1</intProp>
7671 </ResponseAssertion>
7673 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
7674 <stringProp name="scriptLanguage">groovy</stringProp>
7675 <stringProp name="parameters"></stringProp>
7676 <stringProp name="filename"></stringProp>
7677 <stringProp name="cacheKey">true</stringProp>
7678 <stringProp name="script">import groovy.json.JsonSlurper;
7681 if (prev.getResponseCode() == '200') {
7682 def jsonSlurper = new JsonSlurper();
7683 res = jsonSlurper.parseText(prev.getResponseDataAsString());
7685 assert res instanceof Map;
7686 assert res.topology_template.policies instanceof List;
7687 assert res.topology_template.policies.size == 1;
7688 assert res.topology_template.policies[0] instanceof Map;
7689 assert res.topology_template.policies[0].get('onap.restart.tca').version == "4.0.0";
7694 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete TCA Policy V5" enabled="true">
7695 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
7696 <collectionProp name="Arguments.arguments"/>
7698 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
7699 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
7700 <stringProp name="HTTPSampler.protocol">https</stringProp>
7701 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
7702 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/2.0.0/policies/onap.restart.tca/versions/5.0.0</stringProp>
7703 <stringProp name="HTTPSampler.method">DELETE</stringProp>
7704 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
7705 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
7706 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
7707 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
7708 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
7709 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
7710 <stringProp name="HTTPSampler.response_timeout"></stringProp>
7713 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
7714 <collectionProp name="Asserion.test_strings">
7715 <stringProp name="49586">200</stringProp>
7717 <stringProp name="Assertion.custom_message"></stringProp>
7718 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
7719 <boolProp name="Assertion.assume_success">false</boolProp>
7720 <intProp name="Assertion.test_type">1</intProp>
7721 </ResponseAssertion>
7723 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
7724 <stringProp name="scriptLanguage">groovy</stringProp>
7725 <stringProp name="parameters"></stringProp>
7726 <stringProp name="filename"></stringProp>
7727 <stringProp name="cacheKey">true</stringProp>
7728 <stringProp name="script">import groovy.json.JsonSlurper;
7731 if (prev.getResponseCode() == '200') {
7732 def jsonSlurper = new JsonSlurper();
7733 res = jsonSlurper.parseText(prev.getResponseDataAsString());
7735 assert res instanceof Map;
7736 assert res.topology_template.policies instanceof List;
7737 assert res.topology_template.policies.size == 1;
7738 assert res.topology_template.policies[0] instanceof Map;
7739 assert res.topology_template.policies[0].get('onap.restart.tca').version == "5.0.0";
7744 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete TCA Policy V6" enabled="true">
7745 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
7746 <collectionProp name="Arguments.arguments"/>
7748 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
7749 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
7750 <stringProp name="HTTPSampler.protocol">https</stringProp>
7751 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
7752 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/2.0.0/policies/onap.restart.tca/versions/6.0.0</stringProp>
7753 <stringProp name="HTTPSampler.method">DELETE</stringProp>
7754 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
7755 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
7756 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
7757 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
7758 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
7759 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
7760 <stringProp name="HTTPSampler.response_timeout"></stringProp>
7763 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
7764 <collectionProp name="Asserion.test_strings">
7765 <stringProp name="49586">200</stringProp>
7767 <stringProp name="Assertion.custom_message"></stringProp>
7768 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
7769 <boolProp name="Assertion.assume_success">false</boolProp>
7770 <intProp name="Assertion.test_type">1</intProp>
7771 </ResponseAssertion>
7773 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
7774 <stringProp name="scriptLanguage">groovy</stringProp>
7775 <stringProp name="parameters"></stringProp>
7776 <stringProp name="filename"></stringProp>
7777 <stringProp name="cacheKey">true</stringProp>
7778 <stringProp name="script">import groovy.json.JsonSlurper;
7781 if (prev.getResponseCode() == '200') {
7782 def jsonSlurper = new JsonSlurper();
7783 res = jsonSlurper.parseText(prev.getResponseDataAsString());
7785 assert res instanceof Map;
7786 assert res.topology_template.policies instanceof List;
7787 assert res.topology_template.policies.size == 1;
7788 assert res.topology_template.policies[0] instanceof Map;
7789 assert res.topology_template.policies[0].get('onap.restart.tca').version == "6.0.0";
7794 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete TCA Policy V7" enabled="true">
7795 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
7796 <collectionProp name="Arguments.arguments"/>
7798 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
7799 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
7800 <stringProp name="HTTPSampler.protocol">https</stringProp>
7801 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
7802 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/2.0.0/policies/onap.restart.tca/versions/7.0.0</stringProp>
7803 <stringProp name="HTTPSampler.method">DELETE</stringProp>
7804 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
7805 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
7806 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
7807 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
7808 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
7809 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
7810 <stringProp name="HTTPSampler.response_timeout"></stringProp>
7813 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
7814 <collectionProp name="Asserion.test_strings">
7815 <stringProp name="49586">200</stringProp>
7817 <stringProp name="Assertion.custom_message"></stringProp>
7818 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
7819 <boolProp name="Assertion.assume_success">false</boolProp>
7820 <intProp name="Assertion.test_type">1</intProp>
7821 </ResponseAssertion>
7823 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
7824 <stringProp name="scriptLanguage">groovy</stringProp>
7825 <stringProp name="parameters"></stringProp>
7826 <stringProp name="filename"></stringProp>
7827 <stringProp name="cacheKey">true</stringProp>
7828 <stringProp name="script">import groovy.json.JsonSlurper;
7831 if (prev.getResponseCode() == '200') {
7832 def jsonSlurper = new JsonSlurper();
7833 res = jsonSlurper.parseText(prev.getResponseDataAsString());
7835 assert res instanceof Map;
7836 assert res.topology_template.policies instanceof List;
7837 assert res.topology_template.policies.size == 1;
7838 assert res.topology_template.policies[0] instanceof Map;
7839 assert res.topology_template.policies[0].get('onap.restart.tca').version == "7.0.0";
7844 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete TCA Policy V8" enabled="true">
7845 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
7846 <collectionProp name="Arguments.arguments"/>
7848 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
7849 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
7850 <stringProp name="HTTPSampler.protocol">https</stringProp>
7851 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
7852 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/2.0.0/policies/onap.restart.tca/versions/8.0.0</stringProp>
7853 <stringProp name="HTTPSampler.method">DELETE</stringProp>
7854 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
7855 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
7856 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
7857 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
7858 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
7859 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
7860 <stringProp name="HTTPSampler.response_timeout"></stringProp>
7863 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
7864 <collectionProp name="Asserion.test_strings">
7865 <stringProp name="49586">200</stringProp>
7867 <stringProp name="Assertion.custom_message"></stringProp>
7868 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
7869 <boolProp name="Assertion.assume_success">false</boolProp>
7870 <intProp name="Assertion.test_type">1</intProp>
7871 </ResponseAssertion>
7873 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
7874 <stringProp name="scriptLanguage">groovy</stringProp>
7875 <stringProp name="parameters"></stringProp>
7876 <stringProp name="filename"></stringProp>
7877 <stringProp name="cacheKey">true</stringProp>
7878 <stringProp name="script">import groovy.json.JsonSlurper;
7881 if (prev.getResponseCode() == '200') {
7882 def jsonSlurper = new JsonSlurper();
7883 res = jsonSlurper.parseText(prev.getResponseDataAsString());
7885 assert res instanceof Map;
7886 assert res.topology_template.policies instanceof List;
7887 assert res.topology_template.policies.size == 1;
7888 assert res.topology_template.policies[0] instanceof Map;
7889 assert res.topology_template.policies[0].get('onap.restart.tca').version == "8.0.0";
7894 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete TCA Policy V9" enabled="true">
7895 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
7896 <collectionProp name="Arguments.arguments"/>
7898 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
7899 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
7900 <stringProp name="HTTPSampler.protocol">https</stringProp>
7901 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
7902 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/2.0.0/policies/onap.restart.tca/versions/1.0.0</stringProp>
7903 <stringProp name="HTTPSampler.method">DELETE</stringProp>
7904 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
7905 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
7906 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
7907 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
7908 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
7909 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
7910 <stringProp name="HTTPSampler.response_timeout"></stringProp>
7913 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
7914 <collectionProp name="Asserion.test_strings">
7915 <stringProp name="49586">200</stringProp>
7917 <stringProp name="Assertion.custom_message"></stringProp>
7918 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
7919 <boolProp name="Assertion.assume_success">false</boolProp>
7920 <intProp name="Assertion.test_type">1</intProp>
7921 </ResponseAssertion>
7923 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
7924 <stringProp name="scriptLanguage">groovy</stringProp>
7925 <stringProp name="parameters"></stringProp>
7926 <stringProp name="filename"></stringProp>
7927 <stringProp name="cacheKey">true</stringProp>
7928 <stringProp name="script">import groovy.json.JsonSlurper;
7931 if (prev.getResponseCode() == '200') {
7932 def jsonSlurper = new JsonSlurper();
7933 res = jsonSlurper.parseText(prev.getResponseDataAsString());
7935 assert res instanceof Map;
7936 assert res.topology_template.policies instanceof List;
7937 assert res.topology_template.policies.size == 1;
7938 assert res.topology_template.policies[0] instanceof Map;
7939 assert res.topology_template.policies[0].get('onap.restart.tca').version == "9.0.0";
7944 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete TCA Policy V10" enabled="true">
7945 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
7946 <collectionProp name="Arguments.arguments"/>
7948 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
7949 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
7950 <stringProp name="HTTPSampler.protocol">https</stringProp>
7951 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
7952 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/2.0.0/policies/onap.restart.tca/versions/10.0.0</stringProp>
7953 <stringProp name="HTTPSampler.method">DELETE</stringProp>
7954 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
7955 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
7956 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
7957 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
7958 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
7959 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
7960 <stringProp name="HTTPSampler.response_timeout"></stringProp>
7963 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
7964 <collectionProp name="Asserion.test_strings">
7965 <stringProp name="49586">200</stringProp>
7967 <stringProp name="Assertion.custom_message"></stringProp>
7968 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
7969 <boolProp name="Assertion.assume_success">false</boolProp>
7970 <intProp name="Assertion.test_type">1</intProp>
7971 </ResponseAssertion>
7973 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
7974 <stringProp name="scriptLanguage">groovy</stringProp>
7975 <stringProp name="parameters"></stringProp>
7976 <stringProp name="filename"></stringProp>
7977 <stringProp name="cacheKey">true</stringProp>
7978 <stringProp name="script">import groovy.json.JsonSlurper;
7981 if (prev.getResponseCode() == '200') {
7982 def jsonSlurper = new JsonSlurper();
7983 res = jsonSlurper.parseText(prev.getResponseDataAsString());
7985 assert res instanceof Map;
7986 assert res.topology_template.policies instanceof List;
7987 assert res.topology_template.policies.size == 1;
7988 assert res.topology_template.policies[0] instanceof Map;
7989 assert res.topology_template.policies[0].get('onap.restart.tca').version == "10.0.0";
7994 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete TCA Policy V11" enabled="true">
7995 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
7996 <collectionProp name="Arguments.arguments"/>
7998 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
7999 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
8000 <stringProp name="HTTPSampler.protocol">https</stringProp>
8001 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
8002 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/2.0.0/policies/onap.restart.tca/versions/11.0.0</stringProp>
8003 <stringProp name="HTTPSampler.method">DELETE</stringProp>
8004 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
8005 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
8006 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
8007 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
8008 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
8009 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
8010 <stringProp name="HTTPSampler.response_timeout"></stringProp>
8013 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
8014 <collectionProp name="Asserion.test_strings">
8015 <stringProp name="49586">200</stringProp>
8017 <stringProp name="Assertion.custom_message"></stringProp>
8018 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
8019 <boolProp name="Assertion.assume_success">false</boolProp>
8020 <intProp name="Assertion.test_type">1</intProp>
8021 </ResponseAssertion>
8023 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
8024 <stringProp name="scriptLanguage">groovy</stringProp>
8025 <stringProp name="parameters"></stringProp>
8026 <stringProp name="filename"></stringProp>
8027 <stringProp name="cacheKey">true</stringProp>
8028 <stringProp name="script">import groovy.json.JsonSlurper;
8031 if (prev.getResponseCode() == '200') {
8032 def jsonSlurper = new JsonSlurper();
8033 res = jsonSlurper.parseText(prev.getResponseDataAsString());
8035 assert res instanceof Map;
8036 assert res.topology_template.policies instanceof List;
8037 assert res.topology_template.policies.size == 1;
8038 assert res.topology_template.policies[0] instanceof Map;
8039 assert res.topology_template.policies[0].get('onap.restart.tca').version == "11.0.0";
8044 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete TCA Policy Type V2" enabled="true">
8045 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
8046 <collectionProp name="Arguments.arguments"/>
8048 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
8049 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
8050 <stringProp name="HTTPSampler.protocol">https</stringProp>
8051 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
8052 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/2.0.0</stringProp>
8053 <stringProp name="HTTPSampler.method">DELETE</stringProp>
8054 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
8055 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
8056 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
8057 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
8058 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
8059 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
8060 <stringProp name="HTTPSampler.response_timeout"></stringProp>
8063 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
8064 <collectionProp name="Asserion.test_strings">
8065 <stringProp name="49586">200</stringProp>
8067 <stringProp name="Assertion.custom_message"></stringProp>
8068 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
8069 <boolProp name="Assertion.assume_success">false</boolProp>
8070 <intProp name="Assertion.test_type">1</intProp>
8071 </ResponseAssertion>
8073 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
8074 <stringProp name="scriptLanguage">groovy</stringProp>
8075 <stringProp name="parameters"></stringProp>
8076 <stringProp name="filename"></stringProp>
8077 <stringProp name="cacheKey">true</stringProp>
8078 <stringProp name="script">import groovy.json.JsonSlurper;
8081 if (prev.getResponseCode() == '200') {
8082 def jsonSlurper = new JsonSlurper();
8083 res = jsonSlurper.parseText(prev.getResponseDataAsString());
8085 assert res instanceof Map;
8086 assert res.policy_types instanceof List;
8087 assert res.policy_types.size == 1;
8088 assert res.policy_types[0] instanceof Map;
8089 assert res.policy_types[0].get('onap.policies.monitoring.cdap.tca.hi.lo.app').version == "2.0.0";
8094 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete Guard Policy V1" enabled="true">
8095 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
8096 <collectionProp name="Arguments.arguments"/>
8098 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
8099 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
8100 <stringProp name="HTTPSampler.protocol">https</stringProp>
8101 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
8102 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.controlloop.Guard/versions/1.0.0/policies/guard.frequency.scaleout/versions/1</stringProp>
8103 <stringProp name="HTTPSampler.method">DELETE</stringProp>
8104 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
8105 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
8106 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
8107 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
8108 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
8109 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
8110 <stringProp name="HTTPSampler.response_timeout"></stringProp>
8113 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
8114 <collectionProp name="Asserion.test_strings">
8115 <stringProp name="49586">200</stringProp>
8117 <stringProp name="Assertion.custom_message"></stringProp>
8118 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
8119 <boolProp name="Assertion.assume_success">false</boolProp>
8120 <intProp name="Assertion.test_type">1</intProp>
8121 </ResponseAssertion>
8123 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
8124 <stringProp name="scriptLanguage">groovy</stringProp>
8125 <stringProp name="parameters"></stringProp>
8126 <stringProp name="filename"></stringProp>
8127 <stringProp name="cacheKey">true</stringProp>
8128 <stringProp name="script">import groovy.json.JsonSlurper;
8131 if (prev.getResponseCode() == '200') {
8132 def jsonSlurper = new JsonSlurper();
8133 res = jsonSlurper.parseText(prev.getResponseDataAsString());
8135 assert res instanceof Map;
8136 assert res.get('guard.frequency.scaleout').version == "1.0.0";
8141 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete Guard Policy V5" enabled="true">
8142 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
8143 <collectionProp name="Arguments.arguments"/>
8145 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
8146 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
8147 <stringProp name="HTTPSampler.protocol">https</stringProp>
8148 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
8149 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.controlloop.Guard/versions/1.0.0/policies/guard.frequency.scaleout/versions/5</stringProp>
8150 <stringProp name="HTTPSampler.method">DELETE</stringProp>
8151 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
8152 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
8153 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
8154 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
8155 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
8156 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
8157 <stringProp name="HTTPSampler.response_timeout"></stringProp>
8160 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
8161 <collectionProp name="Asserion.test_strings">
8162 <stringProp name="49586">200</stringProp>
8164 <stringProp name="Assertion.custom_message"></stringProp>
8165 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
8166 <boolProp name="Assertion.assume_success">false</boolProp>
8167 <intProp name="Assertion.test_type">1</intProp>
8168 </ResponseAssertion>
8170 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
8171 <stringProp name="scriptLanguage">groovy</stringProp>
8172 <stringProp name="parameters"></stringProp>
8173 <stringProp name="filename"></stringProp>
8174 <stringProp name="cacheKey">true</stringProp>
8175 <stringProp name="script">import groovy.json.JsonSlurper;
8178 if (prev.getResponseCode() == '200') {
8179 def jsonSlurper = new JsonSlurper();
8180 res = jsonSlurper.parseText(prev.getResponseDataAsString());
8182 assert res instanceof Map;
8183 assert res.get('guard.frequency.scaleout').version == "5.0.0";
8188 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete Guard Policy V9" enabled="true">
8189 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
8190 <collectionProp name="Arguments.arguments"/>
8192 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
8193 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
8194 <stringProp name="HTTPSampler.protocol">https</stringProp>
8195 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
8196 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.controlloop.Guard/versions/1.0.0/policies/guard.frequency.scaleout/versions/9</stringProp>
8197 <stringProp name="HTTPSampler.method">DELETE</stringProp>
8198 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
8199 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
8200 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
8201 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
8202 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
8203 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
8204 <stringProp name="HTTPSampler.response_timeout"></stringProp>
8207 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
8208 <collectionProp name="Asserion.test_strings">
8209 <stringProp name="49586">200</stringProp>
8211 <stringProp name="Assertion.custom_message"></stringProp>
8212 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
8213 <boolProp name="Assertion.assume_success">false</boolProp>
8214 <intProp name="Assertion.test_type">1</intProp>
8215 </ResponseAssertion>
8217 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
8218 <stringProp name="scriptLanguage">groovy</stringProp>
8219 <stringProp name="parameters"></stringProp>
8220 <stringProp name="filename"></stringProp>
8221 <stringProp name="cacheKey">true</stringProp>
8222 <stringProp name="script">import groovy.json.JsonSlurper;
8225 if (prev.getResponseCode() == '200') {
8226 def jsonSlurper = new JsonSlurper();
8227 res = jsonSlurper.parseText(prev.getResponseDataAsString());
8229 assert res instanceof Map;
8230 assert res.get('guard.frequency.scaleout').version == "9.0.0";
8235 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete Guard Policy V12" enabled="true">
8236 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
8237 <collectionProp name="Arguments.arguments"/>
8239 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
8240 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
8241 <stringProp name="HTTPSampler.protocol">https</stringProp>
8242 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
8243 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.controlloop.Guard/versions/1.0.0/policies/guard.frequency.scaleout/versions/12</stringProp>
8244 <stringProp name="HTTPSampler.method">DELETE</stringProp>
8245 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
8246 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
8247 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
8248 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
8249 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
8250 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
8251 <stringProp name="HTTPSampler.response_timeout"></stringProp>
8254 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
8255 <collectionProp name="Asserion.test_strings">
8256 <stringProp name="49586">200</stringProp>
8258 <stringProp name="Assertion.custom_message"></stringProp>
8259 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
8260 <boolProp name="Assertion.assume_success">false</boolProp>
8261 <intProp name="Assertion.test_type">1</intProp>
8262 </ResponseAssertion>
8264 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
8265 <stringProp name="scriptLanguage">groovy</stringProp>
8266 <stringProp name="parameters"></stringProp>
8267 <stringProp name="filename"></stringProp>
8268 <stringProp name="cacheKey">true</stringProp>
8269 <stringProp name="script">import groovy.json.JsonSlurper;
8272 if (prev.getResponseCode() == '200') {
8273 def jsonSlurper = new JsonSlurper();
8274 res = jsonSlurper.parseText(prev.getResponseDataAsString());
8276 assert res instanceof Map;
8277 assert res.get('guard.frequency.scaleout').version == "12.0.0";
8283 <ResultCollector guiclass="SummaryReport" testclass="ResultCollector" testname="Summary Report" enabled="true">
8284 <boolProp name="ResultCollector.error_logging">false</boolProp>
8286 <name>saveConfig</name>
8287 <value class="SampleSaveConfiguration">
8289 <latency>true</latency>
8290 <timestamp>true</timestamp>
8291 <success>true</success>
8294 <message>true</message>
8295 <threadName>true</threadName>
8296 <dataType>true</dataType>
8297 <encoding>false</encoding>
8298 <assertions>true</assertions>
8299 <subresults>true</subresults>
8300 <responseData>false</responseData>
8301 <samplerData>false</samplerData>
8303 <fieldNames>true</fieldNames>
8304 <responseHeaders>false</responseHeaders>
8305 <requestHeaders>false</requestHeaders>
8306 <responseDataOnError>false</responseDataOnError>
8307 <saveAssertionResultsFailureMessage>true</saveAssertionResultsFailureMessage>
8308 <assertionsResultsToSave>0</assertionsResultsToSave>
8310 <sentBytes>true</sentBytes>
8312 <threadCounts>true</threadCounts>
8313 <idleTime>true</idleTime>
8314 <connectTime>true</connectTime>
8317 <stringProp name="filename">/home/ubuntu/s3p/stability.log</stringProp>
8320 <ResultCollector guiclass="ViewResultsFullVisualizer" testclass="ResultCollector" testname="View Results Tree" enabled="true">
8321 <boolProp name="ResultCollector.error_logging">false</boolProp>
8323 <name>saveConfig</name>
8324 <value class="SampleSaveConfiguration">
8326 <latency>true</latency>
8327 <timestamp>true</timestamp>
8328 <success>true</success>
8331 <message>true</message>
8332 <threadName>true</threadName>
8333 <dataType>true</dataType>
8334 <encoding>false</encoding>
8335 <assertions>true</assertions>
8336 <subresults>true</subresults>
8337 <responseData>false</responseData>
8338 <samplerData>false</samplerData>
8340 <fieldNames>true</fieldNames>
8341 <responseHeaders>false</responseHeaders>
8342 <requestHeaders>false</requestHeaders>
8343 <responseDataOnError>false</responseDataOnError>
8344 <saveAssertionResultsFailureMessage>true</saveAssertionResultsFailureMessage>
8345 <assertionsResultsToSave>0</assertionsResultsToSave>
8347 <sentBytes>true</sentBytes>
8349 <threadCounts>true</threadCounts>
8350 <idleTime>true</idleTime>
8351 <connectTime>true</connectTime>
8354 <stringProp name="filename">/home/ubuntu/s3p/stability.log</stringProp>
8357 <ResultCollector guiclass="TableVisualizer" testclass="ResultCollector" testname="View Results in Table" enabled="true">
8358 <boolProp name="ResultCollector.error_logging">false</boolProp>
8360 <name>saveConfig</name>
8361 <value class="SampleSaveConfiguration">
8363 <latency>true</latency>
8364 <timestamp>true</timestamp>
8365 <success>true</success>
8368 <message>true</message>
8369 <threadName>true</threadName>
8370 <dataType>true</dataType>
8371 <encoding>false</encoding>
8372 <assertions>true</assertions>
8373 <subresults>true</subresults>
8374 <responseData>false</responseData>
8375 <samplerData>false</samplerData>
8377 <fieldNames>true</fieldNames>
8378 <responseHeaders>false</responseHeaders>
8379 <requestHeaders>false</requestHeaders>
8380 <responseDataOnError>false</responseDataOnError>
8381 <saveAssertionResultsFailureMessage>true</saveAssertionResultsFailureMessage>
8382 <assertionsResultsToSave>0</assertionsResultsToSave>
8384 <sentBytes>true</sentBytes>
8386 <threadCounts>true</threadCounts>
8387 <idleTime>true</idleTime>
8388 <connectTime>true</connectTime>
8391 <stringProp name="filename">/home/ubuntu/s3p/stability.log</stringProp>