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 Stability" enabled="true">
5 <stringProp name="TestPlan.comments"></stringProp>
6 <boolProp name="TestPlan.functional_mode">false</boolProp>
7 <boolProp name="TestPlan.tearDown_on_shutdown">true</boolProp>
8 <boolProp name="TestPlan.serialize_threadgroups">false</boolProp>
9 <elementProp name="TestPlan.user_defined_variables" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
10 <collectionProp name="Arguments.arguments">
11 <elementProp name="API_HOST" elementType="Argument">
12 <stringProp name="Argument.name">API_HOST</stringProp>
13 <stringProp name="Argument.value">10.12.6.112</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">32251</stringProp>
19 <stringProp name="Argument.metadata">=</stringProp>
23 <stringProp name="TestPlan.user_define_classpath"></stringProp>
26 <AuthManager guiclass="AuthPanel" testclass="AuthManager" testname="HTTP Authorization Manager" enabled="true">
27 <collectionProp name="AuthManager.auth_list">
28 <elementProp name="" elementType="Authorization">
29 <stringProp name="Authorization.url">https://${API_HOST}:${API_PORT}/policy/api/v1</stringProp>
30 <stringProp name="Authorization.username">healthcheck</stringProp>
31 <stringProp name="Authorization.password">zb!XztG34</stringProp>
32 <stringProp name="Authorization.domain"></stringProp>
33 <stringProp name="Authorization.realm"></stringProp>
36 <boolProp name="AuthManager.clearEachIteration">true</boolProp>
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">continue</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">20</stringProp>
218 <stringProp name="ThreadGroup.ramp_time">2</stringProp>
219 <boolProp name="ThreadGroup.scheduler">true</boolProp>
220 <stringProp name="ThreadGroup.duration">3600</stringProp>
221 <stringProp name="ThreadGroup.delay">2</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">5000</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 <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="Constant Timer" enabled="true">
5197 <stringProp name="ConstantTimer.delay">10000</stringProp>
5200 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get All TCA Policies" enabled="true">
5201 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
5202 <collectionProp name="Arguments.arguments"/>
5204 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
5205 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
5206 <stringProp name="HTTPSampler.protocol">https</stringProp>
5207 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
5208 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/2.0.0/policies</stringProp>
5209 <stringProp name="HTTPSampler.method">GET</stringProp>
5210 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
5211 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
5212 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
5213 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
5214 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
5215 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
5216 <stringProp name="HTTPSampler.response_timeout"></stringProp>
5219 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
5220 <collectionProp name="Asserion.test_strings">
5221 <stringProp name="49586">200</stringProp>
5223 <stringProp name="Assertion.custom_message"></stringProp>
5224 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
5225 <boolProp name="Assertion.assume_success">false</boolProp>
5226 <intProp name="Assertion.test_type">1</intProp>
5227 </ResponseAssertion>
5229 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
5230 <stringProp name="scriptLanguage">groovy</stringProp>
5231 <stringProp name="parameters"></stringProp>
5232 <stringProp name="filename"></stringProp>
5233 <stringProp name="cacheKey">true</stringProp>
5234 <stringProp name="script">import groovy.json.JsonSlurper;
5237 if (prev.getResponseCode() == '200') {
5238 def jsonSlurper = new JsonSlurper();
5239 res = jsonSlurper.parseText(prev.getResponseDataAsString());
5241 assert res instanceof Map;
5242 assert res.topology_template.policies instanceof List;
5243 assert res.topology_template.policies.size == 11;
5246 for (i=0; i<n; i++) {
5247 assert res.topology_template.policies[i] instanceof Map;
5253 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get All Versions of TCA Policy" enabled="true">
5254 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
5255 <collectionProp name="Arguments.arguments"/>
5257 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
5258 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
5259 <stringProp name="HTTPSampler.protocol">https</stringProp>
5260 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
5261 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/2.0.0/policies</stringProp>
5262 <stringProp name="HTTPSampler.method">GET</stringProp>
5263 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
5264 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
5265 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
5266 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
5267 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
5268 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
5269 <stringProp name="HTTPSampler.response_timeout"></stringProp>
5272 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
5273 <collectionProp name="Asserion.test_strings">
5274 <stringProp name="49586">200</stringProp>
5276 <stringProp name="Assertion.custom_message"></stringProp>
5277 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
5278 <boolProp name="Assertion.assume_success">false</boolProp>
5279 <intProp name="Assertion.test_type">1</intProp>
5280 </ResponseAssertion>
5282 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
5283 <stringProp name="scriptLanguage">groovy</stringProp>
5284 <stringProp name="parameters"></stringProp>
5285 <stringProp name="filename"></stringProp>
5286 <stringProp name="cacheKey">true</stringProp>
5287 <stringProp name="script">import groovy.json.JsonSlurper;
5290 if (prev.getResponseCode() == '200') {
5291 def jsonSlurper = new JsonSlurper();
5292 res = jsonSlurper.parseText(prev.getResponseDataAsString());
5294 assert res instanceof Map;
5295 assert res.topology_template.policies instanceof List;
5296 assert res.topology_template.policies.size == 11;
5299 for (i=0; i<n; i++) {
5300 assert res.topology_template.policies[i] instanceof Map;
5306 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get TCA Policy V1" enabled="true">
5307 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
5308 <collectionProp name="Arguments.arguments"/>
5310 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
5311 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
5312 <stringProp name="HTTPSampler.protocol">https</stringProp>
5313 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
5314 <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>
5315 <stringProp name="HTTPSampler.method">GET</stringProp>
5316 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
5317 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
5318 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
5319 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
5320 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
5321 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
5322 <stringProp name="HTTPSampler.response_timeout"></stringProp>
5325 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
5326 <collectionProp name="Asserion.test_strings">
5327 <stringProp name="49586">200</stringProp>
5329 <stringProp name="Assertion.custom_message"></stringProp>
5330 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
5331 <boolProp name="Assertion.assume_success">false</boolProp>
5332 <intProp name="Assertion.test_type">1</intProp>
5333 </ResponseAssertion>
5335 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
5336 <stringProp name="scriptLanguage">groovy</stringProp>
5337 <stringProp name="parameters"></stringProp>
5338 <stringProp name="filename"></stringProp>
5339 <stringProp name="cacheKey">true</stringProp>
5340 <stringProp name="script">import groovy.json.JsonSlurper;
5343 if (prev.getResponseCode() == '200') {
5344 def jsonSlurper = new JsonSlurper();
5345 res = jsonSlurper.parseText(prev.getResponseDataAsString());
5347 assert res instanceof Map;
5348 assert res.topology_template.policies instanceof List;
5349 assert res.topology_template.policies.size == 1;
5351 assert res.topology_template.policies[0] instanceof Map;
5352 assert res.topology_template.policies [0].get('onap.restart.tca').version == "1.0.0";
5357 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get TCA Policy V2" enabled="true">
5358 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
5359 <collectionProp name="Arguments.arguments"/>
5361 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
5362 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
5363 <stringProp name="HTTPSampler.protocol">https</stringProp>
5364 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
5365 <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>
5366 <stringProp name="HTTPSampler.method">GET</stringProp>
5367 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
5368 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
5369 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
5370 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
5371 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
5372 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
5373 <stringProp name="HTTPSampler.response_timeout"></stringProp>
5376 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
5377 <collectionProp name="Asserion.test_strings">
5378 <stringProp name="49586">200</stringProp>
5380 <stringProp name="Assertion.custom_message"></stringProp>
5381 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
5382 <boolProp name="Assertion.assume_success">false</boolProp>
5383 <intProp name="Assertion.test_type">1</intProp>
5384 </ResponseAssertion>
5386 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
5387 <stringProp name="scriptLanguage">groovy</stringProp>
5388 <stringProp name="parameters"></stringProp>
5389 <stringProp name="filename"></stringProp>
5390 <stringProp name="cacheKey">true</stringProp>
5391 <stringProp name="script">import groovy.json.JsonSlurper;
5394 if (prev.getResponseCode() == '200') {
5395 def jsonSlurper = new JsonSlurper();
5396 res = jsonSlurper.parseText(prev.getResponseDataAsString());
5398 assert res instanceof Map;
5399 assert res.topology_template.policies instanceof List;
5400 assert res.topology_template.policies.size == 1;
5402 assert res.topology_template.policies[0] instanceof Map;
5403 assert res.topology_template.policies [0].get('onap.restart.tca').version == "2.0.0";
5408 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get TCA Policy V3" enabled="true">
5409 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
5410 <collectionProp name="Arguments.arguments"/>
5412 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
5413 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
5414 <stringProp name="HTTPSampler.protocol">https</stringProp>
5415 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
5416 <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>
5417 <stringProp name="HTTPSampler.method">GET</stringProp>
5418 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
5419 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
5420 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
5421 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
5422 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
5423 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
5424 <stringProp name="HTTPSampler.response_timeout"></stringProp>
5427 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
5428 <collectionProp name="Asserion.test_strings">
5429 <stringProp name="49586">200</stringProp>
5431 <stringProp name="Assertion.custom_message"></stringProp>
5432 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
5433 <boolProp name="Assertion.assume_success">false</boolProp>
5434 <intProp name="Assertion.test_type">1</intProp>
5435 </ResponseAssertion>
5437 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
5438 <stringProp name="scriptLanguage">groovy</stringProp>
5439 <stringProp name="parameters"></stringProp>
5440 <stringProp name="filename"></stringProp>
5441 <stringProp name="cacheKey">true</stringProp>
5442 <stringProp name="script">import groovy.json.JsonSlurper;
5445 if (prev.getResponseCode() == '200') {
5446 def jsonSlurper = new JsonSlurper();
5447 res = jsonSlurper.parseText(prev.getResponseDataAsString());
5449 assert res instanceof Map;
5450 assert res.topology_template.policies instanceof List;
5451 assert res.topology_template.policies.size == 1;
5453 assert res.topology_template.policies[0] instanceof Map;
5454 assert res.topology_template.policies [0].get('onap.restart.tca').version == "3.0.0";
5459 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get TCA Policy V4" enabled="true">
5460 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
5461 <collectionProp name="Arguments.arguments"/>
5463 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
5464 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
5465 <stringProp name="HTTPSampler.protocol">https</stringProp>
5466 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
5467 <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>
5468 <stringProp name="HTTPSampler.method">GET</stringProp>
5469 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
5470 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
5471 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
5472 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
5473 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
5474 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
5475 <stringProp name="HTTPSampler.response_timeout"></stringProp>
5478 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
5479 <collectionProp name="Asserion.test_strings">
5480 <stringProp name="49586">200</stringProp>
5482 <stringProp name="Assertion.custom_message"></stringProp>
5483 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
5484 <boolProp name="Assertion.assume_success">false</boolProp>
5485 <intProp name="Assertion.test_type">1</intProp>
5486 </ResponseAssertion>
5488 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
5489 <stringProp name="scriptLanguage">groovy</stringProp>
5490 <stringProp name="parameters"></stringProp>
5491 <stringProp name="filename"></stringProp>
5492 <stringProp name="cacheKey">true</stringProp>
5493 <stringProp name="script">import groovy.json.JsonSlurper;
5496 if (prev.getResponseCode() == '200') {
5497 def jsonSlurper = new JsonSlurper();
5498 res = jsonSlurper.parseText(prev.getResponseDataAsString());
5500 assert res instanceof Map;
5501 assert res.topology_template.policies instanceof List;
5502 assert res.topology_template.policies.size == 1;
5504 assert res.topology_template.policies[0] instanceof Map;
5505 assert res.topology_template.policies [0].get('onap.restart.tca').version == "4.0.0";
5510 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get TCA Policy V5" enabled="true">
5511 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
5512 <collectionProp name="Arguments.arguments"/>
5514 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
5515 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
5516 <stringProp name="HTTPSampler.protocol">https</stringProp>
5517 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
5518 <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>
5519 <stringProp name="HTTPSampler.method">GET</stringProp>
5520 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
5521 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
5522 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
5523 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
5524 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
5525 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
5526 <stringProp name="HTTPSampler.response_timeout"></stringProp>
5529 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
5530 <collectionProp name="Asserion.test_strings">
5531 <stringProp name="49586">200</stringProp>
5533 <stringProp name="Assertion.custom_message"></stringProp>
5534 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
5535 <boolProp name="Assertion.assume_success">false</boolProp>
5536 <intProp name="Assertion.test_type">1</intProp>
5537 </ResponseAssertion>
5539 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
5540 <stringProp name="scriptLanguage">groovy</stringProp>
5541 <stringProp name="parameters"></stringProp>
5542 <stringProp name="filename"></stringProp>
5543 <stringProp name="cacheKey">true</stringProp>
5544 <stringProp name="script">import groovy.json.JsonSlurper;
5547 if (prev.getResponseCode() == '200') {
5548 def jsonSlurper = new JsonSlurper();
5549 res = jsonSlurper.parseText(prev.getResponseDataAsString());
5551 assert res instanceof Map;
5552 assert res.topology_template.policies instanceof List;
5553 assert res.topology_template.policies.size == 1;
5555 assert res.topology_template.policies[0] instanceof Map;
5556 assert res.topology_template.policies [0].get('onap.restart.tca').version == "5.0.0";
5561 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get TCA Policy V6" enabled="true">
5562 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
5563 <collectionProp name="Arguments.arguments"/>
5565 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
5566 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
5567 <stringProp name="HTTPSampler.protocol">https</stringProp>
5568 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
5569 <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>
5570 <stringProp name="HTTPSampler.method">GET</stringProp>
5571 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
5572 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
5573 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
5574 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
5575 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
5576 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
5577 <stringProp name="HTTPSampler.response_timeout"></stringProp>
5580 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
5581 <collectionProp name="Asserion.test_strings">
5582 <stringProp name="49586">200</stringProp>
5584 <stringProp name="Assertion.custom_message"></stringProp>
5585 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
5586 <boolProp name="Assertion.assume_success">false</boolProp>
5587 <intProp name="Assertion.test_type">1</intProp>
5588 </ResponseAssertion>
5590 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
5591 <stringProp name="scriptLanguage">groovy</stringProp>
5592 <stringProp name="parameters"></stringProp>
5593 <stringProp name="filename"></stringProp>
5594 <stringProp name="cacheKey">true</stringProp>
5595 <stringProp name="script">import groovy.json.JsonSlurper;
5598 if (prev.getResponseCode() == '200') {
5599 def jsonSlurper = new JsonSlurper();
5600 res = jsonSlurper.parseText(prev.getResponseDataAsString());
5602 assert res instanceof Map;
5603 assert res.topology_template.policies instanceof List;
5604 assert res.topology_template.policies.size == 1;
5606 assert res.topology_template.policies[0] instanceof Map;
5607 assert res.topology_template.policies [0].get('onap.restart.tca').version == "6.0.0";
5612 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get TCA Policy V7" enabled="true">
5613 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
5614 <collectionProp name="Arguments.arguments"/>
5616 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
5617 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
5618 <stringProp name="HTTPSampler.protocol">https</stringProp>
5619 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
5620 <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>
5621 <stringProp name="HTTPSampler.method">GET</stringProp>
5622 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
5623 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
5624 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
5625 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
5626 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
5627 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
5628 <stringProp name="HTTPSampler.response_timeout"></stringProp>
5631 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
5632 <collectionProp name="Asserion.test_strings">
5633 <stringProp name="49586">200</stringProp>
5635 <stringProp name="Assertion.custom_message"></stringProp>
5636 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
5637 <boolProp name="Assertion.assume_success">false</boolProp>
5638 <intProp name="Assertion.test_type">1</intProp>
5639 </ResponseAssertion>
5641 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
5642 <stringProp name="scriptLanguage">groovy</stringProp>
5643 <stringProp name="parameters"></stringProp>
5644 <stringProp name="filename"></stringProp>
5645 <stringProp name="cacheKey">true</stringProp>
5646 <stringProp name="script">import groovy.json.JsonSlurper;
5649 if (prev.getResponseCode() == '200') {
5650 def jsonSlurper = new JsonSlurper();
5651 res = jsonSlurper.parseText(prev.getResponseDataAsString());
5653 assert res instanceof Map;
5654 assert res.topology_template.policies instanceof List;
5655 assert res.topology_template.policies.size == 1;
5657 assert res.topology_template.policies[0] instanceof Map;
5658 assert res.topology_template.policies [0].get('onap.restart.tca').version == "7.0.0";
5663 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get TCA Policy V8" enabled="true">
5664 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
5665 <collectionProp name="Arguments.arguments"/>
5667 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
5668 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
5669 <stringProp name="HTTPSampler.protocol">https</stringProp>
5670 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
5671 <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>
5672 <stringProp name="HTTPSampler.method">GET</stringProp>
5673 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
5674 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
5675 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
5676 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
5677 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
5678 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
5679 <stringProp name="HTTPSampler.response_timeout"></stringProp>
5682 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
5683 <collectionProp name="Asserion.test_strings">
5684 <stringProp name="49586">200</stringProp>
5686 <stringProp name="Assertion.custom_message"></stringProp>
5687 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
5688 <boolProp name="Assertion.assume_success">false</boolProp>
5689 <intProp name="Assertion.test_type">1</intProp>
5690 </ResponseAssertion>
5692 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
5693 <stringProp name="scriptLanguage">groovy</stringProp>
5694 <stringProp name="parameters"></stringProp>
5695 <stringProp name="filename"></stringProp>
5696 <stringProp name="cacheKey">true</stringProp>
5697 <stringProp name="script">import groovy.json.JsonSlurper;
5700 if (prev.getResponseCode() == '200') {
5701 def jsonSlurper = new JsonSlurper();
5702 res = jsonSlurper.parseText(prev.getResponseDataAsString());
5704 assert res instanceof Map;
5705 assert res.topology_template.policies instanceof List;
5706 assert res.topology_template.policies.size == 1;
5708 assert res.topology_template.policies[0] instanceof Map;
5709 assert res.topology_template.policies [0].get('onap.restart.tca').version == "8.0.0";
5714 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get TCA Policy V9" enabled="true">
5715 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
5716 <collectionProp name="Arguments.arguments"/>
5718 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
5719 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
5720 <stringProp name="HTTPSampler.protocol">https</stringProp>
5721 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
5722 <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>
5723 <stringProp name="HTTPSampler.method">GET</stringProp>
5724 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
5725 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
5726 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
5727 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
5728 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
5729 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
5730 <stringProp name="HTTPSampler.response_timeout"></stringProp>
5733 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
5734 <collectionProp name="Asserion.test_strings">
5735 <stringProp name="49586">200</stringProp>
5737 <stringProp name="Assertion.custom_message"></stringProp>
5738 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
5739 <boolProp name="Assertion.assume_success">false</boolProp>
5740 <intProp name="Assertion.test_type">1</intProp>
5741 </ResponseAssertion>
5743 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
5744 <stringProp name="scriptLanguage">groovy</stringProp>
5745 <stringProp name="parameters"></stringProp>
5746 <stringProp name="filename"></stringProp>
5747 <stringProp name="cacheKey">true</stringProp>
5748 <stringProp name="script">import groovy.json.JsonSlurper;
5751 if (prev.getResponseCode() == '200') {
5752 def jsonSlurper = new JsonSlurper();
5753 res = jsonSlurper.parseText(prev.getResponseDataAsString());
5755 assert res instanceof Map;
5756 assert res.topology_template.policies instanceof List;
5757 assert res.topology_template.policies.size == 1;
5759 assert res.topology_template.policies[0] instanceof Map;
5760 assert res.topology_template.policies [0].get('onap.restart.tca').version == "9.0.0";
5765 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get TCA Policy V10" enabled="true">
5766 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
5767 <collectionProp name="Arguments.arguments"/>
5769 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
5770 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
5771 <stringProp name="HTTPSampler.protocol">https</stringProp>
5772 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
5773 <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>
5774 <stringProp name="HTTPSampler.method">GET</stringProp>
5775 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
5776 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
5777 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
5778 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
5779 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
5780 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
5781 <stringProp name="HTTPSampler.response_timeout"></stringProp>
5784 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
5785 <collectionProp name="Asserion.test_strings">
5786 <stringProp name="49586">200</stringProp>
5788 <stringProp name="Assertion.custom_message"></stringProp>
5789 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
5790 <boolProp name="Assertion.assume_success">false</boolProp>
5791 <intProp name="Assertion.test_type">1</intProp>
5792 </ResponseAssertion>
5794 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
5795 <stringProp name="scriptLanguage">groovy</stringProp>
5796 <stringProp name="parameters"></stringProp>
5797 <stringProp name="filename"></stringProp>
5798 <stringProp name="cacheKey">true</stringProp>
5799 <stringProp name="script">import groovy.json.JsonSlurper;
5802 if (prev.getResponseCode() == '200') {
5803 def jsonSlurper = new JsonSlurper();
5804 res = jsonSlurper.parseText(prev.getResponseDataAsString());
5806 assert res instanceof Map;
5807 assert res.topology_template.policies instanceof List;
5808 assert res.topology_template.policies.size == 1;
5810 assert res.topology_template.policies[0] instanceof Map;
5811 assert res.topology_template.policies [0].get('onap.restart.tca').version == "10.0.0";
5816 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get TCA Policy V11" enabled="true">
5817 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
5818 <collectionProp name="Arguments.arguments"/>
5820 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
5821 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
5822 <stringProp name="HTTPSampler.protocol">https</stringProp>
5823 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
5824 <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>
5825 <stringProp name="HTTPSampler.method">GET</stringProp>
5826 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
5827 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
5828 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
5829 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
5830 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
5831 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
5832 <stringProp name="HTTPSampler.response_timeout"></stringProp>
5835 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
5836 <collectionProp name="Asserion.test_strings">
5837 <stringProp name="49586">200</stringProp>
5839 <stringProp name="Assertion.custom_message"></stringProp>
5840 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
5841 <boolProp name="Assertion.assume_success">false</boolProp>
5842 <intProp name="Assertion.test_type">1</intProp>
5843 </ResponseAssertion>
5845 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
5846 <stringProp name="scriptLanguage">groovy</stringProp>
5847 <stringProp name="parameters"></stringProp>
5848 <stringProp name="filename"></stringProp>
5849 <stringProp name="cacheKey">true</stringProp>
5850 <stringProp name="script">import groovy.json.JsonSlurper;
5853 if (prev.getResponseCode() == '200') {
5854 def jsonSlurper = new JsonSlurper();
5855 res = jsonSlurper.parseText(prev.getResponseDataAsString());
5857 assert res instanceof Map;
5858 assert res.topology_template.policies instanceof List;
5859 assert res.topology_template.policies.size == 1;
5861 assert res.topology_template.policies[0] instanceof Map;
5862 assert res.topology_template.policies [0].get('onap.restart.tca').version == "11.0.0";
5867 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get latest TCA Policy" enabled="true">
5868 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
5869 <collectionProp name="Arguments.arguments"/>
5871 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
5872 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
5873 <stringProp name="HTTPSampler.protocol">https</stringProp>
5874 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
5875 <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>
5876 <stringProp name="HTTPSampler.method">GET</stringProp>
5877 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
5878 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
5879 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
5880 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
5881 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
5882 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
5883 <stringProp name="HTTPSampler.response_timeout"></stringProp>
5886 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
5887 <collectionProp name="Asserion.test_strings">
5888 <stringProp name="49586">200</stringProp>
5890 <stringProp name="Assertion.custom_message"></stringProp>
5891 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
5892 <boolProp name="Assertion.assume_success">false</boolProp>
5893 <intProp name="Assertion.test_type">1</intProp>
5894 </ResponseAssertion>
5896 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
5897 <stringProp name="scriptLanguage">groovy</stringProp>
5898 <stringProp name="parameters"></stringProp>
5899 <stringProp name="filename"></stringProp>
5900 <stringProp name="cacheKey">true</stringProp>
5901 <stringProp name="script">import groovy.json.JsonSlurper;
5904 if (prev.getResponseCode() == '200') {
5905 def jsonSlurper = new JsonSlurper();
5906 res = jsonSlurper.parseText(prev.getResponseDataAsString());
5908 assert res instanceof Map;
5909 assert res.topology_template.policies instanceof List;
5910 assert res.topology_template.policies.size == 1;
5912 assert res.topology_template.policies[0] instanceof Map;
5913 assert res.topology_template.policies [0].get('onap.restart.tca').version == "11.0.0";
5918 <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="Constant Timer" enabled="true">
5919 <stringProp name="ConstantTimer.delay">5000</stringProp>
5922 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create Guard Policy V1" enabled="true">
5923 <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
5924 <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
5925 <collectionProp name="Arguments.arguments">
5926 <elementProp name="" elementType="HTTPArgument">
5927 <boolProp name="HTTPArgument.always_encode">false</boolProp>
5928 <stringProp name="Argument.value">{
5929 "policy-id" : "guard.frequency.scaleout",
5930 "policy-version" : "1",
5931 "content" : {
5932 "actor": "SO",
5933 "recipe": "scaleOut",
5934 "targets": ".*",
5935 "clname": "ControlLoop-vDNS-6f37f56d-a87d-4b85-b6a9-cc953cf779b3",
5936 "limit": "1",
5937 "timeWindow": "10",
5938 "timeUnits": "minute",
5939 "guardActiveStart": "00:00:01-05:00",
5940 "guardActiveEnd": "23:59:59-05:00"
5943 <stringProp name="Argument.metadata">=</stringProp>
5947 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
5948 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
5949 <stringProp name="HTTPSampler.protocol">https</stringProp>
5950 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
5951 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.controlloop.Guard/versions/1.0.0/policies</stringProp>
5952 <stringProp name="HTTPSampler.method">POST</stringProp>
5953 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
5954 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
5955 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
5956 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
5957 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
5958 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
5959 <stringProp name="HTTPSampler.response_timeout"></stringProp>
5962 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
5963 <collectionProp name="Asserion.test_strings">
5964 <stringProp name="49586">200</stringProp>
5966 <stringProp name="Assertion.custom_message"></stringProp>
5967 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
5968 <boolProp name="Assertion.assume_success">false</boolProp>
5969 <intProp name="Assertion.test_type">1</intProp>
5970 </ResponseAssertion>
5972 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
5973 <stringProp name="scriptLanguage">groovy</stringProp>
5974 <stringProp name="parameters"></stringProp>
5975 <stringProp name="filename"></stringProp>
5976 <stringProp name="cacheKey">true</stringProp>
5977 <stringProp name="script">import groovy.json.JsonSlurper;
5980 if (prev.getResponseCode() == '200') {
5981 def jsonSlurper = new JsonSlurper();
5982 res = jsonSlurper.parseText(prev.getResponseDataAsString());
5984 assert res instanceof Map;
5985 assert res.get('guard.frequency.scaleout').version == "1.0.0";
5990 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create Guard Policy V5" enabled="true">
5991 <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
5992 <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
5993 <collectionProp name="Arguments.arguments">
5994 <elementProp name="" elementType="HTTPArgument">
5995 <boolProp name="HTTPArgument.always_encode">false</boolProp>
5996 <stringProp name="Argument.value">{
5997 "policy-id" : "guard.frequency.scaleout",
5998 "policy-version" : "5",
5999 "content" : {
6000 "actor": "SO",
6001 "recipe": "scaleOut",
6002 "targets": ".*",
6003 "clname": "ControlLoop-vDNS-6f37f56d-a87d-4b85-b6a9-cc953cf779b3",
6004 "limit": "1",
6005 "timeWindow": "10",
6006 "timeUnits": "minute",
6007 "guardActiveStart": "00:00:01-05:00",
6008 "guardActiveEnd": "23:59:59-05:00"
6011 <stringProp name="Argument.metadata">=</stringProp>
6015 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
6016 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
6017 <stringProp name="HTTPSampler.protocol">https</stringProp>
6018 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
6019 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.controlloop.Guard/versions/1.0.0/policies</stringProp>
6020 <stringProp name="HTTPSampler.method">POST</stringProp>
6021 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
6022 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
6023 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
6024 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
6025 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
6026 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
6027 <stringProp name="HTTPSampler.response_timeout"></stringProp>
6030 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
6031 <collectionProp name="Asserion.test_strings">
6032 <stringProp name="49586">200</stringProp>
6034 <stringProp name="Assertion.custom_message"></stringProp>
6035 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
6036 <boolProp name="Assertion.assume_success">false</boolProp>
6037 <intProp name="Assertion.test_type">1</intProp>
6038 </ResponseAssertion>
6040 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
6041 <stringProp name="scriptLanguage">groovy</stringProp>
6042 <stringProp name="parameters"></stringProp>
6043 <stringProp name="filename"></stringProp>
6044 <stringProp name="cacheKey">true</stringProp>
6045 <stringProp name="script">import groovy.json.JsonSlurper;
6048 if (prev.getResponseCode() == '200') {
6049 def jsonSlurper = new JsonSlurper();
6050 res = jsonSlurper.parseText(prev.getResponseDataAsString());
6052 assert res instanceof Map;
6053 assert res.get('guard.frequency.scaleout').version == "5.0.0";
6058 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create Guard Policy V9" enabled="true">
6059 <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
6060 <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
6061 <collectionProp name="Arguments.arguments">
6062 <elementProp name="" elementType="HTTPArgument">
6063 <boolProp name="HTTPArgument.always_encode">false</boolProp>
6064 <stringProp name="Argument.value">{
6065 "policy-id" : "guard.frequency.scaleout",
6066 "policy-version" : "9",
6067 "content" : {
6068 "actor": "SO",
6069 "recipe": "scaleOut",
6070 "targets": ".*",
6071 "clname": "ControlLoop-vDNS-6f37f56d-a87d-4b85-b6a9-cc953cf779b3",
6072 "limit": "1",
6073 "timeWindow": "10",
6074 "timeUnits": "minute",
6075 "guardActiveStart": "00:00:01-05:00",
6076 "guardActiveEnd": "23:59:59-05:00"
6079 <stringProp name="Argument.metadata">=</stringProp>
6083 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
6084 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
6085 <stringProp name="HTTPSampler.protocol">https</stringProp>
6086 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
6087 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.controlloop.Guard/versions/1.0.0/policies</stringProp>
6088 <stringProp name="HTTPSampler.method">POST</stringProp>
6089 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
6090 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
6091 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
6092 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
6093 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
6094 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
6095 <stringProp name="HTTPSampler.response_timeout"></stringProp>
6098 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
6099 <collectionProp name="Asserion.test_strings">
6100 <stringProp name="49586">200</stringProp>
6102 <stringProp name="Assertion.custom_message"></stringProp>
6103 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
6104 <boolProp name="Assertion.assume_success">false</boolProp>
6105 <intProp name="Assertion.test_type">1</intProp>
6106 </ResponseAssertion>
6108 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
6109 <stringProp name="scriptLanguage">groovy</stringProp>
6110 <stringProp name="parameters"></stringProp>
6111 <stringProp name="filename"></stringProp>
6112 <stringProp name="cacheKey">true</stringProp>
6113 <stringProp name="script">import groovy.json.JsonSlurper;
6116 if (prev.getResponseCode() == '200') {
6117 def jsonSlurper = new JsonSlurper();
6118 res = jsonSlurper.parseText(prev.getResponseDataAsString());
6120 assert res instanceof Map;
6121 assert res.get('guard.frequency.scaleout').version == "9.0.0";
6126 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create Guard Policy V12" enabled="true">
6127 <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
6128 <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
6129 <collectionProp name="Arguments.arguments">
6130 <elementProp name="" elementType="HTTPArgument">
6131 <boolProp name="HTTPArgument.always_encode">false</boolProp>
6132 <stringProp name="Argument.value">{
6133 "policy-id" : "guard.frequency.scaleout",
6134 "policy-version" : "12",
6135 "content" : {
6136 "actor": "SO",
6137 "recipe": "scaleOut",
6138 "targets": ".*",
6139 "clname": "ControlLoop-vDNS-6f37f56d-a87d-4b85-b6a9-cc953cf779b3",
6140 "limit": "1",
6141 "timeWindow": "10",
6142 "timeUnits": "minute",
6143 "guardActiveStart": "00:00:01-05:00",
6144 "guardActiveEnd": "23:59:59-05:00"
6147 <stringProp name="Argument.metadata">=</stringProp>
6151 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
6152 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
6153 <stringProp name="HTTPSampler.protocol">https</stringProp>
6154 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
6155 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.controlloop.Guard/versions/1.0.0/policies</stringProp>
6156 <stringProp name="HTTPSampler.method">POST</stringProp>
6157 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
6158 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
6159 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
6160 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
6161 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
6162 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
6163 <stringProp name="HTTPSampler.response_timeout"></stringProp>
6166 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
6167 <collectionProp name="Asserion.test_strings">
6168 <stringProp name="49586">200</stringProp>
6170 <stringProp name="Assertion.custom_message"></stringProp>
6171 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
6172 <boolProp name="Assertion.assume_success">false</boolProp>
6173 <intProp name="Assertion.test_type">1</intProp>
6174 </ResponseAssertion>
6176 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
6177 <stringProp name="scriptLanguage">groovy</stringProp>
6178 <stringProp name="parameters"></stringProp>
6179 <stringProp name="filename"></stringProp>
6180 <stringProp name="cacheKey">true</stringProp>
6181 <stringProp name="script">import groovy.json.JsonSlurper;
6184 if (prev.getResponseCode() == '200') {
6185 def jsonSlurper = new JsonSlurper();
6186 res = jsonSlurper.parseText(prev.getResponseDataAsString());
6188 assert res instanceof Map;
6189 assert res.get('guard.frequency.scaleout').version == "12.0.0";
6194 <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="Constant Timer" enabled="true">
6195 <stringProp name="ConstantTimer.delay">10000</stringProp>
6198 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get Guard Policy V1" enabled="true">
6199 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
6200 <collectionProp name="Arguments.arguments"/>
6202 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
6203 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
6204 <stringProp name="HTTPSampler.protocol">https</stringProp>
6205 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
6206 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.controlloop.Guard/versions/1.0.0/policies/guard.frequency.scaleout/versions/1</stringProp>
6207 <stringProp name="HTTPSampler.method">GET</stringProp>
6208 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
6209 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
6210 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
6211 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
6212 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
6213 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
6214 <stringProp name="HTTPSampler.response_timeout"></stringProp>
6217 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
6218 <collectionProp name="Asserion.test_strings">
6219 <stringProp name="49586">200</stringProp>
6221 <stringProp name="Assertion.custom_message"></stringProp>
6222 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
6223 <boolProp name="Assertion.assume_success">false</boolProp>
6224 <intProp name="Assertion.test_type">1</intProp>
6225 </ResponseAssertion>
6227 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
6228 <stringProp name="scriptLanguage">groovy</stringProp>
6229 <stringProp name="parameters"></stringProp>
6230 <stringProp name="filename"></stringProp>
6231 <stringProp name="cacheKey">true</stringProp>
6232 <stringProp name="script">import groovy.json.JsonSlurper;
6235 if (prev.getResponseCode() == '200') {
6236 def jsonSlurper = new JsonSlurper();
6237 res = jsonSlurper.parseText(prev.getResponseDataAsString());
6239 assert res instanceof Map;
6240 assert res.get('guard.frequency.scaleout').version == "1.0.0";
6245 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get Guard Policy V5" enabled="true">
6246 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
6247 <collectionProp name="Arguments.arguments"/>
6249 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
6250 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
6251 <stringProp name="HTTPSampler.protocol">https</stringProp>
6252 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
6253 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.controlloop.Guard/versions/1.0.0/policies/guard.frequency.scaleout/versions/5</stringProp>
6254 <stringProp name="HTTPSampler.method">GET</stringProp>
6255 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
6256 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
6257 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
6258 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
6259 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
6260 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
6261 <stringProp name="HTTPSampler.response_timeout"></stringProp>
6264 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
6265 <collectionProp name="Asserion.test_strings">
6266 <stringProp name="49586">200</stringProp>
6268 <stringProp name="Assertion.custom_message"></stringProp>
6269 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
6270 <boolProp name="Assertion.assume_success">false</boolProp>
6271 <intProp name="Assertion.test_type">1</intProp>
6272 </ResponseAssertion>
6274 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
6275 <stringProp name="scriptLanguage">groovy</stringProp>
6276 <stringProp name="parameters"></stringProp>
6277 <stringProp name="filename"></stringProp>
6278 <stringProp name="cacheKey">true</stringProp>
6279 <stringProp name="script">import groovy.json.JsonSlurper;
6282 if (prev.getResponseCode() == '200') {
6283 def jsonSlurper = new JsonSlurper();
6284 res = jsonSlurper.parseText(prev.getResponseDataAsString());
6286 assert res instanceof Map;
6287 assert res.get('guard.frequency.scaleout').version == "5.0.0";
6292 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get Guard Policy V9" enabled="true">
6293 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
6294 <collectionProp name="Arguments.arguments"/>
6296 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
6297 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
6298 <stringProp name="HTTPSampler.protocol">https</stringProp>
6299 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
6300 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.controlloop.Guard/versions/1.0.0/policies/guard.frequency.scaleout/versions/9</stringProp>
6301 <stringProp name="HTTPSampler.method">GET</stringProp>
6302 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
6303 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
6304 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
6305 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
6306 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
6307 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
6308 <stringProp name="HTTPSampler.response_timeout"></stringProp>
6311 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
6312 <collectionProp name="Asserion.test_strings">
6313 <stringProp name="49586">200</stringProp>
6315 <stringProp name="Assertion.custom_message"></stringProp>
6316 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
6317 <boolProp name="Assertion.assume_success">false</boolProp>
6318 <intProp name="Assertion.test_type">1</intProp>
6319 </ResponseAssertion>
6321 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
6322 <stringProp name="scriptLanguage">groovy</stringProp>
6323 <stringProp name="parameters"></stringProp>
6324 <stringProp name="filename"></stringProp>
6325 <stringProp name="cacheKey">true</stringProp>
6326 <stringProp name="script">import groovy.json.JsonSlurper;
6329 if (prev.getResponseCode() == '200') {
6330 def jsonSlurper = new JsonSlurper();
6331 res = jsonSlurper.parseText(prev.getResponseDataAsString());
6333 assert res instanceof Map;
6334 assert res.get('guard.frequency.scaleout').version == "9.0.0";
6339 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get Guard Policy V12" enabled="true">
6340 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
6341 <collectionProp name="Arguments.arguments"/>
6343 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
6344 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
6345 <stringProp name="HTTPSampler.protocol">https</stringProp>
6346 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
6347 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.controlloop.Guard/versions/1.0.0/policies/guard.frequency.scaleout/versions/12</stringProp>
6348 <stringProp name="HTTPSampler.method">GET</stringProp>
6349 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
6350 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
6351 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
6352 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
6353 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
6354 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
6355 <stringProp name="HTTPSampler.response_timeout"></stringProp>
6358 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
6359 <collectionProp name="Asserion.test_strings">
6360 <stringProp name="49586">200</stringProp>
6362 <stringProp name="Assertion.custom_message"></stringProp>
6363 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
6364 <boolProp name="Assertion.assume_success">false</boolProp>
6365 <intProp name="Assertion.test_type">1</intProp>
6366 </ResponseAssertion>
6368 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
6369 <stringProp name="scriptLanguage">groovy</stringProp>
6370 <stringProp name="parameters"></stringProp>
6371 <stringProp name="filename"></stringProp>
6372 <stringProp name="cacheKey">true</stringProp>
6373 <stringProp name="script">import groovy.json.JsonSlurper;
6376 if (prev.getResponseCode() == '200') {
6377 def jsonSlurper = new JsonSlurper();
6378 res = jsonSlurper.parseText(prev.getResponseDataAsString());
6380 assert res instanceof Map;
6381 assert res.get('guard.frequency.scaleout').version == "12.0.0";
6386 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get Latest Guard Policy" enabled="true">
6387 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
6388 <collectionProp name="Arguments.arguments"/>
6390 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
6391 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
6392 <stringProp name="HTTPSampler.protocol">https</stringProp>
6393 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
6394 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.controlloop.Guard/versions/1.0.0/policies/guard.frequency.scaleout/versions/latest</stringProp>
6395 <stringProp name="HTTPSampler.method">GET</stringProp>
6396 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
6397 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
6398 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
6399 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
6400 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
6401 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
6402 <stringProp name="HTTPSampler.response_timeout"></stringProp>
6405 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
6406 <collectionProp name="Asserion.test_strings">
6407 <stringProp name="49586">200</stringProp>
6409 <stringProp name="Assertion.custom_message"></stringProp>
6410 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
6411 <boolProp name="Assertion.assume_success">false</boolProp>
6412 <intProp name="Assertion.test_type">1</intProp>
6413 </ResponseAssertion>
6415 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
6416 <stringProp name="scriptLanguage">groovy</stringProp>
6417 <stringProp name="parameters"></stringProp>
6418 <stringProp name="filename"></stringProp>
6419 <stringProp name="cacheKey">true</stringProp>
6420 <stringProp name="script">import groovy.json.JsonSlurper;
6423 if (prev.getResponseCode() == '200') {
6424 def jsonSlurper = new JsonSlurper();
6425 res = jsonSlurper.parseText(prev.getResponseDataAsString());
6427 assert res instanceof Map;
6428 assert res.get('guard.frequency.scaleout').version == "12.0.0";
6433 <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="Constant Timer" enabled="true">
6434 <stringProp name="ConstantTimer.delay">3000</stringProp>
6438 <PostThreadGroup guiclass="PostThreadGroupGui" testclass="PostThreadGroup" testname="tearDown Thread Group" enabled="true">
6439 <stringProp name="ThreadGroup.on_sample_error">continue</stringProp>
6440 <elementProp name="ThreadGroup.main_controller" elementType="LoopController" guiclass="LoopControlPanel" testclass="LoopController" testname="Loop Controller" enabled="true">
6441 <boolProp name="LoopController.continue_forever">false</boolProp>
6442 <stringProp name="LoopController.loops">1</stringProp>
6444 <stringProp name="ThreadGroup.num_threads">1</stringProp>
6445 <stringProp name="ThreadGroup.ramp_time">1</stringProp>
6446 <boolProp name="ThreadGroup.scheduler">false</boolProp>
6447 <stringProp name="ThreadGroup.duration"></stringProp>
6448 <stringProp name="ThreadGroup.delay"></stringProp>
6451 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete TCA Policy Type V2" enabled="true">
6452 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
6453 <collectionProp name="Arguments.arguments"/>
6455 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
6456 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
6457 <stringProp name="HTTPSampler.protocol">https</stringProp>
6458 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
6459 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/2.0.0</stringProp>
6460 <stringProp name="HTTPSampler.method">DELETE</stringProp>
6461 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
6462 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
6463 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
6464 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
6465 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
6466 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
6467 <stringProp name="HTTPSampler.response_timeout"></stringProp>
6470 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
6471 <collectionProp name="Asserion.test_strings">
6472 <stringProp name="51517">409</stringProp>
6474 <stringProp name="Assertion.custom_message"></stringProp>
6475 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
6476 <boolProp name="Assertion.assume_success">false</boolProp>
6477 <intProp name="Assertion.test_type">1</intProp>
6478 </ResponseAssertion>
6481 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete TCA Policy Type V3" enabled="true">
6482 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
6483 <collectionProp name="Arguments.arguments"/>
6485 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
6486 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
6487 <stringProp name="HTTPSampler.protocol">https</stringProp>
6488 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
6489 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/3.0.0</stringProp>
6490 <stringProp name="HTTPSampler.method">DELETE</stringProp>
6491 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
6492 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
6493 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
6494 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
6495 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
6496 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
6497 <stringProp name="HTTPSampler.response_timeout"></stringProp>
6500 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
6501 <collectionProp name="Asserion.test_strings">
6502 <stringProp name="49586">200</stringProp>
6504 <stringProp name="Assertion.custom_message"></stringProp>
6505 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
6506 <boolProp name="Assertion.assume_success">false</boolProp>
6507 <intProp name="Assertion.test_type">1</intProp>
6508 </ResponseAssertion>
6510 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
6511 <stringProp name="scriptLanguage">groovy</stringProp>
6512 <stringProp name="parameters"></stringProp>
6513 <stringProp name="filename"></stringProp>
6514 <stringProp name="cacheKey">true</stringProp>
6515 <stringProp name="script">import groovy.json.JsonSlurper;
6518 if (prev.getResponseCode() == '200') {
6519 def jsonSlurper = new JsonSlurper();
6520 res = jsonSlurper.parseText(prev.getResponseDataAsString());
6522 assert res instanceof Map;
6523 assert res.policy_types instanceof List;
6524 assert res.policy_types.size == 1;
6525 assert res.policy_types[0] instanceof Map;
6526 assert res.policy_types[0].get('onap.policies.monitoring.cdap.tca.hi.lo.app').version == "3.0.0";
6531 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete TCA Policy Type V4" enabled="true">
6532 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
6533 <collectionProp name="Arguments.arguments"/>
6535 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
6536 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
6537 <stringProp name="HTTPSampler.protocol">https</stringProp>
6538 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
6539 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/4.0.0</stringProp>
6540 <stringProp name="HTTPSampler.method">DELETE</stringProp>
6541 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
6542 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
6543 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
6544 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
6545 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
6546 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
6547 <stringProp name="HTTPSampler.response_timeout"></stringProp>
6550 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
6551 <collectionProp name="Asserion.test_strings">
6552 <stringProp name="49586">200</stringProp>
6554 <stringProp name="Assertion.custom_message"></stringProp>
6555 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
6556 <boolProp name="Assertion.assume_success">false</boolProp>
6557 <intProp name="Assertion.test_type">1</intProp>
6558 </ResponseAssertion>
6560 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
6561 <stringProp name="scriptLanguage">groovy</stringProp>
6562 <stringProp name="parameters"></stringProp>
6563 <stringProp name="filename"></stringProp>
6564 <stringProp name="cacheKey">true</stringProp>
6565 <stringProp name="script">import groovy.json.JsonSlurper;
6568 if (prev.getResponseCode() == '200') {
6569 def jsonSlurper = new JsonSlurper();
6570 res = jsonSlurper.parseText(prev.getResponseDataAsString());
6572 assert res instanceof Map;
6573 assert res.policy_types instanceof List;
6574 assert res.policy_types.size == 1;
6575 assert res.policy_types[0] instanceof Map;
6576 assert res.policy_types[0].get('onap.policies.monitoring.cdap.tca.hi.lo.app').version == "4.0.0";
6581 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete TCA Policy Type V5" enabled="true">
6582 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
6583 <collectionProp name="Arguments.arguments"/>
6585 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
6586 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
6587 <stringProp name="HTTPSampler.protocol">https</stringProp>
6588 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
6589 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/5.0.0</stringProp>
6590 <stringProp name="HTTPSampler.method">DELETE</stringProp>
6591 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
6592 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
6593 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
6594 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
6595 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
6596 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
6597 <stringProp name="HTTPSampler.response_timeout"></stringProp>
6600 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
6601 <collectionProp name="Asserion.test_strings">
6602 <stringProp name="49586">200</stringProp>
6604 <stringProp name="Assertion.custom_message"></stringProp>
6605 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
6606 <boolProp name="Assertion.assume_success">false</boolProp>
6607 <intProp name="Assertion.test_type">1</intProp>
6608 </ResponseAssertion>
6610 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
6611 <stringProp name="scriptLanguage">groovy</stringProp>
6612 <stringProp name="parameters"></stringProp>
6613 <stringProp name="filename"></stringProp>
6614 <stringProp name="cacheKey">true</stringProp>
6615 <stringProp name="script">import groovy.json.JsonSlurper;
6618 if (prev.getResponseCode() == '200') {
6619 def jsonSlurper = new JsonSlurper();
6620 res = jsonSlurper.parseText(prev.getResponseDataAsString());
6622 assert res instanceof Map;
6623 assert res.policy_types instanceof List;
6624 assert res.policy_types.size == 1;
6625 assert res.policy_types[0] instanceof Map;
6626 assert res.policy_types[0].get('onap.policies.monitoring.cdap.tca.hi.lo.app').version == "5.0.0";
6631 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete TCA Policy Type V6" enabled="true">
6632 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
6633 <collectionProp name="Arguments.arguments"/>
6635 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
6636 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
6637 <stringProp name="HTTPSampler.protocol">https</stringProp>
6638 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
6639 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/6.0.0</stringProp>
6640 <stringProp name="HTTPSampler.method">DELETE</stringProp>
6641 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
6642 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
6643 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
6644 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
6645 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
6646 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
6647 <stringProp name="HTTPSampler.response_timeout"></stringProp>
6650 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
6651 <collectionProp name="Asserion.test_strings">
6652 <stringProp name="49586">200</stringProp>
6654 <stringProp name="Assertion.custom_message"></stringProp>
6655 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
6656 <boolProp name="Assertion.assume_success">false</boolProp>
6657 <intProp name="Assertion.test_type">1</intProp>
6658 </ResponseAssertion>
6660 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
6661 <stringProp name="scriptLanguage">groovy</stringProp>
6662 <stringProp name="parameters"></stringProp>
6663 <stringProp name="filename"></stringProp>
6664 <stringProp name="cacheKey">true</stringProp>
6665 <stringProp name="script">import groovy.json.JsonSlurper;
6668 if (prev.getResponseCode() == '200') {
6669 def jsonSlurper = new JsonSlurper();
6670 res = jsonSlurper.parseText(prev.getResponseDataAsString());
6672 assert res instanceof Map;
6673 assert res.policy_types instanceof List;
6674 assert res.policy_types.size == 1;
6675 assert res.policy_types[0] instanceof Map;
6676 assert res.policy_types[0].get('onap.policies.monitoring.cdap.tca.hi.lo.app').version == "6.0.0";
6681 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete TCA Policy Type V7" enabled="true">
6682 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
6683 <collectionProp name="Arguments.arguments"/>
6685 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
6686 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
6687 <stringProp name="HTTPSampler.protocol">https</stringProp>
6688 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
6689 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/7.0.0</stringProp>
6690 <stringProp name="HTTPSampler.method">DELETE</stringProp>
6691 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
6692 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
6693 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
6694 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
6695 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
6696 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
6697 <stringProp name="HTTPSampler.response_timeout"></stringProp>
6700 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
6701 <collectionProp name="Asserion.test_strings">
6702 <stringProp name="49586">200</stringProp>
6704 <stringProp name="Assertion.custom_message"></stringProp>
6705 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
6706 <boolProp name="Assertion.assume_success">false</boolProp>
6707 <intProp name="Assertion.test_type">1</intProp>
6708 </ResponseAssertion>
6710 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
6711 <stringProp name="scriptLanguage">groovy</stringProp>
6712 <stringProp name="parameters"></stringProp>
6713 <stringProp name="filename"></stringProp>
6714 <stringProp name="cacheKey">true</stringProp>
6715 <stringProp name="script">import groovy.json.JsonSlurper;
6718 if (prev.getResponseCode() == '200') {
6719 def jsonSlurper = new JsonSlurper();
6720 res = jsonSlurper.parseText(prev.getResponseDataAsString());
6722 assert res instanceof Map;
6723 assert res.policy_types instanceof List;
6724 assert res.policy_types.size == 1;
6725 assert res.policy_types[0] instanceof Map;
6726 assert res.policy_types[0].get('onap.policies.monitoring.cdap.tca.hi.lo.app').version == "7.0.0";
6731 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete TCA Policy Type V8" enabled="true">
6732 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
6733 <collectionProp name="Arguments.arguments"/>
6735 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
6736 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
6737 <stringProp name="HTTPSampler.protocol">https</stringProp>
6738 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
6739 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/8.0.0</stringProp>
6740 <stringProp name="HTTPSampler.method">DELETE</stringProp>
6741 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
6742 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
6743 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
6744 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
6745 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
6746 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
6747 <stringProp name="HTTPSampler.response_timeout"></stringProp>
6750 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
6751 <collectionProp name="Asserion.test_strings">
6752 <stringProp name="49586">200</stringProp>
6754 <stringProp name="Assertion.custom_message"></stringProp>
6755 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
6756 <boolProp name="Assertion.assume_success">false</boolProp>
6757 <intProp name="Assertion.test_type">1</intProp>
6758 </ResponseAssertion>
6760 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
6761 <stringProp name="scriptLanguage">groovy</stringProp>
6762 <stringProp name="parameters"></stringProp>
6763 <stringProp name="filename"></stringProp>
6764 <stringProp name="cacheKey">true</stringProp>
6765 <stringProp name="script">import groovy.json.JsonSlurper;
6768 if (prev.getResponseCode() == '200') {
6769 def jsonSlurper = new JsonSlurper();
6770 res = jsonSlurper.parseText(prev.getResponseDataAsString());
6772 assert res instanceof Map;
6773 assert res.policy_types instanceof List;
6774 assert res.policy_types.size == 1;
6775 assert res.policy_types[0] instanceof Map;
6776 assert res.policy_types[0].get('onap.policies.monitoring.cdap.tca.hi.lo.app').version == "8.0.0";
6781 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete TCA Policy Type V9" enabled="true">
6782 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
6783 <collectionProp name="Arguments.arguments"/>
6785 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
6786 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
6787 <stringProp name="HTTPSampler.protocol">https</stringProp>
6788 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
6789 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/9.0.0</stringProp>
6790 <stringProp name="HTTPSampler.method">DELETE</stringProp>
6791 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
6792 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
6793 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
6794 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
6795 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
6796 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
6797 <stringProp name="HTTPSampler.response_timeout"></stringProp>
6800 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
6801 <collectionProp name="Asserion.test_strings">
6802 <stringProp name="49586">200</stringProp>
6804 <stringProp name="Assertion.custom_message"></stringProp>
6805 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
6806 <boolProp name="Assertion.assume_success">false</boolProp>
6807 <intProp name="Assertion.test_type">1</intProp>
6808 </ResponseAssertion>
6810 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
6811 <stringProp name="scriptLanguage">groovy</stringProp>
6812 <stringProp name="parameters"></stringProp>
6813 <stringProp name="filename"></stringProp>
6814 <stringProp name="cacheKey">true</stringProp>
6815 <stringProp name="script">import groovy.json.JsonSlurper;
6818 if (prev.getResponseCode() == '200') {
6819 def jsonSlurper = new JsonSlurper();
6820 res = jsonSlurper.parseText(prev.getResponseDataAsString());
6822 assert res instanceof Map;
6823 assert res.policy_types instanceof List;
6824 assert res.policy_types.size == 1;
6825 assert res.policy_types[0] instanceof Map;
6826 assert res.policy_types[0].get('onap.policies.monitoring.cdap.tca.hi.lo.app').version == "9.0.0";
6831 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete TCA Policy Type V10" enabled="true">
6832 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
6833 <collectionProp name="Arguments.arguments"/>
6835 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
6836 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
6837 <stringProp name="HTTPSampler.protocol">https</stringProp>
6838 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
6839 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/10.0.0</stringProp>
6840 <stringProp name="HTTPSampler.method">DELETE</stringProp>
6841 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
6842 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
6843 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
6844 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
6845 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
6846 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
6847 <stringProp name="HTTPSampler.response_timeout"></stringProp>
6850 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
6851 <collectionProp name="Asserion.test_strings">
6852 <stringProp name="49586">200</stringProp>
6854 <stringProp name="Assertion.custom_message"></stringProp>
6855 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
6856 <boolProp name="Assertion.assume_success">false</boolProp>
6857 <intProp name="Assertion.test_type">1</intProp>
6858 </ResponseAssertion>
6860 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
6861 <stringProp name="scriptLanguage">groovy</stringProp>
6862 <stringProp name="parameters"></stringProp>
6863 <stringProp name="filename"></stringProp>
6864 <stringProp name="cacheKey">true</stringProp>
6865 <stringProp name="script">import groovy.json.JsonSlurper;
6868 if (prev.getResponseCode() == '200') {
6869 def jsonSlurper = new JsonSlurper();
6870 res = jsonSlurper.parseText(prev.getResponseDataAsString());
6872 assert res instanceof Map;
6873 assert res.policy_types instanceof List;
6874 assert res.policy_types.size == 1;
6875 assert res.policy_types[0] instanceof Map;
6876 assert res.policy_types[0].get('onap.policies.monitoring.cdap.tca.hi.lo.app').version == "10.0.0";
6881 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete TCA Policy Type V11" enabled="true">
6882 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
6883 <collectionProp name="Arguments.arguments"/>
6885 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
6886 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
6887 <stringProp name="HTTPSampler.protocol">https</stringProp>
6888 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
6889 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/11.0.0</stringProp>
6890 <stringProp name="HTTPSampler.method">DELETE</stringProp>
6891 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
6892 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
6893 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
6894 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
6895 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
6896 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
6897 <stringProp name="HTTPSampler.response_timeout"></stringProp>
6900 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
6901 <collectionProp name="Asserion.test_strings">
6902 <stringProp name="49586">200</stringProp>
6904 <stringProp name="Assertion.custom_message"></stringProp>
6905 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
6906 <boolProp name="Assertion.assume_success">false</boolProp>
6907 <intProp name="Assertion.test_type">1</intProp>
6908 </ResponseAssertion>
6910 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
6911 <stringProp name="scriptLanguage">groovy</stringProp>
6912 <stringProp name="parameters"></stringProp>
6913 <stringProp name="filename"></stringProp>
6914 <stringProp name="cacheKey">true</stringProp>
6915 <stringProp name="script">import groovy.json.JsonSlurper;
6918 if (prev.getResponseCode() == '200') {
6919 def jsonSlurper = new JsonSlurper();
6920 res = jsonSlurper.parseText(prev.getResponseDataAsString());
6922 assert res instanceof Map;
6923 assert res.policy_types instanceof List;
6924 assert res.policy_types.size == 1;
6925 assert res.policy_types[0] instanceof Map;
6926 assert res.policy_types[0].get('onap.policies.monitoring.cdap.tca.hi.lo.app').version == "11.0.0";
6931 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete TCA Policy V1" enabled="true">
6932 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
6933 <collectionProp name="Arguments.arguments"/>
6935 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
6936 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
6937 <stringProp name="HTTPSampler.protocol">https</stringProp>
6938 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
6939 <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>
6940 <stringProp name="HTTPSampler.method">DELETE</stringProp>
6941 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
6942 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
6943 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
6944 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
6945 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
6946 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
6947 <stringProp name="HTTPSampler.response_timeout"></stringProp>
6950 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
6951 <collectionProp name="Asserion.test_strings">
6952 <stringProp name="49586">200</stringProp>
6954 <stringProp name="Assertion.custom_message"></stringProp>
6955 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
6956 <boolProp name="Assertion.assume_success">false</boolProp>
6957 <intProp name="Assertion.test_type">1</intProp>
6958 </ResponseAssertion>
6960 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
6961 <stringProp name="scriptLanguage">groovy</stringProp>
6962 <stringProp name="parameters"></stringProp>
6963 <stringProp name="filename"></stringProp>
6964 <stringProp name="cacheKey">true</stringProp>
6965 <stringProp name="script">import groovy.json.JsonSlurper;
6968 if (prev.getResponseCode() == '200') {
6969 def jsonSlurper = new JsonSlurper();
6970 res = jsonSlurper.parseText(prev.getResponseDataAsString());
6972 assert res instanceof Map;
6973 assert res.topology_template.policies instanceof List;
6974 assert res.topology_template.policies.size == 1;
6975 assert res.topology_template.policies[0] instanceof Map;
6976 assert res.topology_template.policies[0].get('onap.restart.tca').version == "1.0.0";
6981 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete TCA Policy V2" enabled="true">
6982 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
6983 <collectionProp name="Arguments.arguments"/>
6985 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
6986 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
6987 <stringProp name="HTTPSampler.protocol">https</stringProp>
6988 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
6989 <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>
6990 <stringProp name="HTTPSampler.method">DELETE</stringProp>
6991 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
6992 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
6993 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
6994 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
6995 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
6996 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
6997 <stringProp name="HTTPSampler.response_timeout"></stringProp>
7000 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
7001 <collectionProp name="Asserion.test_strings">
7002 <stringProp name="49586">200</stringProp>
7004 <stringProp name="Assertion.custom_message"></stringProp>
7005 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
7006 <boolProp name="Assertion.assume_success">false</boolProp>
7007 <intProp name="Assertion.test_type">1</intProp>
7008 </ResponseAssertion>
7010 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
7011 <stringProp name="scriptLanguage">groovy</stringProp>
7012 <stringProp name="parameters"></stringProp>
7013 <stringProp name="filename"></stringProp>
7014 <stringProp name="cacheKey">true</stringProp>
7015 <stringProp name="script">import groovy.json.JsonSlurper;
7018 if (prev.getResponseCode() == '200') {
7019 def jsonSlurper = new JsonSlurper();
7020 res = jsonSlurper.parseText(prev.getResponseDataAsString());
7022 assert res instanceof Map;
7023 assert res.topology_template.policies instanceof List;
7024 assert res.topology_template.policies.size == 1;
7025 assert res.topology_template.policies[0] instanceof Map;
7026 assert res.topology_template.policies[0].get('onap.restart.tca').version == "2.0.0";
7031 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete TCA Policy V3" enabled="true">
7032 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
7033 <collectionProp name="Arguments.arguments"/>
7035 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
7036 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
7037 <stringProp name="HTTPSampler.protocol">https</stringProp>
7038 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
7039 <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>
7040 <stringProp name="HTTPSampler.method">DELETE</stringProp>
7041 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
7042 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
7043 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
7044 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
7045 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
7046 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
7047 <stringProp name="HTTPSampler.response_timeout"></stringProp>
7050 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
7051 <collectionProp name="Asserion.test_strings">
7052 <stringProp name="49586">200</stringProp>
7054 <stringProp name="Assertion.custom_message"></stringProp>
7055 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
7056 <boolProp name="Assertion.assume_success">false</boolProp>
7057 <intProp name="Assertion.test_type">1</intProp>
7058 </ResponseAssertion>
7060 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
7061 <stringProp name="scriptLanguage">groovy</stringProp>
7062 <stringProp name="parameters"></stringProp>
7063 <stringProp name="filename"></stringProp>
7064 <stringProp name="cacheKey">true</stringProp>
7065 <stringProp name="script">import groovy.json.JsonSlurper;
7068 if (prev.getResponseCode() == '200') {
7069 def jsonSlurper = new JsonSlurper();
7070 res = jsonSlurper.parseText(prev.getResponseDataAsString());
7072 assert res instanceof Map;
7073 assert res.topology_template.policies instanceof List;
7074 assert res.topology_template.policies.size == 1;
7075 assert res.topology_template.policies[0] instanceof Map;
7076 assert res.topology_template.policies[0].get('onap.restart.tca').version == "3.0.0";
7081 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete TCA Policy V4" enabled="true">
7082 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
7083 <collectionProp name="Arguments.arguments"/>
7085 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
7086 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
7087 <stringProp name="HTTPSampler.protocol">https</stringProp>
7088 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
7089 <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>
7090 <stringProp name="HTTPSampler.method">DELETE</stringProp>
7091 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
7092 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
7093 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
7094 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
7095 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
7096 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
7097 <stringProp name="HTTPSampler.response_timeout"></stringProp>
7100 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
7101 <collectionProp name="Asserion.test_strings">
7102 <stringProp name="49586">200</stringProp>
7104 <stringProp name="Assertion.custom_message"></stringProp>
7105 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
7106 <boolProp name="Assertion.assume_success">false</boolProp>
7107 <intProp name="Assertion.test_type">1</intProp>
7108 </ResponseAssertion>
7110 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
7111 <stringProp name="scriptLanguage">groovy</stringProp>
7112 <stringProp name="parameters"></stringProp>
7113 <stringProp name="filename"></stringProp>
7114 <stringProp name="cacheKey">true</stringProp>
7115 <stringProp name="script">import groovy.json.JsonSlurper;
7118 if (prev.getResponseCode() == '200') {
7119 def jsonSlurper = new JsonSlurper();
7120 res = jsonSlurper.parseText(prev.getResponseDataAsString());
7122 assert res instanceof Map;
7123 assert res.topology_template.policies instanceof List;
7124 assert res.topology_template.policies.size == 1;
7125 assert res.topology_template.policies[0] instanceof Map;
7126 assert res.topology_template.policies[0].get('onap.restart.tca').version == "4.0.0";
7131 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete TCA Policy V5" enabled="true">
7132 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
7133 <collectionProp name="Arguments.arguments"/>
7135 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
7136 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
7137 <stringProp name="HTTPSampler.protocol">https</stringProp>
7138 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
7139 <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>
7140 <stringProp name="HTTPSampler.method">DELETE</stringProp>
7141 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
7142 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
7143 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
7144 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
7145 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
7146 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
7147 <stringProp name="HTTPSampler.response_timeout"></stringProp>
7150 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
7151 <collectionProp name="Asserion.test_strings">
7152 <stringProp name="49586">200</stringProp>
7154 <stringProp name="Assertion.custom_message"></stringProp>
7155 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
7156 <boolProp name="Assertion.assume_success">false</boolProp>
7157 <intProp name="Assertion.test_type">1</intProp>
7158 </ResponseAssertion>
7160 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
7161 <stringProp name="scriptLanguage">groovy</stringProp>
7162 <stringProp name="parameters"></stringProp>
7163 <stringProp name="filename"></stringProp>
7164 <stringProp name="cacheKey">true</stringProp>
7165 <stringProp name="script">import groovy.json.JsonSlurper;
7168 if (prev.getResponseCode() == '200') {
7169 def jsonSlurper = new JsonSlurper();
7170 res = jsonSlurper.parseText(prev.getResponseDataAsString());
7172 assert res instanceof Map;
7173 assert res.topology_template.policies instanceof List;
7174 assert res.topology_template.policies.size == 1;
7175 assert res.topology_template.policies[0] instanceof Map;
7176 assert res.topology_template.policies[0].get('onap.restart.tca').version == "5.0.0";
7181 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete TCA Policy V6" enabled="true">
7182 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
7183 <collectionProp name="Arguments.arguments"/>
7185 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
7186 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
7187 <stringProp name="HTTPSampler.protocol">https</stringProp>
7188 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
7189 <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>
7190 <stringProp name="HTTPSampler.method">DELETE</stringProp>
7191 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
7192 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
7193 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
7194 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
7195 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
7196 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
7197 <stringProp name="HTTPSampler.response_timeout"></stringProp>
7200 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
7201 <collectionProp name="Asserion.test_strings">
7202 <stringProp name="49586">200</stringProp>
7204 <stringProp name="Assertion.custom_message"></stringProp>
7205 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
7206 <boolProp name="Assertion.assume_success">false</boolProp>
7207 <intProp name="Assertion.test_type">1</intProp>
7208 </ResponseAssertion>
7210 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
7211 <stringProp name="scriptLanguage">groovy</stringProp>
7212 <stringProp name="parameters"></stringProp>
7213 <stringProp name="filename"></stringProp>
7214 <stringProp name="cacheKey">true</stringProp>
7215 <stringProp name="script">import groovy.json.JsonSlurper;
7218 if (prev.getResponseCode() == '200') {
7219 def jsonSlurper = new JsonSlurper();
7220 res = jsonSlurper.parseText(prev.getResponseDataAsString());
7222 assert res instanceof Map;
7223 assert res.topology_template.policies instanceof List;
7224 assert res.topology_template.policies.size == 1;
7225 assert res.topology_template.policies[0] instanceof Map;
7226 assert res.topology_template.policies[0].get('onap.restart.tca').version == "6.0.0";
7231 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete TCA Policy V7" enabled="true">
7232 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
7233 <collectionProp name="Arguments.arguments"/>
7235 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
7236 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
7237 <stringProp name="HTTPSampler.protocol">https</stringProp>
7238 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
7239 <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>
7240 <stringProp name="HTTPSampler.method">DELETE</stringProp>
7241 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
7242 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
7243 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
7244 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
7245 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
7246 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
7247 <stringProp name="HTTPSampler.response_timeout"></stringProp>
7250 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
7251 <collectionProp name="Asserion.test_strings">
7252 <stringProp name="49586">200</stringProp>
7254 <stringProp name="Assertion.custom_message"></stringProp>
7255 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
7256 <boolProp name="Assertion.assume_success">false</boolProp>
7257 <intProp name="Assertion.test_type">1</intProp>
7258 </ResponseAssertion>
7260 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
7261 <stringProp name="scriptLanguage">groovy</stringProp>
7262 <stringProp name="parameters"></stringProp>
7263 <stringProp name="filename"></stringProp>
7264 <stringProp name="cacheKey">true</stringProp>
7265 <stringProp name="script">import groovy.json.JsonSlurper;
7268 if (prev.getResponseCode() == '200') {
7269 def jsonSlurper = new JsonSlurper();
7270 res = jsonSlurper.parseText(prev.getResponseDataAsString());
7272 assert res instanceof Map;
7273 assert res.topology_template.policies instanceof List;
7274 assert res.topology_template.policies.size == 1;
7275 assert res.topology_template.policies[0] instanceof Map;
7276 assert res.topology_template.policies[0].get('onap.restart.tca').version == "7.0.0";
7281 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete TCA Policy V8" enabled="true">
7282 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
7283 <collectionProp name="Arguments.arguments"/>
7285 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
7286 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
7287 <stringProp name="HTTPSampler.protocol">https</stringProp>
7288 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
7289 <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>
7290 <stringProp name="HTTPSampler.method">DELETE</stringProp>
7291 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
7292 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
7293 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
7294 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
7295 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
7296 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
7297 <stringProp name="HTTPSampler.response_timeout"></stringProp>
7300 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
7301 <collectionProp name="Asserion.test_strings">
7302 <stringProp name="49586">200</stringProp>
7304 <stringProp name="Assertion.custom_message"></stringProp>
7305 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
7306 <boolProp name="Assertion.assume_success">false</boolProp>
7307 <intProp name="Assertion.test_type">1</intProp>
7308 </ResponseAssertion>
7310 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
7311 <stringProp name="scriptLanguage">groovy</stringProp>
7312 <stringProp name="parameters"></stringProp>
7313 <stringProp name="filename"></stringProp>
7314 <stringProp name="cacheKey">true</stringProp>
7315 <stringProp name="script">import groovy.json.JsonSlurper;
7318 if (prev.getResponseCode() == '200') {
7319 def jsonSlurper = new JsonSlurper();
7320 res = jsonSlurper.parseText(prev.getResponseDataAsString());
7322 assert res instanceof Map;
7323 assert res.topology_template.policies instanceof List;
7324 assert res.topology_template.policies.size == 1;
7325 assert res.topology_template.policies[0] instanceof Map;
7326 assert res.topology_template.policies[0].get('onap.restart.tca').version == "8.0.0";
7331 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete TCA Policy V9" enabled="true">
7332 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
7333 <collectionProp name="Arguments.arguments"/>
7335 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
7336 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
7337 <stringProp name="HTTPSampler.protocol">https</stringProp>
7338 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
7339 <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>
7340 <stringProp name="HTTPSampler.method">DELETE</stringProp>
7341 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
7342 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
7343 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
7344 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
7345 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
7346 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
7347 <stringProp name="HTTPSampler.response_timeout"></stringProp>
7350 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
7351 <collectionProp name="Asserion.test_strings">
7352 <stringProp name="49586">200</stringProp>
7354 <stringProp name="Assertion.custom_message"></stringProp>
7355 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
7356 <boolProp name="Assertion.assume_success">false</boolProp>
7357 <intProp name="Assertion.test_type">1</intProp>
7358 </ResponseAssertion>
7360 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
7361 <stringProp name="scriptLanguage">groovy</stringProp>
7362 <stringProp name="parameters"></stringProp>
7363 <stringProp name="filename"></stringProp>
7364 <stringProp name="cacheKey">true</stringProp>
7365 <stringProp name="script">import groovy.json.JsonSlurper;
7368 if (prev.getResponseCode() == '200') {
7369 def jsonSlurper = new JsonSlurper();
7370 res = jsonSlurper.parseText(prev.getResponseDataAsString());
7372 assert res instanceof Map;
7373 assert res.topology_template.policies instanceof List;
7374 assert res.topology_template.policies.size == 1;
7375 assert res.topology_template.policies[0] instanceof Map;
7376 assert res.topology_template.policies[0].get('onap.restart.tca').version == "9.0.0";
7381 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete TCA Policy V10" enabled="true">
7382 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
7383 <collectionProp name="Arguments.arguments"/>
7385 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
7386 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
7387 <stringProp name="HTTPSampler.protocol">https</stringProp>
7388 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
7389 <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>
7390 <stringProp name="HTTPSampler.method">DELETE</stringProp>
7391 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
7392 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
7393 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
7394 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
7395 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
7396 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
7397 <stringProp name="HTTPSampler.response_timeout"></stringProp>
7400 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
7401 <collectionProp name="Asserion.test_strings">
7402 <stringProp name="49586">200</stringProp>
7404 <stringProp name="Assertion.custom_message"></stringProp>
7405 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
7406 <boolProp name="Assertion.assume_success">false</boolProp>
7407 <intProp name="Assertion.test_type">1</intProp>
7408 </ResponseAssertion>
7410 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
7411 <stringProp name="scriptLanguage">groovy</stringProp>
7412 <stringProp name="parameters"></stringProp>
7413 <stringProp name="filename"></stringProp>
7414 <stringProp name="cacheKey">true</stringProp>
7415 <stringProp name="script">import groovy.json.JsonSlurper;
7418 if (prev.getResponseCode() == '200') {
7419 def jsonSlurper = new JsonSlurper();
7420 res = jsonSlurper.parseText(prev.getResponseDataAsString());
7422 assert res instanceof Map;
7423 assert res.topology_template.policies instanceof List;
7424 assert res.topology_template.policies.size == 1;
7425 assert res.topology_template.policies[0] instanceof Map;
7426 assert res.topology_template.policies[0].get('onap.restart.tca').version == "10.0.0";
7431 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete TCA Policy V11" enabled="true">
7432 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
7433 <collectionProp name="Arguments.arguments"/>
7435 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
7436 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
7437 <stringProp name="HTTPSampler.protocol">https</stringProp>
7438 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
7439 <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>
7440 <stringProp name="HTTPSampler.method">DELETE</stringProp>
7441 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
7442 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
7443 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
7444 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
7445 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
7446 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
7447 <stringProp name="HTTPSampler.response_timeout"></stringProp>
7450 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
7451 <collectionProp name="Asserion.test_strings">
7452 <stringProp name="49586">200</stringProp>
7454 <stringProp name="Assertion.custom_message"></stringProp>
7455 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
7456 <boolProp name="Assertion.assume_success">false</boolProp>
7457 <intProp name="Assertion.test_type">1</intProp>
7458 </ResponseAssertion>
7460 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
7461 <stringProp name="scriptLanguage">groovy</stringProp>
7462 <stringProp name="parameters"></stringProp>
7463 <stringProp name="filename"></stringProp>
7464 <stringProp name="cacheKey">true</stringProp>
7465 <stringProp name="script">import groovy.json.JsonSlurper;
7468 if (prev.getResponseCode() == '200') {
7469 def jsonSlurper = new JsonSlurper();
7470 res = jsonSlurper.parseText(prev.getResponseDataAsString());
7472 assert res instanceof Map;
7473 assert res.topology_template.policies instanceof List;
7474 assert res.topology_template.policies.size == 1;
7475 assert res.topology_template.policies[0] instanceof Map;
7476 assert res.topology_template.policies[0].get('onap.restart.tca').version == "11.0.0";
7481 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete TCA Policy Type V2" enabled="true">
7482 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
7483 <collectionProp name="Arguments.arguments"/>
7485 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
7486 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
7487 <stringProp name="HTTPSampler.protocol">https</stringProp>
7488 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
7489 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/2.0.0</stringProp>
7490 <stringProp name="HTTPSampler.method">DELETE</stringProp>
7491 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
7492 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
7493 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
7494 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
7495 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
7496 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
7497 <stringProp name="HTTPSampler.response_timeout"></stringProp>
7500 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
7501 <collectionProp name="Asserion.test_strings">
7502 <stringProp name="49586">200</stringProp>
7504 <stringProp name="Assertion.custom_message"></stringProp>
7505 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
7506 <boolProp name="Assertion.assume_success">false</boolProp>
7507 <intProp name="Assertion.test_type">1</intProp>
7508 </ResponseAssertion>
7510 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
7511 <stringProp name="scriptLanguage">groovy</stringProp>
7512 <stringProp name="parameters"></stringProp>
7513 <stringProp name="filename"></stringProp>
7514 <stringProp name="cacheKey">true</stringProp>
7515 <stringProp name="script">import groovy.json.JsonSlurper;
7518 if (prev.getResponseCode() == '200') {
7519 def jsonSlurper = new JsonSlurper();
7520 res = jsonSlurper.parseText(prev.getResponseDataAsString());
7522 assert res instanceof Map;
7523 assert res.policy_types instanceof List;
7524 assert res.policy_types.size == 1;
7525 assert res.policy_types[0] instanceof Map;
7526 assert res.policy_types[0].get('onap.policies.monitoring.cdap.tca.hi.lo.app').version == "2.0.0";
7531 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete Guard Policy V1" enabled="true">
7532 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
7533 <collectionProp name="Arguments.arguments"/>
7535 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
7536 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
7537 <stringProp name="HTTPSampler.protocol">https</stringProp>
7538 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
7539 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.controlloop.Guard/versions/1.0.0/policies/guard.frequency.scaleout/versions/1</stringProp>
7540 <stringProp name="HTTPSampler.method">DELETE</stringProp>
7541 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
7542 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
7543 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
7544 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
7545 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
7546 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
7547 <stringProp name="HTTPSampler.response_timeout"></stringProp>
7550 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
7551 <collectionProp name="Asserion.test_strings">
7552 <stringProp name="49586">200</stringProp>
7554 <stringProp name="Assertion.custom_message"></stringProp>
7555 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
7556 <boolProp name="Assertion.assume_success">false</boolProp>
7557 <intProp name="Assertion.test_type">1</intProp>
7558 </ResponseAssertion>
7560 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
7561 <stringProp name="scriptLanguage">groovy</stringProp>
7562 <stringProp name="parameters"></stringProp>
7563 <stringProp name="filename"></stringProp>
7564 <stringProp name="cacheKey">true</stringProp>
7565 <stringProp name="script">import groovy.json.JsonSlurper;
7568 if (prev.getResponseCode() == '200') {
7569 def jsonSlurper = new JsonSlurper();
7570 res = jsonSlurper.parseText(prev.getResponseDataAsString());
7572 assert res instanceof Map;
7573 assert res.get('guard.frequency.scaleout').version == "1.0.0";
7578 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete Guard Policy V5" enabled="true">
7579 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
7580 <collectionProp name="Arguments.arguments"/>
7582 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
7583 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
7584 <stringProp name="HTTPSampler.protocol">https</stringProp>
7585 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
7586 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.controlloop.Guard/versions/1.0.0/policies/guard.frequency.scaleout/versions/5</stringProp>
7587 <stringProp name="HTTPSampler.method">DELETE</stringProp>
7588 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
7589 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
7590 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
7591 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
7592 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
7593 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
7594 <stringProp name="HTTPSampler.response_timeout"></stringProp>
7597 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
7598 <collectionProp name="Asserion.test_strings">
7599 <stringProp name="49586">200</stringProp>
7601 <stringProp name="Assertion.custom_message"></stringProp>
7602 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
7603 <boolProp name="Assertion.assume_success">false</boolProp>
7604 <intProp name="Assertion.test_type">1</intProp>
7605 </ResponseAssertion>
7607 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
7608 <stringProp name="scriptLanguage">groovy</stringProp>
7609 <stringProp name="parameters"></stringProp>
7610 <stringProp name="filename"></stringProp>
7611 <stringProp name="cacheKey">true</stringProp>
7612 <stringProp name="script">import groovy.json.JsonSlurper;
7615 if (prev.getResponseCode() == '200') {
7616 def jsonSlurper = new JsonSlurper();
7617 res = jsonSlurper.parseText(prev.getResponseDataAsString());
7619 assert res instanceof Map;
7620 assert res.get('guard.frequency.scaleout').version == "5.0.0";
7625 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete Guard Policy V9" enabled="true">
7626 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
7627 <collectionProp name="Arguments.arguments"/>
7629 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
7630 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
7631 <stringProp name="HTTPSampler.protocol">https</stringProp>
7632 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
7633 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.controlloop.Guard/versions/1.0.0/policies/guard.frequency.scaleout/versions/9</stringProp>
7634 <stringProp name="HTTPSampler.method">DELETE</stringProp>
7635 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
7636 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
7637 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
7638 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
7639 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
7640 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
7641 <stringProp name="HTTPSampler.response_timeout"></stringProp>
7644 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
7645 <collectionProp name="Asserion.test_strings">
7646 <stringProp name="49586">200</stringProp>
7648 <stringProp name="Assertion.custom_message"></stringProp>
7649 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
7650 <boolProp name="Assertion.assume_success">false</boolProp>
7651 <intProp name="Assertion.test_type">1</intProp>
7652 </ResponseAssertion>
7654 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
7655 <stringProp name="scriptLanguage">groovy</stringProp>
7656 <stringProp name="parameters"></stringProp>
7657 <stringProp name="filename"></stringProp>
7658 <stringProp name="cacheKey">true</stringProp>
7659 <stringProp name="script">import groovy.json.JsonSlurper;
7662 if (prev.getResponseCode() == '200') {
7663 def jsonSlurper = new JsonSlurper();
7664 res = jsonSlurper.parseText(prev.getResponseDataAsString());
7666 assert res instanceof Map;
7667 assert res.get('guard.frequency.scaleout').version == "9.0.0";
7672 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete Guard Policy V12" enabled="true">
7673 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
7674 <collectionProp name="Arguments.arguments"/>
7676 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
7677 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
7678 <stringProp name="HTTPSampler.protocol">https</stringProp>
7679 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
7680 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.controlloop.Guard/versions/1.0.0/policies/guard.frequency.scaleout/versions/12</stringProp>
7681 <stringProp name="HTTPSampler.method">DELETE</stringProp>
7682 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
7683 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
7684 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
7685 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
7686 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
7687 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
7688 <stringProp name="HTTPSampler.response_timeout"></stringProp>
7691 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
7692 <collectionProp name="Asserion.test_strings">
7693 <stringProp name="49586">200</stringProp>
7695 <stringProp name="Assertion.custom_message"></stringProp>
7696 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
7697 <boolProp name="Assertion.assume_success">false</boolProp>
7698 <intProp name="Assertion.test_type">1</intProp>
7699 </ResponseAssertion>
7701 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
7702 <stringProp name="scriptLanguage">groovy</stringProp>
7703 <stringProp name="parameters"></stringProp>
7704 <stringProp name="filename"></stringProp>
7705 <stringProp name="cacheKey">true</stringProp>
7706 <stringProp name="script">import groovy.json.JsonSlurper;
7709 if (prev.getResponseCode() == '200') {
7710 def jsonSlurper = new JsonSlurper();
7711 res = jsonSlurper.parseText(prev.getResponseDataAsString());
7713 assert res instanceof Map;
7714 assert res.get('guard.frequency.scaleout').version == "12.0.0";
7720 <ResultCollector guiclass="SummaryReport" testclass="ResultCollector" testname="Summary Report" enabled="true">
7721 <boolProp name="ResultCollector.error_logging">false</boolProp>
7723 <name>saveConfig</name>
7724 <value class="SampleSaveConfiguration">
7726 <latency>true</latency>
7727 <timestamp>true</timestamp>
7728 <success>true</success>
7731 <message>true</message>
7732 <threadName>true</threadName>
7733 <dataType>true</dataType>
7734 <encoding>false</encoding>
7735 <assertions>true</assertions>
7736 <subresults>true</subresults>
7737 <responseData>false</responseData>
7738 <samplerData>false</samplerData>
7740 <fieldNames>true</fieldNames>
7741 <responseHeaders>false</responseHeaders>
7742 <requestHeaders>false</requestHeaders>
7743 <responseDataOnError>false</responseDataOnError>
7744 <saveAssertionResultsFailureMessage>true</saveAssertionResultsFailureMessage>
7745 <assertionsResultsToSave>0</assertionsResultsToSave>
7747 <sentBytes>true</sentBytes>
7749 <threadCounts>true</threadCounts>
7750 <idleTime>true</idleTime>
7751 <connectTime>true</connectTime>
7754 <stringProp name="filename">/home/ubuntu/s3p/stability.log</stringProp>
7757 <ResultCollector guiclass="ViewResultsFullVisualizer" testclass="ResultCollector" testname="View Results Tree" enabled="true">
7758 <boolProp name="ResultCollector.error_logging">false</boolProp>
7760 <name>saveConfig</name>
7761 <value class="SampleSaveConfiguration">
7763 <latency>true</latency>
7764 <timestamp>true</timestamp>
7765 <success>true</success>
7768 <message>true</message>
7769 <threadName>true</threadName>
7770 <dataType>true</dataType>
7771 <encoding>false</encoding>
7772 <assertions>true</assertions>
7773 <subresults>true</subresults>
7774 <responseData>false</responseData>
7775 <samplerData>false</samplerData>
7777 <fieldNames>true</fieldNames>
7778 <responseHeaders>false</responseHeaders>
7779 <requestHeaders>false</requestHeaders>
7780 <responseDataOnError>false</responseDataOnError>
7781 <saveAssertionResultsFailureMessage>true</saveAssertionResultsFailureMessage>
7782 <assertionsResultsToSave>0</assertionsResultsToSave>
7784 <sentBytes>true</sentBytes>
7786 <threadCounts>true</threadCounts>
7787 <idleTime>true</idleTime>
7788 <connectTime>true</connectTime>
7791 <stringProp name="filename">/home/ubuntu/s3p/stability.log</stringProp>
7794 <ResultCollector guiclass="TableVisualizer" testclass="ResultCollector" testname="View Results in Table" enabled="true">
7795 <boolProp name="ResultCollector.error_logging">false</boolProp>
7797 <name>saveConfig</name>
7798 <value class="SampleSaveConfiguration">
7800 <latency>true</latency>
7801 <timestamp>true</timestamp>
7802 <success>true</success>
7805 <message>true</message>
7806 <threadName>true</threadName>
7807 <dataType>true</dataType>
7808 <encoding>false</encoding>
7809 <assertions>true</assertions>
7810 <subresults>true</subresults>
7811 <responseData>false</responseData>
7812 <samplerData>false</samplerData>
7814 <fieldNames>true</fieldNames>
7815 <responseHeaders>false</responseHeaders>
7816 <requestHeaders>false</requestHeaders>
7817 <responseDataOnError>false</responseDataOnError>
7818 <saveAssertionResultsFailureMessage>true</saveAssertionResultsFailureMessage>
7819 <assertionsResultsToSave>0</assertionsResultsToSave>
7821 <sentBytes>true</sentBytes>
7823 <threadCounts>true</threadCounts>
7824 <idleTime>true</idleTime>
7825 <connectTime>true</connectTime>
7828 <stringProp name="filename">/home/ubuntu/s3p/stability.log</stringProp>