summaryrefslogtreecommitdiffstats
path: root/testsuites
diff options
context:
space:
mode:
authorRam Krishna Verma <ram_krishna.verma@bell.ca>2021-10-19 16:40:11 -0400
committerRam Krishna Verma <ram_krishna.verma@bell.ca>2021-10-19 16:40:16 -0400
commite7a6d0293586b4c5345b1408458b045154cd1305 (patch)
tree1ab69453223debe73064df18a88b3a1a2b5ec9df /testsuites
parent2bc8d6b5da92f02384485c81cd01d5715285f68f (diff)
Update api performance test jmx file
Issue-ID: POLICY-3652 Change-Id: If16c23460cc94738597d54de94e699fcffbc65e2 Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
Diffstat (limited to 'testsuites')
-rw-r--r--testsuites/performance/src/main/resources/testplans/policy_api_performance.jmx6826
-rw-r--r--testsuites/stability/src/main/resources/testplans/policy_api_stability.jmx2
2 files changed, 1379 insertions, 5449 deletions
diff --git a/testsuites/performance/src/main/resources/testplans/policy_api_performance.jmx b/testsuites/performance/src/main/resources/testplans/policy_api_performance.jmx
index 7044bb78..049c048e 100644
--- a/testsuites/performance/src/main/resources/testplans/policy_api_performance.jmx
+++ b/testsuites/performance/src/main/resources/testplans/policy_api_performance.jmx
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
-<jmeterTestPlan version="1.2" properties="5.0" jmeter="5.1.1 r1855137">
+<jmeterTestPlan version="1.2" properties="5.0" jmeter="5.4.1">
<hashTree>
- <TestPlan guiclass="TestPlanGui" testclass="TestPlan" testname="Policy API Stability" enabled="true">
+ <TestPlan guiclass="TestPlanGui" testclass="TestPlan" testname="Policy API Performance" enabled="true">
<stringProp name="TestPlan.comments"></stringProp>
<boolProp name="TestPlan.functional_mode">false</boolProp>
<boolProp name="TestPlan.tearDown_on_shutdown">true</boolProp>
@@ -10,12 +10,12 @@
<collectionProp name="Arguments.arguments">
<elementProp name="API_HOST" elementType="Argument">
<stringProp name="Argument.name">API_HOST</stringProp>
- <stringProp name="Argument.value">10.12.6.112</stringProp>
+ <stringProp name="Argument.value">10.12.6.14</stringProp>
<stringProp name="Argument.metadata">=</stringProp>
</elementProp>
<elementProp name="API_PORT" elementType="Argument">
<stringProp name="Argument.name">API_PORT</stringProp>
- <stringProp name="Argument.value">32251</stringProp>
+ <stringProp name="Argument.value">32191</stringProp>
<stringProp name="Argument.metadata">=</stringProp>
</elementProp>
</collectionProp>
@@ -26,7 +26,7 @@
<AuthManager guiclass="AuthPanel" testclass="AuthManager" testname="HTTP Authorization Manager" enabled="true">
<collectionProp name="AuthManager.auth_list">
<elementProp name="" elementType="Authorization">
- <stringProp name="Authorization.url">https://${API_HOST}:${API_PORT}/policy/api/v1</stringProp>
+ <stringProp name="Authorization.url">https://${API_HOST}:${API_PORT}/</stringProp>
<stringProp name="Authorization.username">healthcheck</stringProp>
<stringProp name="Authorization.password">zb!XztG34</stringProp>
<stringProp name="Authorization.domain"></stringProp>
@@ -34,6 +34,7 @@
</elementProp>
</collectionProp>
<boolProp name="AuthManager.clearEachIteration">true</boolProp>
+ <boolProp name="AuthManager.controlledByThreadGroup">false</boolProp>
</AuthManager>
<hashTree/>
<HeaderManager guiclass="HeaderPanel" testclass="HeaderManager" testname="HTTP Header Manager" enabled="true">
@@ -50,7 +51,7 @@
</HeaderManager>
<hashTree/>
<SetupThreadGroup guiclass="SetupThreadGroupGui" testclass="SetupThreadGroup" testname="setUp Thread Group" enabled="true">
- <stringProp name="ThreadGroup.on_sample_error">stoptest</stringProp>
+ <stringProp name="ThreadGroup.on_sample_error">continue</stringProp>
<elementProp name="ThreadGroup.main_controller" elementType="LoopController" guiclass="LoopControlPanel" testclass="LoopController" testname="Loop Controller" enabled="true">
<boolProp name="LoopController.continue_forever">false</boolProp>
<stringProp name="LoopController.loops">1</stringProp>
@@ -60,6 +61,7 @@
<boolProp name="ThreadGroup.scheduler">false</boolProp>
<stringProp name="ThreadGroup.duration"></stringProp>
<stringProp name="ThreadGroup.delay"></stringProp>
+ <boolProp name="ThreadGroup.same_user_on_next_iteration">true</boolProp>
</SetupThreadGroup>
<hashTree>
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get Healthcheck" enabled="true">
@@ -201,8 +203,8 @@ if (prev.getResponseCode() == &apos;200&apos;) {
res = jsonSlurper.parseText(prev.getResponseDataAsString());
assert res instanceof Map;
- assert res.policy_types instanceof List;
- assert res.policy_types.size == 18;
+ assert res.policy_types instanceof Map;
+ assert res.policy_types.size() == 35;
}</stringProp>
</JSR223Assertion>
<hashTree/>
@@ -212,255 +214,26 @@ if (prev.getResponseCode() == &apos;200&apos;) {
<stringProp name="ThreadGroup.on_sample_error">continue</stringProp>
<elementProp name="ThreadGroup.main_controller" elementType="LoopController" guiclass="LoopControlPanel" testclass="LoopController" testname="Loop Controller" enabled="true">
<boolProp name="LoopController.continue_forever">false</boolProp>
- <stringProp name="LoopController.loops">10000000</stringProp>
+ <intProp name="LoopController.loops">-1</intProp>
</elementProp>
<stringProp name="ThreadGroup.num_threads">20</stringProp>
- <stringProp name="ThreadGroup.ramp_time">2</stringProp>
+ <stringProp name="ThreadGroup.ramp_time">5</stringProp>
<boolProp name="ThreadGroup.scheduler">true</boolProp>
- <stringProp name="ThreadGroup.duration">3600</stringProp>
- <stringProp name="ThreadGroup.delay">2</stringProp>
+ <stringProp name="ThreadGroup.duration">9000</stringProp>
+ <stringProp name="ThreadGroup.delay">5</stringProp>
+ <boolProp name="ThreadGroup.same_user_on_next_iteration">true</boolProp>
</ThreadGroup>
<hashTree>
- <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create TCA Policy Type V1" enabled="true">
- <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
- <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
- <collectionProp name="Arguments.arguments">
- <elementProp name="" elementType="HTTPArgument">
- <boolProp name="HTTPArgument.always_encode">false</boolProp>
- <stringProp name="Argument.value">{&#xd;
- &quot;tosca_definitions_version&quot;: &quot;tosca_simple_yaml_1_0_0&quot;,&#xd;
- &quot;policy_types&quot;: [&#xd;
- {&#xd;
- &quot;onap.policies.Monitoring&quot;: {&#xd;
- &quot;derived_from&quot;: &quot;tosca.policies.Root&quot;,&#xd;
- &quot;version&quot;: &quot;1.0.0&quot;,&#xd;
- &quot;description&quot;: &quot;a base policy type for all policies that governs monitoring provisioning&quot;&#xd;
- }&#xd;
- },&#xd;
- {&#xd;
- &quot;onap.policies.monitoring.cdap.tca.hi.lo.app&quot;: {&#xd;
- &quot;derived_from&quot;: &quot;onap.policies.Monitoring&quot;,&#xd;
- &quot;version&quot;: &quot;1.0.0&quot;,&#xd;
- &quot;properties&quot;: {&#xd;
- &quot;tca_policy&quot;: {&#xd;
- &quot;type&quot;: &quot;map&quot;,&#xd;
- &quot;description&quot;: &quot;TCA Policy JSON&quot;,&#xd;
- &quot;entry_schema&quot;: {&#xd;
- &quot;type&quot;: &quot;onap.datatypes.monitoring.tca_policy&quot;&#xd;
- }&#xd;
- }&#xd;
- }&#xd;
- }&#xd;
- }&#xd;
- ],&#xd;
- &quot;data_types&quot;: [&#xd;
- {&#xd;
- &quot;onap.datatypes.monitoring.metricsPerEventName&quot;: {&#xd;
- &quot;derived_from&quot;: &quot;tosca.datatypes.Root&quot;,&#xd;
- &quot;properties&quot;: {&#xd;
- &quot;controlLoopSchemaType&quot;: {&#xd;
- &quot;type&quot;: &quot;string&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;Specifies Control Loop Schema Type for the event Name e.g. VNF, VM&quot;,&#xd;
- &quot;constraints&quot;: [&#xd;
- {&#xd;
- &quot;valid_values&quot;: [&#xd;
- &quot;VM&quot;,&#xd;
- &quot;VNF&quot;&#xd;
- ]&#xd;
- }&#xd;
- ]&#xd;
- },&#xd;
- &quot;eventName&quot;: {&#xd;
- &quot;type&quot;: &quot;string&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;Event name to which thresholds need to be applied&quot;&#xd;
- },&#xd;
- &quot;policyName&quot;: {&#xd;
- &quot;type&quot;: &quot;string&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;TCA Policy Scope Name&quot;&#xd;
- },&#xd;
- &quot;policyScope&quot;: {&#xd;
- &quot;type&quot;: &quot;string&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;TCA Policy Scope&quot;&#xd;
- },&#xd;
- &quot;policyVersion&quot;: {&#xd;
- &quot;type&quot;: &quot;string&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;TCA Policy Scope Version&quot;&#xd;
- },&#xd;
- &quot;thresholds&quot;: {&#xd;
- &quot;type&quot;: &quot;list&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;Thresholds associated with eventName&quot;,&#xd;
- &quot;entry_schema&quot;: {&#xd;
- &quot;type&quot;: &quot;onap.datatypes.monitoring.thresholds&quot;&#xd;
- }&#xd;
- }&#xd;
- }&#xd;
- }&#xd;
- },&#xd;
- {&#xd;
- &quot;onap.datatypes.monitoring.tca_policy&quot;: {&#xd;
- &quot;derived_from&quot;: &quot;tosca.datatypes.Root&quot;,&#xd;
- &quot;properties&quot;: {&#xd;
- &quot;domain&quot;: {&#xd;
- &quot;type&quot;: &quot;string&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;Domain name to which TCA needs to be applied&quot;,&#xd;
- &quot;default&quot;: &quot;measurementsForVfScaling&quot;,&#xd;
- &quot;constraints&quot;: [&#xd;
- {&#xd;
- &quot;equal&quot;: &quot;measurementsForVfScaling&quot;&#xd;
- }&#xd;
- ]&#xd;
- },&#xd;
- &quot;metricsPerEventName&quot;: {&#xd;
- &quot;type&quot;: &quot;list&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;Contains eventName and threshold details that need to be applied to given eventName&quot;,&#xd;
- &quot;entry_schema&quot;: {&#xd;
- &quot;type&quot;: &quot;onap.datatypes.monitoring.metricsPerEventName&quot;&#xd;
- }&#xd;
- }&#xd;
- }&#xd;
- }&#xd;
- },&#xd;
- {&#xd;
- &quot;onap.datatypes.monitoring.thresholds&quot;: {&#xd;
- &quot;derived_from&quot;: &quot;tosca.datatypes.Root&quot;,&#xd;
- &quot;properties&quot;: {&#xd;
- &quot;closedLoopControlName&quot;: {&#xd;
- &quot;type&quot;: &quot;string&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;Closed Loop Control Name associated with the threshold&quot;&#xd;
- },&#xd;
- &quot;closedLoopEventStatus&quot;: {&#xd;
- &quot;type&quot;: &quot;string&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;Closed Loop Event Status of the threshold&quot;,&#xd;
- &quot;constraints&quot;: [&#xd;
- {&#xd;
- &quot;valid_values&quot;: [&#xd;
- &quot;ONSET&quot;,&#xd;
- &quot;ABATED&quot;&#xd;
- ]&#xd;
- }&#xd;
- ]&#xd;
- },&#xd;
- &quot;direction&quot;: {&#xd;
- &quot;type&quot;: &quot;string&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;Direction of the threshold&quot;,&#xd;
- &quot;constraints&quot;: [&#xd;
- {&#xd;
- &quot;valid_values&quot;: [&#xd;
- &quot;LESS&quot;,&#xd;
- &quot;LESS_OR_EQUAL&quot;,&#xd;
- &quot;GREATER&quot;,&#xd;
- &quot;GREATER_OR_EQUAL&quot;,&#xd;
- &quot;EQUAL&quot;&#xd;
- ]&#xd;
- }&#xd;
- ]&#xd;
- },&#xd;
- &quot;fieldPath&quot;: {&#xd;
- &quot;type&quot;: &quot;string&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;Json field Path as per CEF message which needs to be analyzed for TCA&quot;,&#xd;
- &quot;constraints&quot;: [&#xd;
- {&#xd;
- &quot;valid_values&quot;: [&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsDelta&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedOctetsDelta&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedUnicastPacketsDelta&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedMulticastPacketsDelta&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsDelta&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedDiscardedPacketsDelta&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedErrorPacketsDelta&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsAccumulated&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedOctetsAccumulated&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedUnicastPacketsAccumulated&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedMulticastPacketsAccumulated&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsAccumulated&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedDiscardedPacketsAccumulated&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedErrorPacketsAccumulated&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedTotalPacketsDelta&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedOctetsDelta&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedUnicastPacketsDelta&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedMulticastPacketsDelta&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedBroadcastPacketsDelta&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedDiscardedPacketsDelta&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedErrorPacketsDelta&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedTotalPacketsAccumulated&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedOctetsAccumulated&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedUnicastPacketsAccumulated&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedMulticastPacketsAccumulated&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedBroadcastPacketsAccumulated&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedDiscardedPacketsAccumulated&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedErrorPacketsAccumulated&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuIdle&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageInterrupt&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageNice&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSoftIrq&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSteal&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSystem&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuWait&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].percentUsage&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.meanRequestLatency&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryBuffered&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryCached&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryConfigured&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryFree&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryUsed&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value&quot;&#xd;
- ]&#xd;
- }&#xd;
- ]&#xd;
- },&#xd;
- &quot;severity&quot;: {&#xd;
- &quot;type&quot;: &quot;string&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;Threshold Event Severity&quot;,&#xd;
- &quot;constraints&quot;: [&#xd;
- {&#xd;
- &quot;valid_values&quot;: [&#xd;
- &quot;CRITICAL&quot;,&#xd;
- &quot;MAJOR&quot;,&#xd;
- &quot;MINOR&quot;,&#xd;
- &quot;WARNING&quot;,&#xd;
- &quot;NORMAL&quot;&#xd;
- ]&#xd;
- }&#xd;
- ]&#xd;
- },&#xd;
- &quot;thresholdValue&quot;: {&#xd;
- &quot;type&quot;: &quot;integer&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;Threshold value for the field Path inside CEF message&quot;&#xd;
- },&#xd;
- &quot;version&quot;: {&#xd;
- &quot;type&quot;: &quot;string&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;Version number associated with the threshold&quot;&#xd;
- }&#xd;
- }&#xd;
- }&#xd;
- }&#xd;
- ]&#xd;
-}</stringProp>
- <stringProp name="Argument.metadata">=</stringProp>
- </elementProp>
- </collectionProp>
+ <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get Policy Metrics" enabled="true">
+ <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
+ <collectionProp name="Arguments.arguments"/>
</elementProp>
<stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
<stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
<stringProp name="HTTPSampler.protocol">https</stringProp>
<stringProp name="HTTPSampler.contentEncoding"></stringProp>
- <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes</stringProp>
- <stringProp name="HTTPSampler.method">POST</stringProp>
+ <stringProp name="HTTPSampler.path">/metrics</stringProp>
+ <stringProp name="HTTPSampler.method">GET</stringProp>
<boolProp name="HTTPSampler.follow_redirects">true</boolProp>
<boolProp name="HTTPSampler.auto_redirects">false</boolProp>
<boolProp name="HTTPSampler.use_keepalive">true</boolProp>
@@ -485,531 +258,240 @@ if (prev.getResponseCode() == &apos;200&apos;) {
<stringProp name="parameters"></stringProp>
<stringProp name="filename"></stringProp>
<stringProp name="cacheKey">true</stringProp>
- <stringProp name="script">import groovy.json.JsonSlurper;
-
-def res = [];
+ <stringProp name="script">def res = [];
if (prev.getResponseCode() == &apos;200&apos;) {
- def jsonSlurper = new JsonSlurper();
- res = jsonSlurper.parseText(prev.getResponseDataAsString());
-
- assert res instanceof Map;
- assert res.policy_types instanceof List;
- assert res.policy_types.size == 2;
- assert res.policy_types[0] instanceof Map;
- assert res.policy_types[1] instanceof Map;
+ res = prev.getResponseDataAsString();
+
+ assert res.contains(&quot;jvm_buffer_pool_used_bytes&quot;)
+ assert res.contains(&quot;jvm_buffer_pool_capacity_bytes&quot;)
+ assert res.contains(&quot;jvm_buffer_pool_used_buffers&quot;)
+ assert res.contains(&quot;jvm_memory_bytes_used&quot;)
+ assert res.contains(&quot;jvm_memory_bytes_committed&quot;)
+ assert res.contains(&quot;jvm_memory_pool_bytes_used&quot;)
+ assert res.contains(&quot;jvm_memory_pool_bytes_committed&quot;)
+ assert res.contains(&quot;jvm_memory_pool_allocated_bytes_created&quot;)
+ assert res.contains(&quot;jvm_memory_pool_allocated_bytes_total&quot;)
}</stringProp>
</JSR223Assertion>
<hashTree/>
</hashTree>
- <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create TCA Policy Type V2" enabled="true">
+ <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create Policy Type Monitoring" enabled="true">
<boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
<elementProp name="HTTPsampler.Arguments" elementType="Arguments">
<collectionProp name="Arguments.arguments">
<elementProp name="" elementType="HTTPArgument">
<boolProp name="HTTPArgument.always_encode">false</boolProp>
<stringProp name="Argument.value">{&#xd;
- &quot;tosca_definitions_version&quot;: &quot;tosca_simple_yaml_1_0_0&quot;,&#xd;
- &quot;policy_types&quot;: [&#xd;
- {&#xd;
- &quot;onap.policies.Monitoring&quot;: {&#xd;
- &quot;derived_from&quot;: &quot;tosca.policies.Root&quot;,&#xd;
- &quot;version&quot;: &quot;1.0.0&quot;,&#xd;
- &quot;description&quot;: &quot;a base policy type for all policies that governs monitoring provisioning&quot;&#xd;
- }&#xd;
+ &quot;tosca_definitions_version&quot;: &quot;tosca_simple_yaml_1_1_0&quot;,&#xd;
+ &quot;policy_types&quot;: {&#xd;
+ &quot;onap.policies.Monitoring&quot;: {&#xd;
+ &quot;derived_from&quot;: &quot;tosca.policies.Root&quot;,&#xd;
+ &quot;version&quot;: &quot;6.0.0&quot;,&#xd;
+ &quot;description&quot;: &quot;a base policy type for all policies that govern monitoring provisioning&quot;&#xd;
},&#xd;
- {&#xd;
- &quot;onap.policies.monitoring.cdap.tca.hi.lo.app&quot;: {&#xd;
- &quot;derived_from&quot;: &quot;onap.policies.Monitoring&quot;,&#xd;
- &quot;version&quot;: &quot;2.0.0&quot;,&#xd;
- &quot;properties&quot;: {&#xd;
- &quot;tca_policy&quot;: {&#xd;
- &quot;type&quot;: &quot;map&quot;,&#xd;
- &quot;description&quot;: &quot;TCA Policy JSON&quot;,&#xd;
- &quot;entry_schema&quot;: {&#xd;
- &quot;type&quot;: &quot;onap.datatypes.monitoring.tca_policy&quot;&#xd;
- }&#xd;
- }&#xd;
+ &quot;onap.policies.monitoring.cdap.tca.hi.lo.app&quot;: {&#xd;
+ &quot;derived_from&quot;: &quot;onap.policies.Monitoring&quot;,&#xd;
+ &quot;version&quot;: &quot;6.0.${__threadNum}&quot;,&#xd;
+ &quot;properties&quot;: {&#xd;
+ &quot;tca_policy&quot;: {&#xd;
+ &quot;type&quot;: &quot;onap.datatypes.monitoring.tca_policy&quot;,&#xd;
+ &quot;description&quot;: &quot;TCA Policy JSON&quot;,&#xd;
+ &quot;required&quot;: true&#xd;
}&#xd;
}&#xd;
}&#xd;
- ],&#xd;
- &quot;data_types&quot;: [&#xd;
- {&#xd;
- &quot;onap.datatypes.monitoring.metricsPerEventName&quot;: {&#xd;
- &quot;derived_from&quot;: &quot;tosca.datatypes.Root&quot;,&#xd;
- &quot;properties&quot;: {&#xd;
- &quot;controlLoopSchemaType&quot;: {&#xd;
- &quot;type&quot;: &quot;string&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;Specifies Control Loop Schema Type for the event Name e.g. VNF, VM&quot;,&#xd;
- &quot;constraints&quot;: [&#xd;
- {&#xd;
- &quot;valid_values&quot;: [&#xd;
- &quot;VM&quot;,&#xd;
- &quot;VNF&quot;&#xd;
- ]&#xd;
- }&#xd;
- ]&#xd;
- },&#xd;
- &quot;eventName&quot;: {&#xd;
- &quot;type&quot;: &quot;string&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;Event name to which thresholds need to be applied&quot;&#xd;
- },&#xd;
- &quot;policyName&quot;: {&#xd;
- &quot;type&quot;: &quot;string&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;TCA Policy Scope Name&quot;&#xd;
- },&#xd;
- &quot;policyScope&quot;: {&#xd;
- &quot;type&quot;: &quot;string&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;TCA Policy Scope&quot;&#xd;
- },&#xd;
- &quot;policyVersion&quot;: {&#xd;
- &quot;type&quot;: &quot;string&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;TCA Policy Scope Version&quot;&#xd;
- },&#xd;
- &quot;thresholds&quot;: {&#xd;
- &quot;type&quot;: &quot;list&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;Thresholds associated with eventName&quot;,&#xd;
- &quot;entry_schema&quot;: {&#xd;
- &quot;type&quot;: &quot;onap.datatypes.monitoring.thresholds&quot;&#xd;
+ },&#xd;
+ &quot;data_types&quot;: {&#xd;
+ &quot;onap.datatypes.monitoring.metricsPerEventName&quot;: {&#xd;
+ &quot;derived_from&quot;: &quot;tosca.datatypes.Root&quot;,&#xd;
+ &quot;properties&quot;: {&#xd;
+ &quot;controlLoopSchemaType&quot;: {&#xd;
+ &quot;type&quot;: &quot;string&quot;,&#xd;
+ &quot;required&quot;: true,&#xd;
+ &quot;description&quot;: &quot;Specifies Control Loop Schema Type for the event Name e.g. VNF, VM&quot;,&#xd;
+ &quot;constraints&quot;: [&#xd;
+ {&#xd;
+ &quot;valid_values&quot;: [&#xd;
+ &quot;VM&quot;,&#xd;
+ &quot;VNF&quot;&#xd;
+ ]&#xd;
}&#xd;
+ ]&#xd;
+ },&#xd;
+ &quot;eventName&quot;: {&#xd;
+ &quot;type&quot;: &quot;string&quot;,&#xd;
+ &quot;required&quot;: true,&#xd;
+ &quot;description&quot;: &quot;Event name to which thresholds need to be applied&quot;&#xd;
+ },&#xd;
+ &quot;policyName&quot;: {&#xd;
+ &quot;type&quot;: &quot;string&quot;,&#xd;
+ &quot;required&quot;: true,&#xd;
+ &quot;description&quot;: &quot;TCA Policy Scope Name&quot;&#xd;
+ },&#xd;
+ &quot;policyScope&quot;: {&#xd;
+ &quot;type&quot;: &quot;string&quot;,&#xd;
+ &quot;required&quot;: true,&#xd;
+ &quot;description&quot;: &quot;TCA Policy Scope&quot;&#xd;
+ },&#xd;
+ &quot;policyVersion&quot;: {&#xd;
+ &quot;type&quot;: &quot;string&quot;,&#xd;
+ &quot;required&quot;: true,&#xd;
+ &quot;description&quot;: &quot;TCA Policy Scope Version&quot;&#xd;
+ },&#xd;
+ &quot;thresholds&quot;: {&#xd;
+ &quot;type&quot;: &quot;list&quot;,&#xd;
+ &quot;required&quot;: true,&#xd;
+ &quot;description&quot;: &quot;Thresholds associated with eventName&quot;,&#xd;
+ &quot;entry_schema&quot;: {&#xd;
+ &quot;type&quot;: &quot;onap.datatypes.monitoring.thresholds&quot;&#xd;
}&#xd;
}&#xd;
}&#xd;
},&#xd;
- {&#xd;
- &quot;onap.datatypes.monitoring.tca_policy&quot;: {&#xd;
- &quot;derived_from&quot;: &quot;tosca.datatypes.Root&quot;,&#xd;
- &quot;properties&quot;: {&#xd;
- &quot;domain&quot;: {&#xd;
- &quot;type&quot;: &quot;string&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;Domain name to which TCA needs to be applied&quot;,&#xd;
- &quot;default&quot;: &quot;measurementsForVfScaling&quot;,&#xd;
- &quot;constraints&quot;: [&#xd;
- {&#xd;
- &quot;equal&quot;: &quot;measurementsForVfScaling&quot;&#xd;
- }&#xd;
- ]&#xd;
- },&#xd;
- &quot;metricsPerEventName&quot;: {&#xd;
- &quot;type&quot;: &quot;list&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;Contains eventName and threshold details that need to be applied to given eventName&quot;,&#xd;
- &quot;entry_schema&quot;: {&#xd;
- &quot;type&quot;: &quot;onap.datatypes.monitoring.metricsPerEventName&quot;&#xd;
+ &quot;onap.datatypes.monitoring.tca_policy&quot;: {&#xd;
+ &quot;derived_from&quot;: &quot;tosca.datatypes.Root&quot;,&#xd;
+ &quot;properties&quot;: {&#xd;
+ &quot;domain&quot;: {&#xd;
+ &quot;type&quot;: &quot;string&quot;,&#xd;
+ &quot;required&quot;: true,&#xd;
+ &quot;description&quot;: &quot;Domain name to which TCA needs to be applied&quot;,&#xd;
+ &quot;default&quot;: &quot;measurementsForVfScaling&quot;,&#xd;
+ &quot;constraints&quot;: [&#xd;
+ {&#xd;
+ &quot;equal&quot;: &quot;measurementsForVfScaling&quot;&#xd;
}&#xd;
+ ]&#xd;
+ },&#xd;
+ &quot;metricsPerEventName&quot;: {&#xd;
+ &quot;type&quot;: &quot;list&quot;,&#xd;
+ &quot;required&quot;: true,&#xd;
+ &quot;description&quot;: &quot;Contains eventName and threshold details that need to be applied to given eventName&quot;,&#xd;
+ &quot;entry_schema&quot;: {&#xd;
+ &quot;type&quot;: &quot;onap.datatypes.monitoring.metricsPerEventName&quot;&#xd;
}&#xd;
}&#xd;
}&#xd;
},&#xd;
- {&#xd;
- &quot;onap.datatypes.monitoring.thresholds&quot;: {&#xd;
- &quot;derived_from&quot;: &quot;tosca.datatypes.Root&quot;,&#xd;
- &quot;properties&quot;: {&#xd;
- &quot;closedLoopControlName&quot;: {&#xd;
- &quot;type&quot;: &quot;string&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;Closed Loop Control Name associated with the threshold&quot;&#xd;
- },&#xd;
- &quot;closedLoopEventStatus&quot;: {&#xd;
- &quot;type&quot;: &quot;string&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;Closed Loop Event Status of the threshold&quot;,&#xd;
- &quot;constraints&quot;: [&#xd;
- {&#xd;
- &quot;valid_values&quot;: [&#xd;
- &quot;ONSET&quot;,&#xd;
- &quot;ABATED&quot;&#xd;
- ]&#xd;
- }&#xd;
- ]&#xd;
- },&#xd;
- &quot;direction&quot;: {&#xd;
- &quot;type&quot;: &quot;string&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;Direction of the threshold&quot;,&#xd;
- &quot;constraints&quot;: [&#xd;
- {&#xd;
- &quot;valid_values&quot;: [&#xd;
- &quot;LESS&quot;,&#xd;
- &quot;LESS_OR_EQUAL&quot;,&#xd;
- &quot;GREATER&quot;,&#xd;
- &quot;GREATER_OR_EQUAL&quot;,&#xd;
- &quot;EQUAL&quot;&#xd;
- ]&#xd;
- }&#xd;
- ]&#xd;
- },&#xd;
- &quot;fieldPath&quot;: {&#xd;
- &quot;type&quot;: &quot;string&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;Json field Path as per CEF message which needs to be analyzed for TCA&quot;,&#xd;
- &quot;constraints&quot;: [&#xd;
- {&#xd;
- &quot;valid_values&quot;: [&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsDelta&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedOctetsDelta&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedUnicastPacketsDelta&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedMulticastPacketsDelta&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsDelta&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedDiscardedPacketsDelta&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedErrorPacketsDelta&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsAccumulated&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedOctetsAccumulated&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedUnicastPacketsAccumulated&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedMulticastPacketsAccumulated&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsAccumulated&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedDiscardedPacketsAccumulated&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedErrorPacketsAccumulated&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedTotalPacketsDelta&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedOctetsDelta&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedUnicastPacketsDelta&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedMulticastPacketsDelta&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedBroadcastPacketsDelta&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedDiscardedPacketsDelta&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedErrorPacketsDelta&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedTotalPacketsAccumulated&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedOctetsAccumulated&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedUnicastPacketsAccumulated&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedMulticastPacketsAccumulated&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedBroadcastPacketsAccumulated&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedDiscardedPacketsAccumulated&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedErrorPacketsAccumulated&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuIdle&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageInterrupt&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageNice&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSoftIrq&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSteal&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSystem&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuWait&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].percentUsage&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.meanRequestLatency&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryBuffered&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryCached&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryConfigured&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryFree&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryUsed&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value&quot;&#xd;
- ]&#xd;
- }&#xd;
- ]&#xd;
- },&#xd;
- &quot;severity&quot;: {&#xd;
- &quot;type&quot;: &quot;string&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;Threshold Event Severity&quot;,&#xd;
- &quot;constraints&quot;: [&#xd;
- {&#xd;
- &quot;valid_values&quot;: [&#xd;
- &quot;CRITICAL&quot;,&#xd;
- &quot;MAJOR&quot;,&#xd;
- &quot;MINOR&quot;,&#xd;
- &quot;WARNING&quot;,&#xd;
- &quot;NORMAL&quot;&#xd;
- ]&#xd;
- }&#xd;
- ]&#xd;
- },&#xd;
- &quot;thresholdValue&quot;: {&#xd;
- &quot;type&quot;: &quot;integer&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;Threshold value for the field Path inside CEF message&quot;&#xd;
- },&#xd;
- &quot;version&quot;: {&#xd;
- &quot;type&quot;: &quot;string&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;Version number associated with the threshold&quot;&#xd;
- }&#xd;
- }&#xd;
- }&#xd;
- }&#xd;
- ]&#xd;
-}</stringProp>
- <stringProp name="Argument.metadata">=</stringProp>
- </elementProp>
- </collectionProp>
- </elementProp>
- <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
- <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
- <stringProp name="HTTPSampler.protocol">https</stringProp>
- <stringProp name="HTTPSampler.contentEncoding"></stringProp>
- <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes</stringProp>
- <stringProp name="HTTPSampler.method">POST</stringProp>
- <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
- <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
- <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
- <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
- <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
- <stringProp name="HTTPSampler.connect_timeout"></stringProp>
- <stringProp name="HTTPSampler.response_timeout"></stringProp>
- </HTTPSamplerProxy>
- <hashTree>
- <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
- <collectionProp name="Asserion.test_strings">
- <stringProp name="49586">200</stringProp>
- </collectionProp>
- <stringProp name="Assertion.custom_message"></stringProp>
- <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
- <boolProp name="Assertion.assume_success">false</boolProp>
- <intProp name="Assertion.test_type">1</intProp>
- </ResponseAssertion>
- <hashTree/>
- <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
- <stringProp name="scriptLanguage">groovy</stringProp>
- <stringProp name="parameters"></stringProp>
- <stringProp name="filename"></stringProp>
- <stringProp name="cacheKey">true</stringProp>
- <stringProp name="script">import groovy.json.JsonSlurper;
-
-def res = [];
-if (prev.getResponseCode() == &apos;200&apos;) {
- def jsonSlurper = new JsonSlurper();
- res = jsonSlurper.parseText(prev.getResponseDataAsString());
-
- assert res instanceof Map;
- assert res.policy_types instanceof List;
- assert res.policy_types.size == 2;
- assert res.policy_types[0] instanceof Map;
- assert res.policy_types[1] instanceof Map;
-}</stringProp>
- </JSR223Assertion>
- <hashTree/>
- </hashTree>
- <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create TCA Policy Type V3" enabled="true">
- <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
- <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
- <collectionProp name="Arguments.arguments">
- <elementProp name="" elementType="HTTPArgument">
- <boolProp name="HTTPArgument.always_encode">false</boolProp>
- <stringProp name="Argument.value">{&#xd;
- &quot;tosca_definitions_version&quot;: &quot;tosca_simple_yaml_1_0_0&quot;,&#xd;
- &quot;policy_types&quot;: [&#xd;
- {&#xd;
- &quot;onap.policies.Monitoring&quot;: {&#xd;
- &quot;derived_from&quot;: &quot;tosca.policies.Root&quot;,&#xd;
- &quot;version&quot;: &quot;1.0.0&quot;,&#xd;
- &quot;description&quot;: &quot;a base policy type for all policies that governs monitoring provisioning&quot;&#xd;
- }&#xd;
- },&#xd;
- {&#xd;
- &quot;onap.policies.monitoring.cdap.tca.hi.lo.app&quot;: {&#xd;
- &quot;derived_from&quot;: &quot;onap.policies.Monitoring&quot;,&#xd;
- &quot;version&quot;: &quot;3.0.0&quot;,&#xd;
- &quot;properties&quot;: {&#xd;
- &quot;tca_policy&quot;: {&#xd;
- &quot;type&quot;: &quot;map&quot;,&#xd;
- &quot;description&quot;: &quot;TCA Policy JSON&quot;,&#xd;
- &quot;entry_schema&quot;: {&#xd;
- &quot;type&quot;: &quot;onap.datatypes.monitoring.tca_policy&quot;&#xd;
+ &quot;onap.datatypes.monitoring.thresholds&quot;: {&#xd;
+ &quot;derived_from&quot;: &quot;tosca.datatypes.Root&quot;,&#xd;
+ &quot;properties&quot;: {&#xd;
+ &quot;closedLoopControlName&quot;: {&#xd;
+ &quot;type&quot;: &quot;string&quot;,&#xd;
+ &quot;required&quot;: true,&#xd;
+ &quot;description&quot;: &quot;Closed Loop Control Name associated with the threshold&quot;&#xd;
+ },&#xd;
+ &quot;closedLoopEventStatus&quot;: {&#xd;
+ &quot;type&quot;: &quot;string&quot;,&#xd;
+ &quot;required&quot;: true,&#xd;
+ &quot;description&quot;: &quot;Closed Loop Event Status of the threshold&quot;,&#xd;
+ &quot;constraints&quot;: [&#xd;
+ {&#xd;
+ &quot;valid_values&quot;: [&#xd;
+ &quot;ONSET&quot;,&#xd;
+ &quot;ABATED&quot;&#xd;
+ ]&#xd;
}&#xd;
- }&#xd;
- }&#xd;
- }&#xd;
- }&#xd;
- ],&#xd;
- &quot;data_types&quot;: [&#xd;
- {&#xd;
- &quot;onap.datatypes.monitoring.metricsPerEventName&quot;: {&#xd;
- &quot;derived_from&quot;: &quot;tosca.datatypes.Root&quot;,&#xd;
- &quot;properties&quot;: {&#xd;
- &quot;controlLoopSchemaType&quot;: {&#xd;
- &quot;type&quot;: &quot;string&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;Specifies Control Loop Schema Type for the event Name e.g. VNF, VM&quot;,&#xd;
- &quot;constraints&quot;: [&#xd;
- {&#xd;
- &quot;valid_values&quot;: [&#xd;
- &quot;VM&quot;,&#xd;
- &quot;VNF&quot;&#xd;
- ]&#xd;
- }&#xd;
- ]&#xd;
- },&#xd;
- &quot;eventName&quot;: {&#xd;
- &quot;type&quot;: &quot;string&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;Event name to which thresholds need to be applied&quot;&#xd;
- },&#xd;
- &quot;policyName&quot;: {&#xd;
- &quot;type&quot;: &quot;string&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;TCA Policy Scope Name&quot;&#xd;
- },&#xd;
- &quot;policyScope&quot;: {&#xd;
- &quot;type&quot;: &quot;string&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;TCA Policy Scope&quot;&#xd;
- },&#xd;
- &quot;policyVersion&quot;: {&#xd;
- &quot;type&quot;: &quot;string&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;TCA Policy Scope Version&quot;&#xd;
- },&#xd;
- &quot;thresholds&quot;: {&#xd;
- &quot;type&quot;: &quot;list&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;Thresholds associated with eventName&quot;,&#xd;
- &quot;entry_schema&quot;: {&#xd;
- &quot;type&quot;: &quot;onap.datatypes.monitoring.thresholds&quot;&#xd;
+ ]&#xd;
+ },&#xd;
+ &quot;direction&quot;: {&#xd;
+ &quot;type&quot;: &quot;string&quot;,&#xd;
+ &quot;required&quot;: true,&#xd;
+ &quot;description&quot;: &quot;Direction of the threshold&quot;,&#xd;
+ &quot;constraints&quot;: [&#xd;
+ {&#xd;
+ &quot;valid_values&quot;: [&#xd;
+ &quot;LESS&quot;,&#xd;
+ &quot;LESS_OR_EQUAL&quot;,&#xd;
+ &quot;GREATER&quot;,&#xd;
+ &quot;GREATER_OR_EQUAL&quot;,&#xd;
+ &quot;EQUAL&quot;&#xd;
+ ]&#xd;
}&#xd;
- }&#xd;
- }&#xd;
- }&#xd;
- },&#xd;
- {&#xd;
- &quot;onap.datatypes.monitoring.tca_policy&quot;: {&#xd;
- &quot;derived_from&quot;: &quot;tosca.datatypes.Root&quot;,&#xd;
- &quot;properties&quot;: {&#xd;
- &quot;domain&quot;: {&#xd;
- &quot;type&quot;: &quot;string&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;Domain name to which TCA needs to be applied&quot;,&#xd;
- &quot;default&quot;: &quot;measurementsForVfScaling&quot;,&#xd;
- &quot;constraints&quot;: [&#xd;
- {&#xd;
- &quot;equal&quot;: &quot;measurementsForVfScaling&quot;&#xd;
- }&#xd;
- ]&#xd;
- },&#xd;
- &quot;metricsPerEventName&quot;: {&#xd;
- &quot;type&quot;: &quot;list&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;Contains eventName and threshold details that need to be applied to given eventName&quot;,&#xd;
- &quot;entry_schema&quot;: {&#xd;
- &quot;type&quot;: &quot;onap.datatypes.monitoring.metricsPerEventName&quot;&#xd;
+ ]&#xd;
+ },&#xd;
+ &quot;fieldPath&quot;: {&#xd;
+ &quot;type&quot;: &quot;string&quot;,&#xd;
+ &quot;required&quot;: true,&#xd;
+ &quot;description&quot;: &quot;Json field Path as per CEF message which needs to be analyzed for TCA&quot;,&#xd;
+ &quot;constraints&quot;: [&#xd;
+ {&#xd;
+ &quot;valid_values&quot;: [&#xd;
+ &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsDelta&quot;,&#xd;
+ &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedOctetsDelta&quot;,&#xd;
+ &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedUnicastPacketsDelta&quot;,&#xd;
+ &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedMulticastPacketsDelta&quot;,&#xd;
+ &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsDelta&quot;,&#xd;
+ &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedDiscardedPacketsDelta&quot;,&#xd;
+ &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedErrorPacketsDelta&quot;,&#xd;
+ &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsAccumulated&quot;,&#xd;
+ &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedOctetsAccumulated&quot;,&#xd;
+ &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedUnicastPacketsAccumulated&quot;,&#xd;
+ &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedMulticastPacketsAccumulated&quot;,&#xd;
+ &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsAccumulated&quot;,&#xd;
+ &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedDiscardedPacketsAccumulated&quot;,&#xd;
+ &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedErrorPacketsAccumulated&quot;,&#xd;
+ &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedTotalPacketsDelta&quot;,&#xd;
+ &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedOctetsDelta&quot;,&#xd;
+ &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedUnicastPacketsDelta&quot;,&#xd;
+ &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedMulticastPacketsDelta&quot;,&#xd;
+ &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedBroadcastPacketsDelta&quot;,&#xd;
+ &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedDiscardedPacketsDelta&quot;,&#xd;
+ &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedErrorPacketsDelta&quot;,&#xd;
+ &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedTotalPacketsAccumulated&quot;,&#xd;
+ &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedOctetsAccumulated&quot;,&#xd;
+ &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedUnicastPacketsAccumulated&quot;,&#xd;
+ &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedMulticastPacketsAccumulated&quot;,&#xd;
+ &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedBroadcastPacketsAccumulated&quot;,&#xd;
+ &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedDiscardedPacketsAccumulated&quot;,&#xd;
+ &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedErrorPacketsAccumulated&quot;,&#xd;
+ &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuIdle&quot;,&#xd;
+ &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageInterrupt&quot;,&#xd;
+ &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageNice&quot;,&#xd;
+ &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSoftIrq&quot;,&#xd;
+ &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSteal&quot;,&#xd;
+ &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSystem&quot;,&#xd;
+ &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuWait&quot;,&#xd;
+ &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].percentUsage&quot;,&#xd;
+ &quot;$.event.measurementsForVfScalingFields.meanRequestLatency&quot;,&#xd;
+ &quot;$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryBuffered&quot;,&#xd;
+ &quot;$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryCached&quot;,&#xd;
+ &quot;$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryConfigured&quot;,&#xd;
+ &quot;$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryFree&quot;,&#xd;
+ &quot;$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryUsed&quot;,&#xd;
+ &quot;$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value&quot;&#xd;
+ ]&#xd;
}&#xd;
- }&#xd;
- }&#xd;
- }&#xd;
- },&#xd;
- {&#xd;
- &quot;onap.datatypes.monitoring.thresholds&quot;: {&#xd;
- &quot;derived_from&quot;: &quot;tosca.datatypes.Root&quot;,&#xd;
- &quot;properties&quot;: {&#xd;
- &quot;closedLoopControlName&quot;: {&#xd;
- &quot;type&quot;: &quot;string&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;Closed Loop Control Name associated with the threshold&quot;&#xd;
- },&#xd;
- &quot;closedLoopEventStatus&quot;: {&#xd;
- &quot;type&quot;: &quot;string&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;Closed Loop Event Status of the threshold&quot;,&#xd;
- &quot;constraints&quot;: [&#xd;
- {&#xd;
- &quot;valid_values&quot;: [&#xd;
- &quot;ONSET&quot;,&#xd;
- &quot;ABATED&quot;&#xd;
- ]&#xd;
- }&#xd;
- ]&#xd;
- },&#xd;
- &quot;direction&quot;: {&#xd;
- &quot;type&quot;: &quot;string&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;Direction of the threshold&quot;,&#xd;
- &quot;constraints&quot;: [&#xd;
- {&#xd;
- &quot;valid_values&quot;: [&#xd;
- &quot;LESS&quot;,&#xd;
- &quot;LESS_OR_EQUAL&quot;,&#xd;
- &quot;GREATER&quot;,&#xd;
- &quot;GREATER_OR_EQUAL&quot;,&#xd;
- &quot;EQUAL&quot;&#xd;
- ]&#xd;
- }&#xd;
- ]&#xd;
- },&#xd;
- &quot;fieldPath&quot;: {&#xd;
- &quot;type&quot;: &quot;string&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;Json field Path as per CEF message which needs to be analyzed for TCA&quot;,&#xd;
- &quot;constraints&quot;: [&#xd;
- {&#xd;
- &quot;valid_values&quot;: [&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsDelta&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedOctetsDelta&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedUnicastPacketsDelta&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedMulticastPacketsDelta&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsDelta&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedDiscardedPacketsDelta&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedErrorPacketsDelta&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsAccumulated&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedOctetsAccumulated&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedUnicastPacketsAccumulated&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedMulticastPacketsAccumulated&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsAccumulated&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedDiscardedPacketsAccumulated&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedErrorPacketsAccumulated&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedTotalPacketsDelta&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedOctetsDelta&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedUnicastPacketsDelta&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedMulticastPacketsDelta&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedBroadcastPacketsDelta&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedDiscardedPacketsDelta&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedErrorPacketsDelta&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedTotalPacketsAccumulated&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedOctetsAccumulated&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedUnicastPacketsAccumulated&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedMulticastPacketsAccumulated&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedBroadcastPacketsAccumulated&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedDiscardedPacketsAccumulated&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedErrorPacketsAccumulated&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuIdle&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageInterrupt&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageNice&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSoftIrq&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSteal&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSystem&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuWait&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].percentUsage&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.meanRequestLatency&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryBuffered&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryCached&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryConfigured&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryFree&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryUsed&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value&quot;&#xd;
- ]&#xd;
- }&#xd;
- ]&#xd;
- },&#xd;
- &quot;severity&quot;: {&#xd;
- &quot;type&quot;: &quot;string&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;Threshold Event Severity&quot;,&#xd;
- &quot;constraints&quot;: [&#xd;
- {&#xd;
- &quot;valid_values&quot;: [&#xd;
- &quot;CRITICAL&quot;,&#xd;
- &quot;MAJOR&quot;,&#xd;
- &quot;MINOR&quot;,&#xd;
- &quot;WARNING&quot;,&#xd;
- &quot;NORMAL&quot;&#xd;
- ]&#xd;
- }&#xd;
- ]&#xd;
- },&#xd;
- &quot;thresholdValue&quot;: {&#xd;
- &quot;type&quot;: &quot;integer&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;Threshold value for the field Path inside CEF message&quot;&#xd;
- },&#xd;
- &quot;version&quot;: {&#xd;
- &quot;type&quot;: &quot;string&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;Version number associated with the threshold&quot;&#xd;
- }&#xd;
+ ]&#xd;
+ },&#xd;
+ &quot;severity&quot;: {&#xd;
+ &quot;type&quot;: &quot;string&quot;,&#xd;
+ &quot;required&quot;: true,&#xd;
+ &quot;description&quot;: &quot;Threshold Event Severity&quot;,&#xd;
+ &quot;constraints&quot;: [&#xd;
+ {&#xd;
+ &quot;valid_values&quot;: [&#xd;
+ &quot;CRITICAL&quot;,&#xd;
+ &quot;MAJOR&quot;,&#xd;
+ &quot;MINOR&quot;,&#xd;
+ &quot;WARNING&quot;,&#xd;
+ &quot;NORMAL&quot;&#xd;
+ ]&#xd;
+ }&#xd;
+ ]&#xd;
+ },&#xd;
+ &quot;thresholdValue&quot;: {&#xd;
+ &quot;type&quot;: &quot;integer&quot;,&#xd;
+ &quot;required&quot;: true,&#xd;
+ &quot;description&quot;: &quot;Threshold value for the field Path inside CEF message&quot;&#xd;
+ },&#xd;
+ &quot;version&quot;: {&#xd;
+ &quot;type&quot;: &quot;string&quot;,&#xd;
+ &quot;required&quot;: true,&#xd;
+ &quot;description&quot;: &quot;Version number associated with the threshold&quot;&#xd;
}&#xd;
}&#xd;
}&#xd;
- ]&#xd;
+ }&#xd;
}</stringProp>
<stringProp name="Argument.metadata">=</stringProp>
</elementProp>
@@ -1053,523 +535,231 @@ if (prev.getResponseCode() == &apos;200&apos;) {
res = jsonSlurper.parseText(prev.getResponseDataAsString());
assert res instanceof Map;
- assert res.policy_types instanceof List;
- assert res.policy_types.size == 2;
- assert res.policy_types[0] instanceof Map;
- assert res.policy_types[1] instanceof Map;
+ assert res.policy_types instanceof Map;
+ assert res.policy_types.size() == 2;
+ assert res.policy_types.values()[0] instanceof Map;
+ assert res.policy_types.values()[1] instanceof Map;
}</stringProp>
</JSR223Assertion>
<hashTree/>
</hashTree>
- <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create TCA Policy Type V4" enabled="true">
+ <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create Policy Type Monitoring V7" enabled="true">
<boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
<elementProp name="HTTPsampler.Arguments" elementType="Arguments">
<collectionProp name="Arguments.arguments">
<elementProp name="" elementType="HTTPArgument">
<boolProp name="HTTPArgument.always_encode">false</boolProp>
<stringProp name="Argument.value">{&#xd;
- &quot;tosca_definitions_version&quot;: &quot;tosca_simple_yaml_1_0_0&quot;,&#xd;
- &quot;policy_types&quot;: [&#xd;
- {&#xd;
- &quot;onap.policies.Monitoring&quot;: {&#xd;
- &quot;derived_from&quot;: &quot;tosca.policies.Root&quot;,&#xd;
- &quot;version&quot;: &quot;1.0.0&quot;,&#xd;
- &quot;description&quot;: &quot;a base policy type for all policies that governs monitoring provisioning&quot;&#xd;
- }&#xd;
+ &quot;tosca_definitions_version&quot;: &quot;tosca_simple_yaml_1_1_0&quot;,&#xd;
+ &quot;policy_types&quot;: {&#xd;
+ &quot;onap.policies.Monitoring&quot;: {&#xd;
+ &quot;derived_from&quot;: &quot;tosca.policies.Root&quot;,&#xd;
+ &quot;version&quot;: &quot;1.0.0&quot;,&#xd;
+ &quot;description&quot;: &quot;a base policy type for all policies that govern monitoring provisioning&quot;&#xd;
},&#xd;
- {&#xd;
- &quot;onap.policies.monitoring.cdap.tca.hi.lo.app&quot;: {&#xd;
- &quot;derived_from&quot;: &quot;onap.policies.Monitoring&quot;,&#xd;
- &quot;version&quot;: &quot;4.0.0&quot;,&#xd;
- &quot;properties&quot;: {&#xd;
- &quot;tca_policy&quot;: {&#xd;
- &quot;type&quot;: &quot;map&quot;,&#xd;
- &quot;description&quot;: &quot;TCA Policy JSON&quot;,&#xd;
- &quot;entry_schema&quot;: {&#xd;
- &quot;type&quot;: &quot;onap.datatypes.monitoring.tca_policy&quot;&#xd;
- }&#xd;
- }&#xd;
+ &quot;onap.policies.monitoring.cdap.tca.hi.lo.app&quot;: {&#xd;
+ &quot;derived_from&quot;: &quot;onap.policies.Monitoring&quot;,&#xd;
+ &quot;version&quot;: &quot;7.0.${__threadNum}&quot;,&#xd;
+ &quot;properties&quot;: {&#xd;
+ &quot;tca_policy&quot;: {&#xd;
+ &quot;type&quot;: &quot;onap.datatypes.monitoring.tca_policy&quot;,&#xd;
+ &quot;description&quot;: &quot;TCA Policy JSON&quot;,&#xd;
+ &quot;required&quot;: true&#xd;
}&#xd;
}&#xd;
}&#xd;
- ],&#xd;
- &quot;data_types&quot;: [&#xd;
- {&#xd;
- &quot;onap.datatypes.monitoring.metricsPerEventName&quot;: {&#xd;
- &quot;derived_from&quot;: &quot;tosca.datatypes.Root&quot;,&#xd;
- &quot;properties&quot;: {&#xd;
- &quot;controlLoopSchemaType&quot;: {&#xd;
- &quot;type&quot;: &quot;string&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;Specifies Control Loop Schema Type for the event Name e.g. VNF, VM&quot;,&#xd;
- &quot;constraints&quot;: [&#xd;
- {&#xd;
- &quot;valid_values&quot;: [&#xd;
- &quot;VM&quot;,&#xd;
- &quot;VNF&quot;&#xd;
- ]&#xd;
- }&#xd;
- ]&#xd;
- },&#xd;
- &quot;eventName&quot;: {&#xd;
- &quot;type&quot;: &quot;string&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;Event name to which thresholds need to be applied&quot;&#xd;
- },&#xd;
- &quot;policyName&quot;: {&#xd;
- &quot;type&quot;: &quot;string&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;TCA Policy Scope Name&quot;&#xd;
- },&#xd;
- &quot;policyScope&quot;: {&#xd;
- &quot;type&quot;: &quot;string&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;TCA Policy Scope&quot;&#xd;
- },&#xd;
- &quot;policyVersion&quot;: {&#xd;
- &quot;type&quot;: &quot;string&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;TCA Policy Scope Version&quot;&#xd;
- },&#xd;
- &quot;thresholds&quot;: {&#xd;
- &quot;type&quot;: &quot;list&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;Thresholds associated with eventName&quot;,&#xd;
- &quot;entry_schema&quot;: {&#xd;
- &quot;type&quot;: &quot;onap.datatypes.monitoring.thresholds&quot;&#xd;
+ },&#xd;
+ &quot;data_types&quot;: {&#xd;
+ &quot;onap.datatypes.monitoring.metricsPerEventName&quot;: {&#xd;
+ &quot;derived_from&quot;: &quot;tosca.datatypes.Root&quot;,&#xd;
+ &quot;properties&quot;: {&#xd;
+ &quot;controlLoopSchemaType&quot;: {&#xd;
+ &quot;type&quot;: &quot;string&quot;,&#xd;
+ &quot;required&quot;: true,&#xd;
+ &quot;description&quot;: &quot;Specifies Control Loop Schema Type for the event Name e.g. VNF, VM&quot;,&#xd;
+ &quot;constraints&quot;: [&#xd;
+ {&#xd;
+ &quot;valid_values&quot;: [&#xd;
+ &quot;VM&quot;,&#xd;
+ &quot;VNF&quot;&#xd;
+ ]&#xd;
}&#xd;
+ ]&#xd;
+ },&#xd;
+ &quot;eventName&quot;: {&#xd;
+ &quot;type&quot;: &quot;string&quot;,&#xd;
+ &quot;required&quot;: true,&#xd;
+ &quot;description&quot;: &quot;Event name to which thresholds need to be applied&quot;&#xd;
+ },&#xd;
+ &quot;policyName&quot;: {&#xd;
+ &quot;type&quot;: &quot;string&quot;,&#xd;
+ &quot;required&quot;: true,&#xd;
+ &quot;description&quot;: &quot;TCA Policy Scope Name&quot;&#xd;
+ },&#xd;
+ &quot;policyScope&quot;: {&#xd;
+ &quot;type&quot;: &quot;string&quot;,&#xd;
+ &quot;required&quot;: true,&#xd;
+ &quot;description&quot;: &quot;TCA Policy Scope&quot;&#xd;
+ },&#xd;
+ &quot;policyVersion&quot;: {&#xd;
+ &quot;type&quot;: &quot;string&quot;,&#xd;
+ &quot;required&quot;: true,&#xd;
+ &quot;description&quot;: &quot;TCA Policy Scope Version&quot;&#xd;
+ },&#xd;
+ &quot;thresholds&quot;: {&#xd;
+ &quot;type&quot;: &quot;list&quot;,&#xd;
+ &quot;required&quot;: true,&#xd;
+ &quot;description&quot;: &quot;Thresholds associated with eventName&quot;,&#xd;
+ &quot;entry_schema&quot;: {&#xd;
+ &quot;type&quot;: &quot;onap.datatypes.monitoring.thresholds&quot;&#xd;
}&#xd;
}&#xd;
}&#xd;
},&#xd;
- {&#xd;
- &quot;onap.datatypes.monitoring.tca_policy&quot;: {&#xd;
- &quot;derived_from&quot;: &quot;tosca.datatypes.Root&quot;,&#xd;
- &quot;properties&quot;: {&#xd;
- &quot;domain&quot;: {&#xd;
- &quot;type&quot;: &quot;string&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;Domain name to which TCA needs to be applied&quot;,&#xd;
- &quot;default&quot;: &quot;measurementsForVfScaling&quot;,&#xd;
- &quot;constraints&quot;: [&#xd;
- {&#xd;
- &quot;equal&quot;: &quot;measurementsForVfScaling&quot;&#xd;
- }&#xd;
- ]&#xd;
- },&#xd;
- &quot;metricsPerEventName&quot;: {&#xd;
- &quot;type&quot;: &quot;list&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;Contains eventName and threshold details that need to be applied to given eventName&quot;,&#xd;
- &quot;entry_schema&quot;: {&#xd;
- &quot;type&quot;: &quot;onap.datatypes.monitoring.metricsPerEventName&quot;&#xd;
+ &quot;onap.datatypes.monitoring.tca_policy&quot;: {&#xd;
+ &quot;derived_from&quot;: &quot;tosca.datatypes.Root&quot;,&#xd;
+ &quot;properties&quot;: {&#xd;
+ &quot;domain&quot;: {&#xd;
+ &quot;type&quot;: &quot;string&quot;,&#xd;
+ &quot;required&quot;: true,&#xd;
+ &quot;description&quot;: &quot;Domain name to which TCA needs to be applied&quot;,&#xd;
+ &quot;default&quot;: &quot;measurementsForVfScaling&quot;,&#xd;
+ &quot;constraints&quot;: [&#xd;
+ {&#xd;
+ &quot;equal&quot;: &quot;measurementsForVfScaling&quot;&#xd;
}&#xd;
+ ]&#xd;
+ },&#xd;
+ &quot;metricsPerEventName&quot;: {&#xd;
+ &quot;type&quot;: &quot;list&quot;,&#xd;
+ &quot;required&quot;: true,&#xd;
+ &quot;description&quot;: &quot;Contains eventName and threshold details that need to be applied to given eventName&quot;,&#xd;
+ &quot;entry_schema&quot;: {&#xd;
+ &quot;type&quot;: &quot;onap.datatypes.monitoring.metricsPerEventName&quot;&#xd;
}&#xd;
}&#xd;
}&#xd;
},&#xd;
- {&#xd;
- &quot;onap.datatypes.monitoring.thresholds&quot;: {&#xd;
- &quot;derived_from&quot;: &quot;tosca.datatypes.Root&quot;,&#xd;
- &quot;properties&quot;: {&#xd;
- &quot;closedLoopControlName&quot;: {&#xd;
- &quot;type&quot;: &quot;string&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;Closed Loop Control Name associated with the threshold&quot;&#xd;
- },&#xd;
- &quot;closedLoopEventStatus&quot;: {&#xd;
- &quot;type&quot;: &quot;string&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;Closed Loop Event Status of the threshold&quot;,&#xd;
- &quot;constraints&quot;: [&#xd;
- {&#xd;
- &quot;valid_values&quot;: [&#xd;
- &quot;ONSET&quot;,&#xd;
- &quot;ABATED&quot;&#xd;
- ]&#xd;
- }&#xd;
- ]&#xd;
- },&#xd;
- &quot;direction&quot;: {&#xd;
- &quot;type&quot;: &quot;string&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;Direction of the threshold&quot;,&#xd;
- &quot;constraints&quot;: [&#xd;
- {&#xd;
- &quot;valid_values&quot;: [&#xd;
- &quot;LESS&quot;,&#xd;
- &quot;LESS_OR_EQUAL&quot;,&#xd;
- &quot;GREATER&quot;,&#xd;
- &quot;GREATER_OR_EQUAL&quot;,&#xd;
- &quot;EQUAL&quot;&#xd;
- ]&#xd;
- }&#xd;
- ]&#xd;
- },&#xd;
- &quot;fieldPath&quot;: {&#xd;
- &quot;type&quot;: &quot;string&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;Json field Path as per CEF message which needs to be analyzed for TCA&quot;,&#xd;
- &quot;constraints&quot;: [&#xd;
- {&#xd;
- &quot;valid_values&quot;: [&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsDelta&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedOctetsDelta&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedUnicastPacketsDelta&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedMulticastPacketsDelta&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsDelta&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedDiscardedPacketsDelta&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedErrorPacketsDelta&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsAccumulated&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedOctetsAccumulated&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedUnicastPacketsAccumulated&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedMulticastPacketsAccumulated&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsAccumulated&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedDiscardedPacketsAccumulated&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedErrorPacketsAccumulated&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedTotalPacketsDelta&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedOctetsDelta&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedUnicastPacketsDelta&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedMulticastPacketsDelta&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedBroadcastPacketsDelta&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedDiscardedPacketsDelta&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedErrorPacketsDelta&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedTotalPacketsAccumulated&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedOctetsAccumulated&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedUnicastPacketsAccumulated&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedMulticastPacketsAccumulated&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedBroadcastPacketsAccumulated&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedDiscardedPacketsAccumulated&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedErrorPacketsAccumulated&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuIdle&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageInterrupt&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageNice&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSoftIrq&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSteal&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSystem&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuWait&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].percentUsage&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.meanRequestLatency&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryBuffered&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryCached&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryConfigured&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryFree&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryUsed&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value&quot;&#xd;
- ]&#xd;
- }&#xd;
- ]&#xd;
- },&#xd;
- &quot;severity&quot;: {&#xd;
- &quot;type&quot;: &quot;string&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;Threshold Event Severity&quot;,&#xd;
- &quot;constraints&quot;: [&#xd;
- {&#xd;
- &quot;valid_values&quot;: [&#xd;
- &quot;CRITICAL&quot;,&#xd;
- &quot;MAJOR&quot;,&#xd;
- &quot;MINOR&quot;,&#xd;
- &quot;WARNING&quot;,&#xd;
- &quot;NORMAL&quot;&#xd;
- ]&#xd;
- }&#xd;
- ]&#xd;
- },&#xd;
- &quot;thresholdValue&quot;: {&#xd;
- &quot;type&quot;: &quot;integer&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;Threshold value for the field Path inside CEF message&quot;&#xd;
- },&#xd;
- &quot;version&quot;: {&#xd;
- &quot;type&quot;: &quot;string&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;Version number associated with the threshold&quot;&#xd;
- }&#xd;
- }&#xd;
- }&#xd;
- }&#xd;
- ]&#xd;
-}</stringProp>
- <stringProp name="Argument.metadata">=</stringProp>
- </elementProp>
- </collectionProp>
- </elementProp>
- <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
- <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
- <stringProp name="HTTPSampler.protocol">https</stringProp>
- <stringProp name="HTTPSampler.contentEncoding"></stringProp>
- <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes</stringProp>
- <stringProp name="HTTPSampler.method">POST</stringProp>
- <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
- <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
- <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
- <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
- <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
- <stringProp name="HTTPSampler.connect_timeout"></stringProp>
- <stringProp name="HTTPSampler.response_timeout"></stringProp>
- </HTTPSamplerProxy>
- <hashTree>
- <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
- <collectionProp name="Asserion.test_strings">
- <stringProp name="49586">200</stringProp>
- </collectionProp>
- <stringProp name="Assertion.custom_message"></stringProp>
- <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
- <boolProp name="Assertion.assume_success">false</boolProp>
- <intProp name="Assertion.test_type">1</intProp>
- </ResponseAssertion>
- <hashTree/>
- <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
- <stringProp name="scriptLanguage">groovy</stringProp>
- <stringProp name="parameters"></stringProp>
- <stringProp name="filename"></stringProp>
- <stringProp name="cacheKey">true</stringProp>
- <stringProp name="script">import groovy.json.JsonSlurper;
-
-def res = [];
-if (prev.getResponseCode() == &apos;200&apos;) {
- def jsonSlurper = new JsonSlurper();
- res = jsonSlurper.parseText(prev.getResponseDataAsString());
-
- assert res instanceof Map;
- assert res.policy_types instanceof List;
- assert res.policy_types.size == 2;
- assert res.policy_types[0] instanceof Map;
- assert res.policy_types[1] instanceof Map;
-}</stringProp>
- </JSR223Assertion>
- <hashTree/>
- </hashTree>
- <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create TCA Policy Type V5" enabled="true">
- <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
- <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
- <collectionProp name="Arguments.arguments">
- <elementProp name="" elementType="HTTPArgument">
- <boolProp name="HTTPArgument.always_encode">false</boolProp>
- <stringProp name="Argument.value">{&#xd;
- &quot;tosca_definitions_version&quot;: &quot;tosca_simple_yaml_1_0_0&quot;,&#xd;
- &quot;policy_types&quot;: [&#xd;
- {&#xd;
- &quot;onap.policies.Monitoring&quot;: {&#xd;
- &quot;derived_from&quot;: &quot;tosca.policies.Root&quot;,&#xd;
- &quot;version&quot;: &quot;1.0.0&quot;,&#xd;
- &quot;description&quot;: &quot;a base policy type for all policies that governs monitoring provisioning&quot;&#xd;
- }&#xd;
- },&#xd;
- {&#xd;
- &quot;onap.policies.monitoring.cdap.tca.hi.lo.app&quot;: {&#xd;
- &quot;derived_from&quot;: &quot;onap.policies.Monitoring&quot;,&#xd;
- &quot;version&quot;: &quot;5.0.0&quot;,&#xd;
- &quot;properties&quot;: {&#xd;
- &quot;tca_policy&quot;: {&#xd;
- &quot;type&quot;: &quot;map&quot;,&#xd;
- &quot;description&quot;: &quot;TCA Policy JSON&quot;,&#xd;
- &quot;entry_schema&quot;: {&#xd;
- &quot;type&quot;: &quot;onap.datatypes.monitoring.tca_policy&quot;&#xd;
+ &quot;onap.datatypes.monitoring.thresholds&quot;: {&#xd;
+ &quot;derived_from&quot;: &quot;tosca.datatypes.Root&quot;,&#xd;
+ &quot;properties&quot;: {&#xd;
+ &quot;closedLoopControlName&quot;: {&#xd;
+ &quot;type&quot;: &quot;string&quot;,&#xd;
+ &quot;required&quot;: true,&#xd;
+ &quot;description&quot;: &quot;Closed Loop Control Name associated with the threshold&quot;&#xd;
+ },&#xd;
+ &quot;closedLoopEventStatus&quot;: {&#xd;
+ &quot;type&quot;: &quot;string&quot;,&#xd;
+ &quot;required&quot;: true,&#xd;
+ &quot;description&quot;: &quot;Closed Loop Event Status of the threshold&quot;,&#xd;
+ &quot;constraints&quot;: [&#xd;
+ {&#xd;
+ &quot;valid_values&quot;: [&#xd;
+ &quot;ONSET&quot;,&#xd;
+ &quot;ABATED&quot;&#xd;
+ ]&#xd;
}&#xd;
- }&#xd;
- }&#xd;
- }&#xd;
- }&#xd;
- ],&#xd;
- &quot;data_types&quot;: [&#xd;
- {&#xd;
- &quot;onap.datatypes.monitoring.metricsPerEventName&quot;: {&#xd;
- &quot;derived_from&quot;: &quot;tosca.datatypes.Root&quot;,&#xd;
- &quot;properties&quot;: {&#xd;
- &quot;controlLoopSchemaType&quot;: {&#xd;
- &quot;type&quot;: &quot;string&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;Specifies Control Loop Schema Type for the event Name e.g. VNF, VM&quot;,&#xd;
- &quot;constraints&quot;: [&#xd;
- {&#xd;
- &quot;valid_values&quot;: [&#xd;
- &quot;VM&quot;,&#xd;
- &quot;VNF&quot;&#xd;
- ]&#xd;
- }&#xd;
- ]&#xd;
- },&#xd;
- &quot;eventName&quot;: {&#xd;
- &quot;type&quot;: &quot;string&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;Event name to which thresholds need to be applied&quot;&#xd;
- },&#xd;
- &quot;policyName&quot;: {&#xd;
- &quot;type&quot;: &quot;string&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;TCA Policy Scope Name&quot;&#xd;
- },&#xd;
- &quot;policyScope&quot;: {&#xd;
- &quot;type&quot;: &quot;string&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;TCA Policy Scope&quot;&#xd;
- },&#xd;
- &quot;policyVersion&quot;: {&#xd;
- &quot;type&quot;: &quot;string&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;TCA Policy Scope Version&quot;&#xd;
- },&#xd;
- &quot;thresholds&quot;: {&#xd;
- &quot;type&quot;: &quot;list&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;Thresholds associated with eventName&quot;,&#xd;
- &quot;entry_schema&quot;: {&#xd;
- &quot;type&quot;: &quot;onap.datatypes.monitoring.thresholds&quot;&#xd;
+ ]&#xd;
+ },&#xd;
+ &quot;direction&quot;: {&#xd;
+ &quot;type&quot;: &quot;string&quot;,&#xd;
+ &quot;required&quot;: true,&#xd;
+ &quot;description&quot;: &quot;Direction of the threshold&quot;,&#xd;
+ &quot;constraints&quot;: [&#xd;
+ {&#xd;
+ &quot;valid_values&quot;: [&#xd;
+ &quot;LESS&quot;,&#xd;
+ &quot;LESS_OR_EQUAL&quot;,&#xd;
+ &quot;GREATER&quot;,&#xd;
+ &quot;GREATER_OR_EQUAL&quot;,&#xd;
+ &quot;EQUAL&quot;&#xd;
+ ]&#xd;
}&#xd;
- }&#xd;
- }&#xd;
- }&#xd;
- },&#xd;
- {&#xd;
- &quot;onap.datatypes.monitoring.tca_policy&quot;: {&#xd;
- &quot;derived_from&quot;: &quot;tosca.datatypes.Root&quot;,&#xd;
- &quot;properties&quot;: {&#xd;
- &quot;domain&quot;: {&#xd;
- &quot;type&quot;: &quot;string&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;Domain name to which TCA needs to be applied&quot;,&#xd;
- &quot;default&quot;: &quot;measurementsForVfScaling&quot;,&#xd;
- &quot;constraints&quot;: [&#xd;
- {&#xd;
- &quot;equal&quot;: &quot;measurementsForVfScaling&quot;&#xd;
- }&#xd;
- ]&#xd;
- },&#xd;
- &quot;metricsPerEventName&quot;: {&#xd;
- &quot;type&quot;: &quot;list&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;Contains eventName and threshold details that need to be applied to given eventName&quot;,&#xd;
- &quot;entry_schema&quot;: {&#xd;
- &quot;type&quot;: &quot;onap.datatypes.monitoring.metricsPerEventName&quot;&#xd;
+ ]&#xd;
+ },&#xd;
+ &quot;fieldPath&quot;: {&#xd;
+ &quot;type&quot;: &quot;string&quot;,&#xd;
+ &quot;required&quot;: true,&#xd;
+ &quot;description&quot;: &quot;Json field Path as per CEF message which needs to be analyzed for TCA&quot;,&#xd;
+ &quot;constraints&quot;: [&#xd;
+ {&#xd;
+ &quot;valid_values&quot;: [&#xd;
+ &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsDelta&quot;,&#xd;
+ &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedOctetsDelta&quot;,&#xd;
+ &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedUnicastPacketsDelta&quot;,&#xd;
+ &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedMulticastPacketsDelta&quot;,&#xd;
+ &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsDelta&quot;,&#xd;
+ &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedDiscardedPacketsDelta&quot;,&#xd;
+ &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedErrorPacketsDelta&quot;,&#xd;
+ &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsAccumulated&quot;,&#xd;
+ &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedOctetsAccumulated&quot;,&#xd;
+ &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedUnicastPacketsAccumulated&quot;,&#xd;
+ &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedMulticastPacketsAccumulated&quot;,&#xd;
+ &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsAccumulated&quot;,&#xd;
+ &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedDiscardedPacketsAccumulated&quot;,&#xd;
+ &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedErrorPacketsAccumulated&quot;,&#xd;
+ &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedTotalPacketsDelta&quot;,&#xd;
+ &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedOctetsDelta&quot;,&#xd;
+ &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedUnicastPacketsDelta&quot;,&#xd;
+ &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedMulticastPacketsDelta&quot;,&#xd;
+ &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedBroadcastPacketsDelta&quot;,&#xd;
+ &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedDiscardedPacketsDelta&quot;,&#xd;
+ &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedErrorPacketsDelta&quot;,&#xd;
+ &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedTotalPacketsAccumulated&quot;,&#xd;
+ &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedOctetsAccumulated&quot;,&#xd;
+ &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedUnicastPacketsAccumulated&quot;,&#xd;
+ &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedMulticastPacketsAccumulated&quot;,&#xd;
+ &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedBroadcastPacketsAccumulated&quot;,&#xd;
+ &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedDiscardedPacketsAccumulated&quot;,&#xd;
+ &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedErrorPacketsAccumulated&quot;,&#xd;
+ &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuIdle&quot;,&#xd;
+ &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageInterrupt&quot;,&#xd;
+ &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageNice&quot;,&#xd;
+ &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSoftIrq&quot;,&#xd;
+ &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSteal&quot;,&#xd;
+ &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSystem&quot;,&#xd;
+ &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuWait&quot;,&#xd;
+ &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].percentUsage&quot;,&#xd;
+ &quot;$.event.measurementsForVfScalingFields.meanRequestLatency&quot;,&#xd;
+ &quot;$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryBuffered&quot;,&#xd;
+ &quot;$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryCached&quot;,&#xd;
+ &quot;$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryConfigured&quot;,&#xd;
+ &quot;$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryFree&quot;,&#xd;
+ &quot;$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryUsed&quot;,&#xd;
+ &quot;$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value&quot;&#xd;
+ ]&#xd;
}&#xd;
- }&#xd;
- }&#xd;
- }&#xd;
- },&#xd;
- {&#xd;
- &quot;onap.datatypes.monitoring.thresholds&quot;: {&#xd;
- &quot;derived_from&quot;: &quot;tosca.datatypes.Root&quot;,&#xd;
- &quot;properties&quot;: {&#xd;
- &quot;closedLoopControlName&quot;: {&#xd;
- &quot;type&quot;: &quot;string&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;Closed Loop Control Name associated with the threshold&quot;&#xd;
- },&#xd;
- &quot;closedLoopEventStatus&quot;: {&#xd;
- &quot;type&quot;: &quot;string&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;Closed Loop Event Status of the threshold&quot;,&#xd;
- &quot;constraints&quot;: [&#xd;
- {&#xd;
- &quot;valid_values&quot;: [&#xd;
- &quot;ONSET&quot;,&#xd;
- &quot;ABATED&quot;&#xd;
- ]&#xd;
- }&#xd;
- ]&#xd;
- },&#xd;
- &quot;direction&quot;: {&#xd;
- &quot;type&quot;: &quot;string&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;Direction of the threshold&quot;,&#xd;
- &quot;constraints&quot;: [&#xd;
- {&#xd;
- &quot;valid_values&quot;: [&#xd;
- &quot;LESS&quot;,&#xd;
- &quot;LESS_OR_EQUAL&quot;,&#xd;
- &quot;GREATER&quot;,&#xd;
- &quot;GREATER_OR_EQUAL&quot;,&#xd;
- &quot;EQUAL&quot;&#xd;
- ]&#xd;
- }&#xd;
- ]&#xd;
- },&#xd;
- &quot;fieldPath&quot;: {&#xd;
- &quot;type&quot;: &quot;string&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;Json field Path as per CEF message which needs to be analyzed for TCA&quot;,&#xd;
- &quot;constraints&quot;: [&#xd;
- {&#xd;
- &quot;valid_values&quot;: [&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsDelta&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedOctetsDelta&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedUnicastPacketsDelta&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedMulticastPacketsDelta&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsDelta&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedDiscardedPacketsDelta&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedErrorPacketsDelta&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsAccumulated&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedOctetsAccumulated&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedUnicastPacketsAccumulated&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedMulticastPacketsAccumulated&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsAccumulated&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedDiscardedPacketsAccumulated&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedErrorPacketsAccumulated&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedTotalPacketsDelta&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedOctetsDelta&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedUnicastPacketsDelta&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedMulticastPacketsDelta&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedBroadcastPacketsDelta&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedDiscardedPacketsDelta&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedErrorPacketsDelta&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedTotalPacketsAccumulated&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedOctetsAccumulated&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedUnicastPacketsAccumulated&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedMulticastPacketsAccumulated&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedBroadcastPacketsAccumulated&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedDiscardedPacketsAccumulated&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedErrorPacketsAccumulated&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuIdle&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageInterrupt&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageNice&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSoftIrq&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSteal&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSystem&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuWait&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].percentUsage&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.meanRequestLatency&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryBuffered&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryCached&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryConfigured&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryFree&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryUsed&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value&quot;&#xd;
- ]&#xd;
- }&#xd;
- ]&#xd;
- },&#xd;
- &quot;severity&quot;: {&#xd;
- &quot;type&quot;: &quot;string&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;Threshold Event Severity&quot;,&#xd;
- &quot;constraints&quot;: [&#xd;
- {&#xd;
- &quot;valid_values&quot;: [&#xd;
- &quot;CRITICAL&quot;,&#xd;
- &quot;MAJOR&quot;,&#xd;
- &quot;MINOR&quot;,&#xd;
- &quot;WARNING&quot;,&#xd;
- &quot;NORMAL&quot;&#xd;
- ]&#xd;
- }&#xd;
- ]&#xd;
- },&#xd;
- &quot;thresholdValue&quot;: {&#xd;
- &quot;type&quot;: &quot;integer&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;Threshold value for the field Path inside CEF message&quot;&#xd;
- },&#xd;
- &quot;version&quot;: {&#xd;
- &quot;type&quot;: &quot;string&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;Version number associated with the threshold&quot;&#xd;
- }&#xd;
+ ]&#xd;
+ },&#xd;
+ &quot;severity&quot;: {&#xd;
+ &quot;type&quot;: &quot;string&quot;,&#xd;
+ &quot;required&quot;: true,&#xd;
+ &quot;description&quot;: &quot;Threshold Event Severity&quot;,&#xd;
+ &quot;constraints&quot;: [&#xd;
+ {&#xd;
+ &quot;valid_values&quot;: [&#xd;
+ &quot;CRITICAL&quot;,&#xd;
+ &quot;MAJOR&quot;,&#xd;
+ &quot;MINOR&quot;,&#xd;
+ &quot;WARNING&quot;,&#xd;
+ &quot;NORMAL&quot;&#xd;
+ ]&#xd;
+ }&#xd;
+ ]&#xd;
+ },&#xd;
+ &quot;thresholdValue&quot;: {&#xd;
+ &quot;type&quot;: &quot;integer&quot;,&#xd;
+ &quot;required&quot;: true,&#xd;
+ &quot;description&quot;: &quot;Threshold value for the field Path inside CEF message&quot;&#xd;
+ },&#xd;
+ &quot;version&quot;: {&#xd;
+ &quot;type&quot;: &quot;string&quot;,&#xd;
+ &quot;required&quot;: true,&#xd;
+ &quot;description&quot;: &quot;Version number associated with the threshold&quot;&#xd;
}&#xd;
}&#xd;
}&#xd;
- ]&#xd;
+ }&#xd;
}</stringProp>
<stringProp name="Argument.metadata">=</stringProp>
</elementProp>
@@ -1613,243 +803,71 @@ if (prev.getResponseCode() == &apos;200&apos;) {
res = jsonSlurper.parseText(prev.getResponseDataAsString());
assert res instanceof Map;
- assert res.policy_types instanceof List;
- assert res.policy_types.size == 2;
- assert res.policy_types[0] instanceof Map;
- assert res.policy_types[1] instanceof Map;
+ assert res.policy_types instanceof Map;
+ assert res.policy_types.size() == 2;
+ assert res.policy_types.values()[0] instanceof Map;
+ assert res.policy_types.values()[1] instanceof Map;
}</stringProp>
</JSR223Assertion>
<hashTree/>
</hashTree>
- <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create TCA Policy Type V6" enabled="true">
+ <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create Policy Type Optimization" enabled="true">
<boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
<elementProp name="HTTPsampler.Arguments" elementType="Arguments">
<collectionProp name="Arguments.arguments">
<elementProp name="" elementType="HTTPArgument">
<boolProp name="HTTPArgument.always_encode">false</boolProp>
<stringProp name="Argument.value">{&#xd;
- &quot;tosca_definitions_version&quot;: &quot;tosca_simple_yaml_1_0_0&quot;,&#xd;
- &quot;policy_types&quot;: [&#xd;
- {&#xd;
- &quot;onap.policies.Monitoring&quot;: {&#xd;
- &quot;derived_from&quot;: &quot;tosca.policies.Root&quot;,&#xd;
- &quot;version&quot;: &quot;1.0.0&quot;,&#xd;
- &quot;description&quot;: &quot;a base policy type for all policies that governs monitoring provisioning&quot;&#xd;
- }&#xd;
- },&#xd;
- {&#xd;
- &quot;onap.policies.monitoring.cdap.tca.hi.lo.app&quot;: {&#xd;
- &quot;derived_from&quot;: &quot;onap.policies.Monitoring&quot;,&#xd;
- &quot;version&quot;: &quot;6.0.0&quot;,&#xd;
- &quot;properties&quot;: {&#xd;
- &quot;tca_policy&quot;: {&#xd;
- &quot;type&quot;: &quot;map&quot;,&#xd;
- &quot;description&quot;: &quot;TCA Policy JSON&quot;,&#xd;
- &quot;entry_schema&quot;: {&#xd;
- &quot;type&quot;: &quot;onap.datatypes.monitoring.tca_policy&quot;&#xd;
- }&#xd;
- }&#xd;
- }&#xd;
- }&#xd;
- }&#xd;
- ],&#xd;
- &quot;data_types&quot;: [&#xd;
- {&#xd;
- &quot;onap.datatypes.monitoring.metricsPerEventName&quot;: {&#xd;
- &quot;derived_from&quot;: &quot;tosca.datatypes.Root&quot;,&#xd;
- &quot;properties&quot;: {&#xd;
- &quot;controlLoopSchemaType&quot;: {&#xd;
- &quot;type&quot;: &quot;string&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;Specifies Control Loop Schema Type for the event Name e.g. VNF, VM&quot;,&#xd;
- &quot;constraints&quot;: [&#xd;
- {&#xd;
- &quot;valid_values&quot;: [&#xd;
- &quot;VM&quot;,&#xd;
- &quot;VNF&quot;&#xd;
- ]&#xd;
- }&#xd;
- ]&#xd;
- },&#xd;
- &quot;eventName&quot;: {&#xd;
- &quot;type&quot;: &quot;string&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;Event name to which thresholds need to be applied&quot;&#xd;
- },&#xd;
- &quot;policyName&quot;: {&#xd;
- &quot;type&quot;: &quot;string&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;TCA Policy Scope Name&quot;&#xd;
- },&#xd;
- &quot;policyScope&quot;: {&#xd;
- &quot;type&quot;: &quot;string&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;TCA Policy Scope&quot;&#xd;
- },&#xd;
- &quot;policyVersion&quot;: {&#xd;
- &quot;type&quot;: &quot;string&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;TCA Policy Scope Version&quot;&#xd;
- },&#xd;
- &quot;thresholds&quot;: {&#xd;
- &quot;type&quot;: &quot;list&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;Thresholds associated with eventName&quot;,&#xd;
- &quot;entry_schema&quot;: {&#xd;
- &quot;type&quot;: &quot;onap.datatypes.monitoring.thresholds&quot;&#xd;
- }&#xd;
- }&#xd;
- }&#xd;
- }&#xd;
- },&#xd;
- {&#xd;
- &quot;onap.datatypes.monitoring.tca_policy&quot;: {&#xd;
- &quot;derived_from&quot;: &quot;tosca.datatypes.Root&quot;,&#xd;
- &quot;properties&quot;: {&#xd;
- &quot;domain&quot;: {&#xd;
- &quot;type&quot;: &quot;string&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;Domain name to which TCA needs to be applied&quot;,&#xd;
- &quot;default&quot;: &quot;measurementsForVfScaling&quot;,&#xd;
- &quot;constraints&quot;: [&#xd;
- {&#xd;
- &quot;equal&quot;: &quot;measurementsForVfScaling&quot;&#xd;
- }&#xd;
+ &quot;tosca_definitions_version&quot;: &quot;tosca_simple_yaml_1_1_0&quot;,&#xd;
+ &quot;policy_types&quot;: {&#xd;
+ &quot;onap.policies.optimization.resource.AffinityPolicy&quot;: {&#xd;
+ &quot;derived_from&quot;: &quot;onap.policies.optimization.Resource&quot;,&#xd;
+ &quot;version&quot;: &quot;6.0.${__threadNum}&quot;,&#xd;
+ &quot;properties&quot;: {&#xd;
+ &quot;applicableResources&quot;: {&#xd;
+ &quot;type&quot;: &quot;list&quot;,&#xd;
+ &quot;required&quot;: true,&#xd;
+ &quot;entry_schema&quot;: {&#xd;
+ &quot;type&quot;: &quot;string&quot;,&#xd;
+ &quot;constraints&quot;: [&#xd;
+ {&#xd;
+ &quot;valid_values&quot;: [&#xd;
+ &quot;any&quot;,&#xd;
+ &quot;all&quot;&#xd;
]&#xd;
- },&#xd;
- &quot;metricsPerEventName&quot;: {&#xd;
- &quot;type&quot;: &quot;list&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;Contains eventName and threshold details that need to be applied to given eventName&quot;,&#xd;
- &quot;entry_schema&quot;: {&#xd;
- &quot;type&quot;: &quot;onap.datatypes.monitoring.metricsPerEventName&quot;&#xd;
- }&#xd;
- }&#xd;
- }&#xd;
+ }&#xd;
+ ]&#xd;
+ }&#xd;
+ },&#xd;
+ &quot;affinityProperties&quot;: {&#xd;
+ &quot;type&quot;: &quot;policy.data.affinityProperties_properties&quot;,&#xd;
+ &quot;required&quot;: true&#xd;
}&#xd;
- },&#xd;
- {&#xd;
- &quot;onap.datatypes.monitoring.thresholds&quot;: {&#xd;
- &quot;derived_from&quot;: &quot;tosca.datatypes.Root&quot;,&#xd;
- &quot;properties&quot;: {&#xd;
- &quot;closedLoopControlName&quot;: {&#xd;
- &quot;type&quot;: &quot;string&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;Closed Loop Control Name associated with the threshold&quot;&#xd;
- },&#xd;
- &quot;closedLoopEventStatus&quot;: {&#xd;
- &quot;type&quot;: &quot;string&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;Closed Loop Event Status of the threshold&quot;,&#xd;
- &quot;constraints&quot;: [&#xd;
- {&#xd;
- &quot;valid_values&quot;: [&#xd;
- &quot;ONSET&quot;,&#xd;
- &quot;ABATED&quot;&#xd;
- ]&#xd;
- }&#xd;
- ]&#xd;
- },&#xd;
- &quot;direction&quot;: {&#xd;
- &quot;type&quot;: &quot;string&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;Direction of the threshold&quot;,&#xd;
- &quot;constraints&quot;: [&#xd;
- {&#xd;
- &quot;valid_values&quot;: [&#xd;
- &quot;LESS&quot;,&#xd;
- &quot;LESS_OR_EQUAL&quot;,&#xd;
- &quot;GREATER&quot;,&#xd;
- &quot;GREATER_OR_EQUAL&quot;,&#xd;
- &quot;EQUAL&quot;&#xd;
- ]&#xd;
- }&#xd;
- ]&#xd;
- },&#xd;
- &quot;fieldPath&quot;: {&#xd;
- &quot;type&quot;: &quot;string&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;Json field Path as per CEF message which needs to be analyzed for TCA&quot;,&#xd;
- &quot;constraints&quot;: [&#xd;
- {&#xd;
- &quot;valid_values&quot;: [&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsDelta&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedOctetsDelta&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedUnicastPacketsDelta&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedMulticastPacketsDelta&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsDelta&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedDiscardedPacketsDelta&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedErrorPacketsDelta&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsAccumulated&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedOctetsAccumulated&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedUnicastPacketsAccumulated&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedMulticastPacketsAccumulated&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsAccumulated&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedDiscardedPacketsAccumulated&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedErrorPacketsAccumulated&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedTotalPacketsDelta&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedOctetsDelta&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedUnicastPacketsDelta&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedMulticastPacketsDelta&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedBroadcastPacketsDelta&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedDiscardedPacketsDelta&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedErrorPacketsDelta&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedTotalPacketsAccumulated&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedOctetsAccumulated&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedUnicastPacketsAccumulated&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedMulticastPacketsAccumulated&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedBroadcastPacketsAccumulated&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedDiscardedPacketsAccumulated&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedErrorPacketsAccumulated&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuIdle&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageInterrupt&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageNice&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSoftIrq&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSteal&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSystem&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuWait&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].percentUsage&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.meanRequestLatency&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryBuffered&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryCached&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryConfigured&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryFree&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryUsed&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value&quot;&#xd;
- ]&#xd;
- }&#xd;
- ]&#xd;
- },&#xd;
- &quot;severity&quot;: {&#xd;
- &quot;type&quot;: &quot;string&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;Threshold Event Severity&quot;,&#xd;
- &quot;constraints&quot;: [&#xd;
- {&#xd;
- &quot;valid_values&quot;: [&#xd;
- &quot;CRITICAL&quot;,&#xd;
- &quot;MAJOR&quot;,&#xd;
- &quot;MINOR&quot;,&#xd;
- &quot;WARNING&quot;,&#xd;
- &quot;NORMAL&quot;&#xd;
- ]&#xd;
- }&#xd;
- ]&#xd;
- },&#xd;
- &quot;thresholdValue&quot;: {&#xd;
- &quot;type&quot;: &quot;integer&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;Threshold value for the field Path inside CEF message&quot;&#xd;
- },&#xd;
- &quot;version&quot;: {&#xd;
- &quot;type&quot;: &quot;string&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;Version number associated with the threshold&quot;&#xd;
- }&#xd;
- }&#xd;
+ }&#xd;
+ }&#xd;
+ },&#xd;
+ &quot;data_types&quot;: {&#xd;
+ &quot;policy.data.affinityProperties_properties&quot;: {&#xd;
+ &quot;derived_from&quot;: &quot;tosca.nodes.Root&quot;,&#xd;
+ &quot;properties&quot;: {&#xd;
+ &quot;qualifier&quot;: {&#xd;
+ &quot;type&quot;: &quot;string&quot;,&#xd;
+ &quot;constraints&quot;: [&#xd;
+ {&#xd;
+ &quot;valid_values&quot;: [&#xd;
+ &quot;same&quot;,&#xd;
+ &quot;different&quot;&#xd;
+ ]&#xd;
+ }&#xd;
+ ]&#xd;
+ },&#xd;
+ &quot;category&quot;: {&#xd;
+ &quot;type&quot;: &quot;string&quot;,&#xd;
+ &quot;required&quot;: true&#xd;
}&#xd;
- }&#xd;
- ]&#xd;
+ }&#xd;
+ }&#xd;
+ }&#xd;
}</stringProp>
<stringProp name="Argument.metadata">=</stringProp>
</elementProp>
@@ -1893,243 +911,40 @@ if (prev.getResponseCode() == &apos;200&apos;) {
res = jsonSlurper.parseText(prev.getResponseDataAsString());
assert res instanceof Map;
- assert res.policy_types instanceof List;
- assert res.policy_types.size == 2;
- assert res.policy_types[0] instanceof Map;
- assert res.policy_types[1] instanceof Map;
+ assert res.policy_types instanceof Map;
+ assert res.policy_types.size() == 1;
+ assert res.policy_types.values()[0] instanceof Map;
+ // assert res.policy_types.values()[1] instanceof Map;
}</stringProp>
</JSR223Assertion>
<hashTree/>
</hashTree>
- <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create TCA Policy Type V7" enabled="true">
+ <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create Policy Type Guard" enabled="true">
<boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
<elementProp name="HTTPsampler.Arguments" elementType="Arguments">
<collectionProp name="Arguments.arguments">
<elementProp name="" elementType="HTTPArgument">
<boolProp name="HTTPArgument.always_encode">false</boolProp>
<stringProp name="Argument.value">{&#xd;
- &quot;tosca_definitions_version&quot;: &quot;tosca_simple_yaml_1_0_0&quot;,&#xd;
- &quot;policy_types&quot;: [&#xd;
- {&#xd;
- &quot;onap.policies.Monitoring&quot;: {&#xd;
- &quot;derived_from&quot;: &quot;tosca.policies.Root&quot;,&#xd;
- &quot;version&quot;: &quot;1.0.0&quot;,&#xd;
- &quot;description&quot;: &quot;a base policy type for all policies that governs monitoring provisioning&quot;&#xd;
- }&#xd;
- },&#xd;
- {&#xd;
- &quot;onap.policies.monitoring.cdap.tca.hi.lo.app&quot;: {&#xd;
- &quot;derived_from&quot;: &quot;onap.policies.Monitoring&quot;,&#xd;
- &quot;version&quot;: &quot;7.0.0&quot;,&#xd;
- &quot;properties&quot;: {&#xd;
- &quot;tca_policy&quot;: {&#xd;
- &quot;type&quot;: &quot;map&quot;,&#xd;
- &quot;description&quot;: &quot;TCA Policy JSON&quot;,&#xd;
- &quot;entry_schema&quot;: {&#xd;
- &quot;type&quot;: &quot;onap.datatypes.monitoring.tca_policy&quot;&#xd;
- }&#xd;
- }&#xd;
- }&#xd;
- }&#xd;
- }&#xd;
- ],&#xd;
- &quot;data_types&quot;: [&#xd;
- {&#xd;
- &quot;onap.datatypes.monitoring.metricsPerEventName&quot;: {&#xd;
- &quot;derived_from&quot;: &quot;tosca.datatypes.Root&quot;,&#xd;
- &quot;properties&quot;: {&#xd;
- &quot;controlLoopSchemaType&quot;: {&#xd;
- &quot;type&quot;: &quot;string&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;Specifies Control Loop Schema Type for the event Name e.g. VNF, VM&quot;,&#xd;
- &quot;constraints&quot;: [&#xd;
- {&#xd;
- &quot;valid_values&quot;: [&#xd;
- &quot;VM&quot;,&#xd;
- &quot;VNF&quot;&#xd;
- ]&#xd;
- }&#xd;
- ]&#xd;
- },&#xd;
- &quot;eventName&quot;: {&#xd;
- &quot;type&quot;: &quot;string&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;Event name to which thresholds need to be applied&quot;&#xd;
- },&#xd;
- &quot;policyName&quot;: {&#xd;
- &quot;type&quot;: &quot;string&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;TCA Policy Scope Name&quot;&#xd;
- },&#xd;
- &quot;policyScope&quot;: {&#xd;
- &quot;type&quot;: &quot;string&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;TCA Policy Scope&quot;&#xd;
- },&#xd;
- &quot;policyVersion&quot;: {&#xd;
- &quot;type&quot;: &quot;string&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;TCA Policy Scope Version&quot;&#xd;
- },&#xd;
- &quot;thresholds&quot;: {&#xd;
- &quot;type&quot;: &quot;list&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;Thresholds associated with eventName&quot;,&#xd;
- &quot;entry_schema&quot;: {&#xd;
- &quot;type&quot;: &quot;onap.datatypes.monitoring.thresholds&quot;&#xd;
- }&#xd;
- }&#xd;
- }&#xd;
+ &quot;tosca_definitions_version&quot;: &quot;tosca_simple_yaml_1_1_0&quot;,&#xd;
+ &quot;policy_types&quot;: {&#xd;
+ &quot;onap.policies.controlloop.guard.common.Blacklist&quot;: {&#xd;
+ &quot;derived_from&quot;: &quot;onap.policies.controlloop.guard.Common&quot;,&#xd;
+ &quot;type_version&quot;: &quot;1.0.0&quot;,&#xd;
+ &quot;version&quot;: &quot;6.0.${__threadNum}&quot;,&#xd;
+ &quot;description&quot;: &quot;Supports blacklist of entity id&apos;s from performing control loop actions on.&quot;,&#xd;
+ &quot;properties&quot;: {&#xd;
+ &quot;blacklist&quot;: {&#xd;
+ &quot;type&quot;: &quot;list&quot;,&#xd;
+ &quot;description&quot;: &quot;List of entity id&apos;s not allowed to have control loop operations on.&quot;,&#xd;
+ &quot;required&quot;: true,&#xd;
+ &quot;entry_schema&quot;: {&#xd;
+ &quot;type&quot;: &quot;string&quot;&#xd;
+ }&#xd;
}&#xd;
- },&#xd;
- {&#xd;
- &quot;onap.datatypes.monitoring.tca_policy&quot;: {&#xd;
- &quot;derived_from&quot;: &quot;tosca.datatypes.Root&quot;,&#xd;
- &quot;properties&quot;: {&#xd;
- &quot;domain&quot;: {&#xd;
- &quot;type&quot;: &quot;string&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;Domain name to which TCA needs to be applied&quot;,&#xd;
- &quot;default&quot;: &quot;measurementsForVfScaling&quot;,&#xd;
- &quot;constraints&quot;: [&#xd;
- {&#xd;
- &quot;equal&quot;: &quot;measurementsForVfScaling&quot;&#xd;
- }&#xd;
- ]&#xd;
- },&#xd;
- &quot;metricsPerEventName&quot;: {&#xd;
- &quot;type&quot;: &quot;list&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;Contains eventName and threshold details that need to be applied to given eventName&quot;,&#xd;
- &quot;entry_schema&quot;: {&#xd;
- &quot;type&quot;: &quot;onap.datatypes.monitoring.metricsPerEventName&quot;&#xd;
- }&#xd;
- }&#xd;
- }&#xd;
- }&#xd;
- },&#xd;
- {&#xd;
- &quot;onap.datatypes.monitoring.thresholds&quot;: {&#xd;
- &quot;derived_from&quot;: &quot;tosca.datatypes.Root&quot;,&#xd;
- &quot;properties&quot;: {&#xd;
- &quot;closedLoopControlName&quot;: {&#xd;
- &quot;type&quot;: &quot;string&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;Closed Loop Control Name associated with the threshold&quot;&#xd;
- },&#xd;
- &quot;closedLoopEventStatus&quot;: {&#xd;
- &quot;type&quot;: &quot;string&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;Closed Loop Event Status of the threshold&quot;,&#xd;
- &quot;constraints&quot;: [&#xd;
- {&#xd;
- &quot;valid_values&quot;: [&#xd;
- &quot;ONSET&quot;,&#xd;
- &quot;ABATED&quot;&#xd;
- ]&#xd;
- }&#xd;
- ]&#xd;
- },&#xd;
- &quot;direction&quot;: {&#xd;
- &quot;type&quot;: &quot;string&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;Direction of the threshold&quot;,&#xd;
- &quot;constraints&quot;: [&#xd;
- {&#xd;
- &quot;valid_values&quot;: [&#xd;
- &quot;LESS&quot;,&#xd;
- &quot;LESS_OR_EQUAL&quot;,&#xd;
- &quot;GREATER&quot;,&#xd;
- &quot;GREATER_OR_EQUAL&quot;,&#xd;
- &quot;EQUAL&quot;&#xd;
- ]&#xd;
- }&#xd;
- ]&#xd;
- },&#xd;
- &quot;fieldPath&quot;: {&#xd;
- &quot;type&quot;: &quot;string&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;Json field Path as per CEF message which needs to be analyzed for TCA&quot;,&#xd;
- &quot;constraints&quot;: [&#xd;
- {&#xd;
- &quot;valid_values&quot;: [&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsDelta&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedOctetsDelta&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedUnicastPacketsDelta&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedMulticastPacketsDelta&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsDelta&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedDiscardedPacketsDelta&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedErrorPacketsDelta&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsAccumulated&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedOctetsAccumulated&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedUnicastPacketsAccumulated&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedMulticastPacketsAccumulated&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsAccumulated&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedDiscardedPacketsAccumulated&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedErrorPacketsAccumulated&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedTotalPacketsDelta&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedOctetsDelta&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedUnicastPacketsDelta&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedMulticastPacketsDelta&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedBroadcastPacketsDelta&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedDiscardedPacketsDelta&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedErrorPacketsDelta&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedTotalPacketsAccumulated&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedOctetsAccumulated&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedUnicastPacketsAccumulated&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedMulticastPacketsAccumulated&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedBroadcastPacketsAccumulated&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedDiscardedPacketsAccumulated&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedErrorPacketsAccumulated&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuIdle&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageInterrupt&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageNice&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSoftIrq&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSteal&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSystem&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuWait&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].percentUsage&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.meanRequestLatency&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryBuffered&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryCached&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryConfigured&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryFree&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryUsed&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value&quot;&#xd;
- ]&#xd;
- }&#xd;
- ]&#xd;
- },&#xd;
- &quot;severity&quot;: {&#xd;
- &quot;type&quot;: &quot;string&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;Threshold Event Severity&quot;,&#xd;
- &quot;constraints&quot;: [&#xd;
- {&#xd;
- &quot;valid_values&quot;: [&#xd;
- &quot;CRITICAL&quot;,&#xd;
- &quot;MAJOR&quot;,&#xd;
- &quot;MINOR&quot;,&#xd;
- &quot;WARNING&quot;,&#xd;
- &quot;NORMAL&quot;&#xd;
- ]&#xd;
- }&#xd;
- ]&#xd;
- },&#xd;
- &quot;thresholdValue&quot;: {&#xd;
- &quot;type&quot;: &quot;integer&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;Threshold value for the field Path inside CEF message&quot;&#xd;
- },&#xd;
- &quot;version&quot;: {&#xd;
- &quot;type&quot;: &quot;string&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;Version number associated with the threshold&quot;&#xd;
- }&#xd;
- }&#xd;
- }&#xd;
- }&#xd;
- ]&#xd;
+ }&#xd;
+ }&#xd;
+ }&#xd;
}</stringProp>
<stringProp name="Argument.metadata">=</stringProp>
</elementProp>
@@ -2173,523 +988,283 @@ if (prev.getResponseCode() == &apos;200&apos;) {
res = jsonSlurper.parseText(prev.getResponseDataAsString());
assert res instanceof Map;
- assert res.policy_types instanceof List;
- assert res.policy_types.size == 2;
- assert res.policy_types[0] instanceof Map;
- assert res.policy_types[1] instanceof Map;
+ assert res.policy_types instanceof Map;
+ assert res.policy_types.size() == 1;
+ assert res.policy_types.values()[0] instanceof Map;
}</stringProp>
</JSR223Assertion>
<hashTree/>
</hashTree>
- <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create TCA Policy Type V8" enabled="true">
+ <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create Policy Type Native APEX" enabled="true">
<boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
<elementProp name="HTTPsampler.Arguments" elementType="Arguments">
<collectionProp name="Arguments.arguments">
<elementProp name="" elementType="HTTPArgument">
<boolProp name="HTTPArgument.always_encode">false</boolProp>
<stringProp name="Argument.value">{&#xd;
- &quot;tosca_definitions_version&quot;: &quot;tosca_simple_yaml_1_0_0&quot;,&#xd;
- &quot;policy_types&quot;: [&#xd;
- {&#xd;
- &quot;onap.policies.Monitoring&quot;: {&#xd;
- &quot;derived_from&quot;: &quot;tosca.policies.Root&quot;,&#xd;
- &quot;version&quot;: &quot;1.0.0&quot;,&#xd;
- &quot;description&quot;: &quot;a base policy type for all policies that governs monitoring provisioning&quot;&#xd;
- }&#xd;
- },&#xd;
- {&#xd;
- &quot;onap.policies.monitoring.cdap.tca.hi.lo.app&quot;: {&#xd;
- &quot;derived_from&quot;: &quot;onap.policies.Monitoring&quot;,&#xd;
- &quot;version&quot;: &quot;8.0.0&quot;,&#xd;
- &quot;properties&quot;: {&#xd;
- &quot;tca_policy&quot;: {&#xd;
- &quot;type&quot;: &quot;map&quot;,&#xd;
- &quot;description&quot;: &quot;TCA Policy JSON&quot;,&#xd;
- &quot;entry_schema&quot;: {&#xd;
- &quot;type&quot;: &quot;onap.datatypes.monitoring.tca_policy&quot;&#xd;
- }&#xd;
- }&#xd;
- }&#xd;
+ &quot;tosca_definitions_version&quot;: &quot;tosca_simple_yaml_1_1_0&quot;,&#xd;
+ &quot;policy_types&quot;: {&#xd;
+ &quot;onap.policies.Native&quot;: {&#xd;
+ &quot;derived_from&quot;: &quot;tosca.policies.Root&quot;,&#xd;
+ &quot;description&quot;: &quot;a base policy type for all native PDP policies&quot;,&#xd;
+ &quot;version&quot;: &quot;1.0.0&quot;&#xd;
+ },&#xd;
+ &quot;onap.policies.native.Apex&quot;: {&#xd;
+ &quot;derived_from&quot;: &quot;onap.policies.Native&quot;,&#xd;
+ &quot;description&quot;: &quot;a policy type for native apex policies&quot;,&#xd;
+ &quot;version&quot;: &quot;6.0.${__threadNum}&quot;,&#xd;
+ &quot;properties&quot;: {&#xd;
+ &quot;engine_service&quot;: {&#xd;
+ &quot;type&quot;: &quot;onap.datatypes.native.apex.EngineService&quot;,&#xd;
+ &quot;description&quot;: &quot;APEX Engine Service Parameters&quot;&#xd;
+ },&#xd;
+ &quot;inputs&quot;: {&#xd;
+ &quot;type&quot;: &quot;map&quot;,&#xd;
+ &quot;description&quot;: &quot;Inputs for handling events coming into the APEX engine&quot;,&#xd;
+ &quot;entry_schema&quot;: {&#xd;
+ &quot;type&quot;: &quot;onap.datatypes.native.apex.EventHandler&quot;&#xd;
+ }&#xd;
+ },&#xd;
+ &quot;outputs&quot;: {&#xd;
+ &quot;type&quot;: &quot;map&quot;,&#xd;
+ &quot;description&quot;: &quot;Outputs for handling events going out of the APEX engine&quot;,&#xd;
+ &quot;entry_schema&quot;: {&#xd;
+ &quot;type&quot;: &quot;onap.datatypes.native.apex.EventHandler&quot;&#xd;
+ }&#xd;
+ },&#xd;
+ &quot;environment&quot;: {&#xd;
+ &quot;type&quot;: &quot;list&quot;,&#xd;
+ &quot;description&quot;: &quot;Envioronmental parameters for the APEX engine&quot;,&#xd;
+ &quot;entry_schema&quot;: {&#xd;
+ &quot;type&quot;: &quot;onap.datatypes.native.apex.Environment&quot;&#xd;
+ }&#xd;
}&#xd;
- }&#xd;
- ],&#xd;
- &quot;data_types&quot;: [&#xd;
- {&#xd;
- &quot;onap.datatypes.monitoring.metricsPerEventName&quot;: {&#xd;
- &quot;derived_from&quot;: &quot;tosca.datatypes.Root&quot;,&#xd;
- &quot;properties&quot;: {&#xd;
- &quot;controlLoopSchemaType&quot;: {&#xd;
- &quot;type&quot;: &quot;string&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;Specifies Control Loop Schema Type for the event Name e.g. VNF, VM&quot;,&#xd;
- &quot;constraints&quot;: [&#xd;
- {&#xd;
- &quot;valid_values&quot;: [&#xd;
- &quot;VM&quot;,&#xd;
- &quot;VNF&quot;&#xd;
- ]&#xd;
- }&#xd;
- ]&#xd;
- },&#xd;
- &quot;eventName&quot;: {&#xd;
- &quot;type&quot;: &quot;string&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;Event name to which thresholds need to be applied&quot;&#xd;
- },&#xd;
- &quot;policyName&quot;: {&#xd;
- &quot;type&quot;: &quot;string&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;TCA Policy Scope Name&quot;&#xd;
- },&#xd;
- &quot;policyScope&quot;: {&#xd;
- &quot;type&quot;: &quot;string&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;TCA Policy Scope&quot;&#xd;
- },&#xd;
- &quot;policyVersion&quot;: {&#xd;
- &quot;type&quot;: &quot;string&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;TCA Policy Scope Version&quot;&#xd;
- },&#xd;
- &quot;thresholds&quot;: {&#xd;
- &quot;type&quot;: &quot;list&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;Thresholds associated with eventName&quot;,&#xd;
- &quot;entry_schema&quot;: {&#xd;
- &quot;type&quot;: &quot;onap.datatypes.monitoring.thresholds&quot;&#xd;
- }&#xd;
- }&#xd;
- }&#xd;
+ }&#xd;
+ }&#xd;
+ },&#xd;
+ &quot;data_types&quot;: {&#xd;
+ &quot;onap.datatypes.native.apex.EngineService&quot;: {&#xd;
+ &quot;derived_from&quot;: &quot;tosca.datatypes.Root&quot;,&#xd;
+ &quot;properties&quot;: {&#xd;
+ &quot;name&quot;: {&#xd;
+ &quot;type&quot;: &quot;string&quot;,&#xd;
+ &quot;description&quot;: &quot;Specifies the engine name&quot;,&#xd;
+ &quot;required&quot;: false,&#xd;
+ &quot;default&quot;: &quot;ApexEngineService&quot;&#xd;
+ },&#xd;
+ &quot;version&quot;: {&#xd;
+ &quot;type&quot;: &quot;string&quot;,&#xd;
+ &quot;description&quot;: &quot;Specifies the engine version in double dotted format&quot;,&#xd;
+ &quot;required&quot;: false,&#xd;
+ &quot;default&quot;: &quot;1.0.0&quot;&#xd;
+ },&#xd;
+ &quot;id&quot;: {&#xd;
+ &quot;type&quot;: &quot;integer&quot;,&#xd;
+ &quot;description&quot;: &quot;Specifies the engine id&quot;,&#xd;
+ &quot;required&quot;: true&#xd;
+ },&#xd;
+ &quot;instance_count&quot;: {&#xd;
+ &quot;type&quot;: &quot;integer&quot;,&#xd;
+ &quot;description&quot;: &quot;Specifies the number of engine threads that should be run&quot;,&#xd;
+ &quot;required&quot;: true&#xd;
+ },&#xd;
+ &quot;deployment_port&quot;: {&#xd;
+ &quot;type&quot;: &quot;integer&quot;,&#xd;
+ &quot;description&quot;: &quot;Specifies the port to connect to for engine administration&quot;,&#xd;
+ &quot;required&quot;: false,&#xd;
+ &quot;default&quot;: 1&#xd;
+ },&#xd;
+ &quot;policy_model_file_name&quot;: {&#xd;
+ &quot;type&quot;: &quot;string&quot;,&#xd;
+ &quot;description&quot;: &quot;The name of the file from which to read the APEX policy model&quot;,&#xd;
+ &quot;required&quot;: false&#xd;
+ },&#xd;
+ &quot;policy_type_impl&quot;: {&#xd;
+ &quot;type&quot;: &quot;string&quot;,&#xd;
+ &quot;description&quot;: &quot;The policy type implementation from which to read the APEX policy model&quot;,&#xd;
+ &quot;required&quot;: false&#xd;
+ },&#xd;
+ &quot;periodic_event_period&quot;: {&#xd;
+ &quot;type&quot;: &quot;string&quot;,&#xd;
+ &quot;description&quot;: &quot;The time interval in milliseconds for the periodic scanning event, 0 means don&apos;t scan&quot;,&#xd;
+ &quot;required&quot;: false&#xd;
+ },&#xd;
+ &quot;engine&quot;: {&#xd;
+ &quot;type&quot;: &quot;onap.datatypes.native.apex.engineservice.Engine&quot;,&#xd;
+ &quot;description&quot;: &quot;The parameters for all engines in the APEX engine service&quot;,&#xd;
+ &quot;required&quot;: true&#xd;
}&#xd;
- },&#xd;
- {&#xd;
- &quot;onap.datatypes.monitoring.tca_policy&quot;: {&#xd;
- &quot;derived_from&quot;: &quot;tosca.datatypes.Root&quot;,&#xd;
- &quot;properties&quot;: {&#xd;
- &quot;domain&quot;: {&#xd;
- &quot;type&quot;: &quot;string&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;Domain name to which TCA needs to be applied&quot;,&#xd;
- &quot;default&quot;: &quot;measurementsForVfScaling&quot;,&#xd;
- &quot;constraints&quot;: [&#xd;
- {&#xd;
- &quot;equal&quot;: &quot;measurementsForVfScaling&quot;&#xd;
- }&#xd;
- ]&#xd;
- },&#xd;
- &quot;metricsPerEventName&quot;: {&#xd;
- &quot;type&quot;: &quot;list&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;Contains eventName and threshold details that need to be applied to given eventName&quot;,&#xd;
- &quot;entry_schema&quot;: {&#xd;
- &quot;type&quot;: &quot;onap.datatypes.monitoring.metricsPerEventName&quot;&#xd;
- }&#xd;
- }&#xd;
- }&#xd;
+ }&#xd;
+ },&#xd;
+ &quot;onap.datatypes.native.apex.EventHandler&quot;: {&#xd;
+ &quot;derived_from&quot;: &quot;tosca.datatypes.Root&quot;,&#xd;
+ &quot;properties&quot;: {&#xd;
+ &quot;name&quot;: {&#xd;
+ &quot;type&quot;: &quot;string&quot;,&#xd;
+ &quot;description&quot;: &quot;Specifies the event handler name, if not specified this is set to the key name&quot;,&#xd;
+ &quot;required&quot;: false&#xd;
+ },&#xd;
+ &quot;carrier_technology&quot;: {&#xd;
+ &quot;type&quot;: &quot;onap.datatypes.native.apex.CarrierTechnology&quot;,&#xd;
+ &quot;description&quot;: &quot;Specifies the carrier technology of the event handler (such as REST/Web Socket/Kafka)&quot;,&#xd;
+ &quot;required&quot;: true&#xd;
+ },&#xd;
+ &quot;event_protocol&quot;: {&#xd;
+ &quot;type&quot;: &quot;onap.datatypes.native.apex.EventProtocol&quot;,&#xd;
+ &quot;description&quot;: &quot;Specifies the event protocol of events for the event handler (such as Yaml/JSON/XML/POJO)&quot;,&#xd;
+ &quot;required&quot;: true&#xd;
+ },&#xd;
+ &quot;event_name&quot;: {&#xd;
+ &quot;type&quot;: &quot;string&quot;,&#xd;
+ &quot;description&quot;: &quot;Specifies the event name for events on this event handler, if not specified, the event name is read from or written to the event being received or sent&quot;,&#xd;
+ &quot;required&quot;: false&#xd;
+ },&#xd;
+ &quot;event_name_filter&quot;: {&#xd;
+ &quot;type&quot;: &quot;string&quot;,&#xd;
+ &quot;description&quot;: &quot;Specifies a filter as a regular expression, events that do not match the filter are dropped, the default is to let all events through&quot;,&#xd;
+ &quot;required&quot;: false&#xd;
+ },&#xd;
+ &quot;synchronous_mode&quot;: {&#xd;
+ &quot;type&quot;: &quot;boolean&quot;,&#xd;
+ &quot;description&quot;: &quot;Specifies the event handler is syncronous (receive event and send response)&quot;,&#xd;
+ &quot;required&quot;: false,&#xd;
+ &quot;default&quot;: false&#xd;
+ },&#xd;
+ &quot;synchronous_peer&quot;: {&#xd;
+ &quot;type&quot;: &quot;string&quot;,&#xd;
+ &quot;description&quot;: &quot;The peer event handler (output for input or input for output) of this event handler in synchronous mode, this parameter is mandatory if the event handler is in synchronous mode&quot;,&#xd;
+ &quot;required&quot;: false&#xd;
+ },&#xd;
+ &quot;synchronous_timeout&quot;: {&#xd;
+ &quot;type&quot;: &quot;integer&quot;,&#xd;
+ &quot;description&quot;: &quot;The timeout in milliseconds for responses to be issued by APEX torequests, this parameter is mandatory if the event handler is in synchronous mode&quot;,&#xd;
+ &quot;required&quot;: false&#xd;
+ },&#xd;
+ &quot;requestor_mode&quot;: {&#xd;
+ &quot;type&quot;: &quot;boolean&quot;,&#xd;
+ &quot;description&quot;: &quot;Specifies the event handler is in requestor mode (send event and wait for response mode)&quot;,&#xd;
+ &quot;required&quot;: false,&#xd;
+ &quot;default&quot;: false&#xd;
+ },&#xd;
+ &quot;requestor_peer&quot;: {&#xd;
+ &quot;type&quot;: &quot;string&quot;,&#xd;
+ &quot;description&quot;: &quot;The peer event handler (output for input or input for output) of this event handler in requestor mode, this parameter is mandatory if the event handler is in requestor mode&quot;,&#xd;
+ &quot;required&quot;: false&#xd;
+ },&#xd;
+ &quot;requestor_timeout&quot;: {&#xd;
+ &quot;type&quot;: &quot;integer&quot;,&#xd;
+ &quot;description&quot;: &quot;The timeout in milliseconds for wait for responses to requests, this parameter is mandatory if the event handler is in requestor mode&quot;,&#xd;
+ &quot;required&quot;: false&#xd;
}&#xd;
- },&#xd;
- {&#xd;
- &quot;onap.datatypes.monitoring.thresholds&quot;: {&#xd;
- &quot;derived_from&quot;: &quot;tosca.datatypes.Root&quot;,&#xd;
- &quot;properties&quot;: {&#xd;
- &quot;closedLoopControlName&quot;: {&#xd;
- &quot;type&quot;: &quot;string&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;Closed Loop Control Name associated with the threshold&quot;&#xd;
- },&#xd;
- &quot;closedLoopEventStatus&quot;: {&#xd;
- &quot;type&quot;: &quot;string&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;Closed Loop Event Status of the threshold&quot;,&#xd;
- &quot;constraints&quot;: [&#xd;
- {&#xd;
- &quot;valid_values&quot;: [&#xd;
- &quot;ONSET&quot;,&#xd;
- &quot;ABATED&quot;&#xd;
- ]&#xd;
- }&#xd;
- ]&#xd;
- },&#xd;
- &quot;direction&quot;: {&#xd;
- &quot;type&quot;: &quot;string&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;Direction of the threshold&quot;,&#xd;
- &quot;constraints&quot;: [&#xd;
- {&#xd;
- &quot;valid_values&quot;: [&#xd;
- &quot;LESS&quot;,&#xd;
- &quot;LESS_OR_EQUAL&quot;,&#xd;
- &quot;GREATER&quot;,&#xd;
- &quot;GREATER_OR_EQUAL&quot;,&#xd;
- &quot;EQUAL&quot;&#xd;
- ]&#xd;
- }&#xd;
- ]&#xd;
- },&#xd;
- &quot;fieldPath&quot;: {&#xd;
- &quot;type&quot;: &quot;string&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;Json field Path as per CEF message which needs to be analyzed for TCA&quot;,&#xd;
- &quot;constraints&quot;: [&#xd;
- {&#xd;
- &quot;valid_values&quot;: [&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsDelta&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedOctetsDelta&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedUnicastPacketsDelta&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedMulticastPacketsDelta&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsDelta&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedDiscardedPacketsDelta&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedErrorPacketsDelta&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsAccumulated&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedOctetsAccumulated&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedUnicastPacketsAccumulated&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedMulticastPacketsAccumulated&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsAccumulated&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedDiscardedPacketsAccumulated&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedErrorPacketsAccumulated&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedTotalPacketsDelta&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedOctetsDelta&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedUnicastPacketsDelta&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedMulticastPacketsDelta&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedBroadcastPacketsDelta&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedDiscardedPacketsDelta&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedErrorPacketsDelta&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedTotalPacketsAccumulated&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedOctetsAccumulated&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedUnicastPacketsAccumulated&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedMulticastPacketsAccumulated&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedBroadcastPacketsAccumulated&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedDiscardedPacketsAccumulated&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedErrorPacketsAccumulated&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuIdle&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageInterrupt&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageNice&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSoftIrq&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSteal&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSystem&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuWait&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].percentUsage&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.meanRequestLatency&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryBuffered&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryCached&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryConfigured&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryFree&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryUsed&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value&quot;&#xd;
- ]&#xd;
- }&#xd;
- ]&#xd;
- },&#xd;
- &quot;severity&quot;: {&#xd;
- &quot;type&quot;: &quot;string&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;Threshold Event Severity&quot;,&#xd;
- &quot;constraints&quot;: [&#xd;
- {&#xd;
- &quot;valid_values&quot;: [&#xd;
- &quot;CRITICAL&quot;,&#xd;
- &quot;MAJOR&quot;,&#xd;
- &quot;MINOR&quot;,&#xd;
- &quot;WARNING&quot;,&#xd;
- &quot;NORMAL&quot;&#xd;
- ]&#xd;
- }&#xd;
- ]&#xd;
- },&#xd;
- &quot;thresholdValue&quot;: {&#xd;
- &quot;type&quot;: &quot;integer&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;Threshold value for the field Path inside CEF message&quot;&#xd;
- },&#xd;
- &quot;version&quot;: {&#xd;
- &quot;type&quot;: &quot;string&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;Version number associated with the threshold&quot;&#xd;
- }&#xd;
- }&#xd;
+ }&#xd;
+ },&#xd;
+ &quot;onap.datatypes.native.apex.CarrierTechnology&quot;: {&#xd;
+ &quot;derived_from&quot;: &quot;tosca.datatypes.Root&quot;,&#xd;
+ &quot;properties&quot;: {&#xd;
+ &quot;label&quot;: {&#xd;
+ &quot;type&quot;: &quot;string&quot;,&#xd;
+ &quot;description&quot;: &quot;The label (name) of the carrier technology (such as REST, Kafka, WebSocket)&quot;,&#xd;
+ &quot;required&quot;: true&#xd;
+ },&#xd;
+ &quot;plugin_parameter_class_name&quot;: {&#xd;
+ &quot;type&quot;: &quot;string&quot;,&#xd;
+ &quot;description&quot;: &quot;The class name of the class that overrides default handling of event input or output for this carrier technology, defaults to the supplied input or output class&quot;,&#xd;
+ &quot;required&quot;: false&#xd;
}&#xd;
- }&#xd;
- ]&#xd;
-}</stringProp>
- <stringProp name="Argument.metadata">=</stringProp>
- </elementProp>
- </collectionProp>
- </elementProp>
- <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
- <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
- <stringProp name="HTTPSampler.protocol">https</stringProp>
- <stringProp name="HTTPSampler.contentEncoding"></stringProp>
- <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes</stringProp>
- <stringProp name="HTTPSampler.method">POST</stringProp>
- <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
- <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
- <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
- <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
- <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
- <stringProp name="HTTPSampler.connect_timeout"></stringProp>
- <stringProp name="HTTPSampler.response_timeout"></stringProp>
- </HTTPSamplerProxy>
- <hashTree>
- <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
- <collectionProp name="Asserion.test_strings">
- <stringProp name="49586">200</stringProp>
- </collectionProp>
- <stringProp name="Assertion.custom_message"></stringProp>
- <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
- <boolProp name="Assertion.assume_success">false</boolProp>
- <intProp name="Assertion.test_type">1</intProp>
- </ResponseAssertion>
- <hashTree/>
- <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
- <stringProp name="scriptLanguage">groovy</stringProp>
- <stringProp name="parameters"></stringProp>
- <stringProp name="filename"></stringProp>
- <stringProp name="cacheKey">true</stringProp>
- <stringProp name="script">import groovy.json.JsonSlurper;
-
-def res = [];
-if (prev.getResponseCode() == &apos;200&apos;) {
- def jsonSlurper = new JsonSlurper();
- res = jsonSlurper.parseText(prev.getResponseDataAsString());
-
- assert res instanceof Map;
- assert res.policy_types instanceof List;
- assert res.policy_types.size == 2;
- assert res.policy_types[0] instanceof Map;
- assert res.policy_types[1] instanceof Map;
-}</stringProp>
- </JSR223Assertion>
- <hashTree/>
- </hashTree>
- <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create TCA Policy Type V9" enabled="true">
- <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
- <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
- <collectionProp name="Arguments.arguments">
- <elementProp name="" elementType="HTTPArgument">
- <boolProp name="HTTPArgument.always_encode">false</boolProp>
- <stringProp name="Argument.value">{&#xd;
- &quot;tosca_definitions_version&quot;: &quot;tosca_simple_yaml_1_0_0&quot;,&#xd;
- &quot;policy_types&quot;: [&#xd;
- {&#xd;
- &quot;onap.policies.Monitoring&quot;: {&#xd;
- &quot;derived_from&quot;: &quot;tosca.policies.Root&quot;,&#xd;
- &quot;version&quot;: &quot;1.0.0&quot;,&#xd;
- &quot;description&quot;: &quot;a base policy type for all policies that governs monitoring provisioning&quot;&#xd;
+ }&#xd;
+ },&#xd;
+ &quot;onap.datatypes.native.apex.EventProtocol&quot;: {&#xd;
+ &quot;derived_from&quot;: &quot;tosca.datatypes.Root&quot;,&#xd;
+ &quot;properties&quot;: {&#xd;
+ &quot;label&quot;: {&#xd;
+ &quot;type&quot;: &quot;string&quot;,&#xd;
+ &quot;description&quot;: &quot;The label (name) of the event protocol (such as Yaml, JSON, XML, or POJO)&quot;,&#xd;
+ &quot;required&quot;: true&#xd;
+ },&#xd;
+ &quot;event_protocol_plugin_class&quot;: {&#xd;
+ &quot;type&quot;: &quot;string&quot;,&#xd;
+ &quot;description&quot;: &quot;The class name of the class that overrides default handling of the event protocol for this carrier technology, defaults to the supplied event protocol class&quot;,&#xd;
+ &quot;required&quot;: false&#xd;
}&#xd;
- },&#xd;
- {&#xd;
- &quot;onap.policies.monitoring.cdap.tca.hi.lo.app&quot;: {&#xd;
- &quot;derived_from&quot;: &quot;onap.policies.Monitoring&quot;,&#xd;
- &quot;version&quot;: &quot;9.0.0&quot;,&#xd;
- &quot;properties&quot;: {&#xd;
- &quot;tca_policy&quot;: {&#xd;
- &quot;type&quot;: &quot;map&quot;,&#xd;
- &quot;description&quot;: &quot;TCA Policy JSON&quot;,&#xd;
- &quot;entry_schema&quot;: {&#xd;
- &quot;type&quot;: &quot;onap.datatypes.monitoring.tca_policy&quot;&#xd;
- }&#xd;
- }&#xd;
- }&#xd;
+ }&#xd;
+ },&#xd;
+ &quot;onap.datatypes.native.apex.Environment&quot;: {&#xd;
+ &quot;derived_from&quot;: &quot;tosca.datatypes.Root&quot;,&#xd;
+ &quot;properties&quot;: {&#xd;
+ &quot;name&quot;: {&#xd;
+ &quot;type&quot;: &quot;string&quot;,&#xd;
+ &quot;description&quot;: &quot;The name of the environment variable&quot;,&#xd;
+ &quot;required&quot;: true&#xd;
+ },&#xd;
+ &quot;value&quot;: {&#xd;
+ &quot;type&quot;: &quot;string&quot;,&#xd;
+ &quot;description&quot;: &quot;The value of the environment variable&quot;,&#xd;
+ &quot;required&quot;: true&#xd;
}&#xd;
- }&#xd;
- ],&#xd;
- &quot;data_types&quot;: [&#xd;
- {&#xd;
- &quot;onap.datatypes.monitoring.metricsPerEventName&quot;: {&#xd;
- &quot;derived_from&quot;: &quot;tosca.datatypes.Root&quot;,&#xd;
- &quot;properties&quot;: {&#xd;
- &quot;controlLoopSchemaType&quot;: {&#xd;
- &quot;type&quot;: &quot;string&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;Specifies Control Loop Schema Type for the event Name e.g. VNF, VM&quot;,&#xd;
- &quot;constraints&quot;: [&#xd;
- {&#xd;
- &quot;valid_values&quot;: [&#xd;
- &quot;VM&quot;,&#xd;
- &quot;VNF&quot;&#xd;
- ]&#xd;
- }&#xd;
- ]&#xd;
- },&#xd;
- &quot;eventName&quot;: {&#xd;
- &quot;type&quot;: &quot;string&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;Event name to which thresholds need to be applied&quot;&#xd;
- },&#xd;
- &quot;policyName&quot;: {&#xd;
- &quot;type&quot;: &quot;string&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;TCA Policy Scope Name&quot;&#xd;
- },&#xd;
- &quot;policyScope&quot;: {&#xd;
- &quot;type&quot;: &quot;string&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;TCA Policy Scope&quot;&#xd;
- },&#xd;
- &quot;policyVersion&quot;: {&#xd;
- &quot;type&quot;: &quot;string&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;TCA Policy Scope Version&quot;&#xd;
- },&#xd;
- &quot;thresholds&quot;: {&#xd;
- &quot;type&quot;: &quot;list&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;Thresholds associated with eventName&quot;,&#xd;
- &quot;entry_schema&quot;: {&#xd;
- &quot;type&quot;: &quot;onap.datatypes.monitoring.thresholds&quot;&#xd;
- }&#xd;
- }&#xd;
- }&#xd;
+ }&#xd;
+ },&#xd;
+ &quot;onap.datatypes.native.apex.engineservice.Engine&quot;: {&#xd;
+ &quot;derived_from&quot;: &quot;tosca.datatypes.Root&quot;,&#xd;
+ &quot;properties&quot;: {&#xd;
+ &quot;context&quot;: {&#xd;
+ &quot;type&quot;: &quot;onap.datatypes.native.apex.engineservice.engine.Context&quot;,&#xd;
+ &quot;description&quot;: &quot;The properties for handling context in APEX engines, defaults to using Java maps for context&quot;,&#xd;
+ &quot;required&quot;: false&#xd;
+ },&#xd;
+ &quot;executors&quot;: {&#xd;
+ &quot;type&quot;: &quot;map&quot;,&#xd;
+ &quot;description&quot;: &quot;The plugins for policy executors used in engines such as javascript, MVEL, Jython&quot;,&#xd;
+ &quot;required&quot;: true,&#xd;
+ &quot;entry_schema&quot;: {&#xd;
+ &quot;description&quot;: &quot;The plugin class path for this policy executor&quot;,&#xd;
+ &quot;type&quot;: &quot;string&quot;&#xd;
+ }&#xd;
}&#xd;
- },&#xd;
- {&#xd;
- &quot;onap.datatypes.monitoring.tca_policy&quot;: {&#xd;
- &quot;derived_from&quot;: &quot;tosca.datatypes.Root&quot;,&#xd;
- &quot;properties&quot;: {&#xd;
- &quot;domain&quot;: {&#xd;
- &quot;type&quot;: &quot;string&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;Domain name to which TCA needs to be applied&quot;,&#xd;
- &quot;default&quot;: &quot;measurementsForVfScaling&quot;,&#xd;
- &quot;constraints&quot;: [&#xd;
- {&#xd;
- &quot;equal&quot;: &quot;measurementsForVfScaling&quot;&#xd;
- }&#xd;
- ]&#xd;
- },&#xd;
- &quot;metricsPerEventName&quot;: {&#xd;
- &quot;type&quot;: &quot;list&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;Contains eventName and threshold details that need to be applied to given eventName&quot;,&#xd;
- &quot;entry_schema&quot;: {&#xd;
- &quot;type&quot;: &quot;onap.datatypes.monitoring.metricsPerEventName&quot;&#xd;
- }&#xd;
- }&#xd;
- }&#xd;
+ }&#xd;
+ },&#xd;
+ &quot;onap.datatypes.native.apex.engineservice.engine.Context&quot;: {&#xd;
+ &quot;derived_from&quot;: &quot;tosca.datatypes.Root&quot;,&#xd;
+ &quot;properties&quot;: {&#xd;
+ &quot;distributor&quot;: {&#xd;
+ &quot;type&quot;: &quot;onap.datatypes.native.apex.Plugin&quot;,&#xd;
+ &quot;description&quot;: &quot;The plugin to be used for distributing context between APEX PDPs at runtime&quot;,&#xd;
+ &quot;required&quot;: false&#xd;
+ },&#xd;
+ &quot;schemas&quot;: {&#xd;
+ &quot;type&quot;: &quot;map&quot;,&#xd;
+ &quot;description&quot;: &quot;The plugins for context schemas available in APEX PDPs such as Java and Avro&quot;,&#xd;
+ &quot;required&quot;: false,&#xd;
+ &quot;entry_schema&quot;: {&#xd;
+ &quot;type&quot;: &quot;onap.datatypes.native.apex.Plugin&quot;&#xd;
+ }&#xd;
+ },&#xd;
+ &quot;locking&quot;: {&#xd;
+ &quot;type&quot;: &quot;onap.datatypes.native.apex.Plugin&quot;,&#xd;
+ &quot;description&quot;: &quot;The plugin to be used for locking context in and between APEX PDPs at runtime&quot;,&#xd;
+ &quot;required&quot;: false&#xd;
+ },&#xd;
+ &quot;persistence&quot;: {&#xd;
+ &quot;type&quot;: &quot;onap.datatypes.native.apex.Plugin&quot;,&#xd;
+ &quot;description&quot;: &quot;The plugin to be used for persisting context for APEX PDPs at runtime&quot;,&#xd;
+ &quot;required&quot;: false&#xd;
}&#xd;
- },&#xd;
- {&#xd;
- &quot;onap.datatypes.monitoring.thresholds&quot;: {&#xd;
- &quot;derived_from&quot;: &quot;tosca.datatypes.Root&quot;,&#xd;
- &quot;properties&quot;: {&#xd;
- &quot;closedLoopControlName&quot;: {&#xd;
- &quot;type&quot;: &quot;string&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;Closed Loop Control Name associated with the threshold&quot;&#xd;
- },&#xd;
- &quot;closedLoopEventStatus&quot;: {&#xd;
- &quot;type&quot;: &quot;string&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;Closed Loop Event Status of the threshold&quot;,&#xd;
- &quot;constraints&quot;: [&#xd;
- {&#xd;
- &quot;valid_values&quot;: [&#xd;
- &quot;ONSET&quot;,&#xd;
- &quot;ABATED&quot;&#xd;
- ]&#xd;
- }&#xd;
- ]&#xd;
- },&#xd;
- &quot;direction&quot;: {&#xd;
- &quot;type&quot;: &quot;string&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;Direction of the threshold&quot;,&#xd;
- &quot;constraints&quot;: [&#xd;
- {&#xd;
- &quot;valid_values&quot;: [&#xd;
- &quot;LESS&quot;,&#xd;
- &quot;LESS_OR_EQUAL&quot;,&#xd;
- &quot;GREATER&quot;,&#xd;
- &quot;GREATER_OR_EQUAL&quot;,&#xd;
- &quot;EQUAL&quot;&#xd;
- ]&#xd;
- }&#xd;
- ]&#xd;
- },&#xd;
- &quot;fieldPath&quot;: {&#xd;
- &quot;type&quot;: &quot;string&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;Json field Path as per CEF message which needs to be analyzed for TCA&quot;,&#xd;
- &quot;constraints&quot;: [&#xd;
- {&#xd;
- &quot;valid_values&quot;: [&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsDelta&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedOctetsDelta&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedUnicastPacketsDelta&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedMulticastPacketsDelta&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsDelta&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedDiscardedPacketsDelta&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedErrorPacketsDelta&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsAccumulated&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedOctetsAccumulated&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedUnicastPacketsAccumulated&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedMulticastPacketsAccumulated&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsAccumulated&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedDiscardedPacketsAccumulated&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedErrorPacketsAccumulated&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedTotalPacketsDelta&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedOctetsDelta&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedUnicastPacketsDelta&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedMulticastPacketsDelta&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedBroadcastPacketsDelta&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedDiscardedPacketsDelta&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedErrorPacketsDelta&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedTotalPacketsAccumulated&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedOctetsAccumulated&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedUnicastPacketsAccumulated&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedMulticastPacketsAccumulated&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedBroadcastPacketsAccumulated&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedDiscardedPacketsAccumulated&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedErrorPacketsAccumulated&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuIdle&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageInterrupt&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageNice&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSoftIrq&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSteal&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSystem&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuWait&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].percentUsage&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.meanRequestLatency&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryBuffered&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryCached&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryConfigured&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryFree&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryUsed&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value&quot;&#xd;
- ]&#xd;
- }&#xd;
- ]&#xd;
- },&#xd;
- &quot;severity&quot;: {&#xd;
- &quot;type&quot;: &quot;string&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;Threshold Event Severity&quot;,&#xd;
- &quot;constraints&quot;: [&#xd;
- {&#xd;
- &quot;valid_values&quot;: [&#xd;
- &quot;CRITICAL&quot;,&#xd;
- &quot;MAJOR&quot;,&#xd;
- &quot;MINOR&quot;,&#xd;
- &quot;WARNING&quot;,&#xd;
- &quot;NORMAL&quot;&#xd;
- ]&#xd;
- }&#xd;
- ]&#xd;
- },&#xd;
- &quot;thresholdValue&quot;: {&#xd;
- &quot;type&quot;: &quot;integer&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;Threshold value for the field Path inside CEF message&quot;&#xd;
- },&#xd;
- &quot;version&quot;: {&#xd;
- &quot;type&quot;: &quot;string&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;Version number associated with the threshold&quot;&#xd;
- }&#xd;
- }&#xd;
+ }&#xd;
+ },&#xd;
+ &quot;onap.datatypes.native.apex.Plugin&quot;: {&#xd;
+ &quot;derived_from&quot;: &quot;tosca.datatypes.Root&quot;,&#xd;
+ &quot;properties&quot;: {&#xd;
+ &quot;name&quot;: {&#xd;
+ &quot;type&quot;: &quot;string&quot;,&#xd;
+ &quot;description&quot;: &quot;The name of the executor such as Javascript, Jython or MVEL&quot;,&#xd;
+ &quot;required&quot;: true&#xd;
+ },&#xd;
+ &quot;plugin_class_name&quot;: {&#xd;
+ &quot;type&quot;: &quot;string&quot;,&#xd;
+ &quot;description&quot;: &quot;The class path of the plugin class for this executor&quot;&#xd;
}&#xd;
- }&#xd;
- ]&#xd;
+ }&#xd;
+ }&#xd;
+ }&#xd;
}</stringProp>
<stringProp name="Argument.metadata">=</stringProp>
</elementProp>
@@ -2733,243 +1308,172 @@ if (prev.getResponseCode() == &apos;200&apos;) {
res = jsonSlurper.parseText(prev.getResponseDataAsString());
assert res instanceof Map;
- assert res.policy_types instanceof List;
- assert res.policy_types.size == 2;
- assert res.policy_types[0] instanceof Map;
- assert res.policy_types[1] instanceof Map;
+ assert res.policy_types instanceof Map;
+ assert res.policy_types.size() == 2;
+ assert res.policy_types.values()[0] instanceof Map;
+ assert res.policy_types.values()[1] instanceof Map;
}</stringProp>
</JSR223Assertion>
<hashTree/>
</hashTree>
- <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create TCA Policy Type V10" enabled="true">
+ <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create Policy Type Native Drools" enabled="true">
<boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
<elementProp name="HTTPsampler.Arguments" elementType="Arguments">
<collectionProp name="Arguments.arguments">
<elementProp name="" elementType="HTTPArgument">
<boolProp name="HTTPArgument.always_encode">false</boolProp>
<stringProp name="Argument.value">{&#xd;
- &quot;tosca_definitions_version&quot;: &quot;tosca_simple_yaml_1_0_0&quot;,&#xd;
- &quot;policy_types&quot;: [&#xd;
- {&#xd;
- &quot;onap.policies.Monitoring&quot;: {&#xd;
- &quot;derived_from&quot;: &quot;tosca.policies.Root&quot;,&#xd;
- &quot;version&quot;: &quot;1.0.0&quot;,&#xd;
- &quot;description&quot;: &quot;a base policy type for all policies that governs monitoring provisioning&quot;&#xd;
+ &quot;tosca_definitions_version&quot;: &quot;tosca_simple_yaml_1_1_0&quot;,&#xd;
+ &quot;policy_types&quot;: {&#xd;
+ &quot;onap.policies.Native&quot;: {&#xd;
+ &quot;derived_from&quot;: &quot;tosca.policies.Root&quot;,&#xd;
+ &quot;description&quot;: &quot;a base policy type for all native PDP policies&quot;,&#xd;
+ &quot;version&quot;: &quot;1.0.0&quot;&#xd;
+ },&#xd;
+ &quot;onap.policies.native.Drools&quot;: {&#xd;
+ &quot;derived_from&quot;: &quot;onap.policies.Native&quot;,&#xd;
+ &quot;description&quot;: &quot;a base policy type for all native PDP policies&quot;,&#xd;
+ &quot;version&quot;: &quot;1.0.0&quot;&#xd;
+ },&#xd;
+ &quot;onap.policies.native.drools.Controller&quot;: {&#xd;
+ &quot;derived_from&quot;: &quot;onap.policies.native.Drools&quot;,&#xd;
+ &quot;description&quot;: &quot;a policy type for a drools controller configuration&quot;,&#xd;
+ &quot;version&quot;: &quot;6.0.${__threadNum}&quot;,&#xd;
+ &quot;properties&quot;: {&#xd;
+ &quot;controllerName&quot;: {&#xd;
+ &quot;type&quot;: &quot;string&quot;,&#xd;
+ &quot;required&quot;: true,&#xd;
+ &quot;description&quot;: &quot;the drools controller name&quot;&#xd;
+ },&#xd;
+ &quot;sourceTopics&quot;: {&#xd;
+ &quot;type&quot;: &quot;list&quot;,&#xd;
+ &quot;required&quot;: false,&#xd;
+ &quot;description&quot;: &quot;source topics and applicable events&quot;,&#xd;
+ &quot;entry_schema&quot;: {&#xd;
+ &quot;type&quot;: &quot;onap.datatypes.dmaap.topic&quot;&#xd;
+ }&#xd;
+ },&#xd;
+ &quot;sinkTopics&quot;: {&#xd;
+ &quot;type&quot;: &quot;list&quot;,&#xd;
+ &quot;required&quot;: false,&#xd;
+ &quot;description&quot;: &quot;sink topics and applicable events&quot;,&#xd;
+ &quot;entry_schema&quot;: {&#xd;
+ &quot;type&quot;: &quot;onap.datatypes.dmaap.topic&quot;&#xd;
+ }&#xd;
+ },&#xd;
+ &quot;customConfig&quot;: {&#xd;
+ &quot;type&quot;: &quot;map&quot;,&#xd;
+ &quot;required&quot;: false,&#xd;
+ &quot;description&quot;: &quot;any use case specific configurations relevant to the drools controller&quot;,&#xd;
+ &quot;entry_schema&quot;: {&#xd;
+ &quot;type&quot;: &quot;string&quot;&#xd;
+ }&#xd;
}&#xd;
- },&#xd;
- {&#xd;
- &quot;onap.policies.monitoring.cdap.tca.hi.lo.app&quot;: {&#xd;
- &quot;derived_from&quot;: &quot;onap.policies.Monitoring&quot;,&#xd;
- &quot;version&quot;: &quot;10.0.0&quot;,&#xd;
- &quot;properties&quot;: {&#xd;
- &quot;tca_policy&quot;: {&#xd;
- &quot;type&quot;: &quot;map&quot;,&#xd;
- &quot;description&quot;: &quot;TCA Policy JSON&quot;,&#xd;
- &quot;entry_schema&quot;: {&#xd;
- &quot;type&quot;: &quot;onap.datatypes.monitoring.tca_policy&quot;&#xd;
- }&#xd;
- }&#xd;
- }&#xd;
+ }&#xd;
+ },&#xd;
+ &quot;onap.policies.native.drools.Artifact&quot;: {&#xd;
+ &quot;derived_from&quot;: &quot;onap.policies.native.Drools&quot;,&#xd;
+ &quot;description&quot;: &quot;a policy type for native drools artifact policies&quot;,&#xd;
+ &quot;version&quot;: &quot;6.0.${__threadNum}&quot;,&#xd;
+ &quot;properties&quot;: {&#xd;
+ &quot;rulesArtifact&quot;: {&#xd;
+ &quot;type&quot;: &quot;onap.datatypes.native.rules_artifact&quot;,&#xd;
+ &quot;required&quot;: true,&#xd;
+ &quot;description&quot;: &quot;the GAV information of the maven artifact&quot;&#xd;
+ },&#xd;
+ &quot;controller&quot;: {&#xd;
+ &quot;type&quot;: &quot;onap.datatypes.drools.controller.relation&quot;,&#xd;
+ &quot;required&quot;: true,&#xd;
+ &quot;description&quot;: &quot;the drools controller to which the current native policy is assigned&quot;&#xd;
}&#xd;
- }&#xd;
- ],&#xd;
- &quot;data_types&quot;: [&#xd;
- {&#xd;
- &quot;onap.datatypes.monitoring.metricsPerEventName&quot;: {&#xd;
- &quot;derived_from&quot;: &quot;tosca.datatypes.Root&quot;,&#xd;
- &quot;properties&quot;: {&#xd;
- &quot;controlLoopSchemaType&quot;: {&#xd;
- &quot;type&quot;: &quot;string&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;Specifies Control Loop Schema Type for the event Name e.g. VNF, VM&quot;,&#xd;
- &quot;constraints&quot;: [&#xd;
- {&#xd;
- &quot;valid_values&quot;: [&#xd;
- &quot;VM&quot;,&#xd;
- &quot;VNF&quot;&#xd;
- ]&#xd;
- }&#xd;
- ]&#xd;
- },&#xd;
- &quot;eventName&quot;: {&#xd;
- &quot;type&quot;: &quot;string&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;Event name to which thresholds need to be applied&quot;&#xd;
- },&#xd;
- &quot;policyName&quot;: {&#xd;
- &quot;type&quot;: &quot;string&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;TCA Policy Scope Name&quot;&#xd;
- },&#xd;
- &quot;policyScope&quot;: {&#xd;
- &quot;type&quot;: &quot;string&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;TCA Policy Scope&quot;&#xd;
- },&#xd;
- &quot;policyVersion&quot;: {&#xd;
- &quot;type&quot;: &quot;string&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;TCA Policy Scope Version&quot;&#xd;
- },&#xd;
- &quot;thresholds&quot;: {&#xd;
- &quot;type&quot;: &quot;list&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;Thresholds associated with eventName&quot;,&#xd;
- &quot;entry_schema&quot;: {&#xd;
- &quot;type&quot;: &quot;onap.datatypes.monitoring.thresholds&quot;&#xd;
- }&#xd;
- }&#xd;
- }&#xd;
+ }&#xd;
+ }&#xd;
+ },&#xd;
+ &quot;data_types&quot;: {&#xd;
+ &quot;onap.datatypes.dmaap.topic&quot;: {&#xd;
+ &quot;derived_from&quot;: &quot;tosca.datatypes.Root&quot;,&#xd;
+ &quot;properties&quot;: {&#xd;
+ &quot;topicName&quot;: {&#xd;
+ &quot;type&quot;: &quot;string&quot;,&#xd;
+ &quot;required&quot;: true,&#xd;
+ &quot;description&quot;: &quot;the dmaap topic name&quot;&#xd;
+ },&#xd;
+ &quot;events&quot;: {&#xd;
+ &quot;type&quot;: &quot;list&quot;,&#xd;
+ &quot;required&quot;: true,&#xd;
+ &quot;description&quot;: &quot;events used by this topic&quot;,&#xd;
+ &quot;entry_schema&quot;: {&#xd;
+ &quot;type&quot;: &quot;onap.datatypes.dmaap.events&quot;&#xd;
+ }&#xd;
}&#xd;
- },&#xd;
- {&#xd;
- &quot;onap.datatypes.monitoring.tca_policy&quot;: {&#xd;
- &quot;derived_from&quot;: &quot;tosca.datatypes.Root&quot;,&#xd;
- &quot;properties&quot;: {&#xd;
- &quot;domain&quot;: {&#xd;
- &quot;type&quot;: &quot;string&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;Domain name to which TCA needs to be applied&quot;,&#xd;
- &quot;default&quot;: &quot;measurementsForVfScaling&quot;,&#xd;
- &quot;constraints&quot;: [&#xd;
- {&#xd;
- &quot;equal&quot;: &quot;measurementsForVfScaling&quot;&#xd;
- }&#xd;
- ]&#xd;
- },&#xd;
- &quot;metricsPerEventName&quot;: {&#xd;
- &quot;type&quot;: &quot;list&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;Contains eventName and threshold details that need to be applied to given eventName&quot;,&#xd;
- &quot;entry_schema&quot;: {&#xd;
- &quot;type&quot;: &quot;onap.datatypes.monitoring.metricsPerEventName&quot;&#xd;
- }&#xd;
- }&#xd;
- }&#xd;
+ }&#xd;
+ },&#xd;
+ &quot;onap.datatypes.dmaap.events&quot;: {&#xd;
+ &quot;derived_from&quot;: &quot;tosca.datatypes.Root&quot;,&#xd;
+ &quot;properties&quot;: {&#xd;
+ &quot;eventClass&quot;: {&#xd;
+ &quot;type&quot;: &quot;string&quot;,&#xd;
+ &quot;required&quot;: true,&#xd;
+ &quot;description&quot;: &quot;the event canonical class for serialization&quot;&#xd;
+ },&#xd;
+ &quot;eventFilter&quot;: {&#xd;
+ &quot;type&quot;: &quot;string&quot;,&#xd;
+ &quot;required&quot;: false,&#xd;
+ &quot;description&quot;: &quot;the JSONPath based condition to filter out the events to serialize&quot;&#xd;
+ },&#xd;
+ &quot;customSerialization&quot;: {&#xd;
+ &quot;type&quot;: &quot;onap.datatypes.dmaap.custom_serialization&quot;,&#xd;
+ &quot;required&quot;: false,&#xd;
+ &quot;description&quot;: &quot;overrides the default serialization/deserialization mechanisms with custom ones&quot;&#xd;
}&#xd;
- },&#xd;
- {&#xd;
- &quot;onap.datatypes.monitoring.thresholds&quot;: {&#xd;
- &quot;derived_from&quot;: &quot;tosca.datatypes.Root&quot;,&#xd;
- &quot;properties&quot;: {&#xd;
- &quot;closedLoopControlName&quot;: {&#xd;
- &quot;type&quot;: &quot;string&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;Closed Loop Control Name associated with the threshold&quot;&#xd;
- },&#xd;
- &quot;closedLoopEventStatus&quot;: {&#xd;
- &quot;type&quot;: &quot;string&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;Closed Loop Event Status of the threshold&quot;,&#xd;
- &quot;constraints&quot;: [&#xd;
- {&#xd;
- &quot;valid_values&quot;: [&#xd;
- &quot;ONSET&quot;,&#xd;
- &quot;ABATED&quot;&#xd;
- ]&#xd;
- }&#xd;
- ]&#xd;
- },&#xd;
- &quot;direction&quot;: {&#xd;
- &quot;type&quot;: &quot;string&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;Direction of the threshold&quot;,&#xd;
- &quot;constraints&quot;: [&#xd;
- {&#xd;
- &quot;valid_values&quot;: [&#xd;
- &quot;LESS&quot;,&#xd;
- &quot;LESS_OR_EQUAL&quot;,&#xd;
- &quot;GREATER&quot;,&#xd;
- &quot;GREATER_OR_EQUAL&quot;,&#xd;
- &quot;EQUAL&quot;&#xd;
- ]&#xd;
- }&#xd;
- ]&#xd;
- },&#xd;
- &quot;fieldPath&quot;: {&#xd;
- &quot;type&quot;: &quot;string&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;Json field Path as per CEF message which needs to be analyzed for TCA&quot;,&#xd;
- &quot;constraints&quot;: [&#xd;
- {&#xd;
- &quot;valid_values&quot;: [&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsDelta&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedOctetsDelta&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedUnicastPacketsDelta&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedMulticastPacketsDelta&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsDelta&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedDiscardedPacketsDelta&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedErrorPacketsDelta&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsAccumulated&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedOctetsAccumulated&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedUnicastPacketsAccumulated&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedMulticastPacketsAccumulated&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsAccumulated&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedDiscardedPacketsAccumulated&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedErrorPacketsAccumulated&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedTotalPacketsDelta&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedOctetsDelta&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedUnicastPacketsDelta&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedMulticastPacketsDelta&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedBroadcastPacketsDelta&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedDiscardedPacketsDelta&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedErrorPacketsDelta&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedTotalPacketsAccumulated&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedOctetsAccumulated&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedUnicastPacketsAccumulated&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedMulticastPacketsAccumulated&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedBroadcastPacketsAccumulated&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedDiscardedPacketsAccumulated&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedErrorPacketsAccumulated&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuIdle&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageInterrupt&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageNice&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSoftIrq&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSteal&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSystem&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuWait&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].percentUsage&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.meanRequestLatency&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryBuffered&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryCached&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryConfigured&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryFree&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryUsed&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value&quot;&#xd;
- ]&#xd;
- }&#xd;
- ]&#xd;
- },&#xd;
- &quot;severity&quot;: {&#xd;
- &quot;type&quot;: &quot;string&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;Threshold Event Severity&quot;,&#xd;
- &quot;constraints&quot;: [&#xd;
- {&#xd;
- &quot;valid_values&quot;: [&#xd;
- &quot;CRITICAL&quot;,&#xd;
- &quot;MAJOR&quot;,&#xd;
- &quot;MINOR&quot;,&#xd;
- &quot;WARNING&quot;,&#xd;
- &quot;NORMAL&quot;&#xd;
- ]&#xd;
- }&#xd;
- ]&#xd;
- },&#xd;
- &quot;thresholdValue&quot;: {&#xd;
- &quot;type&quot;: &quot;integer&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;Threshold value for the field Path inside CEF message&quot;&#xd;
- },&#xd;
- &quot;version&quot;: {&#xd;
- &quot;type&quot;: &quot;string&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;Version number associated with the threshold&quot;&#xd;
- }&#xd;
- }&#xd;
+ }&#xd;
+ },&#xd;
+ &quot;onap.datatypes.dmaap.custom_serialization&quot;: {&#xd;
+ &quot;derived_from&quot;: &quot;tosca.datatypes.Root&quot;,&#xd;
+ &quot;properties&quot;: {&#xd;
+ &quot;customSerializerClass&quot;: {&#xd;
+ &quot;type&quot;: &quot;string&quot;,&#xd;
+ &quot;required&quot;: true,&#xd;
+ &quot;description&quot;: &quot;the class that contains the JSON parser serializer/deserializer.&quot;&#xd;
+ },&#xd;
+ &quot;jsonParser&quot;: {&#xd;
+ &quot;type&quot;: &quot;string&quot;,&#xd;
+ &quot;required&quot;: true,&#xd;
+ &quot;description&quot;: &quot;static field in customSerialized class with the json parser (currently only gson supported)&quot;&#xd;
}&#xd;
- }&#xd;
- ]&#xd;
+ }&#xd;
+ },&#xd;
+ &quot;onap.datatypes.native.rules_artifact&quot;: {&#xd;
+ &quot;derived_from&quot;: &quot;tosca.datatypes.Root&quot;,&#xd;
+ &quot;properties&quot;: {&#xd;
+ &quot;groupId&quot;: {&#xd;
+ &quot;type&quot;: &quot;string&quot;,&#xd;
+ &quot;required&quot;: true,&#xd;
+ &quot;description&quot;: &quot;the groupId of the maven artifact&quot;&#xd;
+ },&#xd;
+ &quot;artifactId&quot;: {&#xd;
+ &quot;type&quot;: &quot;string&quot;,&#xd;
+ &quot;required&quot;: true,&#xd;
+ &quot;description&quot;: &quot;the artifactId of the maven artifact&quot;&#xd;
+ },&#xd;
+ &quot;version&quot;: {&#xd;
+ &quot;type&quot;: &quot;string&quot;,&#xd;
+ &quot;required&quot;: true,&#xd;
+ &quot;description&quot;: &quot;the version of the maven artifact&quot;&#xd;
+ }&#xd;
+ }&#xd;
+ },&#xd;
+ &quot;onap.datatypes.drools.controller.relation&quot;: {&#xd;
+ &quot;derived_from&quot;: &quot;tosca.datatypes.Root&quot;,&#xd;
+ &quot;properties&quot;: {&#xd;
+ &quot;name&quot;: {&#xd;
+ &quot;type&quot;: &quot;string&quot;,&#xd;
+ &quot;required&quot;: true,&#xd;
+ &quot;description&quot;: &quot;the name of drools controller policy&quot;&#xd;
+ }&#xd;
+ }&#xd;
+ }&#xd;
+ }&#xd;
}</stringProp>
<stringProp name="Argument.metadata">=</stringProp>
</elementProp>
@@ -3013,243 +1517,46 @@ if (prev.getResponseCode() == &apos;200&apos;) {
res = jsonSlurper.parseText(prev.getResponseDataAsString());
assert res instanceof Map;
- assert res.policy_types instanceof List;
- assert res.policy_types.size == 2;
- assert res.policy_types[0] instanceof Map;
- assert res.policy_types[1] instanceof Map;
+ assert res.policy_types instanceof Map;
+ assert res.policy_types.size() == 4;
+ assert res.policy_types.values()[0] instanceof Map;
+ assert res.policy_types.values()[1] instanceof Map;
+ assert res.policy_types.values()[2] instanceof Map;
+ assert res.policy_types.values()[3] instanceof Map;
}</stringProp>
</JSR223Assertion>
<hashTree/>
</hashTree>
- <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create TCA Policy Type V11" enabled="true">
+ <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create Policy Type Native XACML" enabled="true">
<boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
<elementProp name="HTTPsampler.Arguments" elementType="Arguments">
<collectionProp name="Arguments.arguments">
<elementProp name="" elementType="HTTPArgument">
<boolProp name="HTTPArgument.always_encode">false</boolProp>
<stringProp name="Argument.value">{&#xd;
- &quot;tosca_definitions_version&quot;: &quot;tosca_simple_yaml_1_0_0&quot;,&#xd;
- &quot;policy_types&quot;: [&#xd;
- {&#xd;
- &quot;onap.policies.Monitoring&quot;: {&#xd;
- &quot;derived_from&quot;: &quot;tosca.policies.Root&quot;,&#xd;
- &quot;version&quot;: &quot;1.0.0&quot;,&#xd;
- &quot;description&quot;: &quot;a base policy type for all policies that governs monitoring provisioning&quot;&#xd;
- }&#xd;
- },&#xd;
- {&#xd;
- &quot;onap.policies.monitoring.cdap.tca.hi.lo.app&quot;: {&#xd;
- &quot;derived_from&quot;: &quot;onap.policies.Monitoring&quot;,&#xd;
- &quot;version&quot;: &quot;11.0.0&quot;,&#xd;
- &quot;properties&quot;: {&#xd;
- &quot;tca_policy&quot;: {&#xd;
- &quot;type&quot;: &quot;map&quot;,&#xd;
- &quot;description&quot;: &quot;TCA Policy JSON&quot;,&#xd;
- &quot;entry_schema&quot;: {&#xd;
- &quot;type&quot;: &quot;onap.datatypes.monitoring.tca_policy&quot;&#xd;
- }&#xd;
- }&#xd;
- }&#xd;
- }&#xd;
- }&#xd;
- ],&#xd;
- &quot;data_types&quot;: [&#xd;
- {&#xd;
- &quot;onap.datatypes.monitoring.metricsPerEventName&quot;: {&#xd;
- &quot;derived_from&quot;: &quot;tosca.datatypes.Root&quot;,&#xd;
- &quot;properties&quot;: {&#xd;
- &quot;controlLoopSchemaType&quot;: {&#xd;
- &quot;type&quot;: &quot;string&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;Specifies Control Loop Schema Type for the event Name e.g. VNF, VM&quot;,&#xd;
- &quot;constraints&quot;: [&#xd;
- {&#xd;
- &quot;valid_values&quot;: [&#xd;
- &quot;VM&quot;,&#xd;
- &quot;VNF&quot;&#xd;
- ]&#xd;
- }&#xd;
- ]&#xd;
- },&#xd;
- &quot;eventName&quot;: {&#xd;
- &quot;type&quot;: &quot;string&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;Event name to which thresholds need to be applied&quot;&#xd;
- },&#xd;
- &quot;policyName&quot;: {&#xd;
- &quot;type&quot;: &quot;string&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;TCA Policy Scope Name&quot;&#xd;
- },&#xd;
- &quot;policyScope&quot;: {&#xd;
- &quot;type&quot;: &quot;string&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;TCA Policy Scope&quot;&#xd;
- },&#xd;
- &quot;policyVersion&quot;: {&#xd;
- &quot;type&quot;: &quot;string&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;TCA Policy Scope Version&quot;&#xd;
- },&#xd;
- &quot;thresholds&quot;: {&#xd;
- &quot;type&quot;: &quot;list&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;Thresholds associated with eventName&quot;,&#xd;
- &quot;entry_schema&quot;: {&#xd;
- &quot;type&quot;: &quot;onap.datatypes.monitoring.thresholds&quot;&#xd;
- }&#xd;
- }&#xd;
- }&#xd;
+ &quot;tosca_definitions_version&quot;: &quot;tosca_simple_yaml_1_1_0&quot;,&#xd;
+ &quot;policy_types&quot;: {&#xd;
+ &quot;onap.policies.Native&quot;: {&#xd;
+ &quot;derived_from&quot;: &quot;tosca.policies.Root&quot;,&#xd;
+ &quot;description&quot;: &quot;a base policy type for all native PDP policies&quot;,&#xd;
+ &quot;version&quot;: &quot;1.0.0&quot;&#xd;
+ },&#xd;
+ &quot;onap.policies.native.Xacml&quot;: {&#xd;
+ &quot;derived_from&quot;: &quot;onap.policies.Native&quot;,&#xd;
+ &quot;description&quot;: &quot;a policy type for native xacml policies&quot;,&#xd;
+ &quot;version&quot;: &quot;6.0.${__threadNum}&quot;,&#xd;
+ &quot;properties&quot;: {&#xd;
+ &quot;policy&quot;: {&#xd;
+ &quot;type&quot;: &quot;string&quot;,&#xd;
+ &quot;required&quot;: true,&#xd;
+ &quot;description&quot;: &quot;The XML XACML 3.0 PolicySet or Policy&quot;,&#xd;
+ &quot;metadata&quot;: {&#xd;
+ &quot;encoding&quot;: &quot;Base64&quot;&#xd;
+ }&#xd;
}&#xd;
- },&#xd;
- {&#xd;
- &quot;onap.datatypes.monitoring.tca_policy&quot;: {&#xd;
- &quot;derived_from&quot;: &quot;tosca.datatypes.Root&quot;,&#xd;
- &quot;properties&quot;: {&#xd;
- &quot;domain&quot;: {&#xd;
- &quot;type&quot;: &quot;string&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;Domain name to which TCA needs to be applied&quot;,&#xd;
- &quot;default&quot;: &quot;measurementsForVfScaling&quot;,&#xd;
- &quot;constraints&quot;: [&#xd;
- {&#xd;
- &quot;equal&quot;: &quot;measurementsForVfScaling&quot;&#xd;
- }&#xd;
- ]&#xd;
- },&#xd;
- &quot;metricsPerEventName&quot;: {&#xd;
- &quot;type&quot;: &quot;list&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;Contains eventName and threshold details that need to be applied to given eventName&quot;,&#xd;
- &quot;entry_schema&quot;: {&#xd;
- &quot;type&quot;: &quot;onap.datatypes.monitoring.metricsPerEventName&quot;&#xd;
- }&#xd;
- }&#xd;
- }&#xd;
- }&#xd;
- },&#xd;
- {&#xd;
- &quot;onap.datatypes.monitoring.thresholds&quot;: {&#xd;
- &quot;derived_from&quot;: &quot;tosca.datatypes.Root&quot;,&#xd;
- &quot;properties&quot;: {&#xd;
- &quot;closedLoopControlName&quot;: {&#xd;
- &quot;type&quot;: &quot;string&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;Closed Loop Control Name associated with the threshold&quot;&#xd;
- },&#xd;
- &quot;closedLoopEventStatus&quot;: {&#xd;
- &quot;type&quot;: &quot;string&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;Closed Loop Event Status of the threshold&quot;,&#xd;
- &quot;constraints&quot;: [&#xd;
- {&#xd;
- &quot;valid_values&quot;: [&#xd;
- &quot;ONSET&quot;,&#xd;
- &quot;ABATED&quot;&#xd;
- ]&#xd;
- }&#xd;
- ]&#xd;
- },&#xd;
- &quot;direction&quot;: {&#xd;
- &quot;type&quot;: &quot;string&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;Direction of the threshold&quot;,&#xd;
- &quot;constraints&quot;: [&#xd;
- {&#xd;
- &quot;valid_values&quot;: [&#xd;
- &quot;LESS&quot;,&#xd;
- &quot;LESS_OR_EQUAL&quot;,&#xd;
- &quot;GREATER&quot;,&#xd;
- &quot;GREATER_OR_EQUAL&quot;,&#xd;
- &quot;EQUAL&quot;&#xd;
- ]&#xd;
- }&#xd;
- ]&#xd;
- },&#xd;
- &quot;fieldPath&quot;: {&#xd;
- &quot;type&quot;: &quot;string&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;Json field Path as per CEF message which needs to be analyzed for TCA&quot;,&#xd;
- &quot;constraints&quot;: [&#xd;
- {&#xd;
- &quot;valid_values&quot;: [&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsDelta&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedOctetsDelta&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedUnicastPacketsDelta&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedMulticastPacketsDelta&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsDelta&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedDiscardedPacketsDelta&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedErrorPacketsDelta&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsAccumulated&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedOctetsAccumulated&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedUnicastPacketsAccumulated&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedMulticastPacketsAccumulated&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsAccumulated&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedDiscardedPacketsAccumulated&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedErrorPacketsAccumulated&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedTotalPacketsDelta&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedOctetsDelta&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedUnicastPacketsDelta&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedMulticastPacketsDelta&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedBroadcastPacketsDelta&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedDiscardedPacketsDelta&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedErrorPacketsDelta&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedTotalPacketsAccumulated&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedOctetsAccumulated&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedUnicastPacketsAccumulated&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedMulticastPacketsAccumulated&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedBroadcastPacketsAccumulated&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedDiscardedPacketsAccumulated&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedErrorPacketsAccumulated&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuIdle&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageInterrupt&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageNice&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSoftIrq&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSteal&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSystem&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuWait&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].percentUsage&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.meanRequestLatency&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryBuffered&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryCached&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryConfigured&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryFree&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryUsed&quot;,&#xd;
- &quot;$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value&quot;&#xd;
- ]&#xd;
- }&#xd;
- ]&#xd;
- },&#xd;
- &quot;severity&quot;: {&#xd;
- &quot;type&quot;: &quot;string&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;Threshold Event Severity&quot;,&#xd;
- &quot;constraints&quot;: [&#xd;
- {&#xd;
- &quot;valid_values&quot;: [&#xd;
- &quot;CRITICAL&quot;,&#xd;
- &quot;MAJOR&quot;,&#xd;
- &quot;MINOR&quot;,&#xd;
- &quot;WARNING&quot;,&#xd;
- &quot;NORMAL&quot;&#xd;
- ]&#xd;
- }&#xd;
- ]&#xd;
- },&#xd;
- &quot;thresholdValue&quot;: {&#xd;
- &quot;type&quot;: &quot;integer&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;Threshold value for the field Path inside CEF message&quot;&#xd;
- },&#xd;
- &quot;version&quot;: {&#xd;
- &quot;type&quot;: &quot;string&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;description&quot;: &quot;Version number associated with the threshold&quot;&#xd;
- }&#xd;
- }&#xd;
- }&#xd;
- }&#xd;
- ]&#xd;
+ }&#xd;
+ }&#xd;
+ }&#xd;
}</stringProp>
<stringProp name="Argument.metadata">=</stringProp>
</elementProp>
@@ -3293,18 +1600,14 @@ if (prev.getResponseCode() == &apos;200&apos;) {
res = jsonSlurper.parseText(prev.getResponseDataAsString());
assert res instanceof Map;
- assert res.policy_types instanceof List;
- assert res.policy_types.size == 2;
- assert res.policy_types[0] instanceof Map;
- assert res.policy_types[1] instanceof Map;
+ assert res.policy_types instanceof Map;
+ assert res.policy_types.size() == 2;
+ assert res.policy_types.values()[0] instanceof Map;
+ assert res.policy_types.values()[1] instanceof Map;
}</stringProp>
</JSR223Assertion>
<hashTree/>
</hashTree>
- <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="Constant Timer" enabled="true">
- <stringProp name="ConstantTimer.delay">10000</stringProp>
- </ConstantTimer>
- <hashTree/>
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get All Policy Types" enabled="true">
<elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
<collectionProp name="Arguments.arguments"/>
@@ -3347,12 +1650,12 @@ if (prev.getResponseCode() == &apos;200&apos;) {
res = jsonSlurper.parseText(prev.getResponseDataAsString());
assert res instanceof Map;
- assert res.policy_types instanceof List;
- assert res.policy_types.size == 28;
+ assert res.policy_types instanceof Map;
+ assert res.policy_types.size() == 35;
- def n = 28;
+ def n = 33;
for (i=0; i&lt;n; i++) {
- assert res.policy_types[i] instanceof Map;
+ assert res.policy_types.values()[i] instanceof Map;
}
}</stringProp>
</JSR223Assertion>
@@ -3375,6 +1678,7 @@ if (prev.getResponseCode() == &apos;200&apos;) {
<stringProp name="HTTPSampler.embedded_url_re"></stringProp>
<stringProp name="HTTPSampler.connect_timeout"></stringProp>
<stringProp name="HTTPSampler.response_timeout"></stringProp>
+ <stringProp name="TestPlan.comments">This is not working in Frankfurt and hence disabled.</stringProp>
</HTTPSamplerProxy>
<hashTree>
<ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
@@ -3400,222 +1704,17 @@ if (prev.getResponseCode() == &apos;200&apos;) {
res = jsonSlurper.parseText(prev.getResponseDataAsString());
assert res instanceof Map;
- assert res.policy_types instanceof List;
- assert res.policy_types.size == 11;
+ assert res.policy_types instanceof Map;
+ assert res.policy_types.size() &gt; 0 &amp;&amp; res.policy_types.size() &lt; 10;
- def n = 11;
- for (i=0; i&lt;n; i++) {
- assert res.policy_types[i] instanceof Map;
+ for (i=0; i&lt;res.policy_types.size(); i++) {
+ assert res.policy_types.values()[i] instanceof Map;
}
}</stringProp>
</JSR223Assertion>
<hashTree/>
</hashTree>
- <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get TCA Policy Type V1" enabled="true">
- <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
- <collectionProp name="Arguments.arguments"/>
- </elementProp>
- <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
- <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
- <stringProp name="HTTPSampler.protocol">https</stringProp>
- <stringProp name="HTTPSampler.contentEncoding"></stringProp>
- <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/1.0.0</stringProp>
- <stringProp name="HTTPSampler.method">GET</stringProp>
- <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
- <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
- <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
- <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
- <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
- <stringProp name="HTTPSampler.connect_timeout"></stringProp>
- <stringProp name="HTTPSampler.response_timeout"></stringProp>
- </HTTPSamplerProxy>
- <hashTree>
- <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
- <collectionProp name="Asserion.test_strings">
- <stringProp name="49586">200</stringProp>
- </collectionProp>
- <stringProp name="Assertion.custom_message"></stringProp>
- <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
- <boolProp name="Assertion.assume_success">false</boolProp>
- <intProp name="Assertion.test_type">1</intProp>
- </ResponseAssertion>
- <hashTree/>
- <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
- <stringProp name="scriptLanguage">groovy</stringProp>
- <stringProp name="parameters"></stringProp>
- <stringProp name="filename"></stringProp>
- <stringProp name="cacheKey">true</stringProp>
- <stringProp name="script">import groovy.json.JsonSlurper;
-
-def res = [];
-if (prev.getResponseCode() == &apos;200&apos;) {
- def jsonSlurper = new JsonSlurper();
- res = jsonSlurper.parseText(prev.getResponseDataAsString());
-
- assert res instanceof Map;
- assert res.policy_types instanceof List;
- assert res.policy_types.size == 1;
-
- assert res.policy_types[0] instanceof Map;
- assert res.policy_types[0].get(&apos;onap.policies.monitoring.cdap.tca.hi.lo.app&apos;).version == &quot;1.0.0&quot;;
-}</stringProp>
- </JSR223Assertion>
- <hashTree/>
- </hashTree>
- <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get TCA Policy Type V2" enabled="true">
- <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
- <collectionProp name="Arguments.arguments"/>
- </elementProp>
- <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
- <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
- <stringProp name="HTTPSampler.protocol">https</stringProp>
- <stringProp name="HTTPSampler.contentEncoding"></stringProp>
- <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/2.0.0</stringProp>
- <stringProp name="HTTPSampler.method">GET</stringProp>
- <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
- <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
- <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
- <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
- <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
- <stringProp name="HTTPSampler.connect_timeout"></stringProp>
- <stringProp name="HTTPSampler.response_timeout"></stringProp>
- </HTTPSamplerProxy>
- <hashTree>
- <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
- <collectionProp name="Asserion.test_strings">
- <stringProp name="49586">200</stringProp>
- </collectionProp>
- <stringProp name="Assertion.custom_message"></stringProp>
- <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
- <boolProp name="Assertion.assume_success">false</boolProp>
- <intProp name="Assertion.test_type">1</intProp>
- </ResponseAssertion>
- <hashTree/>
- <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
- <stringProp name="scriptLanguage">groovy</stringProp>
- <stringProp name="parameters"></stringProp>
- <stringProp name="filename"></stringProp>
- <stringProp name="cacheKey">true</stringProp>
- <stringProp name="script">import groovy.json.JsonSlurper;
-
-def res = [];
-if (prev.getResponseCode() == &apos;200&apos;) {
- def jsonSlurper = new JsonSlurper();
- res = jsonSlurper.parseText(prev.getResponseDataAsString());
-
- assert res instanceof Map;
- assert res.policy_types instanceof List;
- assert res.policy_types.size == 1;
-
- assert res.policy_types[0] instanceof Map;
- assert res.policy_types[0].get(&apos;onap.policies.monitoring.cdap.tca.hi.lo.app&apos;).version == &quot;2.0.0&quot;;
-}</stringProp>
- </JSR223Assertion>
- <hashTree/>
- </hashTree>
- <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get TCA Policy Type V3" enabled="true">
- <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
- <collectionProp name="Arguments.arguments"/>
- </elementProp>
- <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
- <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
- <stringProp name="HTTPSampler.protocol">https</stringProp>
- <stringProp name="HTTPSampler.contentEncoding"></stringProp>
- <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/3.0.0</stringProp>
- <stringProp name="HTTPSampler.method">GET</stringProp>
- <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
- <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
- <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
- <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
- <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
- <stringProp name="HTTPSampler.connect_timeout"></stringProp>
- <stringProp name="HTTPSampler.response_timeout"></stringProp>
- </HTTPSamplerProxy>
- <hashTree>
- <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
- <collectionProp name="Asserion.test_strings">
- <stringProp name="49586">200</stringProp>
- </collectionProp>
- <stringProp name="Assertion.custom_message"></stringProp>
- <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
- <boolProp name="Assertion.assume_success">false</boolProp>
- <intProp name="Assertion.test_type">1</intProp>
- </ResponseAssertion>
- <hashTree/>
- <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
- <stringProp name="scriptLanguage">groovy</stringProp>
- <stringProp name="parameters"></stringProp>
- <stringProp name="filename"></stringProp>
- <stringProp name="cacheKey">true</stringProp>
- <stringProp name="script">import groovy.json.JsonSlurper;
-
-def res = [];
-if (prev.getResponseCode() == &apos;200&apos;) {
- def jsonSlurper = new JsonSlurper();
- res = jsonSlurper.parseText(prev.getResponseDataAsString());
-
- assert res instanceof Map;
- assert res.policy_types instanceof List;
- assert res.policy_types.size == 1;
-
- assert res.policy_types[0] instanceof Map;
- assert res.policy_types[0].get(&apos;onap.policies.monitoring.cdap.tca.hi.lo.app&apos;).version == &quot;3.0.0&quot;;
-}</stringProp>
- </JSR223Assertion>
- <hashTree/>
- </hashTree>
- <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get TCA Policy Type V4" enabled="true">
- <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
- <collectionProp name="Arguments.arguments"/>
- </elementProp>
- <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
- <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
- <stringProp name="HTTPSampler.protocol">https</stringProp>
- <stringProp name="HTTPSampler.contentEncoding"></stringProp>
- <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/4.0.0</stringProp>
- <stringProp name="HTTPSampler.method">GET</stringProp>
- <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
- <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
- <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
- <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
- <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
- <stringProp name="HTTPSampler.connect_timeout"></stringProp>
- <stringProp name="HTTPSampler.response_timeout"></stringProp>
- </HTTPSamplerProxy>
- <hashTree>
- <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
- <collectionProp name="Asserion.test_strings">
- <stringProp name="49586">200</stringProp>
- </collectionProp>
- <stringProp name="Assertion.custom_message"></stringProp>
- <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
- <boolProp name="Assertion.assume_success">false</boolProp>
- <intProp name="Assertion.test_type">1</intProp>
- </ResponseAssertion>
- <hashTree/>
- <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
- <stringProp name="scriptLanguage">groovy</stringProp>
- <stringProp name="parameters"></stringProp>
- <stringProp name="filename"></stringProp>
- <stringProp name="cacheKey">true</stringProp>
- <stringProp name="script">import groovy.json.JsonSlurper;
-
-def res = [];
-if (prev.getResponseCode() == &apos;200&apos;) {
- def jsonSlurper = new JsonSlurper();
- res = jsonSlurper.parseText(prev.getResponseDataAsString());
-
- assert res instanceof Map;
- assert res.policy_types instanceof List;
- assert res.policy_types.size == 1;
-
- assert res.policy_types[0] instanceof Map;
- assert res.policy_types[0].get(&apos;onap.policies.monitoring.cdap.tca.hi.lo.app&apos;).version == &quot;4.0.0&quot;;
-}</stringProp>
- </JSR223Assertion>
- <hashTree/>
- </hashTree>
- <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get TCA Policy Type V5" enabled="true">
+ <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get Policy Type Monitoring" enabled="true">
<elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
<collectionProp name="Arguments.arguments"/>
</elementProp>
@@ -3623,7 +1722,7 @@ if (prev.getResponseCode() == &apos;200&apos;) {
<stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
<stringProp name="HTTPSampler.protocol">https</stringProp>
<stringProp name="HTTPSampler.contentEncoding"></stringProp>
- <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/5.0.0</stringProp>
+ <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/6.0.${__threadNum}</stringProp>
<stringProp name="HTTPSampler.method">GET</stringProp>
<boolProp name="HTTPSampler.follow_redirects">true</boolProp>
<boolProp name="HTTPSampler.auto_redirects">false</boolProp>
@@ -3657,16 +1756,16 @@ if (prev.getResponseCode() == &apos;200&apos;) {
res = jsonSlurper.parseText(prev.getResponseDataAsString());
assert res instanceof Map;
- assert res.policy_types instanceof List;
- assert res.policy_types.size == 1;
+ assert res.policy_types instanceof Map;
+ assert res.policy_types.size() == 2;
- assert res.policy_types[0] instanceof Map;
- assert res.policy_types[0].get(&apos;onap.policies.monitoring.cdap.tca.hi.lo.app&apos;).version == &quot;5.0.0&quot;;
+ assert res.policy_types.get(&apos;onap.policies.monitoring.cdap.tca.hi.lo.app&apos;) instanceof Map;
+ assert res.policy_types.get(&apos;onap.policies.monitoring.cdap.tca.hi.lo.app&apos;).version == &quot;6.0.${__threadNum}&quot;;
}</stringProp>
</JSR223Assertion>
<hashTree/>
</hashTree>
- <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get TCA Policy Type V6" enabled="true">
+ <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get Policy Type Optimization" enabled="true">
<elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
<collectionProp name="Arguments.arguments"/>
</elementProp>
@@ -3674,7 +1773,7 @@ if (prev.getResponseCode() == &apos;200&apos;) {
<stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
<stringProp name="HTTPSampler.protocol">https</stringProp>
<stringProp name="HTTPSampler.contentEncoding"></stringProp>
- <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/6.0.0</stringProp>
+ <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.optimization.resource.AffinityPolicy/versions/6.0.${__threadNum}</stringProp>
<stringProp name="HTTPSampler.method">GET</stringProp>
<boolProp name="HTTPSampler.follow_redirects">true</boolProp>
<boolProp name="HTTPSampler.auto_redirects">false</boolProp>
@@ -3708,16 +1807,16 @@ if (prev.getResponseCode() == &apos;200&apos;) {
res = jsonSlurper.parseText(prev.getResponseDataAsString());
assert res instanceof Map;
- assert res.policy_types instanceof List;
- assert res.policy_types.size == 1;
+ assert res.policy_types instanceof Map;
+ assert res.policy_types.size() == 3;
- assert res.policy_types[0] instanceof Map;
- assert res.policy_types[0].get(&apos;onap.policies.monitoring.cdap.tca.hi.lo.app&apos;).version == &quot;6.0.0&quot;;
+ assert res.policy_types.get(&apos;onap.policies.optimization.resource.AffinityPolicy&apos;) instanceof Map;
+ assert res.policy_types.get(&apos;onap.policies.optimization.resource.AffinityPolicy&apos;).version == &quot;6.0.${__threadNum}&quot;;
}</stringProp>
</JSR223Assertion>
<hashTree/>
</hashTree>
- <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get TCA Policy Type V7" enabled="true">
+ <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get Policy Type Guard" enabled="true">
<elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
<collectionProp name="Arguments.arguments"/>
</elementProp>
@@ -3725,7 +1824,7 @@ if (prev.getResponseCode() == &apos;200&apos;) {
<stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
<stringProp name="HTTPSampler.protocol">https</stringProp>
<stringProp name="HTTPSampler.contentEncoding"></stringProp>
- <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/7.0.0</stringProp>
+ <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.controlloop.guard.common.Blacklist/versions/6.0.${__threadNum}</stringProp>
<stringProp name="HTTPSampler.method">GET</stringProp>
<boolProp name="HTTPSampler.follow_redirects">true</boolProp>
<boolProp name="HTTPSampler.auto_redirects">false</boolProp>
@@ -3759,16 +1858,16 @@ if (prev.getResponseCode() == &apos;200&apos;) {
res = jsonSlurper.parseText(prev.getResponseDataAsString());
assert res instanceof Map;
- assert res.policy_types instanceof List;
- assert res.policy_types.size == 1;
+ assert res.policy_types instanceof Map;
+ assert res.policy_types.size() == 2;
- assert res.policy_types[0] instanceof Map;
- assert res.policy_types[0].get(&apos;onap.policies.monitoring.cdap.tca.hi.lo.app&apos;).version == &quot;7.0.0&quot;;
+ assert res.policy_types.get(&apos;onap.policies.controlloop.guard.common.Blacklist&apos;) instanceof Map;
+ assert res.policy_types.get(&apos;onap.policies.controlloop.guard.common.Blacklist&apos;).version == &quot;6.0.${__threadNum}&quot;;
}</stringProp>
</JSR223Assertion>
<hashTree/>
</hashTree>
- <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get TCA Policy Type V8" enabled="true">
+ <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get Policy Type Native APEX" enabled="true">
<elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
<collectionProp name="Arguments.arguments"/>
</elementProp>
@@ -3776,7 +1875,7 @@ if (prev.getResponseCode() == &apos;200&apos;) {
<stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
<stringProp name="HTTPSampler.protocol">https</stringProp>
<stringProp name="HTTPSampler.contentEncoding"></stringProp>
- <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/8.0.0</stringProp>
+ <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.native.Apex/versions/6.0.${__threadNum}</stringProp>
<stringProp name="HTTPSampler.method">GET</stringProp>
<boolProp name="HTTPSampler.follow_redirects">true</boolProp>
<boolProp name="HTTPSampler.auto_redirects">false</boolProp>
@@ -3810,16 +1909,16 @@ if (prev.getResponseCode() == &apos;200&apos;) {
res = jsonSlurper.parseText(prev.getResponseDataAsString());
assert res instanceof Map;
- assert res.policy_types instanceof List;
- assert res.policy_types.size == 1;
+ assert res.policy_types instanceof Map;
+ assert res.policy_types.size() == 2;
- assert res.policy_types[0] instanceof Map;
- assert res.policy_types[0].get(&apos;onap.policies.monitoring.cdap.tca.hi.lo.app&apos;).version == &quot;8.0.0&quot;;
+ assert res.policy_types.get(&apos;onap.policies.native.Apex&apos;) instanceof Map;
+ assert res.policy_types.get(&apos;onap.policies.native.Apex&apos;).version == &quot;6.0.${__threadNum}&quot;;
}</stringProp>
</JSR223Assertion>
<hashTree/>
</hashTree>
- <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get TCA Policy Type V9" enabled="true">
+ <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get Policy Type Native Drools" enabled="true">
<elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
<collectionProp name="Arguments.arguments"/>
</elementProp>
@@ -3827,7 +1926,7 @@ if (prev.getResponseCode() == &apos;200&apos;) {
<stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
<stringProp name="HTTPSampler.protocol">https</stringProp>
<stringProp name="HTTPSampler.contentEncoding"></stringProp>
- <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/9.0.0</stringProp>
+ <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.native.drools.Controller/versions/6.0.${__threadNum}</stringProp>
<stringProp name="HTTPSampler.method">GET</stringProp>
<boolProp name="HTTPSampler.follow_redirects">true</boolProp>
<boolProp name="HTTPSampler.auto_redirects">false</boolProp>
@@ -3861,16 +1960,16 @@ if (prev.getResponseCode() == &apos;200&apos;) {
res = jsonSlurper.parseText(prev.getResponseDataAsString());
assert res instanceof Map;
- assert res.policy_types instanceof List;
- assert res.policy_types.size == 1;
+ assert res.policy_types instanceof Map;
+ assert res.policy_types.size() == 3;
- assert res.policy_types[0] instanceof Map;
- assert res.policy_types[0].get(&apos;onap.policies.monitoring.cdap.tca.hi.lo.app&apos;).version == &quot;9.0.0&quot;;
+ assert res.policy_types.get(&apos;onap.policies.native.drools.Controller&apos;) instanceof Map;
+ assert res.policy_types.get(&apos;onap.policies.native.drools.Controller&apos;).version == &quot;6.0.${__threadNum}&quot;;
}</stringProp>
</JSR223Assertion>
<hashTree/>
</hashTree>
- <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get TCA Policy Type V10" enabled="true">
+ <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get Policy Type Native XACML" enabled="true">
<elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
<collectionProp name="Arguments.arguments"/>
</elementProp>
@@ -3878,7 +1977,7 @@ if (prev.getResponseCode() == &apos;200&apos;) {
<stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
<stringProp name="HTTPSampler.protocol">https</stringProp>
<stringProp name="HTTPSampler.contentEncoding"></stringProp>
- <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/10.0.0</stringProp>
+ <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.native.Xacml/versions/6.0.${__threadNum}</stringProp>
<stringProp name="HTTPSampler.method">GET</stringProp>
<boolProp name="HTTPSampler.follow_redirects">true</boolProp>
<boolProp name="HTTPSampler.auto_redirects">false</boolProp>
@@ -3912,67 +2011,16 @@ if (prev.getResponseCode() == &apos;200&apos;) {
res = jsonSlurper.parseText(prev.getResponseDataAsString());
assert res instanceof Map;
- assert res.policy_types instanceof List;
- assert res.policy_types.size == 1;
+ assert res.policy_types instanceof Map;
+ assert res.policy_types.size() == 2;
- assert res.policy_types[0] instanceof Map;
- assert res.policy_types[0].get(&apos;onap.policies.monitoring.cdap.tca.hi.lo.app&apos;).version == &quot;10.0.0&quot;;
+ assert res.policy_types.get(&apos;onap.policies.native.Xacml&apos;) instanceof Map;
+ assert res.policy_types.get(&apos;onap.policies.native.Xacml&apos;).version == &quot;6.0.${__threadNum}&quot;;
}</stringProp>
</JSR223Assertion>
<hashTree/>
</hashTree>
- <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get TCA Policy Type V11" enabled="true">
- <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
- <collectionProp name="Arguments.arguments"/>
- </elementProp>
- <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
- <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
- <stringProp name="HTTPSampler.protocol">https</stringProp>
- <stringProp name="HTTPSampler.contentEncoding"></stringProp>
- <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/11.0.0</stringProp>
- <stringProp name="HTTPSampler.method">GET</stringProp>
- <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
- <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
- <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
- <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
- <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
- <stringProp name="HTTPSampler.connect_timeout"></stringProp>
- <stringProp name="HTTPSampler.response_timeout"></stringProp>
- </HTTPSamplerProxy>
- <hashTree>
- <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
- <collectionProp name="Asserion.test_strings">
- <stringProp name="49586">200</stringProp>
- </collectionProp>
- <stringProp name="Assertion.custom_message"></stringProp>
- <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
- <boolProp name="Assertion.assume_success">false</boolProp>
- <intProp name="Assertion.test_type">1</intProp>
- </ResponseAssertion>
- <hashTree/>
- <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
- <stringProp name="scriptLanguage">groovy</stringProp>
- <stringProp name="parameters"></stringProp>
- <stringProp name="filename"></stringProp>
- <stringProp name="cacheKey">true</stringProp>
- <stringProp name="script">import groovy.json.JsonSlurper;
-
-def res = [];
-if (prev.getResponseCode() == &apos;200&apos;) {
- def jsonSlurper = new JsonSlurper();
- res = jsonSlurper.parseText(prev.getResponseDataAsString());
-
- assert res instanceof Map;
- assert res.policy_types instanceof List;
- assert res.policy_types.size == 1;
-
- assert res.policy_types[0] instanceof Map;
- assert res.policy_types[0].get(&apos;onap.policies.monitoring.cdap.tca.hi.lo.app&apos;).version == &quot;11.0.0&quot;;
-}</stringProp>
- </JSR223Assertion>
- <hashTree/>
- </hashTree>
- <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get Latest TCA Policy Type" enabled="true">
+ <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get Latest Monitoring Policy Type" enabled="true">
<elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
<collectionProp name="Arguments.arguments"/>
</elementProp>
@@ -4014,463 +2062,35 @@ if (prev.getResponseCode() == &apos;200&apos;) {
res = jsonSlurper.parseText(prev.getResponseDataAsString());
assert res instanceof Map;
- assert res.policy_types instanceof List;
- assert res.policy_types.size == 1;
-
- assert res.policy_types[0] instanceof Map;
- assert res.policy_types[0].get(&apos;onap.policies.monitoring.cdap.tca.hi.lo.app&apos;).version == &quot;11.0.0&quot;;
-}</stringProp>
- </JSR223Assertion>
- <hashTree/>
- </hashTree>
- <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="Constant Timer" enabled="true">
- <stringProp name="ConstantTimer.delay">5000</stringProp>
- </ConstantTimer>
- <hashTree/>
- <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create TCA Policy V1 " enabled="true">
- <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
- <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
- <collectionProp name="Arguments.arguments">
- <elementProp name="" elementType="HTTPArgument">
- <boolProp name="HTTPArgument.always_encode">false</boolProp>
- <stringProp name="Argument.value">{&#xd;
- &quot;tosca_definitions_version&quot;: &quot;tosca_simple_yaml_1_0_0&quot;,&#xd;
- &quot;topology_template&quot;: {&#xd;
- &quot;policies&quot;: [&#xd;
- {&#xd;
- &quot;onap.restart.tca&quot;: {&#xd;
- &quot;type&quot;: &quot;onap.policies.monitoring.cdap.tca.hi.lo.app&quot;,&#xd;
- &quot;version&quot;: &quot;1.0.0&quot;,&#xd;
- &quot;type_version&quot;: &quot;2.0.0&quot;,&#xd;
- &quot;metadata&quot;: {&#xd;
- &quot;policy-id&quot;: &quot;onap.restart.tca&quot;&#xd;
- },&#xd;
- &quot;properties&quot;: {&#xd;
- &quot;tca_policy&quot; : {&#xd;
- &quot;domain&quot;: &quot;measurementsForVfScaling&quot;,&#xd;
- &quot;metricsPerEventName&quot;: [&#xd;
- {&#xd;
- &quot;eventName&quot;: &quot;Measurement_vGMUX&quot;,&#xd;
- &quot;controlLoopSchemaType&quot;: &quot;VNF&quot;,&#xd;
- &quot;policyScope&quot;: &quot;DCAE&quot;,&#xd;
- &quot;policyName&quot;: &quot;DCAE.Config_tca-hi-lo&quot;,&#xd;
- &quot;policyVersion&quot;: &quot;v0.0.1&quot;,&#xd;
- &quot;thresholds&quot;: [&#xd;
- {&#xd;
- &quot;closedLoopControlName&quot;: &quot;ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e&quot;,&#xd;
- &quot;version&quot;: &quot;1.0.2&quot;,&#xd;
- &quot;fieldPath&quot;: &quot;$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value&quot;,&#xd;
- &quot;thresholdValue&quot;: 0,&#xd;
- &quot;direction&quot;: &quot;EQUAL&quot;,&#xd;
- &quot;severity&quot;: &quot;MAJOR&quot;,&#xd;
- &quot;closedLoopEventStatus&quot;: &quot;ABATED&quot;&#xd;
- },&#xd;
- {&#xd;
- &quot;closedLoopControlName&quot;: &quot;ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e&quot;,&#xd;
- &quot;version&quot;: &quot;1.0.2&quot;,&#xd;
- &quot;fieldPath&quot;: &quot;$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value&quot;,&#xd;
- &quot;thresholdValue&quot;: 0,&#xd;
- &quot;direction&quot;: &quot;GREATER&quot;,&#xd;
- &quot;severity&quot;: &quot;CRITICAL&quot;,&#xd;
- &quot;closedLoopEventStatus&quot;: &quot;ONSET&quot;&#xd;
- }&#xd;
- ]&#xd;
- }&#xd;
- ]&#xd;
- }&#xd;
- }&#xd;
- }&#xd;
- }&#xd;
- ]&#xd;
- }&#xd;
-}</stringProp>
- <stringProp name="Argument.metadata">=</stringProp>
- </elementProp>
- </collectionProp>
- </elementProp>
- <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
- <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
- <stringProp name="HTTPSampler.protocol">https</stringProp>
- <stringProp name="HTTPSampler.contentEncoding"></stringProp>
- <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/2.0.0/policies</stringProp>
- <stringProp name="HTTPSampler.method">POST</stringProp>
- <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
- <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
- <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
- <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
- <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
- <stringProp name="HTTPSampler.connect_timeout"></stringProp>
- <stringProp name="HTTPSampler.response_timeout"></stringProp>
- </HTTPSamplerProxy>
- <hashTree>
- <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
- <collectionProp name="Asserion.test_strings">
- <stringProp name="49586">200</stringProp>
- </collectionProp>
- <stringProp name="Assertion.custom_message"></stringProp>
- <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
- <boolProp name="Assertion.assume_success">false</boolProp>
- <intProp name="Assertion.test_type">1</intProp>
- </ResponseAssertion>
- <hashTree/>
- <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
- <stringProp name="scriptLanguage">groovy</stringProp>
- <stringProp name="parameters"></stringProp>
- <stringProp name="filename"></stringProp>
- <stringProp name="cacheKey">true</stringProp>
- <stringProp name="script">import groovy.json.JsonSlurper;
-
-def res = [];
-if (prev.getResponseCode() == &apos;200&apos;) {
- def jsonSlurper = new JsonSlurper();
- res = jsonSlurper.parseText(prev.getResponseDataAsString());
-
- assert res instanceof Map;
- assert res.topology_template.policies instanceof List;
- assert res.topology_template.policies.size == 1;
- assert res.topology_template.policies[0] instanceof Map;
-}</stringProp>
- </JSR223Assertion>
- <hashTree/>
- </hashTree>
- <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create TCA Policy V2" enabled="true">
- <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
- <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
- <collectionProp name="Arguments.arguments">
- <elementProp name="" elementType="HTTPArgument">
- <boolProp name="HTTPArgument.always_encode">false</boolProp>
- <stringProp name="Argument.value">{&#xd;
- &quot;tosca_definitions_version&quot;: &quot;tosca_simple_yaml_1_0_0&quot;,&#xd;
- &quot;topology_template&quot;: {&#xd;
- &quot;policies&quot;: [&#xd;
- {&#xd;
- &quot;onap.restart.tca&quot;: {&#xd;
- &quot;type&quot;: &quot;onap.policies.monitoring.cdap.tca.hi.lo.app&quot;,&#xd;
- &quot;version&quot;: &quot;2.0.0&quot;,&#xd;
- &quot;type_version&quot;: &quot;2.0.0&quot;,&#xd;
- &quot;metadata&quot;: {&#xd;
- &quot;policy-id&quot;: &quot;onap.restart.tca&quot;&#xd;
- },&#xd;
- &quot;properties&quot;: {&#xd;
- &quot;tca_policy&quot; : {&#xd;
- &quot;domain&quot;: &quot;measurementsForVfScaling&quot;,&#xd;
- &quot;metricsPerEventName&quot;: [&#xd;
- {&#xd;
- &quot;eventName&quot;: &quot;Measurement_vGMUX&quot;,&#xd;
- &quot;controlLoopSchemaType&quot;: &quot;VNF&quot;,&#xd;
- &quot;policyScope&quot;: &quot;DCAE&quot;,&#xd;
- &quot;policyName&quot;: &quot;DCAE.Config_tca-hi-lo&quot;,&#xd;
- &quot;policyVersion&quot;: &quot;v0.0.1&quot;,&#xd;
- &quot;thresholds&quot;: [&#xd;
- {&#xd;
- &quot;closedLoopControlName&quot;: &quot;ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e&quot;,&#xd;
- &quot;version&quot;: &quot;1.0.2&quot;,&#xd;
- &quot;fieldPath&quot;: &quot;$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value&quot;,&#xd;
- &quot;thresholdValue&quot;: 0,&#xd;
- &quot;direction&quot;: &quot;EQUAL&quot;,&#xd;
- &quot;severity&quot;: &quot;MAJOR&quot;,&#xd;
- &quot;closedLoopEventStatus&quot;: &quot;ABATED&quot;&#xd;
- },&#xd;
- {&#xd;
- &quot;closedLoopControlName&quot;: &quot;ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e&quot;,&#xd;
- &quot;version&quot;: &quot;1.0.2&quot;,&#xd;
- &quot;fieldPath&quot;: &quot;$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value&quot;,&#xd;
- &quot;thresholdValue&quot;: 0,&#xd;
- &quot;direction&quot;: &quot;GREATER&quot;,&#xd;
- &quot;severity&quot;: &quot;CRITICAL&quot;,&#xd;
- &quot;closedLoopEventStatus&quot;: &quot;ONSET&quot;&#xd;
- }&#xd;
- ]&#xd;
- }&#xd;
- ]&#xd;
- }&#xd;
- }&#xd;
- }&#xd;
- }&#xd;
- ]&#xd;
- }&#xd;
-}</stringProp>
- <stringProp name="Argument.metadata">=</stringProp>
- </elementProp>
- </collectionProp>
- </elementProp>
- <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
- <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
- <stringProp name="HTTPSampler.protocol">https</stringProp>
- <stringProp name="HTTPSampler.contentEncoding"></stringProp>
- <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/2.0.0/policies</stringProp>
- <stringProp name="HTTPSampler.method">POST</stringProp>
- <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
- <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
- <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
- <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
- <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
- <stringProp name="HTTPSampler.connect_timeout"></stringProp>
- <stringProp name="HTTPSampler.response_timeout"></stringProp>
- </HTTPSamplerProxy>
- <hashTree>
- <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
- <collectionProp name="Asserion.test_strings">
- <stringProp name="49586">200</stringProp>
- </collectionProp>
- <stringProp name="Assertion.custom_message"></stringProp>
- <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
- <boolProp name="Assertion.assume_success">false</boolProp>
- <intProp name="Assertion.test_type">1</intProp>
- </ResponseAssertion>
- <hashTree/>
- <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
- <stringProp name="scriptLanguage">groovy</stringProp>
- <stringProp name="parameters"></stringProp>
- <stringProp name="filename"></stringProp>
- <stringProp name="cacheKey">true</stringProp>
- <stringProp name="script">import groovy.json.JsonSlurper;
-
-def res = [];
-if (prev.getResponseCode() == &apos;200&apos;) {
- def jsonSlurper = new JsonSlurper();
- res = jsonSlurper.parseText(prev.getResponseDataAsString());
-
- assert res instanceof Map;
- assert res.topology_template.policies instanceof List;
- assert res.topology_template.policies.size == 1;
- assert res.topology_template.policies[0] instanceof Map;
-}</stringProp>
- </JSR223Assertion>
- <hashTree/>
- </hashTree>
- <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create TCA Policy V3" enabled="true">
- <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
- <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
- <collectionProp name="Arguments.arguments">
- <elementProp name="" elementType="HTTPArgument">
- <boolProp name="HTTPArgument.always_encode">false</boolProp>
- <stringProp name="Argument.value">{&#xd;
- &quot;tosca_definitions_version&quot;: &quot;tosca_simple_yaml_1_0_0&quot;,&#xd;
- &quot;topology_template&quot;: {&#xd;
- &quot;policies&quot;: [&#xd;
- {&#xd;
- &quot;onap.restart.tca&quot;: {&#xd;
- &quot;type&quot;: &quot;onap.policies.monitoring.cdap.tca.hi.lo.app&quot;,&#xd;
- &quot;version&quot;: &quot;3.0.0&quot;,&#xd;
- &quot;type_version&quot;: &quot;2.0.0&quot;,&#xd;
- &quot;metadata&quot;: {&#xd;
- &quot;policy-id&quot;: &quot;onap.restart.tca&quot;&#xd;
- },&#xd;
- &quot;properties&quot;: {&#xd;
- &quot;tca_policy&quot; : {&#xd;
- &quot;domain&quot;: &quot;measurementsForVfScaling&quot;,&#xd;
- &quot;metricsPerEventName&quot;: [&#xd;
- {&#xd;
- &quot;eventName&quot;: &quot;Measurement_vGMUX&quot;,&#xd;
- &quot;controlLoopSchemaType&quot;: &quot;VNF&quot;,&#xd;
- &quot;policyScope&quot;: &quot;DCAE&quot;,&#xd;
- &quot;policyName&quot;: &quot;DCAE.Config_tca-hi-lo&quot;,&#xd;
- &quot;policyVersion&quot;: &quot;v0.0.1&quot;,&#xd;
- &quot;thresholds&quot;: [&#xd;
- {&#xd;
- &quot;closedLoopControlName&quot;: &quot;ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e&quot;,&#xd;
- &quot;version&quot;: &quot;1.0.2&quot;,&#xd;
- &quot;fieldPath&quot;: &quot;$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value&quot;,&#xd;
- &quot;thresholdValue&quot;: 0,&#xd;
- &quot;direction&quot;: &quot;EQUAL&quot;,&#xd;
- &quot;severity&quot;: &quot;MAJOR&quot;,&#xd;
- &quot;closedLoopEventStatus&quot;: &quot;ABATED&quot;&#xd;
- },&#xd;
- {&#xd;
- &quot;closedLoopControlName&quot;: &quot;ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e&quot;,&#xd;
- &quot;version&quot;: &quot;1.0.2&quot;,&#xd;
- &quot;fieldPath&quot;: &quot;$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value&quot;,&#xd;
- &quot;thresholdValue&quot;: 0,&#xd;
- &quot;direction&quot;: &quot;GREATER&quot;,&#xd;
- &quot;severity&quot;: &quot;CRITICAL&quot;,&#xd;
- &quot;closedLoopEventStatus&quot;: &quot;ONSET&quot;&#xd;
- }&#xd;
- ]&#xd;
- }&#xd;
- ]&#xd;
- }&#xd;
- }&#xd;
- }&#xd;
- }&#xd;
- ]&#xd;
- }&#xd;
-}</stringProp>
- <stringProp name="Argument.metadata">=</stringProp>
- </elementProp>
- </collectionProp>
- </elementProp>
- <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
- <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
- <stringProp name="HTTPSampler.protocol">https</stringProp>
- <stringProp name="HTTPSampler.contentEncoding"></stringProp>
- <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/2.0.0/policies</stringProp>
- <stringProp name="HTTPSampler.method">POST</stringProp>
- <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
- <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
- <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
- <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
- <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
- <stringProp name="HTTPSampler.connect_timeout"></stringProp>
- <stringProp name="HTTPSampler.response_timeout"></stringProp>
- </HTTPSamplerProxy>
- <hashTree>
- <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
- <collectionProp name="Asserion.test_strings">
- <stringProp name="49586">200</stringProp>
- </collectionProp>
- <stringProp name="Assertion.custom_message"></stringProp>
- <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
- <boolProp name="Assertion.assume_success">false</boolProp>
- <intProp name="Assertion.test_type">1</intProp>
- </ResponseAssertion>
- <hashTree/>
- <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
- <stringProp name="scriptLanguage">groovy</stringProp>
- <stringProp name="parameters"></stringProp>
- <stringProp name="filename"></stringProp>
- <stringProp name="cacheKey">true</stringProp>
- <stringProp name="script">import groovy.json.JsonSlurper;
-
-def res = [];
-if (prev.getResponseCode() == &apos;200&apos;) {
- def jsonSlurper = new JsonSlurper();
- res = jsonSlurper.parseText(prev.getResponseDataAsString());
-
- assert res instanceof Map;
- assert res.topology_template.policies instanceof List;
- assert res.topology_template.policies.size == 1;
- assert res.topology_template.policies[0] instanceof Map;
-}</stringProp>
- </JSR223Assertion>
- <hashTree/>
- </hashTree>
- <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create TCA Policy V4" enabled="true">
- <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
- <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
- <collectionProp name="Arguments.arguments">
- <elementProp name="" elementType="HTTPArgument">
- <boolProp name="HTTPArgument.always_encode">false</boolProp>
- <stringProp name="Argument.value">{&#xd;
- &quot;tosca_definitions_version&quot;: &quot;tosca_simple_yaml_1_0_0&quot;,&#xd;
- &quot;topology_template&quot;: {&#xd;
- &quot;policies&quot;: [&#xd;
- {&#xd;
- &quot;onap.restart.tca&quot;: {&#xd;
- &quot;type&quot;: &quot;onap.policies.monitoring.cdap.tca.hi.lo.app&quot;,&#xd;
- &quot;version&quot;: &quot;4.0.0&quot;,&#xd;
- &quot;type_version&quot;: &quot;2.0.0&quot;,&#xd;
- &quot;metadata&quot;: {&#xd;
- &quot;policy-id&quot;: &quot;onap.restart.tca&quot;&#xd;
- },&#xd;
- &quot;properties&quot;: {&#xd;
- &quot;tca_policy&quot; : {&#xd;
- &quot;domain&quot;: &quot;measurementsForVfScaling&quot;,&#xd;
- &quot;metricsPerEventName&quot;: [&#xd;
- {&#xd;
- &quot;eventName&quot;: &quot;Measurement_vGMUX&quot;,&#xd;
- &quot;controlLoopSchemaType&quot;: &quot;VNF&quot;,&#xd;
- &quot;policyScope&quot;: &quot;DCAE&quot;,&#xd;
- &quot;policyName&quot;: &quot;DCAE.Config_tca-hi-lo&quot;,&#xd;
- &quot;policyVersion&quot;: &quot;v0.0.1&quot;,&#xd;
- &quot;thresholds&quot;: [&#xd;
- {&#xd;
- &quot;closedLoopControlName&quot;: &quot;ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e&quot;,&#xd;
- &quot;version&quot;: &quot;1.0.2&quot;,&#xd;
- &quot;fieldPath&quot;: &quot;$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value&quot;,&#xd;
- &quot;thresholdValue&quot;: 0,&#xd;
- &quot;direction&quot;: &quot;EQUAL&quot;,&#xd;
- &quot;severity&quot;: &quot;MAJOR&quot;,&#xd;
- &quot;closedLoopEventStatus&quot;: &quot;ABATED&quot;&#xd;
- },&#xd;
- {&#xd;
- &quot;closedLoopControlName&quot;: &quot;ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e&quot;,&#xd;
- &quot;version&quot;: &quot;1.0.2&quot;,&#xd;
- &quot;fieldPath&quot;: &quot;$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value&quot;,&#xd;
- &quot;thresholdValue&quot;: 0,&#xd;
- &quot;direction&quot;: &quot;GREATER&quot;,&#xd;
- &quot;severity&quot;: &quot;CRITICAL&quot;,&#xd;
- &quot;closedLoopEventStatus&quot;: &quot;ONSET&quot;&#xd;
- }&#xd;
- ]&#xd;
- }&#xd;
- ]&#xd;
- }&#xd;
- }&#xd;
- }&#xd;
- }&#xd;
- ]&#xd;
- }&#xd;
-}</stringProp>
- <stringProp name="Argument.metadata">=</stringProp>
- </elementProp>
- </collectionProp>
- </elementProp>
- <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
- <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
- <stringProp name="HTTPSampler.protocol">https</stringProp>
- <stringProp name="HTTPSampler.contentEncoding"></stringProp>
- <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/2.0.0/policies</stringProp>
- <stringProp name="HTTPSampler.method">POST</stringProp>
- <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
- <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
- <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
- <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
- <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
- <stringProp name="HTTPSampler.connect_timeout"></stringProp>
- <stringProp name="HTTPSampler.response_timeout"></stringProp>
- </HTTPSamplerProxy>
- <hashTree>
- <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
- <collectionProp name="Asserion.test_strings">
- <stringProp name="49586">200</stringProp>
- </collectionProp>
- <stringProp name="Assertion.custom_message"></stringProp>
- <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
- <boolProp name="Assertion.assume_success">false</boolProp>
- <intProp name="Assertion.test_type">1</intProp>
- </ResponseAssertion>
- <hashTree/>
- <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
- <stringProp name="scriptLanguage">groovy</stringProp>
- <stringProp name="parameters"></stringProp>
- <stringProp name="filename"></stringProp>
- <stringProp name="cacheKey">true</stringProp>
- <stringProp name="script">import groovy.json.JsonSlurper;
-
-def res = [];
-if (prev.getResponseCode() == &apos;200&apos;) {
- def jsonSlurper = new JsonSlurper();
- res = jsonSlurper.parseText(prev.getResponseDataAsString());
+ assert res.policy_types instanceof Map;
+ assert res.policy_types.size() &gt; 0 &amp;&amp; res.policy_types.size() &lt; 10;
- assert res instanceof Map;
- assert res.topology_template.policies instanceof List;
- assert res.topology_template.policies.size == 1;
- assert res.topology_template.policies[0] instanceof Map;
+ assert res.policy_types.get(&apos;onap.policies.monitoring.cdap.tca.hi.lo.app&apos;) instanceof Map;
+ assert res.policy_types.get(&apos;onap.policies.monitoring.cdap.tca.hi.lo.app&apos;).version ==~ /7.0.\d+/;
}</stringProp>
</JSR223Assertion>
<hashTree/>
</hashTree>
- <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create TCA Policy V5" enabled="true">
+ <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create Policy Monitoring" enabled="true">
<boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
<elementProp name="HTTPsampler.Arguments" elementType="Arguments">
<collectionProp name="Arguments.arguments">
<elementProp name="" elementType="HTTPArgument">
<boolProp name="HTTPArgument.always_encode">false</boolProp>
<stringProp name="Argument.value">{&#xd;
- &quot;tosca_definitions_version&quot;: &quot;tosca_simple_yaml_1_0_0&quot;,&#xd;
+ &quot;tosca_definitions_version&quot;: &quot;tosca_simple_yaml_1_1_0&quot;,&#xd;
&quot;topology_template&quot;: {&#xd;
&quot;policies&quot;: [&#xd;
{&#xd;
&quot;onap.restart.tca&quot;: {&#xd;
&quot;type&quot;: &quot;onap.policies.monitoring.cdap.tca.hi.lo.app&quot;,&#xd;
- &quot;version&quot;: &quot;5.0.0&quot;,&#xd;
- &quot;type_version&quot;: &quot;2.0.0&quot;,&#xd;
+ &quot;type_version&quot;: &quot;6.0.${__threadNum}&quot;,&#xd;
+ &quot;version&quot;: &quot;6.0.${__threadNum}&quot;,&#xd;
&quot;metadata&quot;: {&#xd;
&quot;policy-id&quot;: &quot;onap.restart.tca&quot;&#xd;
},&#xd;
&quot;properties&quot;: {&#xd;
- &quot;tca_policy&quot; : {&#xd;
+ &quot;tca_policy&quot;: {&#xd;
&quot;domain&quot;: &quot;measurementsForVfScaling&quot;,&#xd;
&quot;metricsPerEventName&quot;: [&#xd;
{&#xd;
@@ -4516,7 +2136,7 @@ if (prev.getResponseCode() == &apos;200&apos;) {
<stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
<stringProp name="HTTPSampler.protocol">https</stringProp>
<stringProp name="HTTPSampler.contentEncoding"></stringProp>
- <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/2.0.0/policies</stringProp>
+ <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/1.0.0/policies</stringProp>
<stringProp name="HTTPSampler.method">POST</stringProp>
<boolProp name="HTTPSampler.follow_redirects">true</boolProp>
<boolProp name="HTTPSampler.auto_redirects">false</boolProp>
@@ -4557,26 +2177,26 @@ if (prev.getResponseCode() == &apos;200&apos;) {
</JSR223Assertion>
<hashTree/>
</hashTree>
- <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create TCA Policy V6" enabled="true">
+ <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create Policy Monitoring V2" enabled="true">
<boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
<elementProp name="HTTPsampler.Arguments" elementType="Arguments">
<collectionProp name="Arguments.arguments">
<elementProp name="" elementType="HTTPArgument">
<boolProp name="HTTPArgument.always_encode">false</boolProp>
<stringProp name="Argument.value">{&#xd;
- &quot;tosca_definitions_version&quot;: &quot;tosca_simple_yaml_1_0_0&quot;,&#xd;
+ &quot;tosca_definitions_version&quot;: &quot;tosca_simple_yaml_1_1_0&quot;,&#xd;
&quot;topology_template&quot;: {&#xd;
&quot;policies&quot;: [&#xd;
{&#xd;
&quot;onap.restart.tca&quot;: {&#xd;
&quot;type&quot;: &quot;onap.policies.monitoring.cdap.tca.hi.lo.app&quot;,&#xd;
- &quot;version&quot;: &quot;6.0.0&quot;,&#xd;
- &quot;type_version&quot;: &quot;2.0.0&quot;,&#xd;
+ &quot;type_version&quot;: &quot;7.0.${__threadNum}&quot;,&#xd;
+ &quot;version&quot;: &quot;7.0.${__threadNum}&quot;,&#xd;
&quot;metadata&quot;: {&#xd;
&quot;policy-id&quot;: &quot;onap.restart.tca&quot;&#xd;
},&#xd;
&quot;properties&quot;: {&#xd;
- &quot;tca_policy&quot; : {&#xd;
+ &quot;tca_policy&quot;: {&#xd;
&quot;domain&quot;: &quot;measurementsForVfScaling&quot;,&#xd;
&quot;metricsPerEventName&quot;: [&#xd;
{&#xd;
@@ -4622,7 +2242,7 @@ if (prev.getResponseCode() == &apos;200&apos;) {
<stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
<stringProp name="HTTPSampler.protocol">https</stringProp>
<stringProp name="HTTPSampler.contentEncoding"></stringProp>
- <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/2.0.0/policies</stringProp>
+ <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/1.0.0/policies</stringProp>
<stringProp name="HTTPSampler.method">POST</stringProp>
<boolProp name="HTTPSampler.follow_redirects">true</boolProp>
<boolProp name="HTTPSampler.auto_redirects">false</boolProp>
@@ -4663,56 +2283,35 @@ if (prev.getResponseCode() == &apos;200&apos;) {
</JSR223Assertion>
<hashTree/>
</hashTree>
- <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create TCA Policy V7" enabled="true">
+ <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create Policy Optimization" enabled="true">
<boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
<elementProp name="HTTPsampler.Arguments" elementType="Arguments">
<collectionProp name="Arguments.arguments">
<elementProp name="" elementType="HTTPArgument">
<boolProp name="HTTPArgument.always_encode">false</boolProp>
<stringProp name="Argument.value">{&#xd;
- &quot;tosca_definitions_version&quot;: &quot;tosca_simple_yaml_1_0_0&quot;,&#xd;
+ &quot;tosca_definitions_version&quot;: &quot;tosca_simple_yaml_1_1_0&quot;,&#xd;
&quot;topology_template&quot;: {&#xd;
&quot;policies&quot;: [&#xd;
{&#xd;
- &quot;onap.restart.tca&quot;: {&#xd;
- &quot;type&quot;: &quot;onap.policies.monitoring.cdap.tca.hi.lo.app&quot;,&#xd;
- &quot;version&quot;: &quot;7.0.0&quot;,&#xd;
- &quot;type_version&quot;: &quot;2.0.0&quot;,&#xd;
+ &quot;OSDF_CASABLANCA.Affinity_Default&quot;: {&#xd;
+ &quot;type&quot;: &quot;onap.policies.optimization.resource.AffinityPolicy&quot;,&#xd;
+ &quot;version&quot;: &quot;6.0.${__threadNum}&quot;,&#xd;
+ &quot;type_version&quot;: &quot;6.0.${__threadNum}&quot;,&#xd;
&quot;metadata&quot;: {&#xd;
- &quot;policy-id&quot;: &quot;onap.restart.tca&quot;&#xd;
+ &quot;policy-id&quot;: &quot;OSDF_CASABLANCA.Affinity_Default&quot;,&#xd;
+ &quot;policy-version&quot;: 1&#xd;
},&#xd;
&quot;properties&quot;: {&#xd;
- &quot;tca_policy&quot; : {&#xd;
- &quot;domain&quot;: &quot;measurementsForVfScaling&quot;,&#xd;
- &quot;metricsPerEventName&quot;: [&#xd;
- {&#xd;
- &quot;eventName&quot;: &quot;Measurement_vGMUX&quot;,&#xd;
- &quot;controlLoopSchemaType&quot;: &quot;VNF&quot;,&#xd;
- &quot;policyScope&quot;: &quot;DCAE&quot;,&#xd;
- &quot;policyName&quot;: &quot;DCAE.Config_tca-hi-lo&quot;,&#xd;
- &quot;policyVersion&quot;: &quot;v0.0.1&quot;,&#xd;
- &quot;thresholds&quot;: [&#xd;
- {&#xd;
- &quot;closedLoopControlName&quot;: &quot;ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e&quot;,&#xd;
- &quot;version&quot;: &quot;1.0.2&quot;,&#xd;
- &quot;fieldPath&quot;: &quot;$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value&quot;,&#xd;
- &quot;thresholdValue&quot;: 0,&#xd;
- &quot;direction&quot;: &quot;EQUAL&quot;,&#xd;
- &quot;severity&quot;: &quot;MAJOR&quot;,&#xd;
- &quot;closedLoopEventStatus&quot;: &quot;ABATED&quot;&#xd;
- },&#xd;
- {&#xd;
- &quot;closedLoopControlName&quot;: &quot;ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e&quot;,&#xd;
- &quot;version&quot;: &quot;1.0.2&quot;,&#xd;
- &quot;fieldPath&quot;: &quot;$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value&quot;,&#xd;
- &quot;thresholdValue&quot;: 0,&#xd;
- &quot;direction&quot;: &quot;GREATER&quot;,&#xd;
- &quot;severity&quot;: &quot;CRITICAL&quot;,&#xd;
- &quot;closedLoopEventStatus&quot;: &quot;ONSET&quot;&#xd;
- }&#xd;
- ]&#xd;
- }&#xd;
- ]&#xd;
+ &quot;scope&quot;: [],&#xd;
+ &quot;services&quot;: [],&#xd;
+ &quot;resources&quot;: [],&#xd;
+ &quot;geography&quot;: [],&#xd;
+ &quot;identity&quot;: &quot;affinity_vCPE&quot;,&#xd;
+ &quot;applicableResources&quot;: &quot;any&quot;,&#xd;
+ &quot;affinityProperties&quot;: {&#xd;
+ &quot;qualifier&quot;: &quot;same&quot;,&#xd;
+ &quot;category&quot;: &quot;complex&quot;&#xd;
}&#xd;
}&#xd;
}&#xd;
@@ -4728,7 +2327,7 @@ if (prev.getResponseCode() == &apos;200&apos;) {
<stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
<stringProp name="HTTPSampler.protocol">https</stringProp>
<stringProp name="HTTPSampler.contentEncoding"></stringProp>
- <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/2.0.0/policies</stringProp>
+ <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.optimization.resource.AffinityPolicy/versions/2.0.0/policies</stringProp>
<stringProp name="HTTPSampler.method">POST</stringProp>
<boolProp name="HTTPSampler.follow_redirects">true</boolProp>
<boolProp name="HTTPSampler.auto_redirects">false</boolProp>
@@ -4769,62 +2368,37 @@ if (prev.getResponseCode() == &apos;200&apos;) {
</JSR223Assertion>
<hashTree/>
</hashTree>
- <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create TCA Policy V8" enabled="true">
+ <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create Policy Guard" enabled="true">
<boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
<elementProp name="HTTPsampler.Arguments" elementType="Arguments">
<collectionProp name="Arguments.arguments">
<elementProp name="" elementType="HTTPArgument">
<boolProp name="HTTPArgument.always_encode">false</boolProp>
<stringProp name="Argument.value">{&#xd;
- &quot;tosca_definitions_version&quot;: &quot;tosca_simple_yaml_1_0_0&quot;,&#xd;
- &quot;topology_template&quot;: {&#xd;
- &quot;policies&quot;: [&#xd;
- {&#xd;
- &quot;onap.restart.tca&quot;: {&#xd;
- &quot;type&quot;: &quot;onap.policies.monitoring.cdap.tca.hi.lo.app&quot;,&#xd;
- &quot;version&quot;: &quot;8.0.0&quot;,&#xd;
- &quot;type_version&quot;: &quot;2.0.0&quot;,&#xd;
- &quot;metadata&quot;: {&#xd;
- &quot;policy-id&quot;: &quot;onap.restart.tca&quot;&#xd;
- },&#xd;
- &quot;properties&quot;: {&#xd;
- &quot;tca_policy&quot; : {&#xd;
- &quot;domain&quot;: &quot;measurementsForVfScaling&quot;,&#xd;
- &quot;metricsPerEventName&quot;: [&#xd;
- {&#xd;
- &quot;eventName&quot;: &quot;Measurement_vGMUX&quot;,&#xd;
- &quot;controlLoopSchemaType&quot;: &quot;VNF&quot;,&#xd;
- &quot;policyScope&quot;: &quot;DCAE&quot;,&#xd;
- &quot;policyName&quot;: &quot;DCAE.Config_tca-hi-lo&quot;,&#xd;
- &quot;policyVersion&quot;: &quot;v0.0.1&quot;,&#xd;
- &quot;thresholds&quot;: [&#xd;
- {&#xd;
- &quot;closedLoopControlName&quot;: &quot;ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e&quot;,&#xd;
- &quot;version&quot;: &quot;1.0.2&quot;,&#xd;
- &quot;fieldPath&quot;: &quot;$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value&quot;,&#xd;
- &quot;thresholdValue&quot;: 0,&#xd;
- &quot;direction&quot;: &quot;EQUAL&quot;,&#xd;
- &quot;severity&quot;: &quot;MAJOR&quot;,&#xd;
- &quot;closedLoopEventStatus&quot;: &quot;ABATED&quot;&#xd;
- },&#xd;
- {&#xd;
- &quot;closedLoopControlName&quot;: &quot;ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e&quot;,&#xd;
- &quot;version&quot;: &quot;1.0.2&quot;,&#xd;
- &quot;fieldPath&quot;: &quot;$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value&quot;,&#xd;
- &quot;thresholdValue&quot;: 0,&#xd;
- &quot;direction&quot;: &quot;GREATER&quot;,&#xd;
- &quot;severity&quot;: &quot;CRITICAL&quot;,&#xd;
- &quot;closedLoopEventStatus&quot;: &quot;ONSET&quot;&#xd;
- }&#xd;
- ]&#xd;
- }&#xd;
- ]&#xd;
- }&#xd;
- }&#xd;
- }&#xd;
+ &quot;tosca_definitions_version&quot;: &quot;tosca_simple_yaml_1_1_0&quot;,&#xd;
+ &quot;topology_template&quot;: {&#xd;
+ &quot;policies&quot;: [&#xd;
+ {&#xd;
+ &quot;guard.blacklist.scaleout&quot;: {&#xd;
+ &quot;type&quot;: &quot;onap.policies.controlloop.guard.common.Blacklist&quot;,&#xd;
+ &quot;type_version&quot;: &quot;6.0.${__threadNum}&quot;,&#xd;
+ &quot;version&quot;: &quot;6.0.${__threadNum}&quot;,&#xd;
+ &quot;metadata&quot;: {&#xd;
+ &quot;policy-id&quot;: &quot;guard.blacklist.scaleout&quot;&#xd;
+ },&#xd;
+ &quot;properties&quot;: {&#xd;
+ &quot;actor&quot;: &quot;SO&quot;,&#xd;
+ &quot;operation&quot;: &quot;VF Module Create&quot;,&#xd;
+ &quot;id&quot;: &quot;ControlLoop-vDNS-6f37f56d-a87d-4b85-b6a9-cc953cf779b3&quot;,&#xd;
+ &quot;blacklist&quot;: [&#xd;
+ &quot;the-vfmodule-where-root-is-true&quot;,&#xd;
+ &quot;another-vfmodule-where-root-is-true&quot;&#xd;
+ ]&#xd;
+ }&#xd;
}&#xd;
- ]&#xd;
- }&#xd;
+ }&#xd;
+ ]&#xd;
+ }&#xd;
}</stringProp>
<stringProp name="Argument.metadata">=</stringProp>
</elementProp>
@@ -4834,7 +2408,7 @@ if (prev.getResponseCode() == &apos;200&apos;) {
<stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
<stringProp name="HTTPSampler.protocol">https</stringProp>
<stringProp name="HTTPSampler.contentEncoding"></stringProp>
- <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/2.0.0/policies</stringProp>
+ <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.controlloop.guard.common.Blacklist/versions/1.0.0/policies</stringProp>
<stringProp name="HTTPSampler.method">POST</stringProp>
<boolProp name="HTTPSampler.follow_redirects">true</boolProp>
<boolProp name="HTTPSampler.auto_redirects">false</boolProp>
@@ -4875,62 +2449,194 @@ if (prev.getResponseCode() == &apos;200&apos;) {
</JSR223Assertion>
<hashTree/>
</hashTree>
- <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create TCA Policy V9" enabled="true">
+ <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create Policy Native APEX" enabled="true">
<boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
<elementProp name="HTTPsampler.Arguments" elementType="Arguments">
<collectionProp name="Arguments.arguments">
<elementProp name="" elementType="HTTPArgument">
<boolProp name="HTTPArgument.always_encode">false</boolProp>
<stringProp name="Argument.value">{&#xd;
- &quot;tosca_definitions_version&quot;: &quot;tosca_simple_yaml_1_0_0&quot;,&#xd;
- &quot;topology_template&quot;: {&#xd;
- &quot;policies&quot;: [&#xd;
- {&#xd;
- &quot;onap.restart.tca&quot;: {&#xd;
- &quot;type&quot;: &quot;onap.policies.monitoring.cdap.tca.hi.lo.app&quot;,&#xd;
- &quot;version&quot;: &quot;9.0.0&quot;,&#xd;
- &quot;type_version&quot;: &quot;2.0.0&quot;,&#xd;
- &quot;metadata&quot;: {&#xd;
- &quot;policy-id&quot;: &quot;onap.restart.tca&quot;&#xd;
- },&#xd;
- &quot;properties&quot;: {&#xd;
- &quot;tca_policy&quot; : {&#xd;
- &quot;domain&quot;: &quot;measurementsForVfScaling&quot;,&#xd;
- &quot;metricsPerEventName&quot;: [&#xd;
- {&#xd;
- &quot;eventName&quot;: &quot;Measurement_vGMUX&quot;,&#xd;
- &quot;controlLoopSchemaType&quot;: &quot;VNF&quot;,&#xd;
- &quot;policyScope&quot;: &quot;DCAE&quot;,&#xd;
- &quot;policyName&quot;: &quot;DCAE.Config_tca-hi-lo&quot;,&#xd;
- &quot;policyVersion&quot;: &quot;v0.0.1&quot;,&#xd;
- &quot;thresholds&quot;: [&#xd;
- {&#xd;
- &quot;closedLoopControlName&quot;: &quot;ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e&quot;,&#xd;
- &quot;version&quot;: &quot;1.0.2&quot;,&#xd;
- &quot;fieldPath&quot;: &quot;$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value&quot;,&#xd;
- &quot;thresholdValue&quot;: 0,&#xd;
- &quot;direction&quot;: &quot;EQUAL&quot;,&#xd;
- &quot;severity&quot;: &quot;MAJOR&quot;,&#xd;
- &quot;closedLoopEventStatus&quot;: &quot;ABATED&quot;&#xd;
- },&#xd;
- {&#xd;
- &quot;closedLoopControlName&quot;: &quot;ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e&quot;,&#xd;
- &quot;version&quot;: &quot;1.0.2&quot;,&#xd;
- &quot;fieldPath&quot;: &quot;$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value&quot;,&#xd;
- &quot;thresholdValue&quot;: 0,&#xd;
- &quot;direction&quot;: &quot;GREATER&quot;,&#xd;
- &quot;severity&quot;: &quot;CRITICAL&quot;,&#xd;
- &quot;closedLoopEventStatus&quot;: &quot;ONSET&quot;&#xd;
- }&#xd;
- ]&#xd;
- }&#xd;
- ]&#xd;
+ &quot;tosca_definitions_version&quot;: &quot;tosca_simple_yaml_1_1_0&quot;,&#xd;
+ &quot;topology_template&quot;: {&#xd;
+ &quot;policies&quot;: [&#xd;
+ {&#xd;
+ &quot;operational.apex.vCPE&quot;: {&#xd;
+ &quot;type&quot;: &quot;onap.policies.native.Apex&quot;,&#xd;
+ &quot;type_version&quot;: &quot;6.0.${__threadNum}&quot;,&#xd;
+ &quot;derived_from&quot;: &quot;tosca.policies.Root&quot;,&#xd;
+ &quot;name&quot;: &quot;operational.apex.vCPE&quot;,&#xd;
+ &quot;version&quot;: &quot;6.0.${__threadNum}&quot;,&#xd;
+ &quot;properties&quot;: {&#xd;
+ &quot;engineServiceParameters&quot;: {&#xd;
+ &quot;name&quot;: &quot;MyApexEngine&quot;,&#xd;
+ &quot;version&quot;: &quot;0.0.1&quot;,&#xd;
+ &quot;id&quot;: 45,&#xd;
+ &quot;instanceCount&quot;: 4,&#xd;
+ &quot;deploymentPort&quot;: 12561,&#xd;
+ &quot;policy_type_impl&quot;: {&#xd;
+ },&#xd;
+ &quot;engineParameters&quot;: {&#xd;
+ &quot;executorParameters&quot;: {&#xd;
+ &quot;JAVASCRIPT&quot;: {&#xd;
+ &quot;parameterClassName&quot;: &quot;org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters&quot;&#xd;
+ }&#xd;
+ },&#xd;
+ &quot;contextParameters&quot;: {&#xd;
+ &quot;parameterClassName&quot;: &quot;org.onap.policy.apex.context.parameters.ContextParameters&quot;,&#xd;
+ &quot;schemaParameters&quot;: {&#xd;
+ &quot;Avro&quot;: {&#xd;
+ &quot;parameterClassName&quot;: &quot;org.onap.policy.apex.plugins.context.schema.avro.AvroSchemaHelperParameters&quot;&#xd;
+ },&#xd;
+ &quot;Java&quot;: {&#xd;
+ &quot;parameterClassName&quot;: &quot;org.onap.policy.apex.context.impl.schema.java.JavaSchemaHelperParameters&quot;,&#xd;
+ &quot;jsonAdapters&quot;: {&#xd;
+ &quot;Instant&quot;: {&#xd;
+ &quot;adaptedClass&quot;: &quot;java.time.Instant&quot;,&#xd;
+ &quot;adaptorClass&quot;: &quot;org.onap.policy.controlloop.util.Serialization$GsonInstantAdapter&quot;&#xd;
}&#xd;
+ }&#xd;
}&#xd;
+ }&#xd;
+ },&#xd;
+ &quot;taskParameters&quot;: [&#xd;
+ {&#xd;
+ &quot;key&quot;: &quot;ParameterKey1&quot;,&#xd;
+ &quot;value&quot;: &quot;ParameterValue1&quot;&#xd;
+ },&#xd;
+ {&#xd;
+ &quot;taskId&quot;: &quot;AAILookupTask:0.0.1&quot;,&#xd;
+ &quot;key&quot;: &quot;SomeKeyForThisTask&quot;,&#xd;
+ &quot;value&quot;: &quot;Value&quot;&#xd;
+ }&#xd;
+ ]&#xd;
+ }&#xd;
+ },&#xd;
+ &quot;eventInputParameters&quot;: {&#xd;
+ &quot;GuardRequestorConsumer&quot;: {&#xd;
+ &quot;carrierTechnologyParameters&quot;: {&#xd;
+ &quot;carrierTechnology&quot;: &quot;RESTREQUESTOR&quot;,&#xd;
+ &quot;parameterClassName&quot;: &quot;org.onap.policy.apex.plugins.event.carrier.restrequestor.RestRequestorCarrierTechnologyParameters&quot;,&#xd;
+ &quot;parameters&quot;: {&#xd;
+ &quot;url&quot;: &quot;http://111.222.333.444:5555/pdp/api/getDecision&quot;,&#xd;
+ &quot;httpMethod&quot;: &quot;POST&quot;,&#xd;
+ &quot;restRequestTimeout&quot;: 2000,&#xd;
+ &quot;httpHeader&quot;: &quot;Authorization:aaaaaaaaa== ClientAuth:bbbbbbbbb=&quot;&#xd;
+ }&#xd;
+ },&#xd;
+ &quot;eventProtocolParameters&quot;: {&#xd;
+ &quot;eventProtocol&quot;: &quot;JSON&quot;&#xd;
+ },&#xd;
+ &quot;eventName&quot;: &quot;GuardResponseEvent&quot;,&#xd;
+ &quot;eventNameFilter&quot;: &quot;GuardResponseEvent&quot;,&#xd;
+ &quot;requestorMode&quot;: true,&#xd;
+ &quot;requestorPeer&quot;: &quot;GuardRequestorProducer&quot;,&#xd;
+ &quot;requestorTimeout&quot;: 500&#xd;
+ },&#xd;
+ &quot;DCAEConsumer&quot;: {&#xd;
+ &quot;carrierTechnologyParameters&quot;: {&#xd;
+ &quot;carrierTechnology&quot;: &quot;RESTCLIENT&quot;,&#xd;
+ &quot;parameterClassName&quot;: &quot;org.onap.policy.apex.plugins.event.carrier.restclient.RestClientCarrierTechnologyParameters&quot;,&#xd;
+ &quot;parameters&quot;: {&#xd;
+ &quot;url&quot;: &quot;http://message-router:3904/events/unauthenticated.DCAE_CL_OUTPUT/APEX/1?timeout=60000&quot;&#xd;
+ }&#xd;
+ },&#xd;
+ &quot;eventProtocolParameters&quot;: {&#xd;
+ &quot;eventProtocol&quot;: &quot;JSON&quot;,&#xd;
+ &quot;parameters&quot;: {&#xd;
+ &quot;nameAlias&quot;: &quot;closedLoopControlName&quot;,&#xd;
+ &quot;versionAlias&quot;: &quot;version&quot;,&#xd;
+ &quot;sourceAlias&quot;: &quot;from&quot;,&#xd;
+ &quot;pojoField&quot;: &quot;VirtualControlLoopEvent&quot;&#xd;
+ }&#xd;
+ },&#xd;
+ &quot;eventName&quot;: &quot;ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e&quot;&#xd;
+ },&#xd;
+ &quot;APPCConsumer&quot;: {&#xd;
+ &quot;carrierTechnologyParameters&quot;: {&#xd;
+ &quot;carrierTechnology&quot;: &quot;RESTCLIENT&quot;,&#xd;
+ &quot;parameterClassName&quot;: &quot;org.onap.policy.apex.plugins.event.carrier.restclient.RestClientCarrierTechnologyParameters&quot;,&#xd;
+ &quot;parameters&quot;: {&#xd;
+ &quot;url&quot;: &quot;http://message-router:3904/events/APPC-LCM-WRITE/APEX/1?timeout=60000&quot;&#xd;
+ }&#xd;
+ },&#xd;
+ &quot;eventProtocolParameters&quot;: {&#xd;
+ &quot;eventProtocol&quot;: &quot;JSON&quot;,&#xd;
+ &quot;parameters&quot;: {&#xd;
+ &quot;versionAlias&quot;: &quot;version&quot;,&#xd;
+ &quot;pojoField&quot;: &quot;APPCLCMResponseEvent&quot;&#xd;
+ }&#xd;
+ },&#xd;
+ &quot;eventName&quot;: &quot;APPCRestartVNFResponseEvent&quot;,&#xd;
+ &quot;eventNameFilter&quot;: &quot;APPCRestartVNFResponseEvent&quot;&#xd;
+ }&#xd;
+ },&#xd;
+ &quot;eventOutputParameters&quot;: {&#xd;
+ &quot;logProducer&quot;: {&#xd;
+ &quot;carrierTechnologyParameters&quot;: {&#xd;
+ &quot;carrierTechnology&quot;: &quot;FILE&quot;,&#xd;
+ &quot;parameters&quot;: {&#xd;
+ &quot;fileName&quot;: &quot;/tmp/VCPEEventsOut.json&quot;&#xd;
+ }&#xd;
+ },&#xd;
+ &quot;eventProtocolParameters&quot;: {&#xd;
+ &quot;eventProtocol&quot;: &quot;JSON&quot;&#xd;
}&#xd;
+ },&#xd;
+ &quot;GuardRequestorProducer&quot;: {&#xd;
+ &quot;carrierTechnologyParameters&quot;: {&#xd;
+ &quot;carrierTechnology&quot;: &quot;RESTREQUESTOR&quot;,&#xd;
+ &quot;parameterClassName&quot;: &quot;org.onap.policy.apex.plugins.event.carrier.restrequestor.RestRequestorCarrierTechnologyParameters&quot;&#xd;
+ },&#xd;
+ &quot;eventProtocolParameters&quot;: {&#xd;
+ &quot;eventProtocol&quot;: &quot;JSON&quot;&#xd;
+ },&#xd;
+ &quot;eventNameFilter&quot;: &quot;GuardRequestEvent&quot;,&#xd;
+ &quot;requestorMode&quot;: true,&#xd;
+ &quot;requestorPeer&quot;: &quot;GuardRequestorConsumer&quot;,&#xd;
+ &quot;requestorTimeout&quot;: 500&#xd;
+ },&#xd;
+ &quot;APPCProducer&quot;: {&#xd;
+ &quot;carrierTechnologyParameters&quot;: {&#xd;
+ &quot;carrierTechnology&quot;: &quot;RESTCLIENT&quot;,&#xd;
+ &quot;parameterClassName&quot;: &quot;org.onap.policy.apex.plugins.event.carrier.restclient.RestClientCarrierTechnologyParameters&quot;,&#xd;
+ &quot;parameters&quot;: {&#xd;
+ &quot;url&quot;: &quot;http://message-router:3904/events/APPC-LCM-READ&quot;&#xd;
+ }&#xd;
+ },&#xd;
+ &quot;eventProtocolParameters&quot;: {&#xd;
+ &quot;eventProtocol&quot;: &quot;JSON&quot;,&#xd;
+ &quot;parameters&quot;: {&#xd;
+ &quot;versionAlias&quot;: &quot;version&quot;,&#xd;
+ &quot;sourceAlias&quot;: &quot;from&quot;,&#xd;
+ &quot;pojoField&quot;: &quot;APPCLCMRequestEvent&quot;&#xd;
+ }&#xd;
+ },&#xd;
+ &quot;eventNameFilter&quot;: &quot;APPCRestartVNFRequestEvent&quot;&#xd;
+ },&#xd;
+ &quot;PolicyLogProducer&quot;: {&#xd;
+ &quot;carrierTechnologyParameters&quot;: {&#xd;
+ &quot;carrierTechnology&quot;: &quot;RESTCLIENT&quot;,&#xd;
+ &quot;parameterClassName&quot;: &quot;org.onap.policy.apex.plugins.event.carrier.restclient.RestClientCarrierTechnologyParameters&quot;,&#xd;
+ &quot;parameters&quot;: {&#xd;
+ &quot;url&quot;: &quot;http://message-router:3904/events/POLICY-CL-MGT&quot;&#xd;
+ }&#xd;
+ },&#xd;
+ &quot;eventProtocolParameters&quot;: {&#xd;
+ &quot;eventProtocol&quot;: &quot;JSON&quot;,&#xd;
+ &quot;parameters&quot;: {&#xd;
+ &quot;versionAlias&quot;: &quot;version&quot;,&#xd;
+ &quot;sourceAlias&quot;: &quot;from&quot;,&#xd;
+ &quot;pojoField&quot;: &quot;VirtualControlLoopNotification&quot;&#xd;
+ }&#xd;
+ },&#xd;
+ &quot;eventNameFilter&quot;: &quot;ControlLoopLogEvent&quot;&#xd;
+ }&#xd;
}&#xd;
- ]&#xd;
- }&#xd;
+ }&#xd;
+ }&#xd;
+ }&#xd;
+ ]&#xd;
+ }&#xd;
}</stringProp>
<stringProp name="Argument.metadata">=</stringProp>
</elementProp>
@@ -4940,7 +2646,7 @@ if (prev.getResponseCode() == &apos;200&apos;) {
<stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
<stringProp name="HTTPSampler.protocol">https</stringProp>
<stringProp name="HTTPSampler.contentEncoding"></stringProp>
- <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/2.0.0/policies</stringProp>
+ <stringProp name="HTTPSampler.path">/policy/api/v1/policies</stringProp>
<stringProp name="HTTPSampler.method">POST</stringProp>
<boolProp name="HTTPSampler.follow_redirects">true</boolProp>
<boolProp name="HTTPSampler.auto_redirects">false</boolProp>
@@ -4981,56 +2687,33 @@ if (prev.getResponseCode() == &apos;200&apos;) {
</JSR223Assertion>
<hashTree/>
</hashTree>
- <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create TCA Policy V10" enabled="true">
+ <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create Policy Native Drools" enabled="true">
<boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
<elementProp name="HTTPsampler.Arguments" elementType="Arguments">
<collectionProp name="Arguments.arguments">
<elementProp name="" elementType="HTTPArgument">
<boolProp name="HTTPArgument.always_encode">false</boolProp>
<stringProp name="Argument.value">{&#xd;
- &quot;tosca_definitions_version&quot;: &quot;tosca_simple_yaml_1_0_0&quot;,&#xd;
+ &quot;tosca_definitions_version&quot;: &quot;tosca_simple_yaml_1_1_0&quot;,&#xd;
&quot;topology_template&quot;: {&#xd;
&quot;policies&quot;: [&#xd;
{&#xd;
- &quot;onap.restart.tca&quot;: {&#xd;
- &quot;type&quot;: &quot;onap.policies.monitoring.cdap.tca.hi.lo.app&quot;,&#xd;
- &quot;version&quot;: &quot;10.0.0&quot;,&#xd;
- &quot;type_version&quot;: &quot;2.0.0&quot;,&#xd;
+ &quot;usecases.artifacts&quot;: {&#xd;
+ &quot;type&quot;: &quot;onap.policies.native.drools.Artifact&quot;,&#xd;
+ &quot;type_version&quot;: &quot;6.0.${__threadNum}&quot;,&#xd;
+ &quot;name&quot;: &quot;usecases.artifacts&quot;,&#xd;
+ &quot;version&quot;: &quot;6.0.${__threadNum}&quot;,&#xd;
&quot;metadata&quot;: {&#xd;
- &quot;policy-id&quot;: &quot;onap.restart.tca&quot;&#xd;
+ &quot;policy-id&quot;: &quot;usecases.artifacts&quot;&#xd;
},&#xd;
&quot;properties&quot;: {&#xd;
- &quot;tca_policy&quot; : {&#xd;
- &quot;domain&quot;: &quot;measurementsForVfScaling&quot;,&#xd;
- &quot;metricsPerEventName&quot;: [&#xd;
- {&#xd;
- &quot;eventName&quot;: &quot;Measurement_vGMUX&quot;,&#xd;
- &quot;controlLoopSchemaType&quot;: &quot;VNF&quot;,&#xd;
- &quot;policyScope&quot;: &quot;DCAE&quot;,&#xd;
- &quot;policyName&quot;: &quot;DCAE.Config_tca-hi-lo&quot;,&#xd;
- &quot;policyVersion&quot;: &quot;v0.0.1&quot;,&#xd;
- &quot;thresholds&quot;: [&#xd;
- {&#xd;
- &quot;closedLoopControlName&quot;: &quot;ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e&quot;,&#xd;
- &quot;version&quot;: &quot;1.0.2&quot;,&#xd;
- &quot;fieldPath&quot;: &quot;$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value&quot;,&#xd;
- &quot;thresholdValue&quot;: 0,&#xd;
- &quot;direction&quot;: &quot;EQUAL&quot;,&#xd;
- &quot;severity&quot;: &quot;MAJOR&quot;,&#xd;
- &quot;closedLoopEventStatus&quot;: &quot;ABATED&quot;&#xd;
- },&#xd;
- {&#xd;
- &quot;closedLoopControlName&quot;: &quot;ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e&quot;,&#xd;
- &quot;version&quot;: &quot;1.0.2&quot;,&#xd;
- &quot;fieldPath&quot;: &quot;$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value&quot;,&#xd;
- &quot;thresholdValue&quot;: 0,&#xd;
- &quot;direction&quot;: &quot;GREATER&quot;,&#xd;
- &quot;severity&quot;: &quot;CRITICAL&quot;,&#xd;
- &quot;closedLoopEventStatus&quot;: &quot;ONSET&quot;&#xd;
- }&#xd;
- ]&#xd;
- }&#xd;
- ]&#xd;
+ &quot;rulesArtifact&quot;: {&#xd;
+ &quot;groupId&quot;: &quot;org.onap.policy.drools-applications.controlloop.common&quot;,&#xd;
+ &quot;artifactId&quot;: &quot;controller-usecases&quot;,&#xd;
+ &quot;version&quot;: &quot;1.6.1&quot;&#xd;
+ },&#xd;
+ &quot;controller&quot;: {&#xd;
+ &quot;name&quot;: &quot;frankfurt&quot;&#xd;
}&#xd;
}&#xd;
}&#xd;
@@ -5046,7 +2729,7 @@ if (prev.getResponseCode() == &apos;200&apos;) {
<stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
<stringProp name="HTTPSampler.protocol">https</stringProp>
<stringProp name="HTTPSampler.contentEncoding"></stringProp>
- <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/2.0.0/policies</stringProp>
+ <stringProp name="HTTPSampler.path">/policy/api/v1/policies</stringProp>
<stringProp name="HTTPSampler.method">POST</stringProp>
<boolProp name="HTTPSampler.follow_redirects">true</boolProp>
<boolProp name="HTTPSampler.auto_redirects">false</boolProp>
@@ -5087,26 +2770,26 @@ if (prev.getResponseCode() == &apos;200&apos;) {
</JSR223Assertion>
<hashTree/>
</hashTree>
- <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create TCA Policy V11" enabled="true">
+ <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create Policy Native XACML" enabled="true">
<boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
<elementProp name="HTTPsampler.Arguments" elementType="Arguments">
<collectionProp name="Arguments.arguments">
<elementProp name="" elementType="HTTPArgument">
<boolProp name="HTTPArgument.always_encode">false</boolProp>
<stringProp name="Argument.value">{&#xd;
- &quot;tosca_definitions_version&quot;: &quot;tosca_simple_yaml_1_0_0&quot;,&#xd;
+ &quot;tosca_definitions_version&quot;: &quot;tosca_simple_yaml_1_1_0&quot;,&#xd;
&quot;topology_template&quot;: {&#xd;
&quot;policies&quot;: [&#xd;
{&#xd;
- &quot;onap.restart.tca&quot;: {&#xd;
- &quot;type&quot;: &quot;onap.policies.monitoring.cdap.tca.hi.lo.app&quot;,&#xd;
- &quot;version&quot;: &quot;11.0.0&quot;,&#xd;
- &quot;type_version&quot;: &quot;2.0.0&quot;,&#xd;
+ &quot;onap.policies.native.xacml.NativeXacmlPolicy&quot;: {&#xd;
+ &quot;type&quot;: &quot;onap.policies.native.Xacml&quot;,&#xd;
+ &quot;type_version&quot;: &quot;6.0.${__threadNum}&quot;,&#xd;
+ &quot;version&quot;: &quot;6.0.${__threadNum}&quot;,&#xd;
&quot;metadata&quot;: {&#xd;
- &quot;policy-id&quot;: &quot;onap.restart.tca&quot;&#xd;
+ &quot;policy-id&quot;: &quot;onap.policies.native.xacml.NativeXacmlPolicy&quot;&#xd;
},&#xd;
&quot;properties&quot;: {&#xd;
- &quot;tca_policy&quot; : {&#xd;
+ &quot;tca_policy&quot;: {&#xd;
&quot;domain&quot;: &quot;measurementsForVfScaling&quot;,&#xd;
&quot;metricsPerEventName&quot;: [&#xd;
{&#xd;
@@ -5193,556 +2876,6 @@ if (prev.getResponseCode() == &apos;200&apos;) {
</JSR223Assertion>
<hashTree/>
</hashTree>
- <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Simple Create TCA Policies" enabled="true">
- <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
- <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
- <collectionProp name="Arguments.arguments">
- <elementProp name="" elementType="HTTPArgument">
- <boolProp name="HTTPArgument.always_encode">false</boolProp>
- <stringProp name="Argument.value">{&#xd;
- &quot;tosca_definitions_version&quot;: &quot;tosca_simple_yaml_1_0_0&quot;,&#xd;
- &quot;topology_template&quot;: {&#xd;
- &quot;policies&quot;: [&#xd;
- {&#xd;
- &quot;onap.restart.tca&quot;: {&#xd;
- &quot;type&quot;: &quot;onap.policies.monitoring.cdap.tca.hi.lo.app&quot;,&#xd;
- &quot;version&quot;: &quot;1.0.0&quot;,&#xd;
- &quot;type_version&quot;: &quot;2.0.0&quot;,&#xd;
- &quot;metadata&quot;: {&#xd;
- &quot;policy-id&quot;: &quot;onap.restart.tca&quot;&#xd;
- },&#xd;
- &quot;properties&quot;: {&#xd;
- &quot;tca_policy&quot;: {&#xd;
- &quot;domain&quot;: &quot;measurementsForVfScaling&quot;,&#xd;
- &quot;metricsPerEventName&quot;: [&#xd;
- {&#xd;
- &quot;eventName&quot;: &quot;Measurement_vGMUX&quot;,&#xd;
- &quot;controlLoopSchemaType&quot;: &quot;VNF&quot;,&#xd;
- &quot;policyScope&quot;: &quot;DCAE&quot;,&#xd;
- &quot;policyName&quot;: &quot;DCAE.Config_tca-hi-lo&quot;,&#xd;
- &quot;policyVersion&quot;: &quot;v0.0.1&quot;,&#xd;
- &quot;thresholds&quot;: [&#xd;
- {&#xd;
- &quot;closedLoopControlName&quot;: &quot;ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e&quot;,&#xd;
- &quot;version&quot;: &quot;1.0.2&quot;,&#xd;
- &quot;fieldPath&quot;: &quot;$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value&quot;,&#xd;
- &quot;thresholdValue&quot;: 0,&#xd;
- &quot;direction&quot;: &quot;EQUAL&quot;,&#xd;
- &quot;severity&quot;: &quot;MAJOR&quot;,&#xd;
- &quot;closedLoopEventStatus&quot;: &quot;ABATED&quot;&#xd;
- },&#xd;
- {&#xd;
- &quot;closedLoopControlName&quot;: &quot;ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e&quot;,&#xd;
- &quot;version&quot;: &quot;1.0.2&quot;,&#xd;
- &quot;fieldPath&quot;: &quot;$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value&quot;,&#xd;
- &quot;thresholdValue&quot;: 0,&#xd;
- &quot;direction&quot;: &quot;GREATER&quot;,&#xd;
- &quot;severity&quot;: &quot;CRITICAL&quot;,&#xd;
- &quot;closedLoopEventStatus&quot;: &quot;ONSET&quot;&#xd;
- }&#xd;
- ]&#xd;
- }&#xd;
- ]&#xd;
- }&#xd;
- }&#xd;
- }&#xd;
- },&#xd;
- {&#xd;
- &quot;onap.restart.tca&quot;: {&#xd;
- &quot;type&quot;: &quot;onap.policies.monitoring.cdap.tca.hi.lo.app&quot;,&#xd;
- &quot;version&quot;: &quot;2.0.0&quot;,&#xd;
- &quot;type_version&quot;: &quot;2.0.0&quot;,&#xd;
- &quot;metadata&quot;: {&#xd;
- &quot;policy-id&quot;: &quot;onap.restart.tca&quot;&#xd;
- },&#xd;
- &quot;properties&quot;: {&#xd;
- &quot;tca_policy&quot;: {&#xd;
- &quot;domain&quot;: &quot;measurementsForVfScaling&quot;,&#xd;
- &quot;metricsPerEventName&quot;: [&#xd;
- {&#xd;
- &quot;eventName&quot;: &quot;Measurement_vGMUX&quot;,&#xd;
- &quot;controlLoopSchemaType&quot;: &quot;VNF&quot;,&#xd;
- &quot;policyScope&quot;: &quot;DCAE&quot;,&#xd;
- &quot;policyName&quot;: &quot;DCAE.Config_tca-hi-lo&quot;,&#xd;
- &quot;policyVersion&quot;: &quot;v0.0.1&quot;,&#xd;
- &quot;thresholds&quot;: [&#xd;
- {&#xd;
- &quot;closedLoopControlName&quot;: &quot;ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e&quot;,&#xd;
- &quot;version&quot;: &quot;1.0.2&quot;,&#xd;
- &quot;fieldPath&quot;: &quot;$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value&quot;,&#xd;
- &quot;thresholdValue&quot;: 0,&#xd;
- &quot;direction&quot;: &quot;EQUAL&quot;,&#xd;
- &quot;severity&quot;: &quot;MAJOR&quot;,&#xd;
- &quot;closedLoopEventStatus&quot;: &quot;ABATED&quot;&#xd;
- },&#xd;
- {&#xd;
- &quot;closedLoopControlName&quot;: &quot;ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e&quot;,&#xd;
- &quot;version&quot;: &quot;1.0.2&quot;,&#xd;
- &quot;fieldPath&quot;: &quot;$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value&quot;,&#xd;
- &quot;thresholdValue&quot;: 0,&#xd;
- &quot;direction&quot;: &quot;GREATER&quot;,&#xd;
- &quot;severity&quot;: &quot;CRITICAL&quot;,&#xd;
- &quot;closedLoopEventStatus&quot;: &quot;ONSET&quot;&#xd;
- }&#xd;
- ]&#xd;
- }&#xd;
- ]&#xd;
- }&#xd;
- }&#xd;
- }&#xd;
- },&#xd;
- {&#xd;
- &quot;onap.restart.tca&quot;: {&#xd;
- &quot;type&quot;: &quot;onap.policies.monitoring.cdap.tca.hi.lo.app&quot;,&#xd;
- &quot;version&quot;: &quot;3.0.0&quot;,&#xd;
- &quot;type_version&quot;: &quot;2.0.0&quot;,&#xd;
- &quot;metadata&quot;: {&#xd;
- &quot;policy-id&quot;: &quot;onap.restart.tca&quot;&#xd;
- },&#xd;
- &quot;properties&quot;: {&#xd;
- &quot;tca_policy&quot;: {&#xd;
- &quot;domain&quot;: &quot;measurementsForVfScaling&quot;,&#xd;
- &quot;metricsPerEventName&quot;: [&#xd;
- {&#xd;
- &quot;eventName&quot;: &quot;Measurement_vGMUX&quot;,&#xd;
- &quot;controlLoopSchemaType&quot;: &quot;VNF&quot;,&#xd;
- &quot;policyScope&quot;: &quot;DCAE&quot;,&#xd;
- &quot;policyName&quot;: &quot;DCAE.Config_tca-hi-lo&quot;,&#xd;
- &quot;policyVersion&quot;: &quot;v0.0.1&quot;,&#xd;
- &quot;thresholds&quot;: [&#xd;
- {&#xd;
- &quot;closedLoopControlName&quot;: &quot;ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e&quot;,&#xd;
- &quot;version&quot;: &quot;1.0.2&quot;,&#xd;
- &quot;fieldPath&quot;: &quot;$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value&quot;,&#xd;
- &quot;thresholdValue&quot;: 0,&#xd;
- &quot;direction&quot;: &quot;EQUAL&quot;,&#xd;
- &quot;severity&quot;: &quot;MAJOR&quot;,&#xd;
- &quot;closedLoopEventStatus&quot;: &quot;ABATED&quot;&#xd;
- },&#xd;
- {&#xd;
- &quot;closedLoopControlName&quot;: &quot;ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e&quot;,&#xd;
- &quot;version&quot;: &quot;1.0.2&quot;,&#xd;
- &quot;fieldPath&quot;: &quot;$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value&quot;,&#xd;
- &quot;thresholdValue&quot;: 0,&#xd;
- &quot;direction&quot;: &quot;GREATER&quot;,&#xd;
- &quot;severity&quot;: &quot;CRITICAL&quot;,&#xd;
- &quot;closedLoopEventStatus&quot;: &quot;ONSET&quot;&#xd;
- }&#xd;
- ]&#xd;
- }&#xd;
- ]&#xd;
- }&#xd;
- }&#xd;
- }&#xd;
- },&#xd;
- {&#xd;
- &quot;onap.restart.tca&quot;: {&#xd;
- &quot;type&quot;: &quot;onap.policies.monitoring.cdap.tca.hi.lo.app&quot;,&#xd;
- &quot;version&quot;: &quot;4.0.0&quot;,&#xd;
- &quot;type_version&quot;: &quot;2.0.0&quot;,&#xd;
- &quot;metadata&quot;: {&#xd;
- &quot;policy-id&quot;: &quot;onap.restart.tca&quot;&#xd;
- },&#xd;
- &quot;properties&quot;: {&#xd;
- &quot;tca_policy&quot;: {&#xd;
- &quot;domain&quot;: &quot;measurementsForVfScaling&quot;,&#xd;
- &quot;metricsPerEventName&quot;: [&#xd;
- {&#xd;
- &quot;eventName&quot;: &quot;Measurement_vGMUX&quot;,&#xd;
- &quot;controlLoopSchemaType&quot;: &quot;VNF&quot;,&#xd;
- &quot;policyScope&quot;: &quot;DCAE&quot;,&#xd;
- &quot;policyName&quot;: &quot;DCAE.Config_tca-hi-lo&quot;,&#xd;
- &quot;policyVersion&quot;: &quot;v0.0.1&quot;,&#xd;
- &quot;thresholds&quot;: [&#xd;
- {&#xd;
- &quot;closedLoopControlName&quot;: &quot;ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e&quot;,&#xd;
- &quot;version&quot;: &quot;1.0.2&quot;,&#xd;
- &quot;fieldPath&quot;: &quot;$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value&quot;,&#xd;
- &quot;thresholdValue&quot;: 0,&#xd;
- &quot;direction&quot;: &quot;EQUAL&quot;,&#xd;
- &quot;severity&quot;: &quot;MAJOR&quot;,&#xd;
- &quot;closedLoopEventStatus&quot;: &quot;ABATED&quot;&#xd;
- },&#xd;
- {&#xd;
- &quot;closedLoopControlName&quot;: &quot;ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e&quot;,&#xd;
- &quot;version&quot;: &quot;1.0.2&quot;,&#xd;
- &quot;fieldPath&quot;: &quot;$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value&quot;,&#xd;
- &quot;thresholdValue&quot;: 0,&#xd;
- &quot;direction&quot;: &quot;GREATER&quot;,&#xd;
- &quot;severity&quot;: &quot;CRITICAL&quot;,&#xd;
- &quot;closedLoopEventStatus&quot;: &quot;ONSET&quot;&#xd;
- }&#xd;
- ]&#xd;
- }&#xd;
- ]&#xd;
- }&#xd;
- }&#xd;
- }&#xd;
- },&#xd;
- {&#xd;
- &quot;onap.restart.tca&quot;: {&#xd;
- &quot;type&quot;: &quot;onap.policies.monitoring.cdap.tca.hi.lo.app&quot;,&#xd;
- &quot;version&quot;: &quot;5.0.0&quot;,&#xd;
- &quot;type_version&quot;: &quot;2.0.0&quot;,&#xd;
- &quot;metadata&quot;: {&#xd;
- &quot;policy-id&quot;: &quot;onap.restart.tca&quot;&#xd;
- },&#xd;
- &quot;properties&quot;: {&#xd;
- &quot;tca_policy&quot;: {&#xd;
- &quot;domain&quot;: &quot;measurementsForVfScaling&quot;,&#xd;
- &quot;metricsPerEventName&quot;: [&#xd;
- {&#xd;
- &quot;eventName&quot;: &quot;Measurement_vGMUX&quot;,&#xd;
- &quot;controlLoopSchemaType&quot;: &quot;VNF&quot;,&#xd;
- &quot;policyScope&quot;: &quot;DCAE&quot;,&#xd;
- &quot;policyName&quot;: &quot;DCAE.Config_tca-hi-lo&quot;,&#xd;
- &quot;policyVersion&quot;: &quot;v0.0.1&quot;,&#xd;
- &quot;thresholds&quot;: [&#xd;
- {&#xd;
- &quot;closedLoopControlName&quot;: &quot;ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e&quot;,&#xd;
- &quot;version&quot;: &quot;1.0.2&quot;,&#xd;
- &quot;fieldPath&quot;: &quot;$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value&quot;,&#xd;
- &quot;thresholdValue&quot;: 0,&#xd;
- &quot;direction&quot;: &quot;EQUAL&quot;,&#xd;
- &quot;severity&quot;: &quot;MAJOR&quot;,&#xd;
- &quot;closedLoopEventStatus&quot;: &quot;ABATED&quot;&#xd;
- },&#xd;
- {&#xd;
- &quot;closedLoopControlName&quot;: &quot;ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e&quot;,&#xd;
- &quot;version&quot;: &quot;1.0.2&quot;,&#xd;
- &quot;fieldPath&quot;: &quot;$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value&quot;,&#xd;
- &quot;thresholdValue&quot;: 0,&#xd;
- &quot;direction&quot;: &quot;GREATER&quot;,&#xd;
- &quot;severity&quot;: &quot;CRITICAL&quot;,&#xd;
- &quot;closedLoopEventStatus&quot;: &quot;ONSET&quot;&#xd;
- }&#xd;
- ]&#xd;
- }&#xd;
- ]&#xd;
- }&#xd;
- }&#xd;
- }&#xd;
- },&#xd;
- {&#xd;
- &quot;onap.restart.tca&quot;: {&#xd;
- &quot;type&quot;: &quot;onap.policies.monitoring.cdap.tca.hi.lo.app&quot;,&#xd;
- &quot;version&quot;: &quot;6.0.0&quot;,&#xd;
- &quot;type_version&quot;: &quot;2.0.0&quot;,&#xd;
- &quot;metadata&quot;: {&#xd;
- &quot;policy-id&quot;: &quot;onap.restart.tca&quot;&#xd;
- },&#xd;
- &quot;properties&quot;: {&#xd;
- &quot;tca_policy&quot;: {&#xd;
- &quot;domain&quot;: &quot;measurementsForVfScaling&quot;,&#xd;
- &quot;metricsPerEventName&quot;: [&#xd;
- {&#xd;
- &quot;eventName&quot;: &quot;Measurement_vGMUX&quot;,&#xd;
- &quot;controlLoopSchemaType&quot;: &quot;VNF&quot;,&#xd;
- &quot;policyScope&quot;: &quot;DCAE&quot;,&#xd;
- &quot;policyName&quot;: &quot;DCAE.Config_tca-hi-lo&quot;,&#xd;
- &quot;policyVersion&quot;: &quot;v0.0.1&quot;,&#xd;
- &quot;thresholds&quot;: [&#xd;
- {&#xd;
- &quot;closedLoopControlName&quot;: &quot;ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e&quot;,&#xd;
- &quot;version&quot;: &quot;1.0.2&quot;,&#xd;
- &quot;fieldPath&quot;: &quot;$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value&quot;,&#xd;
- &quot;thresholdValue&quot;: 0,&#xd;
- &quot;direction&quot;: &quot;EQUAL&quot;,&#xd;
- &quot;severity&quot;: &quot;MAJOR&quot;,&#xd;
- &quot;closedLoopEventStatus&quot;: &quot;ABATED&quot;&#xd;
- },&#xd;
- {&#xd;
- &quot;closedLoopControlName&quot;: &quot;ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e&quot;,&#xd;
- &quot;version&quot;: &quot;1.0.2&quot;,&#xd;
- &quot;fieldPath&quot;: &quot;$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value&quot;,&#xd;
- &quot;thresholdValue&quot;: 0,&#xd;
- &quot;direction&quot;: &quot;GREATER&quot;,&#xd;
- &quot;severity&quot;: &quot;CRITICAL&quot;,&#xd;
- &quot;closedLoopEventStatus&quot;: &quot;ONSET&quot;&#xd;
- }&#xd;
- ]&#xd;
- }&#xd;
- ]&#xd;
- }&#xd;
- }&#xd;
- }&#xd;
- },&#xd;
- {&#xd;
- &quot;onap.restart.tca&quot;: {&#xd;
- &quot;type&quot;: &quot;onap.policies.monitoring.cdap.tca.hi.lo.app&quot;,&#xd;
- &quot;version&quot;: &quot;7.0.0&quot;,&#xd;
- &quot;type_version&quot;: &quot;2.0.0&quot;,&#xd;
- &quot;metadata&quot;: {&#xd;
- &quot;policy-id&quot;: &quot;onap.restart.tca&quot;&#xd;
- },&#xd;
- &quot;properties&quot;: {&#xd;
- &quot;tca_policy&quot;: {&#xd;
- &quot;domain&quot;: &quot;measurementsForVfScaling&quot;,&#xd;
- &quot;metricsPerEventName&quot;: [&#xd;
- {&#xd;
- &quot;eventName&quot;: &quot;Measurement_vGMUX&quot;,&#xd;
- &quot;controlLoopSchemaType&quot;: &quot;VNF&quot;,&#xd;
- &quot;policyScope&quot;: &quot;DCAE&quot;,&#xd;
- &quot;policyName&quot;: &quot;DCAE.Config_tca-hi-lo&quot;,&#xd;
- &quot;policyVersion&quot;: &quot;v0.0.1&quot;,&#xd;
- &quot;thresholds&quot;: [&#xd;
- {&#xd;
- &quot;closedLoopControlName&quot;: &quot;ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e&quot;,&#xd;
- &quot;version&quot;: &quot;1.0.2&quot;,&#xd;
- &quot;fieldPath&quot;: &quot;$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value&quot;,&#xd;
- &quot;thresholdValue&quot;: 0,&#xd;
- &quot;direction&quot;: &quot;EQUAL&quot;,&#xd;
- &quot;severity&quot;: &quot;MAJOR&quot;,&#xd;
- &quot;closedLoopEventStatus&quot;: &quot;ABATED&quot;&#xd;
- },&#xd;
- {&#xd;
- &quot;closedLoopControlName&quot;: &quot;ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e&quot;,&#xd;
- &quot;version&quot;: &quot;1.0.2&quot;,&#xd;
- &quot;fieldPath&quot;: &quot;$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value&quot;,&#xd;
- &quot;thresholdValue&quot;: 0,&#xd;
- &quot;direction&quot;: &quot;GREATER&quot;,&#xd;
- &quot;severity&quot;: &quot;CRITICAL&quot;,&#xd;
- &quot;closedLoopEventStatus&quot;: &quot;ONSET&quot;&#xd;
- }&#xd;
- ]&#xd;
- }&#xd;
- ]&#xd;
- }&#xd;
- }&#xd;
- }&#xd;
- },&#xd;
- {&#xd;
- &quot;onap.restart.tca&quot;: {&#xd;
- &quot;type&quot;: &quot;onap.policies.monitoring.cdap.tca.hi.lo.app&quot;,&#xd;
- &quot;version&quot;: &quot;8.0.0&quot;,&#xd;
- &quot;type_version&quot;: &quot;2.0.0&quot;,&#xd;
- &quot;metadata&quot;: {&#xd;
- &quot;policy-id&quot;: &quot;onap.restart.tca&quot;&#xd;
- },&#xd;
- &quot;properties&quot;: {&#xd;
- &quot;tca_policy&quot;: {&#xd;
- &quot;domain&quot;: &quot;measurementsForVfScaling&quot;,&#xd;
- &quot;metricsPerEventName&quot;: [&#xd;
- {&#xd;
- &quot;eventName&quot;: &quot;Measurement_vGMUX&quot;,&#xd;
- &quot;controlLoopSchemaType&quot;: &quot;VNF&quot;,&#xd;
- &quot;policyScope&quot;: &quot;DCAE&quot;,&#xd;
- &quot;policyName&quot;: &quot;DCAE.Config_tca-hi-lo&quot;,&#xd;
- &quot;policyVersion&quot;: &quot;v0.0.1&quot;,&#xd;
- &quot;thresholds&quot;: [&#xd;
- {&#xd;
- &quot;closedLoopControlName&quot;: &quot;ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e&quot;,&#xd;
- &quot;version&quot;: &quot;1.0.2&quot;,&#xd;
- &quot;fieldPath&quot;: &quot;$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value&quot;,&#xd;
- &quot;thresholdValue&quot;: 0,&#xd;
- &quot;direction&quot;: &quot;EQUAL&quot;,&#xd;
- &quot;severity&quot;: &quot;MAJOR&quot;,&#xd;
- &quot;closedLoopEventStatus&quot;: &quot;ABATED&quot;&#xd;
- },&#xd;
- {&#xd;
- &quot;closedLoopControlName&quot;: &quot;ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e&quot;,&#xd;
- &quot;version&quot;: &quot;1.0.2&quot;,&#xd;
- &quot;fieldPath&quot;: &quot;$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value&quot;,&#xd;
- &quot;thresholdValue&quot;: 0,&#xd;
- &quot;direction&quot;: &quot;GREATER&quot;,&#xd;
- &quot;severity&quot;: &quot;CRITICAL&quot;,&#xd;
- &quot;closedLoopEventStatus&quot;: &quot;ONSET&quot;&#xd;
- }&#xd;
- ]&#xd;
- }&#xd;
- ]&#xd;
- }&#xd;
- }&#xd;
- }&#xd;
- },&#xd;
- {&#xd;
- &quot;onap.restart.tca&quot;: {&#xd;
- &quot;type&quot;: &quot;onap.policies.monitoring.cdap.tca.hi.lo.app&quot;,&#xd;
- &quot;version&quot;: &quot;9.0.0&quot;,&#xd;
- &quot;type_version&quot;: &quot;2.0.0&quot;,&#xd;
- &quot;metadata&quot;: {&#xd;
- &quot;policy-id&quot;: &quot;onap.restart.tca&quot;&#xd;
- },&#xd;
- &quot;properties&quot;: {&#xd;
- &quot;tca_policy&quot;: {&#xd;
- &quot;domain&quot;: &quot;measurementsForVfScaling&quot;,&#xd;
- &quot;metricsPerEventName&quot;: [&#xd;
- {&#xd;
- &quot;eventName&quot;: &quot;Measurement_vGMUX&quot;,&#xd;
- &quot;controlLoopSchemaType&quot;: &quot;VNF&quot;,&#xd;
- &quot;policyScope&quot;: &quot;DCAE&quot;,&#xd;
- &quot;policyName&quot;: &quot;DCAE.Config_tca-hi-lo&quot;,&#xd;
- &quot;policyVersion&quot;: &quot;v0.0.1&quot;,&#xd;
- &quot;thresholds&quot;: [&#xd;
- {&#xd;
- &quot;closedLoopControlName&quot;: &quot;ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e&quot;,&#xd;
- &quot;version&quot;: &quot;1.0.2&quot;,&#xd;
- &quot;fieldPath&quot;: &quot;$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value&quot;,&#xd;
- &quot;thresholdValue&quot;: 0,&#xd;
- &quot;direction&quot;: &quot;EQUAL&quot;,&#xd;
- &quot;severity&quot;: &quot;MAJOR&quot;,&#xd;
- &quot;closedLoopEventStatus&quot;: &quot;ABATED&quot;&#xd;
- },&#xd;
- {&#xd;
- &quot;closedLoopControlName&quot;: &quot;ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e&quot;,&#xd;
- &quot;version&quot;: &quot;1.0.2&quot;,&#xd;
- &quot;fieldPath&quot;: &quot;$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value&quot;,&#xd;
- &quot;thresholdValue&quot;: 0,&#xd;
- &quot;direction&quot;: &quot;GREATER&quot;,&#xd;
- &quot;severity&quot;: &quot;CRITICAL&quot;,&#xd;
- &quot;closedLoopEventStatus&quot;: &quot;ONSET&quot;&#xd;
- }&#xd;
- ]&#xd;
- }&#xd;
- ]&#xd;
- }&#xd;
- }&#xd;
- }&#xd;
- },&#xd;
- {&#xd;
- &quot;onap.restart.tca&quot;: {&#xd;
- &quot;type&quot;: &quot;onap.policies.monitoring.cdap.tca.hi.lo.app&quot;,&#xd;
- &quot;version&quot;: &quot;10.0.0&quot;,&#xd;
- &quot;type_version&quot;: &quot;2.0.0&quot;,&#xd;
- &quot;metadata&quot;: {&#xd;
- &quot;policy-id&quot;: &quot;onap.restart.tca&quot;&#xd;
- },&#xd;
- &quot;properties&quot;: {&#xd;
- &quot;tca_policy&quot;: {&#xd;
- &quot;domain&quot;: &quot;measurementsForVfScaling&quot;,&#xd;
- &quot;metricsPerEventName&quot;: [&#xd;
- {&#xd;
- &quot;eventName&quot;: &quot;Measurement_vGMUX&quot;,&#xd;
- &quot;controlLoopSchemaType&quot;: &quot;VNF&quot;,&#xd;
- &quot;policyScope&quot;: &quot;DCAE&quot;,&#xd;
- &quot;policyName&quot;: &quot;DCAE.Config_tca-hi-lo&quot;,&#xd;
- &quot;policyVersion&quot;: &quot;v0.0.1&quot;,&#xd;
- &quot;thresholds&quot;: [&#xd;
- {&#xd;
- &quot;closedLoopControlName&quot;: &quot;ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e&quot;,&#xd;
- &quot;version&quot;: &quot;1.0.2&quot;,&#xd;
- &quot;fieldPath&quot;: &quot;$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value&quot;,&#xd;
- &quot;thresholdValue&quot;: 0,&#xd;
- &quot;direction&quot;: &quot;EQUAL&quot;,&#xd;
- &quot;severity&quot;: &quot;MAJOR&quot;,&#xd;
- &quot;closedLoopEventStatus&quot;: &quot;ABATED&quot;&#xd;
- },&#xd;
- {&#xd;
- &quot;closedLoopControlName&quot;: &quot;ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e&quot;,&#xd;
- &quot;version&quot;: &quot;1.0.2&quot;,&#xd;
- &quot;fieldPath&quot;: &quot;$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value&quot;,&#xd;
- &quot;thresholdValue&quot;: 0,&#xd;
- &quot;direction&quot;: &quot;GREATER&quot;,&#xd;
- &quot;severity&quot;: &quot;CRITICAL&quot;,&#xd;
- &quot;closedLoopEventStatus&quot;: &quot;ONSET&quot;&#xd;
- }&#xd;
- ]&#xd;
- }&#xd;
- ]&#xd;
- }&#xd;
- }&#xd;
- }&#xd;
- },&#xd;
- {&#xd;
- &quot;onap.restart.tca&quot;: {&#xd;
- &quot;type&quot;: &quot;onap.policies.monitoring.cdap.tca.hi.lo.app&quot;,&#xd;
- &quot;version&quot;: &quot;11.0.0&quot;,&#xd;
- &quot;type_version&quot;: &quot;2.0.0&quot;,&#xd;
- &quot;metadata&quot;: {&#xd;
- &quot;policy-id&quot;: &quot;onap.restart.tca&quot;&#xd;
- },&#xd;
- &quot;properties&quot;: {&#xd;
- &quot;tca_policy&quot;: {&#xd;
- &quot;domain&quot;: &quot;measurementsForVfScaling&quot;,&#xd;
- &quot;metricsPerEventName&quot;: [&#xd;
- {&#xd;
- &quot;eventName&quot;: &quot;Measurement_vGMUX&quot;,&#xd;
- &quot;controlLoopSchemaType&quot;: &quot;VNF&quot;,&#xd;
- &quot;policyScope&quot;: &quot;DCAE&quot;,&#xd;
- &quot;policyName&quot;: &quot;DCAE.Config_tca-hi-lo&quot;,&#xd;
- &quot;policyVersion&quot;: &quot;v0.0.1&quot;,&#xd;
- &quot;thresholds&quot;: [&#xd;
- {&#xd;
- &quot;closedLoopControlName&quot;: &quot;ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e&quot;,&#xd;
- &quot;version&quot;: &quot;1.0.2&quot;,&#xd;
- &quot;fieldPath&quot;: &quot;$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value&quot;,&#xd;
- &quot;thresholdValue&quot;: 0,&#xd;
- &quot;direction&quot;: &quot;EQUAL&quot;,&#xd;
- &quot;severity&quot;: &quot;MAJOR&quot;,&#xd;
- &quot;closedLoopEventStatus&quot;: &quot;ABATED&quot;&#xd;
- },&#xd;
- {&#xd;
- &quot;closedLoopControlName&quot;: &quot;ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e&quot;,&#xd;
- &quot;version&quot;: &quot;1.0.2&quot;,&#xd;
- &quot;fieldPath&quot;: &quot;$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value&quot;,&#xd;
- &quot;thresholdValue&quot;: 0,&#xd;
- &quot;direction&quot;: &quot;GREATER&quot;,&#xd;
- &quot;severity&quot;: &quot;CRITICAL&quot;,&#xd;
- &quot;closedLoopEventStatus&quot;: &quot;ONSET&quot;&#xd;
- }&#xd;
- ]&#xd;
- }&#xd;
- ]&#xd;
- }&#xd;
- }&#xd;
- }&#xd;
- }&#xd;
- ]&#xd;
- }&#xd;
-}</stringProp>
- <stringProp name="Argument.metadata">=</stringProp>
- </elementProp>
- </collectionProp>
- </elementProp>
- <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
- <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
- <stringProp name="HTTPSampler.protocol">https</stringProp>
- <stringProp name="HTTPSampler.contentEncoding"></stringProp>
- <stringProp name="HTTPSampler.path">/policy/api/v1/policies</stringProp>
- <stringProp name="HTTPSampler.method">POST</stringProp>
- <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
- <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
- <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
- <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
- <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
- <stringProp name="HTTPSampler.connect_timeout"></stringProp>
- <stringProp name="HTTPSampler.response_timeout"></stringProp>
- </HTTPSamplerProxy>
- <hashTree>
- <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
- <collectionProp name="Asserion.test_strings">
- <stringProp name="49586">200</stringProp>
- </collectionProp>
- <stringProp name="Assertion.custom_message"></stringProp>
- <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
- <boolProp name="Assertion.assume_success">false</boolProp>
- <intProp name="Assertion.test_type">1</intProp>
- </ResponseAssertion>
- <hashTree/>
- <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
- <stringProp name="scriptLanguage">groovy</stringProp>
- <stringProp name="parameters"></stringProp>
- <stringProp name="filename"></stringProp>
- <stringProp name="cacheKey">true</stringProp>
- <stringProp name="script">import groovy.json.JsonSlurper;
-
-def res = [];
-if (prev.getResponseCode() == &apos;200&apos;) {
- def jsonSlurper = new JsonSlurper();
- res = jsonSlurper.parseText(prev.getResponseDataAsString());
-
- assert res instanceof Map;
- assert res.topology_template.policies instanceof List;
- assert res.topology_template.policies.size == 11;
- assert res.topology_template.policies[0] instanceof Map;
-}</stringProp>
- </JSR223Assertion>
- <hashTree/>
- </hashTree>
- <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="Constant Timer" enabled="true">
- <stringProp name="ConstantTimer.delay">10000</stringProp>
- </ConstantTimer>
- <hashTree/>
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get All TCA Policies" enabled="true">
<elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
<collectionProp name="Arguments.arguments"/>
@@ -5751,7 +2884,7 @@ if (prev.getResponseCode() == &apos;200&apos;) {
<stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
<stringProp name="HTTPSampler.protocol">https</stringProp>
<stringProp name="HTTPSampler.contentEncoding"></stringProp>
- <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/2.0.0/policies</stringProp>
+ <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/6.0.${__threadNum}/policies</stringProp>
<stringProp name="HTTPSampler.method">GET</stringProp>
<boolProp name="HTTPSampler.follow_redirects">true</boolProp>
<boolProp name="HTTPSampler.auto_redirects">false</boolProp>
@@ -5786,17 +2919,17 @@ if (prev.getResponseCode() == &apos;200&apos;) {
assert res instanceof Map;
assert res.topology_template.policies instanceof List;
- assert res.topology_template.policies.size == 11;
+ assert res.topology_template.policies.size &gt; 0 &amp;&amp; res.topology_template.policies.size &lt; 10;
- def n = 11;
- for (i=0; i&lt;n; i++) {
+
+ for (i=0; i&lt;res.topology_template.policies.size; i++) {
assert res.topology_template.policies[i] instanceof Map;
}
}</stringProp>
</JSR223Assertion>
<hashTree/>
</hashTree>
- <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get All Versions of TCA Policy" enabled="true">
+ <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get All Versions of Monitoring Policy" enabled="true">
<elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
<collectionProp name="Arguments.arguments"/>
</elementProp>
@@ -5804,7 +2937,7 @@ if (prev.getResponseCode() == &apos;200&apos;) {
<stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
<stringProp name="HTTPSampler.protocol">https</stringProp>
<stringProp name="HTTPSampler.contentEncoding"></stringProp>
- <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/2.0.0/policies</stringProp>
+ <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/6.0.${__threadNum}/policies</stringProp>
<stringProp name="HTTPSampler.method">GET</stringProp>
<boolProp name="HTTPSampler.follow_redirects">true</boolProp>
<boolProp name="HTTPSampler.auto_redirects">false</boolProp>
@@ -5839,17 +2972,17 @@ if (prev.getResponseCode() == &apos;200&apos;) {
assert res instanceof Map;
assert res.topology_template.policies instanceof List;
- assert res.topology_template.policies.size == 11;
+ assert res.topology_template.policies.size &gt; 0 &amp;&amp; res.topology_template.policies.size &lt; 6;
- def n = 11;
- for (i=0; i&lt;n; i++) {
+ for (i=0; i&lt;res.topology_template.policies.size; i++) {
assert res.topology_template.policies[i] instanceof Map;
+ assert res.topology_template.policies[i].get(&apos;onap.restart.tca&apos;).version == &quot;6.0.${__threadNum}&quot;;
}
}</stringProp>
</JSR223Assertion>
<hashTree/>
</hashTree>
- <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get TCA Policy V1" enabled="true">
+ <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get Policy Monitoring" enabled="true">
<elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
<collectionProp name="Arguments.arguments"/>
</elementProp>
@@ -5857,7 +2990,7 @@ if (prev.getResponseCode() == &apos;200&apos;) {
<stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
<stringProp name="HTTPSampler.protocol">https</stringProp>
<stringProp name="HTTPSampler.contentEncoding"></stringProp>
- <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>
+ <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/6.0.${__threadNum}/policies/onap.restart.tca/versions/6.0.${__threadNum}</stringProp>
<stringProp name="HTTPSampler.method">GET</stringProp>
<boolProp name="HTTPSampler.follow_redirects">true</boolProp>
<boolProp name="HTTPSampler.auto_redirects">false</boolProp>
@@ -5895,12 +3028,12 @@ if (prev.getResponseCode() == &apos;200&apos;) {
assert res.topology_template.policies.size == 1;
assert res.topology_template.policies[0] instanceof Map;
- assert res.topology_template.policies [0].get(&apos;onap.restart.tca&apos;).version == &quot;1.0.0&quot;;
+ assert res.topology_template.policies [0].get(&apos;onap.restart.tca&apos;).version == &quot;6.0.${__threadNum}&quot;;
}</stringProp>
</JSR223Assertion>
<hashTree/>
</hashTree>
- <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get TCA Policy V2" enabled="true">
+ <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get Policy Optimization" enabled="true">
<elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
<collectionProp name="Arguments.arguments"/>
</elementProp>
@@ -5908,7 +3041,7 @@ if (prev.getResponseCode() == &apos;200&apos;) {
<stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
<stringProp name="HTTPSampler.protocol">https</stringProp>
<stringProp name="HTTPSampler.contentEncoding"></stringProp>
- <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>
+ <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.optimization.resource.AffinityPolicy/versions/6.0.${__threadNum}/policies/OSDF_CASABLANCA.Affinity_Default/versions/6.0.${__threadNum}</stringProp>
<stringProp name="HTTPSampler.method">GET</stringProp>
<boolProp name="HTTPSampler.follow_redirects">true</boolProp>
<boolProp name="HTTPSampler.auto_redirects">false</boolProp>
@@ -5946,12 +3079,12 @@ if (prev.getResponseCode() == &apos;200&apos;) {
assert res.topology_template.policies.size == 1;
assert res.topology_template.policies[0] instanceof Map;
- assert res.topology_template.policies [0].get(&apos;onap.restart.tca&apos;).version == &quot;2.0.0&quot;;
+ assert res.topology_template.policies [0].get(&apos;OSDF_CASABLANCA.Affinity_Default&apos;).version == &quot;6.0.${__threadNum}&quot;;
}</stringProp>
</JSR223Assertion>
<hashTree/>
</hashTree>
- <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get TCA Policy V3" enabled="true">
+ <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get Policy Guard" enabled="true">
<elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
<collectionProp name="Arguments.arguments"/>
</elementProp>
@@ -5959,7 +3092,7 @@ if (prev.getResponseCode() == &apos;200&apos;) {
<stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
<stringProp name="HTTPSampler.protocol">https</stringProp>
<stringProp name="HTTPSampler.contentEncoding"></stringProp>
- <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>
+ <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.controlloop.guard.common.Blacklist/versions/6.0.${__threadNum}/policies/guard.blacklist.scaleout/versions/6.0.${__threadNum}</stringProp>
<stringProp name="HTTPSampler.method">GET</stringProp>
<boolProp name="HTTPSampler.follow_redirects">true</boolProp>
<boolProp name="HTTPSampler.auto_redirects">false</boolProp>
@@ -5997,12 +3130,12 @@ if (prev.getResponseCode() == &apos;200&apos;) {
assert res.topology_template.policies.size == 1;
assert res.topology_template.policies[0] instanceof Map;
- assert res.topology_template.policies [0].get(&apos;onap.restart.tca&apos;).version == &quot;3.0.0&quot;;
+ assert res.topology_template.policies [0].get(&apos;guard.blacklist.scaleout&apos;).version == &quot;6.0.${__threadNum}&quot;;
}</stringProp>
</JSR223Assertion>
<hashTree/>
</hashTree>
- <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get TCA Policy V4" enabled="true">
+ <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get Policy Native APEX" enabled="true">
<elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
<collectionProp name="Arguments.arguments"/>
</elementProp>
@@ -6010,7 +3143,7 @@ if (prev.getResponseCode() == &apos;200&apos;) {
<stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
<stringProp name="HTTPSampler.protocol">https</stringProp>
<stringProp name="HTTPSampler.contentEncoding"></stringProp>
- <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>
+ <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.native.Apex/versions/6.0.${__threadNum}/policies/operational.apex.vCPE/versions/6.0.${__threadNum}</stringProp>
<stringProp name="HTTPSampler.method">GET</stringProp>
<boolProp name="HTTPSampler.follow_redirects">true</boolProp>
<boolProp name="HTTPSampler.auto_redirects">false</boolProp>
@@ -6048,12 +3181,12 @@ if (prev.getResponseCode() == &apos;200&apos;) {
assert res.topology_template.policies.size == 1;
assert res.topology_template.policies[0] instanceof Map;
- assert res.topology_template.policies [0].get(&apos;onap.restart.tca&apos;).version == &quot;4.0.0&quot;;
+ assert res.topology_template.policies [0].get(&apos;operational.apex.vCPE&apos;).version == &quot;6.0.${__threadNum}&quot;;
}</stringProp>
</JSR223Assertion>
<hashTree/>
</hashTree>
- <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get TCA Policy V5" enabled="true">
+ <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get Policy Native Drools" enabled="true">
<elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
<collectionProp name="Arguments.arguments"/>
</elementProp>
@@ -6061,7 +3194,7 @@ if (prev.getResponseCode() == &apos;200&apos;) {
<stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
<stringProp name="HTTPSampler.protocol">https</stringProp>
<stringProp name="HTTPSampler.contentEncoding"></stringProp>
- <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>
+ <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.native.drools.Artifact/versions/6.0.${__threadNum}/policies/usecases.artifacts/versions/6.0.${__threadNum}</stringProp>
<stringProp name="HTTPSampler.method">GET</stringProp>
<boolProp name="HTTPSampler.follow_redirects">true</boolProp>
<boolProp name="HTTPSampler.auto_redirects">false</boolProp>
@@ -6099,12 +3232,12 @@ if (prev.getResponseCode() == &apos;200&apos;) {
assert res.topology_template.policies.size == 1;
assert res.topology_template.policies[0] instanceof Map;
- assert res.topology_template.policies [0].get(&apos;onap.restart.tca&apos;).version == &quot;5.0.0&quot;;
+ assert res.topology_template.policies [0].get(&apos;usecases.artifacts&apos;).version == &quot;6.0.${__threadNum}&quot;;
}</stringProp>
</JSR223Assertion>
<hashTree/>
</hashTree>
- <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get TCA Policy V6" enabled="true">
+ <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get Policy Native XACML" enabled="true">
<elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
<collectionProp name="Arguments.arguments"/>
</elementProp>
@@ -6112,7 +3245,7 @@ if (prev.getResponseCode() == &apos;200&apos;) {
<stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
<stringProp name="HTTPSampler.protocol">https</stringProp>
<stringProp name="HTTPSampler.contentEncoding"></stringProp>
- <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>
+ <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.native.Xacml/versions/6.0.${__threadNum}/policies/onap.policies.native.xacml.NativeXacmlPolicy/versions/6.0.${__threadNum}</stringProp>
<stringProp name="HTTPSampler.method">GET</stringProp>
<boolProp name="HTTPSampler.follow_redirects">true</boolProp>
<boolProp name="HTTPSampler.auto_redirects">false</boolProp>
@@ -6150,12 +3283,12 @@ if (prev.getResponseCode() == &apos;200&apos;) {
assert res.topology_template.policies.size == 1;
assert res.topology_template.policies[0] instanceof Map;
- assert res.topology_template.policies [0].get(&apos;onap.restart.tca&apos;).version == &quot;6.0.0&quot;;
+ assert res.topology_template.policies [0].get(&apos;onap.policies.native.xacml.NativeXacmlPolicy&apos;).version == &quot;6.0.${__threadNum}&quot;;
}</stringProp>
</JSR223Assertion>
<hashTree/>
</hashTree>
- <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get TCA Policy V7" enabled="true">
+ <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get latest Monitoring Policy" enabled="true">
<elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
<collectionProp name="Arguments.arguments"/>
</elementProp>
@@ -6163,7 +3296,7 @@ if (prev.getResponseCode() == &apos;200&apos;) {
<stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
<stringProp name="HTTPSampler.protocol">https</stringProp>
<stringProp name="HTTPSampler.contentEncoding"></stringProp>
- <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>
+ <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/6.0.${__threadNum}/policies/onap.restart.tca/versions/latest</stringProp>
<stringProp name="HTTPSampler.method">GET</stringProp>
<boolProp name="HTTPSampler.follow_redirects">true</boolProp>
<boolProp name="HTTPSampler.auto_redirects">false</boolProp>
@@ -6201,12 +3334,12 @@ if (prev.getResponseCode() == &apos;200&apos;) {
assert res.topology_template.policies.size == 1;
assert res.topology_template.policies[0] instanceof Map;
- assert res.topology_template.policies [0].get(&apos;onap.restart.tca&apos;).version == &quot;7.0.0&quot;;
+ assert res.topology_template.policies [0].get(&apos;onap.restart.tca&apos;).version ==~ /6.0.\d+/;
}</stringProp>
</JSR223Assertion>
<hashTree/>
</hashTree>
- <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get TCA Policy V8" enabled="true">
+ <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete Policy Monitoring" enabled="true">
<elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
<collectionProp name="Arguments.arguments"/>
</elementProp>
@@ -6214,8 +3347,8 @@ if (prev.getResponseCode() == &apos;200&apos;) {
<stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
<stringProp name="HTTPSampler.protocol">https</stringProp>
<stringProp name="HTTPSampler.contentEncoding"></stringProp>
- <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>
- <stringProp name="HTTPSampler.method">GET</stringProp>
+ <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/6.0.${__threadNum}/policies/onap.restart.tca/versions/6.0.${__threadNum}</stringProp>
+ <stringProp name="HTTPSampler.method">DELETE</stringProp>
<boolProp name="HTTPSampler.follow_redirects">true</boolProp>
<boolProp name="HTTPSampler.auto_redirects">false</boolProp>
<boolProp name="HTTPSampler.use_keepalive">true</boolProp>
@@ -6250,14 +3383,13 @@ if (prev.getResponseCode() == &apos;200&apos;) {
assert res instanceof Map;
assert res.topology_template.policies instanceof List;
assert res.topology_template.policies.size == 1;
-
assert res.topology_template.policies[0] instanceof Map;
- assert res.topology_template.policies [0].get(&apos;onap.restart.tca&apos;).version == &quot;8.0.0&quot;;
+ assert res.topology_template.policies[0].get(&apos;onap.restart.tca&apos;).version == &quot;6.0.${__threadNum}&quot;;
}</stringProp>
</JSR223Assertion>
<hashTree/>
</hashTree>
- <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get TCA Policy V9" enabled="true">
+ <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete Policy Monitoring V2" enabled="true">
<elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
<collectionProp name="Arguments.arguments"/>
</elementProp>
@@ -6265,8 +3397,8 @@ if (prev.getResponseCode() == &apos;200&apos;) {
<stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
<stringProp name="HTTPSampler.protocol">https</stringProp>
<stringProp name="HTTPSampler.contentEncoding"></stringProp>
- <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>
- <stringProp name="HTTPSampler.method">GET</stringProp>
+ <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/6.0.${__threadNum}/policies/onap.restart.tca/versions/7.0.${__threadNum}</stringProp>
+ <stringProp name="HTTPSampler.method">DELETE</stringProp>
<boolProp name="HTTPSampler.follow_redirects">true</boolProp>
<boolProp name="HTTPSampler.auto_redirects">false</boolProp>
<boolProp name="HTTPSampler.use_keepalive">true</boolProp>
@@ -6301,14 +3433,13 @@ if (prev.getResponseCode() == &apos;200&apos;) {
assert res instanceof Map;
assert res.topology_template.policies instanceof List;
assert res.topology_template.policies.size == 1;
-
assert res.topology_template.policies[0] instanceof Map;
- assert res.topology_template.policies [0].get(&apos;onap.restart.tca&apos;).version == &quot;9.0.0&quot;;
+ assert res.topology_template.policies[0].get(&apos;onap.restart.tca&apos;).version == &quot;7.0.${__threadNum}&quot;;
}</stringProp>
</JSR223Assertion>
<hashTree/>
</hashTree>
- <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get TCA Policy V10" enabled="true">
+ <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete Policy Optimization" enabled="true">
<elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
<collectionProp name="Arguments.arguments"/>
</elementProp>
@@ -6316,8 +3447,8 @@ if (prev.getResponseCode() == &apos;200&apos;) {
<stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
<stringProp name="HTTPSampler.protocol">https</stringProp>
<stringProp name="HTTPSampler.contentEncoding"></stringProp>
- <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>
- <stringProp name="HTTPSampler.method">GET</stringProp>
+ <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.optimization.resource.AffinityPolicy/versions/6.0.${__threadNum}/policies/OSDF_CASABLANCA.Affinity_Default/versions/6.0.${__threadNum}</stringProp>
+ <stringProp name="HTTPSampler.method">DELETE</stringProp>
<boolProp name="HTTPSampler.follow_redirects">true</boolProp>
<boolProp name="HTTPSampler.auto_redirects">false</boolProp>
<boolProp name="HTTPSampler.use_keepalive">true</boolProp>
@@ -6352,14 +3483,13 @@ if (prev.getResponseCode() == &apos;200&apos;) {
assert res instanceof Map;
assert res.topology_template.policies instanceof List;
assert res.topology_template.policies.size == 1;
-
assert res.topology_template.policies[0] instanceof Map;
- assert res.topology_template.policies [0].get(&apos;onap.restart.tca&apos;).version == &quot;10.0.0&quot;;
+ assert res.topology_template.policies[0].get(&apos;OSDF_CASABLANCA.Affinity_Default&apos;).version == &quot;6.0.${__threadNum}&quot;;
}</stringProp>
</JSR223Assertion>
<hashTree/>
</hashTree>
- <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get TCA Policy V11" enabled="true">
+ <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete Policy Guard" enabled="true">
<elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
<collectionProp name="Arguments.arguments"/>
</elementProp>
@@ -6367,8 +3497,8 @@ if (prev.getResponseCode() == &apos;200&apos;) {
<stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
<stringProp name="HTTPSampler.protocol">https</stringProp>
<stringProp name="HTTPSampler.contentEncoding"></stringProp>
- <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>
- <stringProp name="HTTPSampler.method">GET</stringProp>
+ <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.controlloop.guard.common.Blacklist/versions/6.0.${__threadNum}/policies/guard.blacklist.scaleout/versions/6.0.${__threadNum}</stringProp>
+ <stringProp name="HTTPSampler.method">DELETE</stringProp>
<boolProp name="HTTPSampler.follow_redirects">true</boolProp>
<boolProp name="HTTPSampler.auto_redirects">false</boolProp>
<boolProp name="HTTPSampler.use_keepalive">true</boolProp>
@@ -6403,14 +3533,13 @@ if (prev.getResponseCode() == &apos;200&apos;) {
assert res instanceof Map;
assert res.topology_template.policies instanceof List;
assert res.topology_template.policies.size == 1;
-
assert res.topology_template.policies[0] instanceof Map;
- assert res.topology_template.policies [0].get(&apos;onap.restart.tca&apos;).version == &quot;11.0.0&quot;;
+ assert res.topology_template.policies[0].get(&apos;guard.blacklist.scaleout&apos;).version == &quot;6.0.${__threadNum}&quot;;
}</stringProp>
</JSR223Assertion>
<hashTree/>
</hashTree>
- <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get latest TCA Policy" enabled="true">
+ <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete Policy Native APEX" enabled="true">
<elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
<collectionProp name="Arguments.arguments"/>
</elementProp>
@@ -6418,8 +3547,8 @@ if (prev.getResponseCode() == &apos;200&apos;) {
<stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
<stringProp name="HTTPSampler.protocol">https</stringProp>
<stringProp name="HTTPSampler.contentEncoding"></stringProp>
- <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>
- <stringProp name="HTTPSampler.method">GET</stringProp>
+ <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.native.Apex/versions/6.0.${__threadNum}/policies/operational.apex.vCPE/versions/6.0.${__threadNum}</stringProp>
+ <stringProp name="HTTPSampler.method">DELETE</stringProp>
<boolProp name="HTTPSampler.follow_redirects">true</boolProp>
<boolProp name="HTTPSampler.auto_redirects">false</boolProp>
<boolProp name="HTTPSampler.use_keepalive">true</boolProp>
@@ -6454,547 +3583,13 @@ if (prev.getResponseCode() == &apos;200&apos;) {
assert res instanceof Map;
assert res.topology_template.policies instanceof List;
assert res.topology_template.policies.size == 1;
-
assert res.topology_template.policies[0] instanceof Map;
- assert res.topology_template.policies [0].get(&apos;onap.restart.tca&apos;).version == &quot;11.0.0&quot;;
-}</stringProp>
- </JSR223Assertion>
- <hashTree/>
- </hashTree>
- <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="Constant Timer" enabled="true">
- <stringProp name="ConstantTimer.delay">5000</stringProp>
- </ConstantTimer>
- <hashTree/>
- <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create Guard Policy V1" enabled="true">
- <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
- <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
- <collectionProp name="Arguments.arguments">
- <elementProp name="" elementType="HTTPArgument">
- <boolProp name="HTTPArgument.always_encode">false</boolProp>
- <stringProp name="Argument.value">{&#xd;
- &quot;policy-id&quot; : &quot;guard.frequency.scaleout&quot;,&#xd;
- &quot;policy-version&quot; : &quot;1&quot;,&#xd;
- &quot;content&quot; : {&#xd;
- &quot;actor&quot;: &quot;SO&quot;,&#xd;
- &quot;recipe&quot;: &quot;scaleOut&quot;,&#xd;
- &quot;targets&quot;: &quot;.*&quot;,&#xd;
- &quot;clname&quot;: &quot;ControlLoop-vDNS-6f37f56d-a87d-4b85-b6a9-cc953cf779b3&quot;,&#xd;
- &quot;limit&quot;: &quot;1&quot;,&#xd;
- &quot;timeWindow&quot;: &quot;10&quot;,&#xd;
- &quot;timeUnits&quot;: &quot;minute&quot;,&#xd;
- &quot;guardActiveStart&quot;: &quot;00:00:01-05:00&quot;,&#xd;
- &quot;guardActiveEnd&quot;: &quot;23:59:59-05:00&quot;&#xd;
- }&#xd;
-}</stringProp>
- <stringProp name="Argument.metadata">=</stringProp>
- </elementProp>
- </collectionProp>
- </elementProp>
- <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
- <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
- <stringProp name="HTTPSampler.protocol">https</stringProp>
- <stringProp name="HTTPSampler.contentEncoding"></stringProp>
- <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.controlloop.Guard/versions/1.0.0/policies</stringProp>
- <stringProp name="HTTPSampler.method">POST</stringProp>
- <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
- <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
- <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
- <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
- <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
- <stringProp name="HTTPSampler.connect_timeout"></stringProp>
- <stringProp name="HTTPSampler.response_timeout"></stringProp>
- </HTTPSamplerProxy>
- <hashTree>
- <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
- <collectionProp name="Asserion.test_strings">
- <stringProp name="49586">200</stringProp>
- </collectionProp>
- <stringProp name="Assertion.custom_message"></stringProp>
- <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
- <boolProp name="Assertion.assume_success">false</boolProp>
- <intProp name="Assertion.test_type">1</intProp>
- </ResponseAssertion>
- <hashTree/>
- <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
- <stringProp name="scriptLanguage">groovy</stringProp>
- <stringProp name="parameters"></stringProp>
- <stringProp name="filename"></stringProp>
- <stringProp name="cacheKey">true</stringProp>
- <stringProp name="script">import groovy.json.JsonSlurper;
-
-def res = [];
-if (prev.getResponseCode() == &apos;200&apos;) {
- def jsonSlurper = new JsonSlurper();
- res = jsonSlurper.parseText(prev.getResponseDataAsString());
-
- assert res instanceof Map;
- assert res.get(&apos;guard.frequency.scaleout&apos;).version == &quot;1.0.0&quot;;
-}</stringProp>
- </JSR223Assertion>
- <hashTree/>
- </hashTree>
- <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create Guard Policy V5" enabled="true">
- <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
- <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
- <collectionProp name="Arguments.arguments">
- <elementProp name="" elementType="HTTPArgument">
- <boolProp name="HTTPArgument.always_encode">false</boolProp>
- <stringProp name="Argument.value">{&#xd;
- &quot;policy-id&quot; : &quot;guard.frequency.scaleout&quot;,&#xd;
- &quot;policy-version&quot; : &quot;5&quot;,&#xd;
- &quot;content&quot; : {&#xd;
- &quot;actor&quot;: &quot;SO&quot;,&#xd;
- &quot;recipe&quot;: &quot;scaleOut&quot;,&#xd;
- &quot;targets&quot;: &quot;.*&quot;,&#xd;
- &quot;clname&quot;: &quot;ControlLoop-vDNS-6f37f56d-a87d-4b85-b6a9-cc953cf779b3&quot;,&#xd;
- &quot;limit&quot;: &quot;1&quot;,&#xd;
- &quot;timeWindow&quot;: &quot;10&quot;,&#xd;
- &quot;timeUnits&quot;: &quot;minute&quot;,&#xd;
- &quot;guardActiveStart&quot;: &quot;00:00:01-05:00&quot;,&#xd;
- &quot;guardActiveEnd&quot;: &quot;23:59:59-05:00&quot;&#xd;
- }&#xd;
-}</stringProp>
- <stringProp name="Argument.metadata">=</stringProp>
- </elementProp>
- </collectionProp>
- </elementProp>
- <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
- <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
- <stringProp name="HTTPSampler.protocol">https</stringProp>
- <stringProp name="HTTPSampler.contentEncoding"></stringProp>
- <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.controlloop.Guard/versions/1.0.0/policies</stringProp>
- <stringProp name="HTTPSampler.method">POST</stringProp>
- <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
- <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
- <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
- <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
- <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
- <stringProp name="HTTPSampler.connect_timeout"></stringProp>
- <stringProp name="HTTPSampler.response_timeout"></stringProp>
- </HTTPSamplerProxy>
- <hashTree>
- <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
- <collectionProp name="Asserion.test_strings">
- <stringProp name="49586">200</stringProp>
- </collectionProp>
- <stringProp name="Assertion.custom_message"></stringProp>
- <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
- <boolProp name="Assertion.assume_success">false</boolProp>
- <intProp name="Assertion.test_type">1</intProp>
- </ResponseAssertion>
- <hashTree/>
- <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
- <stringProp name="scriptLanguage">groovy</stringProp>
- <stringProp name="parameters"></stringProp>
- <stringProp name="filename"></stringProp>
- <stringProp name="cacheKey">true</stringProp>
- <stringProp name="script">import groovy.json.JsonSlurper;
-
-def res = [];
-if (prev.getResponseCode() == &apos;200&apos;) {
- def jsonSlurper = new JsonSlurper();
- res = jsonSlurper.parseText(prev.getResponseDataAsString());
-
- assert res instanceof Map;
- assert res.get(&apos;guard.frequency.scaleout&apos;).version == &quot;5.0.0&quot;;
-}</stringProp>
- </JSR223Assertion>
- <hashTree/>
- </hashTree>
- <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create Guard Policy V9" enabled="true">
- <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
- <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
- <collectionProp name="Arguments.arguments">
- <elementProp name="" elementType="HTTPArgument">
- <boolProp name="HTTPArgument.always_encode">false</boolProp>
- <stringProp name="Argument.value">{&#xd;
- &quot;policy-id&quot; : &quot;guard.frequency.scaleout&quot;,&#xd;
- &quot;policy-version&quot; : &quot;9&quot;,&#xd;
- &quot;content&quot; : {&#xd;
- &quot;actor&quot;: &quot;SO&quot;,&#xd;
- &quot;recipe&quot;: &quot;scaleOut&quot;,&#xd;
- &quot;targets&quot;: &quot;.*&quot;,&#xd;
- &quot;clname&quot;: &quot;ControlLoop-vDNS-6f37f56d-a87d-4b85-b6a9-cc953cf779b3&quot;,&#xd;
- &quot;limit&quot;: &quot;1&quot;,&#xd;
- &quot;timeWindow&quot;: &quot;10&quot;,&#xd;
- &quot;timeUnits&quot;: &quot;minute&quot;,&#xd;
- &quot;guardActiveStart&quot;: &quot;00:00:01-05:00&quot;,&#xd;
- &quot;guardActiveEnd&quot;: &quot;23:59:59-05:00&quot;&#xd;
- }&#xd;
-}</stringProp>
- <stringProp name="Argument.metadata">=</stringProp>
- </elementProp>
- </collectionProp>
- </elementProp>
- <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
- <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
- <stringProp name="HTTPSampler.protocol">https</stringProp>
- <stringProp name="HTTPSampler.contentEncoding"></stringProp>
- <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.controlloop.Guard/versions/1.0.0/policies</stringProp>
- <stringProp name="HTTPSampler.method">POST</stringProp>
- <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
- <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
- <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
- <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
- <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
- <stringProp name="HTTPSampler.connect_timeout"></stringProp>
- <stringProp name="HTTPSampler.response_timeout"></stringProp>
- </HTTPSamplerProxy>
- <hashTree>
- <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
- <collectionProp name="Asserion.test_strings">
- <stringProp name="49586">200</stringProp>
- </collectionProp>
- <stringProp name="Assertion.custom_message"></stringProp>
- <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
- <boolProp name="Assertion.assume_success">false</boolProp>
- <intProp name="Assertion.test_type">1</intProp>
- </ResponseAssertion>
- <hashTree/>
- <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
- <stringProp name="scriptLanguage">groovy</stringProp>
- <stringProp name="parameters"></stringProp>
- <stringProp name="filename"></stringProp>
- <stringProp name="cacheKey">true</stringProp>
- <stringProp name="script">import groovy.json.JsonSlurper;
-
-def res = [];
-if (prev.getResponseCode() == &apos;200&apos;) {
- def jsonSlurper = new JsonSlurper();
- res = jsonSlurper.parseText(prev.getResponseDataAsString());
-
- assert res instanceof Map;
- assert res.get(&apos;guard.frequency.scaleout&apos;).version == &quot;9.0.0&quot;;
-}</stringProp>
- </JSR223Assertion>
- <hashTree/>
- </hashTree>
- <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create Guard Policy V12" enabled="true">
- <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
- <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
- <collectionProp name="Arguments.arguments">
- <elementProp name="" elementType="HTTPArgument">
- <boolProp name="HTTPArgument.always_encode">false</boolProp>
- <stringProp name="Argument.value">{&#xd;
- &quot;policy-id&quot; : &quot;guard.frequency.scaleout&quot;,&#xd;
- &quot;policy-version&quot; : &quot;12&quot;,&#xd;
- &quot;content&quot; : {&#xd;
- &quot;actor&quot;: &quot;SO&quot;,&#xd;
- &quot;recipe&quot;: &quot;scaleOut&quot;,&#xd;
- &quot;targets&quot;: &quot;.*&quot;,&#xd;
- &quot;clname&quot;: &quot;ControlLoop-vDNS-6f37f56d-a87d-4b85-b6a9-cc953cf779b3&quot;,&#xd;
- &quot;limit&quot;: &quot;1&quot;,&#xd;
- &quot;timeWindow&quot;: &quot;10&quot;,&#xd;
- &quot;timeUnits&quot;: &quot;minute&quot;,&#xd;
- &quot;guardActiveStart&quot;: &quot;00:00:01-05:00&quot;,&#xd;
- &quot;guardActiveEnd&quot;: &quot;23:59:59-05:00&quot;&#xd;
- }&#xd;
-}</stringProp>
- <stringProp name="Argument.metadata">=</stringProp>
- </elementProp>
- </collectionProp>
- </elementProp>
- <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
- <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
- <stringProp name="HTTPSampler.protocol">https</stringProp>
- <stringProp name="HTTPSampler.contentEncoding"></stringProp>
- <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.controlloop.Guard/versions/1.0.0/policies</stringProp>
- <stringProp name="HTTPSampler.method">POST</stringProp>
- <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
- <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
- <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
- <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
- <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
- <stringProp name="HTTPSampler.connect_timeout"></stringProp>
- <stringProp name="HTTPSampler.response_timeout"></stringProp>
- </HTTPSamplerProxy>
- <hashTree>
- <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
- <collectionProp name="Asserion.test_strings">
- <stringProp name="49586">200</stringProp>
- </collectionProp>
- <stringProp name="Assertion.custom_message"></stringProp>
- <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
- <boolProp name="Assertion.assume_success">false</boolProp>
- <intProp name="Assertion.test_type">1</intProp>
- </ResponseAssertion>
- <hashTree/>
- <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
- <stringProp name="scriptLanguage">groovy</stringProp>
- <stringProp name="parameters"></stringProp>
- <stringProp name="filename"></stringProp>
- <stringProp name="cacheKey">true</stringProp>
- <stringProp name="script">import groovy.json.JsonSlurper;
-
-def res = [];
-if (prev.getResponseCode() == &apos;200&apos;) {
- def jsonSlurper = new JsonSlurper();
- res = jsonSlurper.parseText(prev.getResponseDataAsString());
-
- assert res instanceof Map;
- assert res.get(&apos;guard.frequency.scaleout&apos;).version == &quot;12.0.0&quot;;
-}</stringProp>
- </JSR223Assertion>
- <hashTree/>
- </hashTree>
- <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="Constant Timer" enabled="true">
- <stringProp name="ConstantTimer.delay">10000</stringProp>
- </ConstantTimer>
- <hashTree/>
- <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get Guard Policy V1" enabled="true">
- <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
- <collectionProp name="Arguments.arguments"/>
- </elementProp>
- <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
- <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
- <stringProp name="HTTPSampler.protocol">https</stringProp>
- <stringProp name="HTTPSampler.contentEncoding"></stringProp>
- <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.controlloop.Guard/versions/1.0.0/policies/guard.frequency.scaleout/versions/1</stringProp>
- <stringProp name="HTTPSampler.method">GET</stringProp>
- <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
- <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
- <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
- <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
- <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
- <stringProp name="HTTPSampler.connect_timeout"></stringProp>
- <stringProp name="HTTPSampler.response_timeout"></stringProp>
- </HTTPSamplerProxy>
- <hashTree>
- <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
- <collectionProp name="Asserion.test_strings">
- <stringProp name="49586">200</stringProp>
- </collectionProp>
- <stringProp name="Assertion.custom_message"></stringProp>
- <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
- <boolProp name="Assertion.assume_success">false</boolProp>
- <intProp name="Assertion.test_type">1</intProp>
- </ResponseAssertion>
- <hashTree/>
- <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
- <stringProp name="scriptLanguage">groovy</stringProp>
- <stringProp name="parameters"></stringProp>
- <stringProp name="filename"></stringProp>
- <stringProp name="cacheKey">true</stringProp>
- <stringProp name="script">import groovy.json.JsonSlurper;
-
-def res = [];
-if (prev.getResponseCode() == &apos;200&apos;) {
- def jsonSlurper = new JsonSlurper();
- res = jsonSlurper.parseText(prev.getResponseDataAsString());
-
- assert res instanceof Map;
- assert res.get(&apos;guard.frequency.scaleout&apos;).version == &quot;1.0.0&quot;;
-}</stringProp>
- </JSR223Assertion>
- <hashTree/>
- </hashTree>
- <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get Guard Policy V5" enabled="true">
- <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
- <collectionProp name="Arguments.arguments"/>
- </elementProp>
- <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
- <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
- <stringProp name="HTTPSampler.protocol">https</stringProp>
- <stringProp name="HTTPSampler.contentEncoding"></stringProp>
- <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.controlloop.Guard/versions/1.0.0/policies/guard.frequency.scaleout/versions/5</stringProp>
- <stringProp name="HTTPSampler.method">GET</stringProp>
- <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
- <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
- <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
- <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
- <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
- <stringProp name="HTTPSampler.connect_timeout"></stringProp>
- <stringProp name="HTTPSampler.response_timeout"></stringProp>
- </HTTPSamplerProxy>
- <hashTree>
- <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
- <collectionProp name="Asserion.test_strings">
- <stringProp name="49586">200</stringProp>
- </collectionProp>
- <stringProp name="Assertion.custom_message"></stringProp>
- <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
- <boolProp name="Assertion.assume_success">false</boolProp>
- <intProp name="Assertion.test_type">1</intProp>
- </ResponseAssertion>
- <hashTree/>
- <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
- <stringProp name="scriptLanguage">groovy</stringProp>
- <stringProp name="parameters"></stringProp>
- <stringProp name="filename"></stringProp>
- <stringProp name="cacheKey">true</stringProp>
- <stringProp name="script">import groovy.json.JsonSlurper;
-
-def res = [];
-if (prev.getResponseCode() == &apos;200&apos;) {
- def jsonSlurper = new JsonSlurper();
- res = jsonSlurper.parseText(prev.getResponseDataAsString());
-
- assert res instanceof Map;
- assert res.get(&apos;guard.frequency.scaleout&apos;).version == &quot;5.0.0&quot;;
-}</stringProp>
- </JSR223Assertion>
- <hashTree/>
- </hashTree>
- <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get Guard Policy V9" enabled="true">
- <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
- <collectionProp name="Arguments.arguments"/>
- </elementProp>
- <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
- <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
- <stringProp name="HTTPSampler.protocol">https</stringProp>
- <stringProp name="HTTPSampler.contentEncoding"></stringProp>
- <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.controlloop.Guard/versions/1.0.0/policies/guard.frequency.scaleout/versions/9</stringProp>
- <stringProp name="HTTPSampler.method">GET</stringProp>
- <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
- <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
- <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
- <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
- <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
- <stringProp name="HTTPSampler.connect_timeout"></stringProp>
- <stringProp name="HTTPSampler.response_timeout"></stringProp>
- </HTTPSamplerProxy>
- <hashTree>
- <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
- <collectionProp name="Asserion.test_strings">
- <stringProp name="49586">200</stringProp>
- </collectionProp>
- <stringProp name="Assertion.custom_message"></stringProp>
- <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
- <boolProp name="Assertion.assume_success">false</boolProp>
- <intProp name="Assertion.test_type">1</intProp>
- </ResponseAssertion>
- <hashTree/>
- <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
- <stringProp name="scriptLanguage">groovy</stringProp>
- <stringProp name="parameters"></stringProp>
- <stringProp name="filename"></stringProp>
- <stringProp name="cacheKey">true</stringProp>
- <stringProp name="script">import groovy.json.JsonSlurper;
-
-def res = [];
-if (prev.getResponseCode() == &apos;200&apos;) {
- def jsonSlurper = new JsonSlurper();
- res = jsonSlurper.parseText(prev.getResponseDataAsString());
-
- assert res instanceof Map;
- assert res.get(&apos;guard.frequency.scaleout&apos;).version == &quot;9.0.0&quot;;
-}</stringProp>
- </JSR223Assertion>
- <hashTree/>
- </hashTree>
- <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get Guard Policy V12" enabled="true">
- <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
- <collectionProp name="Arguments.arguments"/>
- </elementProp>
- <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
- <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
- <stringProp name="HTTPSampler.protocol">https</stringProp>
- <stringProp name="HTTPSampler.contentEncoding"></stringProp>
- <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.controlloop.Guard/versions/1.0.0/policies/guard.frequency.scaleout/versions/12</stringProp>
- <stringProp name="HTTPSampler.method">GET</stringProp>
- <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
- <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
- <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
- <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
- <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
- <stringProp name="HTTPSampler.connect_timeout"></stringProp>
- <stringProp name="HTTPSampler.response_timeout"></stringProp>
- </HTTPSamplerProxy>
- <hashTree>
- <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
- <collectionProp name="Asserion.test_strings">
- <stringProp name="49586">200</stringProp>
- </collectionProp>
- <stringProp name="Assertion.custom_message"></stringProp>
- <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
- <boolProp name="Assertion.assume_success">false</boolProp>
- <intProp name="Assertion.test_type">1</intProp>
- </ResponseAssertion>
- <hashTree/>
- <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
- <stringProp name="scriptLanguage">groovy</stringProp>
- <stringProp name="parameters"></stringProp>
- <stringProp name="filename"></stringProp>
- <stringProp name="cacheKey">true</stringProp>
- <stringProp name="script">import groovy.json.JsonSlurper;
-
-def res = [];
-if (prev.getResponseCode() == &apos;200&apos;) {
- def jsonSlurper = new JsonSlurper();
- res = jsonSlurper.parseText(prev.getResponseDataAsString());
-
- assert res instanceof Map;
- assert res.get(&apos;guard.frequency.scaleout&apos;).version == &quot;12.0.0&quot;;
-}</stringProp>
- </JSR223Assertion>
- <hashTree/>
- </hashTree>
- <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get Latest Guard Policy" enabled="true">
- <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
- <collectionProp name="Arguments.arguments"/>
- </elementProp>
- <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
- <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
- <stringProp name="HTTPSampler.protocol">https</stringProp>
- <stringProp name="HTTPSampler.contentEncoding"></stringProp>
- <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.controlloop.Guard/versions/1.0.0/policies/guard.frequency.scaleout/versions/latest</stringProp>
- <stringProp name="HTTPSampler.method">GET</stringProp>
- <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
- <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
- <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
- <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
- <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
- <stringProp name="HTTPSampler.connect_timeout"></stringProp>
- <stringProp name="HTTPSampler.response_timeout"></stringProp>
- </HTTPSamplerProxy>
- <hashTree>
- <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
- <collectionProp name="Asserion.test_strings">
- <stringProp name="49586">200</stringProp>
- </collectionProp>
- <stringProp name="Assertion.custom_message"></stringProp>
- <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
- <boolProp name="Assertion.assume_success">false</boolProp>
- <intProp name="Assertion.test_type">1</intProp>
- </ResponseAssertion>
- <hashTree/>
- <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
- <stringProp name="scriptLanguage">groovy</stringProp>
- <stringProp name="parameters"></stringProp>
- <stringProp name="filename"></stringProp>
- <stringProp name="cacheKey">true</stringProp>
- <stringProp name="script">import groovy.json.JsonSlurper;
-
-def res = [];
-if (prev.getResponseCode() == &apos;200&apos;) {
- def jsonSlurper = new JsonSlurper();
- res = jsonSlurper.parseText(prev.getResponseDataAsString());
-
- assert res instanceof Map;
- assert res.get(&apos;guard.frequency.scaleout&apos;).version == &quot;12.0.0&quot;;
+ assert res.topology_template.policies[0].get(&apos;operational.apex.vCPE&apos;).version == &quot;6.0.${__threadNum}&quot;;
}</stringProp>
</JSR223Assertion>
<hashTree/>
</hashTree>
- <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="Constant Timer" enabled="true">
- <stringProp name="ConstantTimer.delay">3000</stringProp>
- </ConstantTimer>
- <hashTree/>
- </hashTree>
- <PostThreadGroup guiclass="PostThreadGroupGui" testclass="PostThreadGroup" testname="tearDown Thread Group" enabled="true">
- <stringProp name="ThreadGroup.on_sample_error">continue</stringProp>
- <elementProp name="ThreadGroup.main_controller" elementType="LoopController" guiclass="LoopControlPanel" testclass="LoopController" testname="Loop Controller" enabled="true">
- <boolProp name="LoopController.continue_forever">false</boolProp>
- <stringProp name="LoopController.loops">1</stringProp>
- </elementProp>
- <stringProp name="ThreadGroup.num_threads">1</stringProp>
- <stringProp name="ThreadGroup.ramp_time">1</stringProp>
- <boolProp name="ThreadGroup.scheduler">false</boolProp>
- <stringProp name="ThreadGroup.duration"></stringProp>
- <stringProp name="ThreadGroup.delay"></stringProp>
- </PostThreadGroup>
- <hashTree>
- <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete TCA Policy Type V2" enabled="true">
+ <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete Policy Native Drools" enabled="true">
<elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
<collectionProp name="Arguments.arguments"/>
</elementProp>
@@ -7002,37 +3597,7 @@ if (prev.getResponseCode() == &apos;200&apos;) {
<stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
<stringProp name="HTTPSampler.protocol">https</stringProp>
<stringProp name="HTTPSampler.contentEncoding"></stringProp>
- <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/2.0.0</stringProp>
- <stringProp name="HTTPSampler.method">DELETE</stringProp>
- <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
- <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
- <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
- <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
- <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
- <stringProp name="HTTPSampler.connect_timeout"></stringProp>
- <stringProp name="HTTPSampler.response_timeout"></stringProp>
- </HTTPSamplerProxy>
- <hashTree>
- <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
- <collectionProp name="Asserion.test_strings">
- <stringProp name="51517">409</stringProp>
- </collectionProp>
- <stringProp name="Assertion.custom_message"></stringProp>
- <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
- <boolProp name="Assertion.assume_success">false</boolProp>
- <intProp name="Assertion.test_type">1</intProp>
- </ResponseAssertion>
- <hashTree/>
- </hashTree>
- <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete TCA Policy Type V3" enabled="true">
- <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
- <collectionProp name="Arguments.arguments"/>
- </elementProp>
- <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
- <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
- <stringProp name="HTTPSampler.protocol">https</stringProp>
- <stringProp name="HTTPSampler.contentEncoding"></stringProp>
- <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/3.0.0</stringProp>
+ <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.native.drools.Artifact/versions/6.0.${__threadNum}/policies/usecases.artifacts/versions/6.0.${__threadNum}</stringProp>
<stringProp name="HTTPSampler.method">DELETE</stringProp>
<boolProp name="HTTPSampler.follow_redirects">true</boolProp>
<boolProp name="HTTPSampler.auto_redirects">false</boolProp>
@@ -7066,215 +3631,15 @@ if (prev.getResponseCode() == &apos;200&apos;) {
res = jsonSlurper.parseText(prev.getResponseDataAsString());
assert res instanceof Map;
- assert res.policy_types instanceof List;
- assert res.policy_types.size == 1;
- assert res.policy_types[0] instanceof Map;
- assert res.policy_types[0].get(&apos;onap.policies.monitoring.cdap.tca.hi.lo.app&apos;).version == &quot;3.0.0&quot;;
-}</stringProp>
- </JSR223Assertion>
- <hashTree/>
- </hashTree>
- <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete TCA Policy Type V4" enabled="true">
- <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
- <collectionProp name="Arguments.arguments"/>
- </elementProp>
- <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
- <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
- <stringProp name="HTTPSampler.protocol">https</stringProp>
- <stringProp name="HTTPSampler.contentEncoding"></stringProp>
- <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/4.0.0</stringProp>
- <stringProp name="HTTPSampler.method">DELETE</stringProp>
- <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
- <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
- <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
- <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
- <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
- <stringProp name="HTTPSampler.connect_timeout"></stringProp>
- <stringProp name="HTTPSampler.response_timeout"></stringProp>
- </HTTPSamplerProxy>
- <hashTree>
- <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
- <collectionProp name="Asserion.test_strings">
- <stringProp name="49586">200</stringProp>
- </collectionProp>
- <stringProp name="Assertion.custom_message"></stringProp>
- <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
- <boolProp name="Assertion.assume_success">false</boolProp>
- <intProp name="Assertion.test_type">1</intProp>
- </ResponseAssertion>
- <hashTree/>
- <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
- <stringProp name="scriptLanguage">groovy</stringProp>
- <stringProp name="parameters"></stringProp>
- <stringProp name="filename"></stringProp>
- <stringProp name="cacheKey">true</stringProp>
- <stringProp name="script">import groovy.json.JsonSlurper;
-
-def res = [];
-if (prev.getResponseCode() == &apos;200&apos;) {
- def jsonSlurper = new JsonSlurper();
- res = jsonSlurper.parseText(prev.getResponseDataAsString());
-
- assert res instanceof Map;
- assert res.policy_types instanceof List;
- assert res.policy_types.size == 1;
- assert res.policy_types[0] instanceof Map;
- assert res.policy_types[0].get(&apos;onap.policies.monitoring.cdap.tca.hi.lo.app&apos;).version == &quot;4.0.0&quot;;
-}</stringProp>
- </JSR223Assertion>
- <hashTree/>
- </hashTree>
- <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete TCA Policy Type V5" enabled="true">
- <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
- <collectionProp name="Arguments.arguments"/>
- </elementProp>
- <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
- <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
- <stringProp name="HTTPSampler.protocol">https</stringProp>
- <stringProp name="HTTPSampler.contentEncoding"></stringProp>
- <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/5.0.0</stringProp>
- <stringProp name="HTTPSampler.method">DELETE</stringProp>
- <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
- <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
- <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
- <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
- <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
- <stringProp name="HTTPSampler.connect_timeout"></stringProp>
- <stringProp name="HTTPSampler.response_timeout"></stringProp>
- </HTTPSamplerProxy>
- <hashTree>
- <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
- <collectionProp name="Asserion.test_strings">
- <stringProp name="49586">200</stringProp>
- </collectionProp>
- <stringProp name="Assertion.custom_message"></stringProp>
- <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
- <boolProp name="Assertion.assume_success">false</boolProp>
- <intProp name="Assertion.test_type">1</intProp>
- </ResponseAssertion>
- <hashTree/>
- <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
- <stringProp name="scriptLanguage">groovy</stringProp>
- <stringProp name="parameters"></stringProp>
- <stringProp name="filename"></stringProp>
- <stringProp name="cacheKey">true</stringProp>
- <stringProp name="script">import groovy.json.JsonSlurper;
-
-def res = [];
-if (prev.getResponseCode() == &apos;200&apos;) {
- def jsonSlurper = new JsonSlurper();
- res = jsonSlurper.parseText(prev.getResponseDataAsString());
-
- assert res instanceof Map;
- assert res.policy_types instanceof List;
- assert res.policy_types.size == 1;
- assert res.policy_types[0] instanceof Map;
- assert res.policy_types[0].get(&apos;onap.policies.monitoring.cdap.tca.hi.lo.app&apos;).version == &quot;5.0.0&quot;;
-}</stringProp>
- </JSR223Assertion>
- <hashTree/>
- </hashTree>
- <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete TCA Policy Type V6" enabled="true">
- <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
- <collectionProp name="Arguments.arguments"/>
- </elementProp>
- <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
- <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
- <stringProp name="HTTPSampler.protocol">https</stringProp>
- <stringProp name="HTTPSampler.contentEncoding"></stringProp>
- <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/6.0.0</stringProp>
- <stringProp name="HTTPSampler.method">DELETE</stringProp>
- <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
- <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
- <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
- <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
- <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
- <stringProp name="HTTPSampler.connect_timeout"></stringProp>
- <stringProp name="HTTPSampler.response_timeout"></stringProp>
- </HTTPSamplerProxy>
- <hashTree>
- <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
- <collectionProp name="Asserion.test_strings">
- <stringProp name="49586">200</stringProp>
- </collectionProp>
- <stringProp name="Assertion.custom_message"></stringProp>
- <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
- <boolProp name="Assertion.assume_success">false</boolProp>
- <intProp name="Assertion.test_type">1</intProp>
- </ResponseAssertion>
- <hashTree/>
- <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
- <stringProp name="scriptLanguage">groovy</stringProp>
- <stringProp name="parameters"></stringProp>
- <stringProp name="filename"></stringProp>
- <stringProp name="cacheKey">true</stringProp>
- <stringProp name="script">import groovy.json.JsonSlurper;
-
-def res = [];
-if (prev.getResponseCode() == &apos;200&apos;) {
- def jsonSlurper = new JsonSlurper();
- res = jsonSlurper.parseText(prev.getResponseDataAsString());
-
- assert res instanceof Map;
- assert res.policy_types instanceof List;
- assert res.policy_types.size == 1;
- assert res.policy_types[0] instanceof Map;
- assert res.policy_types[0].get(&apos;onap.policies.monitoring.cdap.tca.hi.lo.app&apos;).version == &quot;6.0.0&quot;;
-}</stringProp>
- </JSR223Assertion>
- <hashTree/>
- </hashTree>
- <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete TCA Policy Type V7" enabled="true">
- <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
- <collectionProp name="Arguments.arguments"/>
- </elementProp>
- <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
- <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
- <stringProp name="HTTPSampler.protocol">https</stringProp>
- <stringProp name="HTTPSampler.contentEncoding"></stringProp>
- <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/7.0.0</stringProp>
- <stringProp name="HTTPSampler.method">DELETE</stringProp>
- <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
- <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
- <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
- <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
- <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
- <stringProp name="HTTPSampler.connect_timeout"></stringProp>
- <stringProp name="HTTPSampler.response_timeout"></stringProp>
- </HTTPSamplerProxy>
- <hashTree>
- <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
- <collectionProp name="Asserion.test_strings">
- <stringProp name="49586">200</stringProp>
- </collectionProp>
- <stringProp name="Assertion.custom_message"></stringProp>
- <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
- <boolProp name="Assertion.assume_success">false</boolProp>
- <intProp name="Assertion.test_type">1</intProp>
- </ResponseAssertion>
- <hashTree/>
- <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
- <stringProp name="scriptLanguage">groovy</stringProp>
- <stringProp name="parameters"></stringProp>
- <stringProp name="filename"></stringProp>
- <stringProp name="cacheKey">true</stringProp>
- <stringProp name="script">import groovy.json.JsonSlurper;
-
-def res = [];
-if (prev.getResponseCode() == &apos;200&apos;) {
- def jsonSlurper = new JsonSlurper();
- res = jsonSlurper.parseText(prev.getResponseDataAsString());
-
- assert res instanceof Map;
- assert res.policy_types instanceof List;
- assert res.policy_types.size == 1;
- assert res.policy_types[0] instanceof Map;
- assert res.policy_types[0].get(&apos;onap.policies.monitoring.cdap.tca.hi.lo.app&apos;).version == &quot;7.0.0&quot;;
+ assert res.topology_template.policies instanceof List;
+ assert res.topology_template.policies.size == 1;
+ assert res.topology_template.policies[0] instanceof Map;
+ assert res.topology_template.policies[0].get(&apos;usecases.artifacts&apos;).version == &quot;6.0.${__threadNum}&quot;;
}</stringProp>
</JSR223Assertion>
<hashTree/>
</hashTree>
- <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete TCA Policy Type V8" enabled="true">
+ <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete Policy Native XACML" enabled="true">
<elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
<collectionProp name="Arguments.arguments"/>
</elementProp>
@@ -7282,7 +3647,7 @@ if (prev.getResponseCode() == &apos;200&apos;) {
<stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
<stringProp name="HTTPSampler.protocol">https</stringProp>
<stringProp name="HTTPSampler.contentEncoding"></stringProp>
- <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/8.0.0</stringProp>
+ <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.native.Xacml/versions/6.0.${__threadNum}/policies/onap.policies.native.xacml.NativeXacmlPolicy/versions/6.0.${__threadNum}</stringProp>
<stringProp name="HTTPSampler.method">DELETE</stringProp>
<boolProp name="HTTPSampler.follow_redirects">true</boolProp>
<boolProp name="HTTPSampler.auto_redirects">false</boolProp>
@@ -7316,15 +3681,15 @@ if (prev.getResponseCode() == &apos;200&apos;) {
res = jsonSlurper.parseText(prev.getResponseDataAsString());
assert res instanceof Map;
- assert res.policy_types instanceof List;
- assert res.policy_types.size == 1;
- assert res.policy_types[0] instanceof Map;
- assert res.policy_types[0].get(&apos;onap.policies.monitoring.cdap.tca.hi.lo.app&apos;).version == &quot;8.0.0&quot;;
+ assert res.topology_template.policies instanceof List;
+ assert res.topology_template.policies.size == 1;
+ assert res.topology_template.policies[0] instanceof Map;
+ assert res.topology_template.policies[0].get(&apos;onap.policies.native.xacml.NativeXacmlPolicy&apos;).version == &quot;6.0.${__threadNum}&quot;;
}</stringProp>
</JSR223Assertion>
<hashTree/>
</hashTree>
- <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete TCA Policy Type V9" enabled="true">
+ <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete Policy Type Monitoring" enabled="true">
<elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
<collectionProp name="Arguments.arguments"/>
</elementProp>
@@ -7332,7 +3697,7 @@ if (prev.getResponseCode() == &apos;200&apos;) {
<stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
<stringProp name="HTTPSampler.protocol">https</stringProp>
<stringProp name="HTTPSampler.contentEncoding"></stringProp>
- <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/9.0.0</stringProp>
+ <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/6.0.${__threadNum}</stringProp>
<stringProp name="HTTPSampler.method">DELETE</stringProp>
<boolProp name="HTTPSampler.follow_redirects">true</boolProp>
<boolProp name="HTTPSampler.auto_redirects">false</boolProp>
@@ -7343,7 +3708,7 @@ if (prev.getResponseCode() == &apos;200&apos;) {
<stringProp name="HTTPSampler.response_timeout"></stringProp>
</HTTPSamplerProxy>
<hashTree>
- <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
+ <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="false">
<collectionProp name="Asserion.test_strings">
<stringProp name="49586">200</stringProp>
</collectionProp>
@@ -7353,7 +3718,7 @@ if (prev.getResponseCode() == &apos;200&apos;) {
<intProp name="Assertion.test_type">1</intProp>
</ResponseAssertion>
<hashTree/>
- <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
+ <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="false">
<stringProp name="scriptLanguage">groovy</stringProp>
<stringProp name="parameters"></stringProp>
<stringProp name="filename"></stringProp>
@@ -7361,7 +3726,7 @@ if (prev.getResponseCode() == &apos;200&apos;) {
<stringProp name="script">import groovy.json.JsonSlurper;
def res = [];
-if (prev.getResponseCode() == &apos;200&apos;) {
+if (prev.getResponseCode() == &apos;409&apos;) {
def jsonSlurper = new JsonSlurper();
res = jsonSlurper.parseText(prev.getResponseDataAsString());
@@ -7369,12 +3734,12 @@ if (prev.getResponseCode() == &apos;200&apos;) {
assert res.policy_types instanceof List;
assert res.policy_types.size == 1;
assert res.policy_types[0] instanceof Map;
- assert res.policy_types[0].get(&apos;onap.policies.monitoring.cdap.tca.hi.lo.app&apos;).version == &quot;9.0.0&quot;;
-}</stringProp>
+ assert res.policy_types[0].get(&apos;onap.policies.monitoring.cdap.tca.hi.lo.app&apos;).version == &quot;6.0.${__threadNum}&quot;;
+ }</stringProp>
</JSR223Assertion>
<hashTree/>
</hashTree>
- <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete TCA Policy Type V10" enabled="true">
+ <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete Policy Type Monitoring V2" enabled="true">
<elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
<collectionProp name="Arguments.arguments"/>
</elementProp>
@@ -7382,7 +3747,7 @@ if (prev.getResponseCode() == &apos;200&apos;) {
<stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
<stringProp name="HTTPSampler.protocol">https</stringProp>
<stringProp name="HTTPSampler.contentEncoding"></stringProp>
- <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/10.0.0</stringProp>
+ <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/7.0.${__threadNum}</stringProp>
<stringProp name="HTTPSampler.method">DELETE</stringProp>
<boolProp name="HTTPSampler.follow_redirects">true</boolProp>
<boolProp name="HTTPSampler.auto_redirects">false</boolProp>
@@ -7393,7 +3758,7 @@ if (prev.getResponseCode() == &apos;200&apos;) {
<stringProp name="HTTPSampler.response_timeout"></stringProp>
</HTTPSamplerProxy>
<hashTree>
- <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
+ <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="false">
<collectionProp name="Asserion.test_strings">
<stringProp name="49586">200</stringProp>
</collectionProp>
@@ -7403,7 +3768,7 @@ if (prev.getResponseCode() == &apos;200&apos;) {
<intProp name="Assertion.test_type">1</intProp>
</ResponseAssertion>
<hashTree/>
- <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
+ <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="false">
<stringProp name="scriptLanguage">groovy</stringProp>
<stringProp name="parameters"></stringProp>
<stringProp name="filename"></stringProp>
@@ -7411,7 +3776,7 @@ if (prev.getResponseCode() == &apos;200&apos;) {
<stringProp name="script">import groovy.json.JsonSlurper;
def res = [];
-if (prev.getResponseCode() == &apos;200&apos;) {
+if (prev.getResponseCode() == &apos;409&apos;) {
def jsonSlurper = new JsonSlurper();
res = jsonSlurper.parseText(prev.getResponseDataAsString());
@@ -7419,12 +3784,12 @@ if (prev.getResponseCode() == &apos;200&apos;) {
assert res.policy_types instanceof List;
assert res.policy_types.size == 1;
assert res.policy_types[0] instanceof Map;
- assert res.policy_types[0].get(&apos;onap.policies.monitoring.cdap.tca.hi.lo.app&apos;).version == &quot;10.0.0&quot;;
-}</stringProp>
+ assert res.policy_types[0].get(&apos;onap.policies.monitoring.cdap.tca.hi.lo.app&apos;).version == &quot;7.0.${__threadNum}&quot;;
+ }</stringProp>
</JSR223Assertion>
<hashTree/>
</hashTree>
- <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete TCA Policy Type V11" enabled="true">
+ <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete Policy Type Optimization" enabled="true">
<elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
<collectionProp name="Arguments.arguments"/>
</elementProp>
@@ -7432,7 +3797,7 @@ if (prev.getResponseCode() == &apos;200&apos;) {
<stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
<stringProp name="HTTPSampler.protocol">https</stringProp>
<stringProp name="HTTPSampler.contentEncoding"></stringProp>
- <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/11.0.0</stringProp>
+ <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.optimization.resource.AffinityPolicy/versions/6.0.${__threadNum}</stringProp>
<stringProp name="HTTPSampler.method">DELETE</stringProp>
<boolProp name="HTTPSampler.follow_redirects">true</boolProp>
<boolProp name="HTTPSampler.auto_redirects">false</boolProp>
@@ -7461,7 +3826,7 @@ if (prev.getResponseCode() == &apos;200&apos;) {
<stringProp name="script">import groovy.json.JsonSlurper;
def res = [];
-if (prev.getResponseCode() == &apos;200&apos;) {
+if (prev.getResponseCode() == &apos;409&apos;) {
def jsonSlurper = new JsonSlurper();
res = jsonSlurper.parseText(prev.getResponseDataAsString());
@@ -7469,162 +3834,12 @@ if (prev.getResponseCode() == &apos;200&apos;) {
assert res.policy_types instanceof List;
assert res.policy_types.size == 1;
assert res.policy_types[0] instanceof Map;
- assert res.policy_types[0].get(&apos;onap.policies.monitoring.cdap.tca.hi.lo.app&apos;).version == &quot;11.0.0&quot;;
-}</stringProp>
- </JSR223Assertion>
- <hashTree/>
- </hashTree>
- <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete TCA Policy V1" enabled="true">
- <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
- <collectionProp name="Arguments.arguments"/>
- </elementProp>
- <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
- <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
- <stringProp name="HTTPSampler.protocol">https</stringProp>
- <stringProp name="HTTPSampler.contentEncoding"></stringProp>
- <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>
- <stringProp name="HTTPSampler.method">DELETE</stringProp>
- <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
- <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
- <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
- <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
- <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
- <stringProp name="HTTPSampler.connect_timeout"></stringProp>
- <stringProp name="HTTPSampler.response_timeout"></stringProp>
- </HTTPSamplerProxy>
- <hashTree>
- <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
- <collectionProp name="Asserion.test_strings">
- <stringProp name="49586">200</stringProp>
- </collectionProp>
- <stringProp name="Assertion.custom_message"></stringProp>
- <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
- <boolProp name="Assertion.assume_success">false</boolProp>
- <intProp name="Assertion.test_type">1</intProp>
- </ResponseAssertion>
- <hashTree/>
- <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
- <stringProp name="scriptLanguage">groovy</stringProp>
- <stringProp name="parameters"></stringProp>
- <stringProp name="filename"></stringProp>
- <stringProp name="cacheKey">true</stringProp>
- <stringProp name="script">import groovy.json.JsonSlurper;
-
-def res = [];
-if (prev.getResponseCode() == &apos;200&apos;) {
- def jsonSlurper = new JsonSlurper();
- res = jsonSlurper.parseText(prev.getResponseDataAsString());
-
- assert res instanceof Map;
- assert res.topology_template.policies instanceof List;
- assert res.topology_template.policies.size == 1;
- assert res.topology_template.policies[0] instanceof Map;
- assert res.topology_template.policies[0].get(&apos;onap.restart.tca&apos;).version == &quot;1.0.0&quot;;
-}</stringProp>
- </JSR223Assertion>
- <hashTree/>
- </hashTree>
- <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete TCA Policy V2" enabled="true">
- <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
- <collectionProp name="Arguments.arguments"/>
- </elementProp>
- <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
- <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
- <stringProp name="HTTPSampler.protocol">https</stringProp>
- <stringProp name="HTTPSampler.contentEncoding"></stringProp>
- <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>
- <stringProp name="HTTPSampler.method">DELETE</stringProp>
- <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
- <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
- <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
- <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
- <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
- <stringProp name="HTTPSampler.connect_timeout"></stringProp>
- <stringProp name="HTTPSampler.response_timeout"></stringProp>
- </HTTPSamplerProxy>
- <hashTree>
- <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
- <collectionProp name="Asserion.test_strings">
- <stringProp name="49586">200</stringProp>
- </collectionProp>
- <stringProp name="Assertion.custom_message"></stringProp>
- <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
- <boolProp name="Assertion.assume_success">false</boolProp>
- <intProp name="Assertion.test_type">1</intProp>
- </ResponseAssertion>
- <hashTree/>
- <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
- <stringProp name="scriptLanguage">groovy</stringProp>
- <stringProp name="parameters"></stringProp>
- <stringProp name="filename"></stringProp>
- <stringProp name="cacheKey">true</stringProp>
- <stringProp name="script">import groovy.json.JsonSlurper;
-
-def res = [];
-if (prev.getResponseCode() == &apos;200&apos;) {
- def jsonSlurper = new JsonSlurper();
- res = jsonSlurper.parseText(prev.getResponseDataAsString());
-
- assert res instanceof Map;
- assert res.topology_template.policies instanceof List;
- assert res.topology_template.policies.size == 1;
- assert res.topology_template.policies[0] instanceof Map;
- assert res.topology_template.policies[0].get(&apos;onap.restart.tca&apos;).version == &quot;2.0.0&quot;;
-}</stringProp>
- </JSR223Assertion>
- <hashTree/>
- </hashTree>
- <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete TCA Policy V3" enabled="true">
- <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
- <collectionProp name="Arguments.arguments"/>
- </elementProp>
- <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
- <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
- <stringProp name="HTTPSampler.protocol">https</stringProp>
- <stringProp name="HTTPSampler.contentEncoding"></stringProp>
- <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>
- <stringProp name="HTTPSampler.method">DELETE</stringProp>
- <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
- <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
- <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
- <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
- <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
- <stringProp name="HTTPSampler.connect_timeout"></stringProp>
- <stringProp name="HTTPSampler.response_timeout"></stringProp>
- </HTTPSamplerProxy>
- <hashTree>
- <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
- <collectionProp name="Asserion.test_strings">
- <stringProp name="49586">200</stringProp>
- </collectionProp>
- <stringProp name="Assertion.custom_message"></stringProp>
- <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
- <boolProp name="Assertion.assume_success">false</boolProp>
- <intProp name="Assertion.test_type">1</intProp>
- </ResponseAssertion>
- <hashTree/>
- <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
- <stringProp name="scriptLanguage">groovy</stringProp>
- <stringProp name="parameters"></stringProp>
- <stringProp name="filename"></stringProp>
- <stringProp name="cacheKey">true</stringProp>
- <stringProp name="script">import groovy.json.JsonSlurper;
-
-def res = [];
-if (prev.getResponseCode() == &apos;200&apos;) {
- def jsonSlurper = new JsonSlurper();
- res = jsonSlurper.parseText(prev.getResponseDataAsString());
-
- assert res instanceof Map;
- assert res.topology_template.policies instanceof List;
- assert res.topology_template.policies.size == 1;
- assert res.topology_template.policies[0] instanceof Map;
- assert res.topology_template.policies[0].get(&apos;onap.restart.tca&apos;).version == &quot;3.0.0&quot;;
-}</stringProp>
+ assert res.policy_types[0].get(&apos;onap.policies.optimization.resource.AffinityPolicy&apos;).version == &quot;6.0.${__threadNum}&quot;;
+ }</stringProp>
</JSR223Assertion>
<hashTree/>
</hashTree>
- <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete TCA Policy V4" enabled="true">
+ <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete Policy Type Guard" enabled="true">
<elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
<collectionProp name="Arguments.arguments"/>
</elementProp>
@@ -7632,7 +3847,7 @@ if (prev.getResponseCode() == &apos;200&apos;) {
<stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
<stringProp name="HTTPSampler.protocol">https</stringProp>
<stringProp name="HTTPSampler.contentEncoding"></stringProp>
- <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>
+ <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.controlloop.guard.common.Blacklist/versions/6.0.${__threadNum}</stringProp>
<stringProp name="HTTPSampler.method">DELETE</stringProp>
<boolProp name="HTTPSampler.follow_redirects">true</boolProp>
<boolProp name="HTTPSampler.auto_redirects">false</boolProp>
@@ -7666,15 +3881,13 @@ if (prev.getResponseCode() == &apos;200&apos;) {
res = jsonSlurper.parseText(prev.getResponseDataAsString());
assert res instanceof Map;
- assert res.topology_template.policies instanceof List;
- assert res.topology_template.policies.size == 1;
- assert res.topology_template.policies[0] instanceof Map;
- assert res.topology_template.policies[0].get(&apos;onap.restart.tca&apos;).version == &quot;4.0.0&quot;;
-}</stringProp>
+ assert res.policy_types instanceof Map;
+ assert res.policy_types.get(&apos;onap.policies.controlloop.guard.common.Blacklist&apos;).version == &quot;6.0.${__threadNum}&quot;;
+ }</stringProp>
</JSR223Assertion>
<hashTree/>
</hashTree>
- <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete TCA Policy V5" enabled="true">
+ <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete Policy Type Native APEX" enabled="true">
<elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
<collectionProp name="Arguments.arguments"/>
</elementProp>
@@ -7682,7 +3895,7 @@ if (prev.getResponseCode() == &apos;200&apos;) {
<stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
<stringProp name="HTTPSampler.protocol">https</stringProp>
<stringProp name="HTTPSampler.contentEncoding"></stringProp>
- <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>
+ <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.native.Apex/versions/6.0.${__threadNum}</stringProp>
<stringProp name="HTTPSampler.method">DELETE</stringProp>
<boolProp name="HTTPSampler.follow_redirects">true</boolProp>
<boolProp name="HTTPSampler.auto_redirects">false</boolProp>
@@ -7716,15 +3929,13 @@ if (prev.getResponseCode() == &apos;200&apos;) {
res = jsonSlurper.parseText(prev.getResponseDataAsString());
assert res instanceof Map;
- assert res.topology_template.policies instanceof List;
- assert res.topology_template.policies.size == 1;
- assert res.topology_template.policies[0] instanceof Map;
- assert res.topology_template.policies[0].get(&apos;onap.restart.tca&apos;).version == &quot;5.0.0&quot;;
-}</stringProp>
+ assert res.policy_types instanceof Map;
+ assert res.policy_types.get(&apos;onap.policies.native.Apex&apos;).version == &quot;6.0.${__threadNum}&quot;;
+ }</stringProp>
</JSR223Assertion>
<hashTree/>
</hashTree>
- <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete TCA Policy V6" enabled="true">
+ <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete Policy Type Native Drools Controller" enabled="true">
<elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
<collectionProp name="Arguments.arguments"/>
</elementProp>
@@ -7732,7 +3943,7 @@ if (prev.getResponseCode() == &apos;200&apos;) {
<stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
<stringProp name="HTTPSampler.protocol">https</stringProp>
<stringProp name="HTTPSampler.contentEncoding"></stringProp>
- <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>
+ <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.native.drools.Controller/versions/6.0.${__threadNum}</stringProp>
<stringProp name="HTTPSampler.method">DELETE</stringProp>
<boolProp name="HTTPSampler.follow_redirects">true</boolProp>
<boolProp name="HTTPSampler.auto_redirects">false</boolProp>
@@ -7766,15 +3977,13 @@ if (prev.getResponseCode() == &apos;200&apos;) {
res = jsonSlurper.parseText(prev.getResponseDataAsString());
assert res instanceof Map;
- assert res.topology_template.policies instanceof List;
- assert res.topology_template.policies.size == 1;
- assert res.topology_template.policies[0] instanceof Map;
- assert res.topology_template.policies[0].get(&apos;onap.restart.tca&apos;).version == &quot;6.0.0&quot;;
-}</stringProp>
+ assert res.policy_types instanceof Map;
+ assert res.policy_types.get(&apos;onap.policies.native.drools.Controller&apos;).version == &quot;6.0.${__threadNum}&quot;;
+ }</stringProp>
</JSR223Assertion>
<hashTree/>
</hashTree>
- <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete TCA Policy V7" enabled="true">
+ <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete Policy Type Native Drools Artifact" enabled="true">
<elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
<collectionProp name="Arguments.arguments"/>
</elementProp>
@@ -7782,7 +3991,7 @@ if (prev.getResponseCode() == &apos;200&apos;) {
<stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
<stringProp name="HTTPSampler.protocol">https</stringProp>
<stringProp name="HTTPSampler.contentEncoding"></stringProp>
- <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>
+ <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.native.drools.Artifact/versions/6.0.${__threadNum}</stringProp>
<stringProp name="HTTPSampler.method">DELETE</stringProp>
<boolProp name="HTTPSampler.follow_redirects">true</boolProp>
<boolProp name="HTTPSampler.auto_redirects">false</boolProp>
@@ -7816,15 +4025,13 @@ if (prev.getResponseCode() == &apos;200&apos;) {
res = jsonSlurper.parseText(prev.getResponseDataAsString());
assert res instanceof Map;
- assert res.topology_template.policies instanceof List;
- assert res.topology_template.policies.size == 1;
- assert res.topology_template.policies[0] instanceof Map;
- assert res.topology_template.policies[0].get(&apos;onap.restart.tca&apos;).version == &quot;7.0.0&quot;;
-}</stringProp>
+ assert res.policy_types instanceof Map;
+ assert res.policy_types.get(&apos;onap.policies.native.drools.Artifact&apos;).version == &quot;6.0.${__threadNum}&quot;;
+ }</stringProp>
</JSR223Assertion>
<hashTree/>
</hashTree>
- <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete TCA Policy V8" enabled="true">
+ <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete Policy Type Native XACML" enabled="true">
<elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
<collectionProp name="Arguments.arguments"/>
</elementProp>
@@ -7832,7 +4039,7 @@ if (prev.getResponseCode() == &apos;200&apos;) {
<stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
<stringProp name="HTTPSampler.protocol">https</stringProp>
<stringProp name="HTTPSampler.contentEncoding"></stringProp>
- <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>
+ <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.native.Xacml/versions/6.0.${__threadNum}</stringProp>
<stringProp name="HTTPSampler.method">DELETE</stringProp>
<boolProp name="HTTPSampler.follow_redirects">true</boolProp>
<boolProp name="HTTPSampler.auto_redirects">false</boolProp>
@@ -7866,165 +4073,28 @@ if (prev.getResponseCode() == &apos;200&apos;) {
res = jsonSlurper.parseText(prev.getResponseDataAsString());
assert res instanceof Map;
- assert res.topology_template.policies instanceof List;
- assert res.topology_template.policies.size == 1;
- assert res.topology_template.policies[0] instanceof Map;
- assert res.topology_template.policies[0].get(&apos;onap.restart.tca&apos;).version == &quot;8.0.0&quot;;
-}</stringProp>
+ assert res.policy_types instanceof Map;
+ assert res.policy_types.get(&apos;onap.policies.native.Xacml&apos;).version == &quot;6.0.${__threadNum}&quot;;
+ }</stringProp>
</JSR223Assertion>
<hashTree/>
</hashTree>
- <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete TCA Policy V9" enabled="true">
- <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
- <collectionProp name="Arguments.arguments"/>
- </elementProp>
- <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
- <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
- <stringProp name="HTTPSampler.protocol">https</stringProp>
- <stringProp name="HTTPSampler.contentEncoding"></stringProp>
- <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>
- <stringProp name="HTTPSampler.method">DELETE</stringProp>
- <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
- <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
- <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
- <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
- <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
- <stringProp name="HTTPSampler.connect_timeout"></stringProp>
- <stringProp name="HTTPSampler.response_timeout"></stringProp>
- </HTTPSamplerProxy>
- <hashTree>
- <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
- <collectionProp name="Asserion.test_strings">
- <stringProp name="49586">200</stringProp>
- </collectionProp>
- <stringProp name="Assertion.custom_message"></stringProp>
- <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
- <boolProp name="Assertion.assume_success">false</boolProp>
- <intProp name="Assertion.test_type">1</intProp>
- </ResponseAssertion>
- <hashTree/>
- <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
- <stringProp name="scriptLanguage">groovy</stringProp>
- <stringProp name="parameters"></stringProp>
- <stringProp name="filename"></stringProp>
- <stringProp name="cacheKey">true</stringProp>
- <stringProp name="script">import groovy.json.JsonSlurper;
-
-def res = [];
-if (prev.getResponseCode() == &apos;200&apos;) {
- def jsonSlurper = new JsonSlurper();
- res = jsonSlurper.parseText(prev.getResponseDataAsString());
-
- assert res instanceof Map;
- assert res.topology_template.policies instanceof List;
- assert res.topology_template.policies.size == 1;
- assert res.topology_template.policies[0] instanceof Map;
- assert res.topology_template.policies[0].get(&apos;onap.restart.tca&apos;).version == &quot;9.0.0&quot;;
-}</stringProp>
- </JSR223Assertion>
- <hashTree/>
- </hashTree>
- <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete TCA Policy V10" enabled="true">
- <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
- <collectionProp name="Arguments.arguments"/>
- </elementProp>
- <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
- <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
- <stringProp name="HTTPSampler.protocol">https</stringProp>
- <stringProp name="HTTPSampler.contentEncoding"></stringProp>
- <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>
- <stringProp name="HTTPSampler.method">DELETE</stringProp>
- <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
- <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
- <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
- <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
- <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
- <stringProp name="HTTPSampler.connect_timeout"></stringProp>
- <stringProp name="HTTPSampler.response_timeout"></stringProp>
- </HTTPSamplerProxy>
- <hashTree>
- <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
- <collectionProp name="Asserion.test_strings">
- <stringProp name="49586">200</stringProp>
- </collectionProp>
- <stringProp name="Assertion.custom_message"></stringProp>
- <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
- <boolProp name="Assertion.assume_success">false</boolProp>
- <intProp name="Assertion.test_type">1</intProp>
- </ResponseAssertion>
- <hashTree/>
- <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
- <stringProp name="scriptLanguage">groovy</stringProp>
- <stringProp name="parameters"></stringProp>
- <stringProp name="filename"></stringProp>
- <stringProp name="cacheKey">true</stringProp>
- <stringProp name="script">import groovy.json.JsonSlurper;
-
-def res = [];
-if (prev.getResponseCode() == &apos;200&apos;) {
- def jsonSlurper = new JsonSlurper();
- res = jsonSlurper.parseText(prev.getResponseDataAsString());
-
- assert res instanceof Map;
- assert res.topology_template.policies instanceof List;
- assert res.topology_template.policies.size == 1;
- assert res.topology_template.policies[0] instanceof Map;
- assert res.topology_template.policies[0].get(&apos;onap.restart.tca&apos;).version == &quot;10.0.0&quot;;
-}</stringProp>
- </JSR223Assertion>
- <hashTree/>
- </hashTree>
- <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete TCA Policy V11" enabled="true">
- <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
- <collectionProp name="Arguments.arguments"/>
- </elementProp>
- <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
- <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
- <stringProp name="HTTPSampler.protocol">https</stringProp>
- <stringProp name="HTTPSampler.contentEncoding"></stringProp>
- <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>
- <stringProp name="HTTPSampler.method">DELETE</stringProp>
- <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
- <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
- <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
- <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
- <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
- <stringProp name="HTTPSampler.connect_timeout"></stringProp>
- <stringProp name="HTTPSampler.response_timeout"></stringProp>
- </HTTPSamplerProxy>
- <hashTree>
- <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
- <collectionProp name="Asserion.test_strings">
- <stringProp name="49586">200</stringProp>
- </collectionProp>
- <stringProp name="Assertion.custom_message"></stringProp>
- <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
- <boolProp name="Assertion.assume_success">false</boolProp>
- <intProp name="Assertion.test_type">1</intProp>
- </ResponseAssertion>
- <hashTree/>
- <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
- <stringProp name="scriptLanguage">groovy</stringProp>
- <stringProp name="parameters"></stringProp>
- <stringProp name="filename"></stringProp>
- <stringProp name="cacheKey">true</stringProp>
- <stringProp name="script">import groovy.json.JsonSlurper;
-
-def res = [];
-if (prev.getResponseCode() == &apos;200&apos;) {
- def jsonSlurper = new JsonSlurper();
- res = jsonSlurper.parseText(prev.getResponseDataAsString());
-
- assert res instanceof Map;
- assert res.topology_template.policies instanceof List;
- assert res.topology_template.policies.size == 1;
- assert res.topology_template.policies[0] instanceof Map;
- assert res.topology_template.policies[0].get(&apos;onap.restart.tca&apos;).version == &quot;11.0.0&quot;;
-}</stringProp>
- </JSR223Assertion>
- <hashTree/>
- </hashTree>
- <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete TCA Policy Type V2" enabled="true">
+ </hashTree>
+ <PostThreadGroup guiclass="PostThreadGroupGui" testclass="PostThreadGroup" testname="tearDown Thread Group" enabled="true">
+ <stringProp name="ThreadGroup.on_sample_error">stoptest</stringProp>
+ <elementProp name="ThreadGroup.main_controller" elementType="LoopController" guiclass="LoopControlPanel" testclass="LoopController" testname="Loop Controller" enabled="true">
+ <boolProp name="LoopController.continue_forever">false</boolProp>
+ <stringProp name="LoopController.loops">1</stringProp>
+ </elementProp>
+ <stringProp name="ThreadGroup.num_threads">1</stringProp>
+ <stringProp name="ThreadGroup.ramp_time">1</stringProp>
+ <boolProp name="ThreadGroup.scheduler">false</boolProp>
+ <stringProp name="ThreadGroup.duration"></stringProp>
+ <stringProp name="ThreadGroup.delay"></stringProp>
+ <boolProp name="ThreadGroup.same_user_on_next_iteration">true</boolProp>
+ </PostThreadGroup>
+ <hashTree>
+ <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get Healthcheck" enabled="true">
<elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
<collectionProp name="Arguments.arguments"/>
</elementProp>
@@ -8032,8 +4102,8 @@ if (prev.getResponseCode() == &apos;200&apos;) {
<stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
<stringProp name="HTTPSampler.protocol">https</stringProp>
<stringProp name="HTTPSampler.contentEncoding"></stringProp>
- <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/2.0.0</stringProp>
- <stringProp name="HTTPSampler.method">DELETE</stringProp>
+ <stringProp name="HTTPSampler.path">/policy/api/v1/healthcheck</stringProp>
+ <stringProp name="HTTPSampler.method">GET</stringProp>
<boolProp name="HTTPSampler.follow_redirects">true</boolProp>
<boolProp name="HTTPSampler.auto_redirects">false</boolProp>
<boolProp name="HTTPSampler.use_keepalive">true</boolProp>
@@ -8054,107 +4124,9 @@ if (prev.getResponseCode() == &apos;200&apos;) {
</ResponseAssertion>
<hashTree/>
<JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
- <stringProp name="scriptLanguage">groovy</stringProp>
- <stringProp name="parameters"></stringProp>
- <stringProp name="filename"></stringProp>
<stringProp name="cacheKey">true</stringProp>
- <stringProp name="script">import groovy.json.JsonSlurper;
-
-def res = [];
-if (prev.getResponseCode() == &apos;200&apos;) {
- def jsonSlurper = new JsonSlurper();
- res = jsonSlurper.parseText(prev.getResponseDataAsString());
-
- assert res instanceof Map;
- assert res.policy_types instanceof List;
- assert res.policy_types.size == 1;
- assert res.policy_types[0] instanceof Map;
- assert res.policy_types[0].get(&apos;onap.policies.monitoring.cdap.tca.hi.lo.app&apos;).version == &quot;2.0.0&quot;;
-}</stringProp>
- </JSR223Assertion>
- <hashTree/>
- </hashTree>
- <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete Guard Policy V1" enabled="true">
- <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
- <collectionProp name="Arguments.arguments"/>
- </elementProp>
- <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
- <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
- <stringProp name="HTTPSampler.protocol">https</stringProp>
- <stringProp name="HTTPSampler.contentEncoding"></stringProp>
- <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.controlloop.Guard/versions/1.0.0/policies/guard.frequency.scaleout/versions/1</stringProp>
- <stringProp name="HTTPSampler.method">DELETE</stringProp>
- <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
- <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
- <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
- <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
- <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
- <stringProp name="HTTPSampler.connect_timeout"></stringProp>
- <stringProp name="HTTPSampler.response_timeout"></stringProp>
- </HTTPSamplerProxy>
- <hashTree>
- <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
- <collectionProp name="Asserion.test_strings">
- <stringProp name="49586">200</stringProp>
- </collectionProp>
- <stringProp name="Assertion.custom_message"></stringProp>
- <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
- <boolProp name="Assertion.assume_success">false</boolProp>
- <intProp name="Assertion.test_type">1</intProp>
- </ResponseAssertion>
- <hashTree/>
- <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
- <stringProp name="scriptLanguage">groovy</stringProp>
- <stringProp name="parameters"></stringProp>
<stringProp name="filename"></stringProp>
- <stringProp name="cacheKey">true</stringProp>
- <stringProp name="script">import groovy.json.JsonSlurper;
-
-def res = [];
-if (prev.getResponseCode() == &apos;200&apos;) {
- def jsonSlurper = new JsonSlurper();
- res = jsonSlurper.parseText(prev.getResponseDataAsString());
-
- assert res instanceof Map;
- assert res.get(&apos;guard.frequency.scaleout&apos;).version == &quot;1.0.0&quot;;
-}</stringProp>
- </JSR223Assertion>
- <hashTree/>
- </hashTree>
- <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete Guard Policy V5" enabled="true">
- <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
- <collectionProp name="Arguments.arguments"/>
- </elementProp>
- <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
- <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
- <stringProp name="HTTPSampler.protocol">https</stringProp>
- <stringProp name="HTTPSampler.contentEncoding"></stringProp>
- <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.controlloop.Guard/versions/1.0.0/policies/guard.frequency.scaleout/versions/5</stringProp>
- <stringProp name="HTTPSampler.method">DELETE</stringProp>
- <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
- <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
- <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
- <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
- <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
- <stringProp name="HTTPSampler.connect_timeout"></stringProp>
- <stringProp name="HTTPSampler.response_timeout"></stringProp>
- </HTTPSamplerProxy>
- <hashTree>
- <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
- <collectionProp name="Asserion.test_strings">
- <stringProp name="49586">200</stringProp>
- </collectionProp>
- <stringProp name="Assertion.custom_message"></stringProp>
- <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
- <boolProp name="Assertion.assume_success">false</boolProp>
- <intProp name="Assertion.test_type">1</intProp>
- </ResponseAssertion>
- <hashTree/>
- <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
- <stringProp name="scriptLanguage">groovy</stringProp>
<stringProp name="parameters"></stringProp>
- <stringProp name="filename"></stringProp>
- <stringProp name="cacheKey">true</stringProp>
<stringProp name="script">import groovy.json.JsonSlurper;
def res = [];
@@ -8163,59 +4135,16 @@ if (prev.getResponseCode() == &apos;200&apos;) {
res = jsonSlurper.parseText(prev.getResponseDataAsString());
assert res instanceof Map;
- assert res.get(&apos;guard.frequency.scaleout&apos;).version == &quot;5.0.0&quot;;
+ assert res.code == 200;
+ assert res.name == &quot;Policy API&quot;;
+ assert res.healthy==true;
+ assert res.message==&quot;alive&quot;;
}</stringProp>
- </JSR223Assertion>
- <hashTree/>
- </hashTree>
- <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete Guard Policy V9" enabled="true">
- <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
- <collectionProp name="Arguments.arguments"/>
- </elementProp>
- <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
- <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
- <stringProp name="HTTPSampler.protocol">https</stringProp>
- <stringProp name="HTTPSampler.contentEncoding"></stringProp>
- <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.controlloop.Guard/versions/1.0.0/policies/guard.frequency.scaleout/versions/9</stringProp>
- <stringProp name="HTTPSampler.method">DELETE</stringProp>
- <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
- <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
- <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
- <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
- <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
- <stringProp name="HTTPSampler.connect_timeout"></stringProp>
- <stringProp name="HTTPSampler.response_timeout"></stringProp>
- </HTTPSamplerProxy>
- <hashTree>
- <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
- <collectionProp name="Asserion.test_strings">
- <stringProp name="49586">200</stringProp>
- </collectionProp>
- <stringProp name="Assertion.custom_message"></stringProp>
- <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
- <boolProp name="Assertion.assume_success">false</boolProp>
- <intProp name="Assertion.test_type">1</intProp>
- </ResponseAssertion>
- <hashTree/>
- <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
<stringProp name="scriptLanguage">groovy</stringProp>
- <stringProp name="parameters"></stringProp>
- <stringProp name="filename"></stringProp>
- <stringProp name="cacheKey">true</stringProp>
- <stringProp name="script">import groovy.json.JsonSlurper;
-
-def res = [];
-if (prev.getResponseCode() == &apos;200&apos;) {
- def jsonSlurper = new JsonSlurper();
- res = jsonSlurper.parseText(prev.getResponseDataAsString());
-
- assert res instanceof Map;
- assert res.get(&apos;guard.frequency.scaleout&apos;).version == &quot;9.0.0&quot;;
-}</stringProp>
</JSR223Assertion>
<hashTree/>
</hashTree>
- <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete Guard Policy V12" enabled="true">
+ <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get Preloaded Policy Types" enabled="true">
<elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
<collectionProp name="Arguments.arguments"/>
</elementProp>
@@ -8223,8 +4152,8 @@ if (prev.getResponseCode() == &apos;200&apos;) {
<stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
<stringProp name="HTTPSampler.protocol">https</stringProp>
<stringProp name="HTTPSampler.contentEncoding"></stringProp>
- <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.controlloop.Guard/versions/1.0.0/policies/guard.frequency.scaleout/versions/12</stringProp>
- <stringProp name="HTTPSampler.method">DELETE</stringProp>
+ <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes</stringProp>
+ <stringProp name="HTTPSampler.method">GET</stringProp>
<boolProp name="HTTPSampler.follow_redirects">true</boolProp>
<boolProp name="HTTPSampler.auto_redirects">false</boolProp>
<boolProp name="HTTPSampler.use_keepalive">true</boolProp>
@@ -8257,7 +4186,8 @@ if (prev.getResponseCode() == &apos;200&apos;) {
res = jsonSlurper.parseText(prev.getResponseDataAsString());
assert res instanceof Map;
- assert res.get(&apos;guard.frequency.scaleout&apos;).version == &quot;12.0.0&quot;;
+ assert res.policy_types instanceof Map;
+ assert res.policy_types.size() == 35;
}</stringProp>
</JSR223Assertion>
<hashTree/>
@@ -8297,7 +4227,7 @@ if (prev.getResponseCode() == &apos;200&apos;) {
<connectTime>true</connectTime>
</value>
</objProp>
- <stringProp name="filename">/home/ubuntu/s3p/stability.log</stringProp>
+ <stringProp name="filename">/home/liam/work/WIndriver/summary.log</stringProp>
</ResultCollector>
<hashTree/>
<ResultCollector guiclass="ViewResultsFullVisualizer" testclass="ResultCollector" testname="View Results Tree" enabled="true">
@@ -8371,7 +4301,7 @@ if (prev.getResponseCode() == &apos;200&apos;) {
<connectTime>true</connectTime>
</value>
</objProp>
- <stringProp name="filename">/home/ubuntu/s3p/stability.log</stringProp>
+ <stringProp name="filename">/home/liam/work/WIndriver/Results.log</stringProp>
</ResultCollector>
<hashTree/>
</hashTree>
diff --git a/testsuites/stability/src/main/resources/testplans/policy_api_stability.jmx b/testsuites/stability/src/main/resources/testplans/policy_api_stability.jmx
index 58692b72..2f4c08df 100644
--- a/testsuites/stability/src/main/resources/testplans/policy_api_stability.jmx
+++ b/testsuites/stability/src/main/resources/testplans/policy_api_stability.jmx
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<jmeterTestPlan version="1.2" properties="5.0" jmeter="5.4.1">
<hashTree>
- <TestPlan guiclass="TestPlanGui" testclass="TestPlan" testname="Policy API Performance" enabled="true">
+ <TestPlan guiclass="TestPlanGui" testclass="TestPlan" testname="Policy API Stability" enabled="true">
<stringProp name="TestPlan.comments"></stringProp>
<boolProp name="TestPlan.functional_mode">false</boolProp>
<boolProp name="TestPlan.tearDown_on_shutdown">true</boolProp>