summaryrefslogtreecommitdiffstats
path: root/testsuites/stability
diff options
context:
space:
mode:
authorTaka Cho <takamune.cho@att.com>2020-10-29 12:53:26 -0400
committerTaka Cho <takamune.cho@att.com>2020-10-29 13:17:14 -0400
commit91f91bb6181e0f7629f46aa6d8bb3816d1f63108 (patch)
treec91778d197d993f98d37461bf2e3f96760698426 /testsuites/stability
parent00be5ecb85483ee9309ac8f87c36f5c223c30b5b (diff)
correct filename and restructure directories for s3p
move s3p jmx and shell script under resources remove old jmx files from the previous release Issue-ID: POLICY-2832 Change-Id: I2c1d4f2137655bc096b402b12625fa4add15ecf5 Signed-off-by: Taka Cho <takamune.cho@att.com>
Diffstat (limited to 'testsuites/stability')
-rw-r--r--testsuites/stability/src/assembly/assembly.xml81
-rw-r--r--testsuites/stability/src/main/resources/amsterdam/droolsPdpStabilityTestPlan.jmx1883
-rw-r--r--testsuites/stability/src/main/resources/amsterdam/generate_performace_report.sh185
-rw-r--r--testsuites/stability/src/main/resources/frankfurt/s3p.jmx3172
-rwxr-xr-xtestsuites/stability/src/main/resources/generate_performance_report.sh (renamed from testsuites/stability/src/main/resources/guilin/generate_performace_report.sh)0
-rw-r--r--testsuites/stability/src/main/resources/s3p.jmx (renamed from testsuites/stability/src/main/resources/guilin/s3p.jmx)0
6 files changed, 41 insertions, 5280 deletions
diff --git a/testsuites/stability/src/assembly/assembly.xml b/testsuites/stability/src/assembly/assembly.xml
index c3413797c..856e17900 100644
--- a/testsuites/stability/src/assembly/assembly.xml
+++ b/testsuites/stability/src/assembly/assembly.xml
@@ -1,42 +1,43 @@
-<!--
- ============LICENSE_START=======================================================
- stability
- ================================================================================
- Copyright (C) 2018 Ericsson. All rights reserved.
- ================================================================================
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- ============LICENSE_END=========================================================
- -->
-<assembly
- xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0 http://maven.apache.org/xsd/assembly-1.1.0.xsd">
+<!--
+ ============LICENSE_START=======================================================
+ stability
+ ================================================================================
+ Copyright (C) 2018 Ericsson. All rights reserved.
+ Modifications Copyright (C) 2020 AT&T. All rights reserved.
+ ================================================================================
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ ============LICENSE_END=========================================================
+ -->
+<assembly
+ xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0 http://maven.apache.org/xsd/assembly-1.1.0.xsd">
<id>stability</id>
- <formats>
- <format>zip</format>
- </formats>
- <baseDirectory>/drools-applications/stability</baseDirectory>
- <fileSets>
- <fileSet>
- <directory>${project.basedir}/src/main/resources/amsterdam/</directory>
- <outputDirectory>tests/amsterdam</outputDirectory>
- <includes>
- <include>*.jmx</include>
- <include>*.sh</include>
- </includes>
- <lineEnding>unix</lineEnding>
- <fileMode>0644</fileMode>
- <filtered>true</filtered>
- </fileSet>
- </fileSets>
+ <formats>
+ <format>zip</format>
+ </formats>
+ <baseDirectory>/drools-applications/stability</baseDirectory>
+ <fileSets>
+ <fileSet>
+ <directory>${project.basedir}/src/main/resources/</directory>
+ <outputDirectory>tests/amsterdam</outputDirectory>
+ <includes>
+ <include>*.jmx</include>
+ <include>*.sh</include>
+ </includes>
+ <lineEnding>unix</lineEnding>
+ <fileMode>0644</fileMode>
+ <filtered>true</filtered>
+ </fileSet>
+ </fileSets>
</assembly>
diff --git a/testsuites/stability/src/main/resources/amsterdam/droolsPdpStabilityTestPlan.jmx b/testsuites/stability/src/main/resources/amsterdam/droolsPdpStabilityTestPlan.jmx
deleted file mode 100644
index 570fe0a04..000000000
--- a/testsuites/stability/src/main/resources/amsterdam/droolsPdpStabilityTestPlan.jmx
+++ /dev/null
@@ -1,1883 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- ============LICENSE_START=======================================================
- stability
- ================================================================================
- Copyright (C) 2018 Ericsson. All rights reserved.
- ================================================================================
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- ============LICENSE_END=========================================================
- -->
-
-<jmeterTestPlan version="1.2" properties="4.0" jmeter="4.0 r1823414">
- <hashTree>
- <TestPlan guiclass="TestPlanGui" testclass="TestPlan" testname="DROOLS PDP STABILITY TEST PLAN" enabled="true">
- <stringProp name="TestPlan.comments"></stringProp>
- <boolProp name="TestPlan.functional_mode">false</boolProp>
- <boolProp name="TestPlan.tearDown_on_shutdown">true</boolProp>
- <boolProp name="TestPlan.serialize_threadgroups">true</boolProp>
- <elementProp name="TestPlan.user_defined_variables" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
- <collectionProp name="Arguments.arguments"/>
- </elementProp>
- <stringProp name="TestPlan.user_define_classpath"></stringProp>
- </TestPlan>
- <hashTree>
- <HeaderManager guiclass="HeaderPanel" testclass="HeaderManager" testname="HTTP Header Manager" enabled="true">
- <collectionProp name="HeaderManager.headers"/>
- </HeaderManager>
- <hashTree/>
- <AuthManager guiclass="AuthPanel" testclass="AuthManager" testname="HTTP Authorization Manager" enabled="true">
- <collectionProp name="AuthManager.auth_list">
- <elementProp name="" elementType="Authorization">
- <stringProp name="Authorization.url"></stringProp>
- <stringProp name="Authorization.username">@1b3rt</stringProp>
- <stringProp name="Authorization.password">31nst31n</stringProp>
- <stringProp name="Authorization.domain"></stringProp>
- <stringProp name="Authorization.realm"></stringProp>
- </elementProp>
- </collectionProp>
- </AuthManager>
- <hashTree/>
- <ConfigTestElement guiclass="HttpDefaultsGui" testclass="ConfigTestElement" testname="HTTP Request Defaults" 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"></stringProp>
- <stringProp name="HTTPSampler.port">9696</stringProp>
- <stringProp name="HTTPSampler.protocol">http</stringProp>
- <stringProp name="HTTPSampler.contentEncoding"></stringProp>
- <stringProp name="HTTPSampler.path"></stringProp>
- <stringProp name="HTTPSampler.concurrentPool">6</stringProp>
- <stringProp name="HTTPSampler.connect_timeout"></stringProp>
- <stringProp name="HTTPSampler.response_timeout"></stringProp>
- </ConfigTestElement>
- <hashTree/>
- <Arguments guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
- <collectionProp name="Arguments.arguments">
- <elementProp name="size" elementType="Argument">
- <stringProp name="Argument.name">size</stringProp>
- <stringProp name="Argument.value">2000</stringProp>
- <stringProp name="Argument.metadata">=</stringProp>
- <stringProp name="Argument.desc">max number of VNF instances</stringProp>
- </elementProp>
- <elementProp name="wait" elementType="Argument">
- <stringProp name="Argument.name">wait</stringProp>
- <stringProp name="Argument.value">500</stringProp>
- <stringProp name="Argument.metadata">=</stringProp>
- <stringProp name="Argument.desc">Sleep time for each request</stringProp>
- </elementProp>
- <elementProp name="vCPEControlLoop" elementType="Argument">
- <stringProp name="Argument.name">vCPEControlLoop</stringProp>
- <stringProp name="Argument.value">ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e</stringProp>
- <stringProp name="Argument.metadata">=</stringProp>
- <stringProp name="Argument.desc">vCPE Control loop name</stringProp>
- </elementProp>
- <elementProp name="vDNSControlLoop" elementType="Argument">
- <stringProp name="Argument.name">vDNSControlLoop</stringProp>
- <stringProp name="Argument.value">ControlLoop-vDNS-6f37f56d-a87d-4b85-b6a9-cc953cf779b3</stringProp>
- <stringProp name="Argument.metadata">=</stringProp>
- <stringProp name="Argument.desc">vDNS Control loop name</stringProp>
- </elementProp>
- <elementProp name="vFWControlLoop" elementType="Argument">
- <stringProp name="Argument.name">vFWControlLoop</stringProp>
- <stringProp name="Argument.value">ControlLoop-vFirewall-d0a1dfc6-94f5-4fd4-a5b5-4630b438850a</stringProp>
- <stringProp name="Argument.metadata">=</stringProp>
- <stringProp name="Argument.desc">vFW Controll loop name</stringProp>
- </elementProp>
- <elementProp name="VOLTEControlLoop" elementType="Argument">
- <stringProp name="Argument.name">VOLTEControlLoop</stringProp>
- <stringProp name="Argument.value">ControlLoop-VOLTE-2179b738-fd36-4843-a71a-a8c24c70c55b</stringProp>
- <stringProp name="Argument.metadata">=</stringProp>
- <stringProp name="Argument.desc">VOLTE Control loop name</stringProp>
- </elementProp>
- <elementProp name="threads" elementType="Argument">
- <stringProp name="Argument.name">threads</stringProp>
- <stringProp name="Argument.value">2</stringProp>
- <stringProp name="Argument.metadata">=</stringProp>
- </elementProp>
- <elementProp name="threadsTimeOutInMs" elementType="Argument">
- <stringProp name="Argument.name">threadsTimeOutInMs</stringProp>
- <stringProp name="Argument.value">5000</stringProp>
- <stringProp name="Argument.metadata">=</stringProp>
- </elementProp>
- <elementProp name="controller" elementType="Argument">
- <stringProp name="Argument.name">controller</stringProp>
- <stringProp name="Argument.value">amsterdam</stringProp>
- <stringProp name="Argument.metadata">=</stringProp>
- </elementProp>
- <elementProp name="session" elementType="Argument">
- <stringProp name="Argument.name">session</stringProp>
- <stringProp name="Argument.value">amsterdam</stringProp>
- <stringProp name="Argument.metadata">=</stringProp>
- </elementProp>
- </collectionProp>
- </Arguments>
- <hashTree/>
- <ThreadGroup guiclass="ThreadGroupGui" testclass="ThreadGroup" testname="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>
- <intProp name="LoopController.loops">-1</intProp>
- </elementProp>
- <stringProp name="ThreadGroup.num_threads">${threads}</stringProp>
- <stringProp name="ThreadGroup.ramp_time">1</stringProp>
- <boolProp name="ThreadGroup.scheduler">false</boolProp>
- <stringProp name="ThreadGroup.duration"></stringProp>
- <stringProp name="ThreadGroup.delay"></stringProp>
- </ThreadGroup>
- <hashTree>
- <GenericController guiclass="LogicControllerGui" testclass="GenericController" testname="Controller" enabled="true"/>
- <hashTree>
- <GenericController guiclass="LogicControllerGui" testclass="GenericController" testname="Assertation Before" enabled="true"/>
- <hashTree>
- <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="GET FACT REQUEST" 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"></stringProp>
- <stringProp name="HTTPSampler.port"></stringProp>
- <stringProp name="HTTPSampler.protocol"></stringProp>
- <stringProp name="HTTPSampler.contentEncoding"></stringProp>
- <stringProp name="HTTPSampler.path">policy/pdp/engine/controllers/${controller}/drools/facts/${session}/</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="124225537">{&quot;org.onap.policy.controlloop.Params&quot;:4}</stringProp>
- </collectionProp>
- <stringProp name="Assertion.custom_message"></stringProp>
- <stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
- <boolProp name="Assertion.assume_success">false</boolProp>
- <intProp name="Assertion.test_type">16</intProp>
- </ResponseAssertion>
- <hashTree/>
- </hashTree>
- <SyncTimer guiclass="TestBeanGUI" testclass="SyncTimer" testname="Synchronizing Timer" enabled="true">
- <stringProp name="groupSize">${threads}</stringProp>
- <stringProp name="timeoutInMs">${threadsTimeOutInMs}</stringProp>
- </SyncTimer>
- <hashTree/>
- </hashTree>
- <GenericController guiclass="LogicControllerGui" testclass="GenericController" testname="Use Cases Controller" enabled="true"/>
- <hashTree>
- <GenericController guiclass="LogicControllerGui" testclass="GenericController" testname="vCPE Use Case" enabled="true"/>
- <hashTree>
- <GenericController guiclass="LogicControllerGui" testclass="GenericController" testname="vCPE SUCCESS Use Case" enabled="true">
- <stringProp name="TestPlan.comments">Run vCPE Sucess flow</stringProp>
- </GenericController>
- <hashTree>
- <GenericController guiclass="LogicControllerGui" testclass="GenericController" testname="vCPE Use Case Controller" enabled="true">
- <stringProp name="TestPlan.comments">Run vCPE Sucess flow</stringProp>
- </GenericController>
- <hashTree>
- <JSR223Sampler guiclass="TestBeanGUI" testclass="JSR223Sampler" testname="vCPE Cache Initializer" enabled="true">
- <stringProp name="scriptLanguage">java</stringProp>
- <stringProp name="parameters"></stringProp>
- <stringProp name="filename"></stringProp>
- <stringProp name="cacheKey">true</stringProp>
- <stringProp name="script">import java.util.ArrayList;
-import java.util.List;
-
-final List vCPECache = new ArrayList();
-vars.putObject(&quot;vCPECache&quot;, vCPECache);
-
-</stringProp>
- <stringProp name="TestPlan.comments">This sampler intializes cache to store generate requestID for vCPE success flow</stringProp>
- </JSR223Sampler>
- <hashTree/>
- <CounterConfig guiclass="CounterConfigGui" testclass="CounterConfig" testname="vCPE VNF ID Counter" enabled="true">
- <stringProp name="CounterConfig.start">1</stringProp>
- <stringProp name="CounterConfig.end">${size}</stringProp>
- <stringProp name="CounterConfig.incr">1</stringProp>
- <stringProp name="CounterConfig.name">vnfID</stringProp>
- <stringProp name="CounterConfig.format">vCPE_Infrastructure_vGMUX_demo_app-00</stringProp>
- <boolProp name="CounterConfig.per_user">false</boolProp>
- <stringProp name="TestPlan.comments">This counter generate unique vnf-id</stringProp>
- </CounterConfig>
- <hashTree/>
- <JSR223Sampler guiclass="TestBeanGUI" testclass="JSR223Sampler" testname="vCPE REQUEST ID Generator" enabled="true">
- <stringProp name="cacheKey">true</stringProp>
- <stringProp name="filename"></stringProp>
- <stringProp name="parameters"></stringProp>
- <stringProp name="script">import java.util.List;
-import java.util.UUID;
-
-final List vCPECache = vars.getObject(&quot;vCPECache&quot;);
-
-final String uuid = UUID.randomUUID().toString();
-vars.put(&quot;requestID&quot;,uuid);
-
-vCPECache.add(uuid);
-log.debug(&quot;[vCPE] requestID &quot; + uuid);</stringProp>
- <stringProp name="scriptLanguage">java</stringProp>
- <stringProp name="TestPlan.comments">this sampler generates unique requestId using UUID and adds it to local cache</stringProp>
- </JSR223Sampler>
- <hashTree/>
- <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="vCPE Onset Request Event" 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;closedLoopControlName&quot;: &quot;${vCPEControlLoop}&quot;,&#xd;
- &quot;closedLoopAlarmStart&quot;: 1463679805324,&#xd;
- &quot;closedLoopEventClient&quot;: &quot;DCAE_INSTANCE_ID.dcae-tca&quot;,&#xd;
- &quot;closedLoopEventStatus&quot;: &quot;ONSET&quot;,&#xd;
- &quot;requestID&quot;: &quot;${requestID}&quot;,&#xd;
- &quot;target_type&quot;: &quot;VNF&quot;,&#xd;
- &quot;target&quot;: &quot;generic-vnf.vnf-id&quot;,&#xd;
- &quot;AAI&quot;: {&#xd;
- &quot;vserver.is-closed-loop-disabled&quot;: &quot;false&quot;,&#xd;
- &quot;generic-vnf.vnf-id&quot;: &quot;${vnfID}&quot;&#xd;
- },&#xd;
- &quot;from&quot;: &quot;DCAE&quot;,&#xd;
- &quot;version&quot;: &quot;1.0.2&quot;&#xd;
-}&#xd;
-</stringProp>
- <stringProp name="Argument.metadata">=</stringProp>
- </elementProp>
- </collectionProp>
- </elementProp>
- <stringProp name="HTTPSampler.domain"></stringProp>
- <stringProp name="HTTPSampler.port"></stringProp>
- <stringProp name="HTTPSampler.protocol"></stringProp>
- <stringProp name="HTTPSampler.contentEncoding"></stringProp>
- <stringProp name="HTTPSampler.path">policy/pdp/engine/topics/sources/ueb/unauthenticated.DCAE_CL_OUTPUT/events</stringProp>
- <stringProp name="HTTPSampler.method">PUT</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="vCPE Assert Onset Response Code" 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">8</intProp>
- <stringProp name="Scope.variable">Response code</stringProp>
- </ResponseAssertion>
- <hashTree/>
- </hashTree>
- <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="vCPE APPC Success Response Event" 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;body&quot;: { &#xd;
- &quot;output&quot;: { &#xd;
- &quot;common-header&quot;: { &#xd;
- &quot;timestamp&quot;: &quot;2017-08-25T21:06:23.037Z&quot;, &#xd;
- &quot;api-ver&quot;: &quot;5.00&quot;, &#xd;
- &quot;originator-id&quot;: &quot;664be3d2-6c12-4f4b-a3e7-c349acced200&quot;, &#xd;
- &quot;request-id&quot;: &quot;${requestID}&quot;, &#xd;
- &quot;sub-request-id&quot;: &quot;1&quot;, &#xd;
- &quot;flags&quot;: {} &#xd;
- }, &#xd;
- &quot;status&quot;: { &#xd;
- &quot;code&quot;: 400, &#xd;
- &quot;message&quot;: &quot;Restart Successful&quot; &#xd;
- } &#xd;
- } &#xd;
- }, &#xd;
- &quot;version&quot;: &quot;2.0&quot;, &#xd;
- &quot;rpc-name&quot;: &quot;restart&quot;, &#xd;
- &quot;correlation-id&quot;: &quot;664be3d2-6c12-4f4b-a3e7-c349acced200-1&quot;, &#xd;
- &quot;type&quot;: &quot;response&quot; &#xd;
-}</stringProp>
- <stringProp name="Argument.metadata">=</stringProp>
- </elementProp>
- </collectionProp>
- </elementProp>
- <stringProp name="HTTPSampler.domain"></stringProp>
- <stringProp name="HTTPSampler.port"></stringProp>
- <stringProp name="HTTPSampler.protocol"></stringProp>
- <stringProp name="HTTPSampler.contentEncoding"></stringProp>
- <stringProp name="HTTPSampler.path">policy/pdp/engine/topics/sources/ueb/APPC-LCM-WRITE/events</stringProp>
- <stringProp name="HTTPSampler.method">PUT</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="vCPE Assert APPC Response Code" 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">16</intProp>
- </ResponseAssertion>
- <hashTree/>
- <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="WAIT" enabled="true">
- <stringProp name="ConstantTimer.delay">${wait}</stringProp>
- </ConstantTimer>
- <hashTree/>
- </hashTree>
- <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="vCPE Abatement Request" 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;closedLoopControlName&quot;: &quot;${vCPEControlLoop}&quot;,&#xd;
- &quot;closedLoopAlarmStart&quot;: 1463679805324,&#xd;
- &quot;closedLoopAlarmEnd&quot;: 1463699805324,&#xd;
- &quot;closedLoopEventClient&quot;: &quot;DCAE_INSTANCE_ID.dcae-tca&quot;,&#xd;
- &quot;closedLoopEventStatus&quot;: &quot;ABATED&quot;,&#xd;
- &quot;requestID&quot;: &quot;${requestID}&quot;,&#xd;
- &quot;target_type&quot;: &quot;VNF&quot;,&#xd;
- &quot;target&quot;: &quot;generic-vnf.vnf-id&quot;,&#xd;
- &quot;AAI&quot;: {&#xd;
- &quot;generic-vnf.is-closed-loop-disabled&quot;: &quot;false&quot;,&#xd;
- &quot;generic-vnf.vnf-id&quot;: &quot;${vnfID}&quot;&#xd;
- },&#xd;
- &quot;from&quot;: &quot;DCAE&quot;,&#xd;
- &quot;version&quot;: &quot;1.0.2&quot;&#xd;
-}&#xd;
-</stringProp>
- <stringProp name="Argument.metadata">=</stringProp>
- </elementProp>
- </collectionProp>
- </elementProp>
- <stringProp name="HTTPSampler.domain"></stringProp>
- <stringProp name="HTTPSampler.port"></stringProp>
- <stringProp name="HTTPSampler.protocol"></stringProp>
- <stringProp name="HTTPSampler.contentEncoding"></stringProp>
- <stringProp name="HTTPSampler.path">policy/pdp/engine/topics/sources/ueb/unauthenticated.DCAE_CL_OUTPUT/events</stringProp>
- <stringProp name="HTTPSampler.method">PUT</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="vCPE Abatement Assert Response Code" 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">16</intProp>
- </ResponseAssertion>
- <hashTree/>
- <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="WAIT" enabled="true">
- <stringProp name="ConstantTimer.delay">${wait}</stringProp>
- </ConstantTimer>
- <hashTree/>
- </hashTree>
- </hashTree>
- <GenericController guiclass="LogicControllerGui" testclass="GenericController" testname="Assertion Controller" enabled="true"/>
- <hashTree>
- <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="vCPE Sink Events" 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"></stringProp>
- <stringProp name="HTTPSampler.port"></stringProp>
- <stringProp name="HTTPSampler.protocol"></stringProp>
- <stringProp name="HTTPSampler.contentEncoding"></stringProp>
- <stringProp name="HTTPSampler.path">policy/pdp/engine/topics/sinks/noop/POLICY-CL-MGT</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>
- <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="WAIT" enabled="true">
- <stringProp name="ConstantTimer.delay">${wait}</stringProp>
- </ConstantTimer>
- <hashTree/>
- <SyncTimer guiclass="TestBeanGUI" testclass="SyncTimer" testname="Synchronizing Timer" enabled="true">
- <stringProp name="groupSize">${threads}</stringProp>
- <stringProp name="timeoutInMs">${threadsTimeOutInMs}</stringProp>
- </SyncTimer>
- <hashTree/>
- <JSONPostProcessor guiclass="JSONPostProcessorGui" testclass="JSONPostProcessor" testname="vCPE JSON Extractor" enabled="true">
- <stringProp name="JSONPostProcessor.referenceNames">result</stringProp>
- <stringProp name="JSONPostProcessor.jsonPathExprs">$</stringProp>
- <stringProp name="JSONPostProcessor.match_numbers"></stringProp>
- </JSONPostProcessor>
- <hashTree/>
- <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="vCPE JSON Assertion" enabled="true">
- <stringProp name="scriptLanguage">java</stringProp>
- <stringProp name="parameters"></stringProp>
- <stringProp name="filename"></stringProp>
- <stringProp name="cacheKey">true</stringProp>
- <stringProp name="script">import net.minidev.json.parser.JSONParser;
-import net.minidev.json.JSONObject;
-import net.minidev.json.JSONArray;
-
-final Map records = new HashMap();
-final JSONParser p = new JSONParser(JSONParser.MODE_PERMISSIVE);
-
-final String result = vars.get(&quot;result&quot;);
-final JSONObject jsonObj = (JSONObject) p.parse(result);
-
- if (jsonObj != null) {
- final JSONArray events = (JSONArray) jsonObj.get(&quot;recentEvents&quot;);
- if (events != null) {
- for (int j = 0; j &lt; events.size(); j++) {
- final String event = (String) events.get(j);
- if (event != null ) {
- final JSONParser parser = new JSONParser(JSONParser.MODE_PERMISSIVE);
- final JSONObject eventObj = (JSONObject) parser.parse(event);
- final String controlLoopName = vars.get(&quot;vCPEControlLoop&quot;);
- if (eventObj.get(&quot;closedLoopControlName&quot;).equals(controlLoopName)) {
- final String requestId = eventObj.get(&quot;requestId&quot;);
- final String notification = eventObj.get(&quot;notification&quot;);
- records.put(requestId, notification);
- }
- }
- }
- }
- }
-
-boolean failure = false;
-final String expectedNotification = &quot;FINAL: SUCCESS&quot;;
-final List cache = vars.getObject(&quot;vCPECache&quot;);
-
-for (int i = 0; i &lt; cache.size(); i++) {
- final String requestId = cache.get(i);
- final String notification = records.get(requestId);
- if (!(notification != null &amp;&amp; expectedNotification.equals(notification))) {
- log.error(&quot;[vCPE] Assertion failed for requestId: &quot; + requestId +&quot; Expected notification: &quot; + expectedNotification + &quot; But found: &quot; + notification);
- failure = true;
- }
-}
-
-if (failure || cache.isEmpty()) {
- final String error = &quot;[vCPE] Unable to find notification with &quot; + expectedNotification + &quot; in topic &apos;POLICY-CL-MGT&apos;&quot;;
- AssertionResult.setFailureMessage(error);
- AssertionResult.setFailure(true);
- log.error(error);
- log.info(&quot;[vCPE] vCPECache: &quot; + cache);
- log.info(&quot;[vCPE] Success Records found: &quot; + records);
- log.info(&quot;[vCPE] &quot; + result);
-} else {
- AssertionResult.setFailure(false);
-}
-
-</stringProp>
- <stringProp name="TestPlan.comments">this assertion handler parse sink event response and checks notification result for each request made</stringProp>
- </JSR223Assertion>
- <hashTree/>
- </hashTree>
- </hashTree>
- </hashTree>
- <GenericController guiclass="LogicControllerGui" testclass="GenericController" testname="vCPE FAILURE Use Case" enabled="true">
- <stringProp name="TestPlan.comments">Run vCPE failure flow</stringProp>
- </GenericController>
- <hashTree>
- <GenericController guiclass="LogicControllerGui" testclass="GenericController" testname="vCPE Use Case Controller" enabled="true">
- <stringProp name="TestPlan.comments">Run vCPE failure flow</stringProp>
- </GenericController>
- <hashTree>
- <JSR223Sampler guiclass="TestBeanGUI" testclass="JSR223Sampler" testname="vCPE Failure Cache Initializer" enabled="true">
- <stringProp name="scriptLanguage">java</stringProp>
- <stringProp name="parameters"></stringProp>
- <stringProp name="filename"></stringProp>
- <stringProp name="cacheKey">true</stringProp>
- <stringProp name="script">import java.util.ArrayList;
-import java.util.List;
-
-List vCPEFailureCache = new ArrayList();
-vars.putObject(&quot;vCPEFailureCache&quot;, vCPEFailureCache);
-</stringProp>
- </JSR223Sampler>
- <hashTree/>
- <CounterConfig guiclass="CounterConfigGui" testclass="CounterConfig" testname="vCPE Failure VNF ID Counter" enabled="true">
- <stringProp name="CounterConfig.start">1</stringProp>
- <stringProp name="CounterConfig.end">${size}</stringProp>
- <stringProp name="CounterConfig.incr">1</stringProp>
- <stringProp name="CounterConfig.name">vnfID</stringProp>
- <stringProp name="CounterConfig.format">vCPE_Infrastructure_vGMUX_demo_app-00</stringProp>
- <boolProp name="CounterConfig.per_user">false</boolProp>
- </CounterConfig>
- <hashTree/>
- <JSR223Sampler guiclass="TestBeanGUI" testclass="JSR223Sampler" testname="vCPE Failure REQUEST ID Generator" enabled="true">
- <stringProp name="cacheKey">true</stringProp>
- <stringProp name="filename"></stringProp>
- <stringProp name="parameters"></stringProp>
- <stringProp name="script">import java.util.List;
-import java.util.UUID;
-
-final List vCPEFailureCache = vars.getObject(&quot;vCPEFailureCache&quot;);
-
-final String uuid = UUID.randomUUID().toString();
-vars.put(&quot;requestID&quot;,uuid);
-
-vCPEFailureCache.add(uuid);
-log.debug(&quot;[vCPE Failure] requestID &quot;+ uuid);</stringProp>
- <stringProp name="scriptLanguage">java</stringProp>
- </JSR223Sampler>
- <hashTree/>
- <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="vCPE Failure Onset Request Event" 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;closedLoopControlName&quot;: &quot;${vCPEControlLoop}&quot;,&#xd;
- &quot;closedLoopAlarmStart&quot;: 1463679805324,&#xd;
- &quot;closedLoopEventClient&quot;: &quot;DCAE_INSTANCE_ID.dcae-tca&quot;,&#xd;
- &quot;closedLoopEventStatus&quot;: &quot;ONSET&quot;,&#xd;
- &quot;requestID&quot;: &quot;${requestID}&quot;,&#xd;
- &quot;target_type&quot;: &quot;VNF&quot;,&#xd;
- &quot;target&quot;: &quot;generic-vnf.vnf-id&quot;,&#xd;
- &quot;AAI&quot;: {&#xd;
- &quot;vserver.is-closed-loop-disabled&quot;: &quot;false&quot;,&#xd;
- &quot;generic-vnf.vnf-id&quot;: &quot;${vnfID}&quot;&#xd;
- },&#xd;
- &quot;from&quot;: &quot;DCAE&quot;,&#xd;
- &quot;version&quot;: &quot;1.0.2&quot;&#xd;
-}&#xd;
-</stringProp>
- <stringProp name="Argument.metadata">=</stringProp>
- </elementProp>
- </collectionProp>
- </elementProp>
- <stringProp name="HTTPSampler.domain"></stringProp>
- <stringProp name="HTTPSampler.port"></stringProp>
- <stringProp name="HTTPSampler.protocol"></stringProp>
- <stringProp name="HTTPSampler.contentEncoding"></stringProp>
- <stringProp name="HTTPSampler.path">policy/pdp/engine/topics/sources/ueb/unauthenticated.DCAE_CL_OUTPUT/events</stringProp>
- <stringProp name="HTTPSampler.method">PUT</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="vCPE Failure Assert Onset Response Code" 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">8</intProp>
- <stringProp name="Scope.variable">Response code</stringProp>
- </ResponseAssertion>
- <hashTree/>
- </hashTree>
- <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="vCPE Failure APPC Response Event" 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;body&quot;: { &#xd;
- &quot;output&quot;: { &#xd;
- &quot;common-header&quot;: { &#xd;
- &quot;timestamp&quot;: &quot;2017-08-25T21:06:23.037Z&quot;, &#xd;
- &quot;api-ver&quot;: &quot;5.00&quot;, &#xd;
- &quot;originator-id&quot;: &quot;664be3d2-6c12-4f4b-a3e7-c349acced200&quot;, &#xd;
- &quot;request-id&quot;: &quot;${requestID}&quot;, &#xd;
- &quot;sub-request-id&quot;: &quot;1&quot;, &#xd;
- &quot;flags&quot;: {} &#xd;
- }, &#xd;
- &quot;status&quot;: { &#xd;
- &quot;code&quot;: 500, &#xd;
- &quot;message&quot;: &quot;Restart Failed&quot; &#xd;
- } &#xd;
- } &#xd;
- }, &#xd;
- &quot;version&quot;: &quot;2.0&quot;, &#xd;
- &quot;rpc-name&quot;: &quot;restart&quot;, &#xd;
- &quot;correlation-id&quot;: &quot;664be3d2-6c12-4f4b-a3e7-c349acced200-1&quot;, &#xd;
- &quot;type&quot;: &quot;response&quot; &#xd;
-}</stringProp>
- <stringProp name="Argument.metadata">=</stringProp>
- </elementProp>
- </collectionProp>
- </elementProp>
- <stringProp name="HTTPSampler.domain"></stringProp>
- <stringProp name="HTTPSampler.port"></stringProp>
- <stringProp name="HTTPSampler.protocol"></stringProp>
- <stringProp name="HTTPSampler.contentEncoding"></stringProp>
- <stringProp name="HTTPSampler.path">policy/pdp/engine/topics/sources/ueb/APPC-LCM-WRITE/events</stringProp>
- <stringProp name="HTTPSampler.method">PUT</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="vCPE Failure Assert APPC Response Code" 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">16</intProp>
- </ResponseAssertion>
- <hashTree/>
- <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="WAIT" enabled="true">
- <stringProp name="ConstantTimer.delay">${wait}</stringProp>
- </ConstantTimer>
- <hashTree/>
- </hashTree>
- </hashTree>
- <GenericController guiclass="LogicControllerGui" testclass="GenericController" testname="Assertion Controller" enabled="true"/>
- <hashTree>
- <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="vCPE Failure Sink Events" 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"></stringProp>
- <stringProp name="HTTPSampler.port"></stringProp>
- <stringProp name="HTTPSampler.protocol"></stringProp>
- <stringProp name="HTTPSampler.contentEncoding"></stringProp>
- <stringProp name="HTTPSampler.path">policy/pdp/engine/topics/sinks/noop/POLICY-CL-MGT</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>
- <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="WAIT" enabled="true">
- <stringProp name="ConstantTimer.delay">${wait}</stringProp>
- </ConstantTimer>
- <hashTree/>
- <SyncTimer guiclass="TestBeanGUI" testclass="SyncTimer" testname="Synchronizing Timer" enabled="true">
- <stringProp name="groupSize">${threads}</stringProp>
- <stringProp name="timeoutInMs">${threadsTimeOutInMs}</stringProp>
- </SyncTimer>
- <hashTree/>
- <JSONPostProcessor guiclass="JSONPostProcessorGui" testclass="JSONPostProcessor" testname="vCPE Failure JSON Extractor" enabled="true">
- <stringProp name="JSONPostProcessor.referenceNames">result</stringProp>
- <stringProp name="JSONPostProcessor.jsonPathExprs">$</stringProp>
- <stringProp name="JSONPostProcessor.match_numbers"></stringProp>
- </JSONPostProcessor>
- <hashTree/>
- <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="vCPE Failure Assertion" enabled="true">
- <stringProp name="scriptLanguage">java</stringProp>
- <stringProp name="parameters"></stringProp>
- <stringProp name="filename"></stringProp>
- <stringProp name="cacheKey">true</stringProp>
- <stringProp name="script">import net.minidev.json.parser.JSONParser;
-import net.minidev.json.JSONObject;
-import net.minidev.json.JSONArray;
-
-final Map records = new HashMap();
-final JSONParser p = new JSONParser(JSONParser.MODE_PERMISSIVE);
-
-final String result = vars.get(&quot;result&quot;);
-final JSONObject jsonObj = (JSONObject) p.parse(result);
-
- if (jsonObj != null) {
- final JSONArray events = (JSONArray) jsonObj.get(&quot;recentEvents&quot;);
- if (events != null) {
- for (int j = 0; j &lt; events.size(); j++) {
- final String event = (String) events.get(j);
- if (event != null ) {
- final JSONParser parser = new JSONParser(JSONParser.MODE_PERMISSIVE);
- final JSONObject eventObj = (JSONObject) parser.parse(event);
- final String controlLoopName = vars.get(&quot;vCPEControlLoop&quot;);
- if (eventObj.get(&quot;closedLoopControlName&quot;).equals(controlLoopName)) {
- final String requestId = eventObj.get(&quot;requestId&quot;);
- final String notification = eventObj.get(&quot;notification&quot;);
- records.put(requestId, notification);
- }
- }
- }
- }
- }
-
-
-boolean failure = false;
-final String expectedNotification = &quot;FINAL: FAILURE&quot;;
-final List cache = vars.getObject(&quot;vCPEFailureCache&quot;);
-
-for (int i = 0; i &lt; cache.size(); i++) {
- final String requestId = cache.get(i);
- final String notification = records.get(requestId);
- if (!(notification != null &amp;&amp; expectedNotification.equals(notification))) {
- log.error(&quot;[vCPE Failue] Assertion failed for requestId: &quot; + requestId +
- &quot; Expected notification: &quot; + expectedNotification + &quot; But found: &quot; + notification);
- failure = true;
- }
-}
-
-if (failure || cache.isEmpty()) {
- final String error = &quot;[vCPE] Unable to find notification with &quot; + expectedNotification + &quot; in topic &apos;POLICY-CL-MGT&apos;&quot;;
- AssertionResult.setFailureMessage(error);
- AssertionResult.setFailure(true);
- log.error(error);
- log.info(&quot;[vCPE Failue] vCPECache: &quot; + cache);
- log.info(&quot;[vCPE Failue] Success Records found: &quot; + records);
- log.info(&quot;[vCPE Failue] &quot; + result);
-} else {
- AssertionResult.setFailure(false);
-}
-
-</stringProp>
- </JSR223Assertion>
- <hashTree/>
- </hashTree>
- </hashTree>
- </hashTree>
- </hashTree>
- <GenericController guiclass="LogicControllerGui" testclass="GenericController" testname="vDNS Use Case" enabled="true"/>
- <hashTree>
- <JSR223Sampler guiclass="TestBeanGUI" testclass="JSR223Sampler" testname="vDNS Cache Initializer" enabled="true">
- <stringProp name="scriptLanguage">java</stringProp>
- <stringProp name="parameters"></stringProp>
- <stringProp name="filename"></stringProp>
- <stringProp name="cacheKey">true</stringProp>
- <stringProp name="script">import java.util.ArrayList;
-import java.util.List;
-
-final List vDNSCache = new ArrayList();
-vars.putObject(&quot;vDNSCache&quot;, vDNSCache);</stringProp>
- </JSR223Sampler>
- <hashTree/>
- <GenericController guiclass="LogicControllerGui" testclass="GenericController" testname="vDNS Controller" enabled="true"/>
- <hashTree>
- <CounterConfig guiclass="CounterConfigGui" testclass="CounterConfig" testname="vDNS vSERVER NAME Counter" enabled="true">
- <stringProp name="CounterConfig.start">1</stringProp>
- <stringProp name="CounterConfig.end">${size}</stringProp>
- <stringProp name="CounterConfig.incr">1</stringProp>
- <stringProp name="CounterConfig.name">vserver-name</stringProp>
- <stringProp name="CounterConfig.format">dnsvserver-name-0</stringProp>
- <boolProp name="CounterConfig.per_user">false</boolProp>
- </CounterConfig>
- <hashTree/>
- <JSR223Sampler guiclass="TestBeanGUI" testclass="JSR223Sampler" testname="vDNS Request ID Generator" enabled="true">
- <stringProp name="cacheKey">true</stringProp>
- <stringProp name="filename"></stringProp>
- <stringProp name="parameters"></stringProp>
- <stringProp name="script">import java.util.List;
-import java.util.UUID;
-
-final List vDNSCache = vars.getObject(&quot;vDNSCache&quot;);
-
-final String uuid = UUID.randomUUID().toString();
-vars.put(&quot;requestID&quot;, uuid);
-
-vDNSCache.add(uuid);
-log.debug(&quot;[vDNS] requestID &quot;+ uuid);</stringProp>
- <stringProp name="scriptLanguage">java</stringProp>
- </JSR223Sampler>
- <hashTree/>
- <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="vDNS Onset Request Event" 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;closedLoopControlName&quot;: &quot;${vDNSControlLoop}&quot;,&#xd;
- &quot;closedLoopAlarmStart&quot;: 1484677482204798,&#xd;
- &quot;closedLoopEventClient&quot;: &quot;DCAE_INSTANCE_ID.dcae-tca&quot;,&#xd;
- &quot;closedLoopEventStatus&quot;: &quot;ONSET&quot;,&#xd;
- &quot;requestID&quot;: &quot;${requestID}&quot;,&#xd;
- &quot;target_type&quot;: &quot;VNF&quot;,&#xd;
- &quot;target&quot;: &quot;vserver.vserver-name&quot;,&#xd;
- &quot;AAI&quot;: {&#xd;
- &quot;vserver.is-closed-loop-disabled&quot;: &quot;false&quot;,&#xd;
- &quot;vserver.vserver-name&quot;: &quot;${vserver-name}&quot;&#xd;
- }, &#xd;
- &quot;from&quot;: &quot;DCAE&quot;,&#xd;
- &quot;version&quot;: &quot;1.0.2&quot;&#xd;
-}</stringProp>
- <stringProp name="Argument.metadata">=</stringProp>
- </elementProp>
- </collectionProp>
- </elementProp>
- <stringProp name="HTTPSampler.domain"></stringProp>
- <stringProp name="HTTPSampler.port"></stringProp>
- <stringProp name="HTTPSampler.protocol"></stringProp>
- <stringProp name="HTTPSampler.contentEncoding"></stringProp>
- <stringProp name="HTTPSampler.path">policy/pdp/engine/topics/sources/ueb/unauthenticated.DCAE_CL_OUTPUT/events</stringProp>
- <stringProp name="HTTPSampler.method">PUT</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="vDNS Assert Onset Response Code" 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">8</intProp>
- <stringProp name="Scope.variable">Response code</stringProp>
- </ResponseAssertion>
- <hashTree/>
- </hashTree>
- </hashTree>
- <GenericController guiclass="LogicControllerGui" testclass="GenericController" testname="Assertion Controller" enabled="true"/>
- <hashTree>
- <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="vDNS Sink Events" 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"></stringProp>
- <stringProp name="HTTPSampler.port"></stringProp>
- <stringProp name="HTTPSampler.protocol"></stringProp>
- <stringProp name="HTTPSampler.contentEncoding"></stringProp>
- <stringProp name="HTTPSampler.path">policy/pdp/engine/topics/sinks/noop/POLICY-CL-MGT</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>
- <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="WAIT" enabled="true">
- <stringProp name="ConstantTimer.delay">${wait}</stringProp>
- </ConstantTimer>
- <hashTree/>
- <SyncTimer guiclass="TestBeanGUI" testclass="SyncTimer" testname="Synchronizing Timer" enabled="true">
- <stringProp name="groupSize">${threads}</stringProp>
- <stringProp name="timeoutInMs">${threadsTimeOutInMs}</stringProp>
- </SyncTimer>
- <hashTree/>
- <JSONPostProcessor guiclass="JSONPostProcessorGui" testclass="JSONPostProcessor" testname="vDNS JSON Extractor" enabled="true">
- <stringProp name="JSONPostProcessor.referenceNames">result</stringProp>
- <stringProp name="JSONPostProcessor.jsonPathExprs">$</stringProp>
- <stringProp name="JSONPostProcessor.match_numbers"></stringProp>
- </JSONPostProcessor>
- <hashTree/>
- <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="vDNS JSON Assertion" enabled="true">
- <stringProp name="scriptLanguage">java</stringProp>
- <stringProp name="parameters"></stringProp>
- <stringProp name="filename"></stringProp>
- <stringProp name="cacheKey">true</stringProp>
- <stringProp name="script">import net.minidev.json.parser.JSONParser;
-import net.minidev.json.JSONObject;
-import net.minidev.json.JSONArray;
-
-final Map records = new HashMap();
-final JSONParser p = new JSONParser(JSONParser.MODE_PERMISSIVE);
-
-final String result = vars.get(&quot;result&quot;);
-final JSONObject jsonObj = (JSONObject) p.parse(result);
-
- if (jsonObj != null) {
- final JSONArray events = (JSONArray) jsonObj.get(&quot;recentEvents&quot;);
- if (events != null) {
- for (int j = 0; j &lt; events.size(); j++) {
- final String event = (String) events.get(j);
- if (event != null ) {
- final JSONParser parser = new JSONParser(JSONParser.MODE_PERMISSIVE);
- final JSONObject eventObj = (JSONObject) parser.parse(event);
- final String controlLoopName = vars.get(&quot;vDNSControlLoop&quot;);
- if (eventObj.get(&quot;closedLoopControlName&quot;).equals(controlLoopName)) {
- final String requestId = eventObj.get(&quot;requestId&quot;);
- final String notification = eventObj.get(&quot;notification&quot;);
- records.put(requestId, notification);
- }
- }
- }
- }
- }
-
-boolean failure = false;
-final String expectedNotification = &quot;FINAL: SUCCESS&quot;;
-final List cache = vars.getObject(&quot;vDNSCache&quot;);
-
-for (int i = 0; i &lt; cache.size(); i++) {
- final String requestId = cache.get(i);
- final String notification = records.get(requestId);
- if (!(notification != null &amp;&amp; expectedNotification.equals(notification))) {
- log.error(&quot;[vDNS] Assertion failed for requestId: &quot; + requestId +&quot; Expected notification: &quot; + expectedNotification + &quot; But found: &quot; + notification);
- failure = true;
- }
-}
-
-if (failure || cache.isEmpty()) {
- final String error = &quot;[vDNS] Unable to find notification with &quot; + expectedNotification + &quot; in topic &apos;POLICY-CL-MGT&apos;&quot;;
- AssertionResult.setFailureMessage(error);
- AssertionResult.setFailure(true);
- log.error(error);
- log.info(&quot;[vDNS] vDNSCache: &quot; + cache);
- log.info(&quot;[vDNS] Success Records found: &quot; + records);
- log.info(&quot;[vDNS] &quot; + result);
-} else {
- AssertionResult.setFailure(false);
-}
-
-</stringProp>
- </JSR223Assertion>
- <hashTree/>
- </hashTree>
- </hashTree>
- </hashTree>
- <GenericController guiclass="LogicControllerGui" testclass="GenericController" testname="vFW Use Case" enabled="true"/>
- <hashTree>
- <GenericController guiclass="LogicControllerGui" testclass="GenericController" testname="vFW SUCESS Use Case" enabled="true"/>
- <hashTree>
- <GenericController guiclass="LogicControllerGui" testclass="GenericController" testname="vFW Use Case Controller" enabled="true"/>
- <hashTree>
- <JSR223Sampler guiclass="TestBeanGUI" testclass="JSR223Sampler" testname="vFW Cache Initializer" enabled="true">
- <stringProp name="scriptLanguage">java</stringProp>
- <stringProp name="parameters"></stringProp>
- <stringProp name="filename"></stringProp>
- <stringProp name="cacheKey">true</stringProp>
- <stringProp name="script">import java.util.ArrayList;
-import java.util.List;
-
-final List vFWCache = new ArrayList();
-vars.putObject(&quot;vFWCache&quot;, vFWCache);</stringProp>
- </JSR223Sampler>
- <hashTree/>
- <CounterConfig guiclass="CounterConfigGui" testclass="CounterConfig" testname="vFW VNF ID Counter" enabled="true">
- <stringProp name="CounterConfig.start">1</stringProp>
- <stringProp name="CounterConfig.end">${size}</stringProp>
- <stringProp name="CounterConfig.incr">1</stringProp>
- <stringProp name="CounterConfig.name">vnf-id</stringProp>
- <stringProp name="CounterConfig.format">fwvnfid-0</stringProp>
- <boolProp name="CounterConfig.per_user">false</boolProp>
- </CounterConfig>
- <hashTree/>
- <JSR223Sampler guiclass="TestBeanGUI" testclass="JSR223Sampler" testname="vFW Request ID Generator" enabled="true">
- <stringProp name="cacheKey">true</stringProp>
- <stringProp name="filename"></stringProp>
- <stringProp name="parameters"></stringProp>
- <stringProp name="script">import java.util.List;
-import java.util.UUID;
-
-final List vFWCache = vars.getObject(&quot;vFWCache&quot;);
-
-final String uuid = UUID.randomUUID().toString();
-vars.put(&quot;requestID&quot;, uuid);
-
-vFWCache.add(uuid);
-log.debug(&quot;[vFW] requestID &quot;+ uuid);</stringProp>
- <stringProp name="scriptLanguage">java</stringProp>
- </JSR223Sampler>
- <hashTree/>
- <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="vFW Onset Request Event" 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;closedLoopControlName&quot;: &quot;${vFWControlLoop}&quot;,&#xd;
- &quot;closedLoopAlarmStart&quot;: 1463679805324,&#xd;
- &quot;closedLoopEventClient&quot;: &quot;microservice.stringmatcher&quot;,&#xd;
- &quot;closedLoopEventStatus&quot;: &quot;ONSET&quot;,&#xd;
- &quot;requestID&quot;: &quot;${requestID}&quot;,&#xd;
- &quot;target_type&quot;: &quot;VNF&quot;,&#xd;
- &quot;target&quot;: &quot;generic-vnf.vnf-id&quot;,&#xd;
- &quot;AAI&quot;: {&#xd;
- &quot;generic-vnf.is-closed-loop-disabled&quot;: &quot;false&quot;,&#xd;
- &quot;generic-vnf.vnf-id&quot;: &quot;${vnf-id}&quot;&#xd;
- },&#xd;
- &quot;from&quot;: &quot;DCAE&quot;,&#xd;
- &quot;version&quot;: &quot;1.0.2&quot;&#xd;
-}</stringProp>
- <stringProp name="Argument.metadata">=</stringProp>
- </elementProp>
- </collectionProp>
- </elementProp>
- <stringProp name="HTTPSampler.domain"></stringProp>
- <stringProp name="HTTPSampler.port"></stringProp>
- <stringProp name="HTTPSampler.protocol"></stringProp>
- <stringProp name="HTTPSampler.contentEncoding"></stringProp>
- <stringProp name="HTTPSampler.path">policy/pdp/engine/topics/sources/ueb/unauthenticated.DCAE_CL_OUTPUT/events</stringProp>
- <stringProp name="HTTPSampler.method">PUT</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="vFW Assert Onset Response Code" 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">8</intProp>
- <stringProp name="Scope.variable">Response code</stringProp>
- </ResponseAssertion>
- <hashTree/>
- </hashTree>
- <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="vFW APPC Legacy Success Event" 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;CommonHeader&quot;: {&#xd;
- &quot;TimeStamp&quot;: 1506051879001,&#xd;
- &quot;APIver&quot;: &quot;1.01&quot;,&#xd;
- &quot;RequestID&quot;: &quot;${requestID}&quot;,&#xd;
- &quot;SubRequestID&quot;: &quot;1&quot;,&#xd;
- &quot;RequestTrack&quot;: [],&#xd;
- &quot;Flags&quot;: []&#xd;
- },&#xd;
- &quot;Status&quot;: {&#xd;
- &quot;Code&quot;: 400,&#xd;
- &quot;Value&quot;: &quot;SUCCESS&quot;&#xd;
- },&#xd;
- &quot;Payload&quot;: {&#xd;
- &quot;generic-vnf.vnf-id&quot;: &quot;${vnf-id}&quot;,&#xd;
- &quot;pg-streams&quot;: {&#xd;
- &quot;pg-stream&quot;: [&#xd;
- {&#xd;
- &quot;id&quot;: &quot;fw_udp1&quot;,&#xd;
- &quot;is-enabled&quot;: &quot;true&quot;&#xd;
- },&#xd;
- {&#xd;
- &quot;id&quot;: &quot;fw_udp2&quot;,&#xd;
- &quot;is-enabled&quot;: &quot;true&quot;&#xd;
- },&#xd;
- {&#xd;
- &quot;id&quot;: &quot;fw_udp3&quot;,&#xd;
- &quot;is-enabled&quot;: &quot;true&quot;&#xd;
- },&#xd;
- {&#xd;
- &quot;id&quot;: &quot;fw_udp4&quot;,&#xd;
- &quot;is-enabled&quot;: &quot;true&quot;&#xd;
- },&#xd;
- {&#xd;
- &quot;id&quot;: &quot;fw_udp5&quot;,&#xd;
- &quot;is-enabled&quot;: &quot;true&quot;&#xd;
- }&#xd;
- ]&#xd;
- }&#xd;
- }&#xd;
-}</stringProp>
- <stringProp name="Argument.metadata">=</stringProp>
- </elementProp>
- </collectionProp>
- </elementProp>
- <stringProp name="HTTPSampler.domain"></stringProp>
- <stringProp name="HTTPSampler.port"></stringProp>
- <stringProp name="HTTPSampler.protocol"></stringProp>
- <stringProp name="HTTPSampler.contentEncoding"></stringProp>
- <stringProp name="HTTPSampler.path">policy/pdp/engine/topics/sources/ueb/APPC-CL/events</stringProp>
- <stringProp name="HTTPSampler.method">PUT</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>
- <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="WAIT" enabled="true">
- <stringProp name="ConstantTimer.delay">${wait}</stringProp>
- </ConstantTimer>
- <hashTree/>
- <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="vFW Assert APPC Response Code" 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">16</intProp>
- </ResponseAssertion>
- <hashTree/>
- </hashTree>
- </hashTree>
- <GenericController guiclass="LogicControllerGui" testclass="GenericController" testname="Assertion Controller" enabled="true"/>
- <hashTree>
- <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="vFW Sink Events" 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"></stringProp>
- <stringProp name="HTTPSampler.port"></stringProp>
- <stringProp name="HTTPSampler.protocol"></stringProp>
- <stringProp name="HTTPSampler.contentEncoding"></stringProp>
- <stringProp name="HTTPSampler.path">policy/pdp/engine/topics/sinks/noop/POLICY-CL-MGT</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>
- <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="WAIT" enabled="true">
- <stringProp name="ConstantTimer.delay">${wait}</stringProp>
- </ConstantTimer>
- <hashTree/>
- <SyncTimer guiclass="TestBeanGUI" testclass="SyncTimer" testname="Synchronizing Timer" enabled="true">
- <stringProp name="groupSize">${threads}</stringProp>
- <stringProp name="timeoutInMs">${threadsTimeOutInMs}</stringProp>
- </SyncTimer>
- <hashTree/>
- <JSONPostProcessor guiclass="JSONPostProcessorGui" testclass="JSONPostProcessor" testname="vFW JSON Extractor" enabled="true">
- <stringProp name="JSONPostProcessor.referenceNames">result</stringProp>
- <stringProp name="JSONPostProcessor.jsonPathExprs">$</stringProp>
- <stringProp name="JSONPostProcessor.match_numbers"></stringProp>
- </JSONPostProcessor>
- <hashTree/>
- <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="vFW JSON Assertion" enabled="true">
- <stringProp name="scriptLanguage">java</stringProp>
- <stringProp name="parameters"></stringProp>
- <stringProp name="filename"></stringProp>
- <stringProp name="cacheKey">true</stringProp>
- <stringProp name="script">import net.minidev.json.parser.JSONParser;
-import net.minidev.json.JSONObject;
-import net.minidev.json.JSONArray;
-
-final Map records = new HashMap();
-final JSONParser p = new JSONParser(JSONParser.MODE_PERMISSIVE);
-
-final String result = vars.get(&quot;result&quot;);
-final JSONObject jsonObj = (JSONObject) p.parse(result);
-
- if (jsonObj != null) {
- final JSONArray events = (JSONArray) jsonObj.get(&quot;recentEvents&quot;);
- if (events != null) {
- for (int j = 0; j &lt; events.size(); j++) {
- final String event = (String) events.get(j);
- if (event != null ) {
- final JSONParser parser = new JSONParser(JSONParser.MODE_PERMISSIVE);
- final JSONObject eventObj = (JSONObject) parser.parse(event);
- final String controlLoopName = vars.get(&quot;vFWControlLoop&quot;);
- if (eventObj.get(&quot;closedLoopControlName&quot;).equals(controlLoopName)) {
- final String requestId = eventObj.get(&quot;requestId&quot;);
- final String notification = eventObj.get(&quot;notification&quot;);
- records.put(requestId, notification);
- }
- }
- }
- }
- }
-
-boolean failure = false;
-final String expectedNotification = &quot;FINAL: SUCCESS&quot;;
-final List cache = vars.getObject(&quot;vFWCache&quot;);
-
-for (int i = 0; i &lt; cache.size(); i++) {
- final String requestId = cache.get(i);
- final String notification = records.get(requestId);
- if (!(notification != null &amp;&amp; expectedNotification.equals(notification))) {
- log.error(&quot;[vFW] Assertion failed for requestId: &quot; + requestId +&quot; Expected notification: &quot; + expectedNotification + &quot; But found: &quot; + notification);
- failure = true;
- }
-}
-
-if (failure || cache.isEmpty()) {
- final String error = &quot;[vFW] Unable to find notification with &quot; + expectedNotification + &quot; in topic &apos;POLICY-CL-MGT&apos;&quot;;
- AssertionResult.setFailureMessage(error);
- AssertionResult.setFailure(true);
- log.error(error);
- log.info(&quot;[vFW] vFWCache: &quot; + cache);
- log.info(&quot;[vFW] Success Records found: &quot; + records);
- log.info(&quot;[vFW] &quot; + result);
-} else {
- AssertionResult.setFailure(false);
-}
-
-</stringProp>
- </JSR223Assertion>
- <hashTree/>
- </hashTree>
- </hashTree>
- </hashTree>
- <GenericController guiclass="LogicControllerGui" testclass="GenericController" testname="vFW FAILURE Use Case" enabled="true"/>
- <hashTree>
- <GenericController guiclass="LogicControllerGui" testclass="GenericController" testname="vFW Use Case Controller" enabled="true"/>
- <hashTree>
- <JSR223Sampler guiclass="TestBeanGUI" testclass="JSR223Sampler" testname="vFW Failure Cache Initializer" enabled="true">
- <stringProp name="scriptLanguage">java</stringProp>
- <stringProp name="parameters"></stringProp>
- <stringProp name="filename"></stringProp>
- <stringProp name="cacheKey">true</stringProp>
- <stringProp name="script">import java.util.ArrayList;
-import java.util.List;
-
-final List vFWFailueCache = new ArrayList();
-vars.putObject(&quot;vFWFailueCache&quot;, vFWFailueCache);</stringProp>
- </JSR223Sampler>
- <hashTree/>
- <CounterConfig guiclass="CounterConfigGui" testclass="CounterConfig" testname="vFW Failure VNF ID Counter" enabled="true">
- <stringProp name="CounterConfig.start">1</stringProp>
- <stringProp name="CounterConfig.end">${size}</stringProp>
- <stringProp name="CounterConfig.incr">1</stringProp>
- <stringProp name="CounterConfig.name">vnf-id</stringProp>
- <stringProp name="CounterConfig.format">fwvnfid-0</stringProp>
- <boolProp name="CounterConfig.per_user">false</boolProp>
- </CounterConfig>
- <hashTree/>
- <JSR223Sampler guiclass="TestBeanGUI" testclass="JSR223Sampler" testname="vFW Failure Request ID Generator" enabled="true">
- <stringProp name="cacheKey">true</stringProp>
- <stringProp name="filename"></stringProp>
- <stringProp name="parameters"></stringProp>
- <stringProp name="script">import java.util.List;
-import java.util.UUID;
-
-final List vFWFailueCache = vars.getObject(&quot;vFWFailueCache&quot;);
-
-final String uuid = UUID.randomUUID().toString();
-vars.put(&quot;requestID&quot;, uuid);
-
-vFWFailueCache.add(uuid);
-log.debug(&quot;[vFW FAILURE] requestID &quot;+ uuid);</stringProp>
- <stringProp name="scriptLanguage">java</stringProp>
- </JSR223Sampler>
- <hashTree/>
- <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="vFW Failure Onset Request Event" 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;closedLoopControlName&quot;: &quot;${vFWControlLoop}&quot;,&#xd;
- &quot;closedLoopAlarmStart&quot;: 1463679805324,&#xd;
- &quot;closedLoopEventClient&quot;: &quot;microservice.stringmatcher&quot;,&#xd;
- &quot;closedLoopEventStatus&quot;: &quot;ONSET&quot;,&#xd;
- &quot;requestID&quot;: &quot;${requestID}&quot;,&#xd;
- &quot;target_type&quot;: &quot;VNF&quot;,&#xd;
- &quot;target&quot;: &quot;generic-vnf.vnf-id&quot;,&#xd;
- &quot;AAI&quot;: {&#xd;
- &quot;generic-vnf.is-closed-loop-disabled&quot;: &quot;false&quot;,&#xd;
- &quot;generic-vnf.vnf-id&quot;: &quot;${vnf-id}&quot;&#xd;
- },&#xd;
- &quot;from&quot;: &quot;DCAE&quot;,&#xd;
- &quot;version&quot;: &quot;1.0.2&quot;&#xd;
-}</stringProp>
- <stringProp name="Argument.metadata">=</stringProp>
- </elementProp>
- </collectionProp>
- </elementProp>
- <stringProp name="HTTPSampler.domain"></stringProp>
- <stringProp name="HTTPSampler.port"></stringProp>
- <stringProp name="HTTPSampler.protocol"></stringProp>
- <stringProp name="HTTPSampler.contentEncoding"></stringProp>
- <stringProp name="HTTPSampler.path">policy/pdp/engine/topics/sources/ueb/unauthenticated.DCAE_CL_OUTPUT/events</stringProp>
- <stringProp name="HTTPSampler.method">PUT</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="vFW Failure Assert Onset Response Code" 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">8</intProp>
- <stringProp name="Scope.variable">Response code</stringProp>
- </ResponseAssertion>
- <hashTree/>
- </hashTree>
- <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="vFW Failure APPC Legacy Failed Event" 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;CommonHeader&quot;: {&#xd;
- &quot;TimeStamp&quot;: 1506051879001,&#xd;
- &quot;APIver&quot;: &quot;1.01&quot;,&#xd;
- &quot;RequestID&quot;: &quot;${requestID}&quot;,&#xd;
- &quot;SubRequestID&quot;: &quot;1&quot;,&#xd;
- &quot;RequestTrack&quot;: [],&#xd;
- &quot;Flags&quot;: []&#xd;
- },&#xd;
- &quot;Status&quot;: {&#xd;
- &quot;Code&quot;: 500,&#xd;
- &quot;Value&quot;: &quot;FAILED&quot;&#xd;
- },&#xd;
- &quot;Payload&quot;: {&#xd;
- &quot;generic-vnf.vnf-id&quot;: &quot;${vnf-id}&quot;,&#xd;
- &quot;pg-streams&quot;: {&#xd;
- &quot;pg-stream&quot;: [&#xd;
- {&#xd;
- &quot;id&quot;: &quot;fw_udp1&quot;,&#xd;
- &quot;is-enabled&quot;: &quot;true&quot;&#xd;
- },&#xd;
- {&#xd;
- &quot;id&quot;: &quot;fw_udp2&quot;,&#xd;
- &quot;is-enabled&quot;: &quot;true&quot;&#xd;
- },&#xd;
- {&#xd;
- &quot;id&quot;: &quot;fw_udp3&quot;,&#xd;
- &quot;is-enabled&quot;: &quot;true&quot;&#xd;
- },&#xd;
- {&#xd;
- &quot;id&quot;: &quot;fw_udp4&quot;,&#xd;
- &quot;is-enabled&quot;: &quot;true&quot;&#xd;
- },&#xd;
- {&#xd;
- &quot;id&quot;: &quot;fw_udp5&quot;,&#xd;
- &quot;is-enabled&quot;: &quot;true&quot;&#xd;
- }&#xd;
- ]&#xd;
- }&#xd;
- }&#xd;
-}</stringProp>
- <stringProp name="Argument.metadata">=</stringProp>
- </elementProp>
- </collectionProp>
- </elementProp>
- <stringProp name="HTTPSampler.domain"></stringProp>
- <stringProp name="HTTPSampler.port"></stringProp>
- <stringProp name="HTTPSampler.protocol"></stringProp>
- <stringProp name="HTTPSampler.contentEncoding"></stringProp>
- <stringProp name="HTTPSampler.path">policy/pdp/engine/topics/sources/ueb/APPC-CL/events</stringProp>
- <stringProp name="HTTPSampler.method">PUT</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>
- <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="WAIT" enabled="true">
- <stringProp name="ConstantTimer.delay">${wait}</stringProp>
- </ConstantTimer>
- <hashTree/>
- <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="vFW Failure Assert APPC Response Code" 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">16</intProp>
- </ResponseAssertion>
- <hashTree/>
- </hashTree>
- </hashTree>
- <GenericController guiclass="LogicControllerGui" testclass="GenericController" testname="Assertion Controller" enabled="true"/>
- <hashTree>
- <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="vFW Failure Sink Events" 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"></stringProp>
- <stringProp name="HTTPSampler.port"></stringProp>
- <stringProp name="HTTPSampler.protocol"></stringProp>
- <stringProp name="HTTPSampler.contentEncoding"></stringProp>
- <stringProp name="HTTPSampler.path">policy/pdp/engine/topics/sinks/noop/POLICY-CL-MGT</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>
- <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="WAIT" enabled="true">
- <stringProp name="ConstantTimer.delay">${wait}</stringProp>
- </ConstantTimer>
- <hashTree/>
- <SyncTimer guiclass="TestBeanGUI" testclass="SyncTimer" testname="Synchronizing Timer" enabled="true">
- <stringProp name="groupSize">${threads}</stringProp>
- <stringProp name="timeoutInMs">${threadsTimeOutInMs}</stringProp>
- </SyncTimer>
- <hashTree/>
- <JSONPostProcessor guiclass="JSONPostProcessorGui" testclass="JSONPostProcessor" testname="vFW Failure JSON Extractor" enabled="true">
- <stringProp name="JSONPostProcessor.referenceNames">result</stringProp>
- <stringProp name="JSONPostProcessor.jsonPathExprs">$</stringProp>
- <stringProp name="JSONPostProcessor.match_numbers"></stringProp>
- </JSONPostProcessor>
- <hashTree/>
- <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="vFW Failure JSON Assertion" enabled="true">
- <stringProp name="scriptLanguage">java</stringProp>
- <stringProp name="parameters"></stringProp>
- <stringProp name="filename"></stringProp>
- <stringProp name="cacheKey">true</stringProp>
- <stringProp name="script">import net.minidev.json.parser.JSONParser;
-import net.minidev.json.JSONObject;
-import net.minidev.json.JSONArray;
-
-final Map records = new HashMap();
-final JSONParser p = new JSONParser(JSONParser.MODE_PERMISSIVE);
-
-final String result = vars.get(&quot;result&quot;);
-final JSONObject jsonObj = (JSONObject) p.parse(result);
-
- if (jsonObj != null) {
- final JSONArray events = (JSONArray) jsonObj.get(&quot;recentEvents&quot;);
- if (events != null) {
- for (int j = 0; j &lt; events.size(); j++) {
- final String event = (String) events.get(j);
- if (event != null ) {
- final JSONParser parser = new JSONParser(JSONParser.MODE_PERMISSIVE);
- final JSONObject eventObj = (JSONObject) parser.parse(event);
- final String controlLoopName = vars.get(&quot;vFWControlLoop&quot;);
- if (eventObj.get(&quot;closedLoopControlName&quot;).equals(controlLoopName)) {
- final String requestId = eventObj.get(&quot;requestId&quot;);
- final String notification = eventObj.get(&quot;notification&quot;);
- records.put(requestId, notification);
- }
- }
- }
- }
- }
-
-boolean failure = false;
-final String expectedNotification = &quot;FINAL: FAILURE&quot;;
-final List cache = vars.getObject(&quot;vFWFailueCache&quot;);
-
-for (int i = 0; i &lt; cache.size(); i++) {
- final String requestId = cache.get(i);
- final String notification = records.get(requestId);
- if (!(notification != null &amp;&amp; expectedNotification.equals(notification))) {
- log.error(&quot;[vFW] Assertion failed for requestId: &quot; + requestId +&quot; Expected notification: &quot; + expectedNotification + &quot; But found: &quot; + notification);
- failure = true;
- }
-}
-
-if (failure || cache.isEmpty()) {
- final String error = &quot;[vFW] Unable to find notification with &quot; + expectedNotification + &quot; in topic &apos;POLICY-CL-MGT&apos;&quot;;
- AssertionResult.setFailureMessage(error);
- AssertionResult.setFailure(true);
- log.error(error);
- log.info(&quot;[vFW] vFWCache: &quot; + cache);
- log.info(&quot;[vFW] Success Records found: &quot; + records);
- log.info(&quot;[vFW] &quot; + result);
-} else {
- AssertionResult.setFailure(false);
-}
-
-</stringProp>
- </JSR223Assertion>
- <hashTree/>
- </hashTree>
- </hashTree>
- </hashTree>
- </hashTree>
- <GenericController guiclass="LogicControllerGui" testclass="GenericController" testname="VOLTE Use Case" enabled="true"/>
- <hashTree>
- <JSR223Sampler guiclass="TestBeanGUI" testclass="JSR223Sampler" testname="VOLTE Cache Initializer" enabled="true">
- <stringProp name="scriptLanguage">java</stringProp>
- <stringProp name="parameters"></stringProp>
- <stringProp name="filename"></stringProp>
- <stringProp name="cacheKey">true</stringProp>
- <stringProp name="script">import java.util.ArrayList;
-import java.util.List;
-
-final List vVOLTECache = new ArrayList();
-vars.putObject(&quot;vVOLTECache&quot;, vVOLTECache);</stringProp>
- </JSR223Sampler>
- <hashTree/>
- <GenericController guiclass="LogicControllerGui" testclass="GenericController" testname="VOLTE Controller" enabled="true"/>
- <hashTree>
- <JSR223Sampler guiclass="TestBeanGUI" testclass="JSR223Sampler" testname="VOLTE Request ID Generator" enabled="true">
- <stringProp name="cacheKey">true</stringProp>
- <stringProp name="filename"></stringProp>
- <stringProp name="parameters"></stringProp>
- <stringProp name="script">import java.util.List;
-import java.util.UUID;
-
-final List vVOLTECache = vars.getObject(&quot;vVOLTECache&quot;);
-
-final String uuid = UUID.randomUUID().toString();
-vars.put(&quot;requestID&quot;,uuid);
-
-vVOLTECache.add(uuid);
-log.debug(&quot;[VOLTE] requestID &quot;+ uuid);</stringProp>
- <stringProp name="scriptLanguage">java</stringProp>
- </JSR223Sampler>
- <hashTree/>
- <CounterConfig guiclass="CounterConfigGui" testclass="CounterConfig" testname="VOLTE SERVICE INSTANCE ID Counter" enabled="true">
- <stringProp name="CounterConfig.start">1</stringProp>
- <stringProp name="CounterConfig.end">${size}</stringProp>
- <stringProp name="CounterConfig.incr">1</stringProp>
- <stringProp name="CounterConfig.name">service-instance-id</stringProp>
- <stringProp name="CounterConfig.format">volte-service-instance-id-0</stringProp>
- <boolProp name="CounterConfig.per_user">false</boolProp>
- </CounterConfig>
- <hashTree/>
- <CounterConfig guiclass="CounterConfigGui" testclass="CounterConfig" testname="VOLTE vSERVER NAME Counter" enabled="true">
- <stringProp name="CounterConfig.start">1</stringProp>
- <stringProp name="CounterConfig.end">${size}</stringProp>
- <stringProp name="CounterConfig.incr">1</stringProp>
- <stringProp name="CounterConfig.name">vserver-name</stringProp>
- <stringProp name="CounterConfig.format">dnsvserver-name-0</stringProp>
- <boolProp name="CounterConfig.per_user">false</boolProp>
- </CounterConfig>
- <hashTree/>
- <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="VOLTE Onset Request Event" 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;closedLoopControlName&quot;:&quot;${VOLTEControlLoop}&quot;,&#xd;
- &quot;closedLoopAlarmStart&quot;:1484677482204798,&#xd;
- &quot;closedLoopEventClient&quot;:&quot;DCAE.HolmesInstance&quot;,&#xd;
- &quot;closedLoopEventStatus&quot;:&quot;ONSET&quot;,&#xd;
- &quot;requestID&quot;:&quot;${requestID}&quot;,&#xd;
- &quot;target_type&quot;:&quot;VM&quot;,&#xd;
- &quot;target&quot;:&quot;vserver.vserver-name&quot;,&#xd;
- &quot;AAI&quot;:{ &#xd;
- &quot;vserver.is-closed-loop-disabled&quot;:&quot;false&quot;,&#xd;
- &quot;vserver.vserver-name&quot;:&quot;${vserver-name}&quot;,&#xd;
- &quot;service-instance.service-instance-id&quot;:&quot;vserver-name-${service-instance-id}&quot;,&#xd;
- &quot;generic-vnf.vnf-id&quot;:&quot;vnf-id-${service-instance-id}&quot;,&#xd;
- &quot;generic-vnf.vnf-name&quot;:&quot;vnf-name-${service-instance-id}&quot;&#xd;
- },&#xd;
- &quot;from&quot;:&quot;DCAE&quot;,&#xd;
- &quot;version&quot;:&quot;1.0.2&quot;&#xd;
-}</stringProp>
- <stringProp name="Argument.metadata">=</stringProp>
- </elementProp>
- </collectionProp>
- </elementProp>
- <stringProp name="HTTPSampler.domain"></stringProp>
- <stringProp name="HTTPSampler.port"></stringProp>
- <stringProp name="HTTPSampler.protocol"></stringProp>
- <stringProp name="HTTPSampler.contentEncoding"></stringProp>
- <stringProp name="HTTPSampler.path">policy/pdp/engine/topics/sources/ueb/unauthenticated.DCAE_CL_OUTPUT/events</stringProp>
- <stringProp name="HTTPSampler.method">PUT</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="VOLTE Assert Onset Response Code" 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">8</intProp>
- <stringProp name="Scope.variable">Response code</stringProp>
- </ResponseAssertion>
- <hashTree/>
- </hashTree>
- <GenericController guiclass="LogicControllerGui" testclass="GenericController" testname="Assertion Controller" enabled="true"/>
- <hashTree>
- <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="VOLTE Sink Events" 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"></stringProp>
- <stringProp name="HTTPSampler.port"></stringProp>
- <stringProp name="HTTPSampler.protocol"></stringProp>
- <stringProp name="HTTPSampler.contentEncoding"></stringProp>
- <stringProp name="HTTPSampler.path">policy/pdp/engine/topics/sinks/noop/POLICY-CL-MGT</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>
- <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="WAIT" enabled="true">
- <stringProp name="ConstantTimer.delay">${wait}</stringProp>
- </ConstantTimer>
- <hashTree/>
- <SyncTimer guiclass="TestBeanGUI" testclass="SyncTimer" testname="Synchronizing Timer" enabled="true">
- <stringProp name="groupSize">${threads}</stringProp>
- <stringProp name="timeoutInMs">${threadsTimeOutInMs}</stringProp>
- </SyncTimer>
- <hashTree/>
- <JSONPostProcessor guiclass="JSONPostProcessorGui" testclass="JSONPostProcessor" testname="VOLTE JSON Extractor" enabled="true">
- <stringProp name="JSONPostProcessor.referenceNames">result</stringProp>
- <stringProp name="JSONPostProcessor.jsonPathExprs">$</stringProp>
- <stringProp name="JSONPostProcessor.match_numbers"></stringProp>
- </JSONPostProcessor>
- <hashTree/>
- <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="VOLTE JSON Assertion" enabled="true">
- <stringProp name="scriptLanguage">java</stringProp>
- <stringProp name="parameters"></stringProp>
- <stringProp name="filename"></stringProp>
- <stringProp name="cacheKey">true</stringProp>
- <stringProp name="script">import net.minidev.json.parser.JSONParser;
-import net.minidev.json.JSONObject;
-import net.minidev.json.JSONArray;
-
-final Map records = new HashMap();
-final JSONParser p = new JSONParser(JSONParser.MODE_PERMISSIVE);
-
-final String result = vars.get(&quot;result&quot;);
-final JSONObject jsonObj = (JSONObject) p.parse(result);
-
- if (jsonObj != null) {
- final JSONArray events = (JSONArray) jsonObj.get(&quot;recentEvents&quot;);
- if (events != null) {
- for (int j = 0; j &lt; events.size(); j++) {
- final String event = (String) events.get(j);
- if (event != null ) {
- final JSONParser parser = new JSONParser(JSONParser.MODE_PERMISSIVE);
- final JSONObject eventObj = (JSONObject) parser.parse(event);
- final String controlLoopName = vars.get(&quot;VOLTEControlLoop&quot;);
- if (eventObj.get(&quot;closedLoopControlName&quot;).equals(controlLoopName)) {
- final String requestId = eventObj.get(&quot;requestId&quot;);
- final String notification = eventObj.get(&quot;notification&quot;);
- records.put(requestId, notification);
- }
- }
- }
- }
- }
-
-boolean failure = false;
-final String expectedNotification = &quot;FINAL: SUCCESS&quot;;
-final List cache = vars.getObject(&quot;vVOLTECache&quot;);
-
-for (int i = 0; i &lt; cache.size(); i++) {
- final String requestId = cache.get(i);
- final String notification = records.get(requestId);
- if (!(notification != null &amp;&amp; expectedNotification.equals(notification))) {
- log.error(&quot;[VOLTE] Assertion failed for requestId: &quot; + requestId +&quot; Expected notification: &quot; + expectedNotification + &quot; But found: &quot; + notification);
- failure = true;
- }
-}
-
-if (failure || cache.isEmpty()) {
- final String error = &quot;[VOLTE] Unable to find notification with &quot; + expectedNotification + &quot; in topic &apos;POLICY-CL-MGT&apos;&quot;;
- AssertionResult.setFailureMessage(error);
- AssertionResult.setFailure(true);
- log.error(error);
- log.info(&quot;[VOLTE] vVOLTECache: &quot; + cache);
- log.info(&quot;[VOLTE] Success Records found: &quot; + records);
- log.info(&quot;[VOLTE] &quot; + result);
-} else {
- AssertionResult.setFailure(false);
-}
-
-</stringProp>
- </JSR223Assertion>
- <hashTree/>
- </hashTree>
- </hashTree>
- </hashTree>
- </hashTree>
- </hashTree>
- <GenericController guiclass="LogicControllerGui" testclass="GenericController" testname="Assertation After" enabled="true"/>
- <hashTree>
- <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="GET FACT REQUEST" 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"></stringProp>
- <stringProp name="HTTPSampler.port"></stringProp>
- <stringProp name="HTTPSampler.protocol"></stringProp>
- <stringProp name="HTTPSampler.contentEncoding"></stringProp>
- <stringProp name="HTTPSampler.path">policy/pdp/engine/controllers/${controller}/drools/facts/${session}/</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="124225537">{&quot;org.onap.policy.controlloop.Params&quot;:4}</stringProp>
- </collectionProp>
- <stringProp name="Assertion.custom_message"></stringProp>
- <stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
- <boolProp name="Assertion.assume_success">false</boolProp>
- <intProp name="Assertion.test_type">16</intProp>
- </ResponseAssertion>
- <hashTree/>
- </hashTree>
- </hashTree>
- </hashTree>
- </hashTree>
- <ResultCollector guiclass="SummaryReport" testclass="ResultCollector" testname="Summary Report" enabled="true">
- <boolProp name="ResultCollector.error_logging">false</boolProp>
- <objProp>
- <name>saveConfig</name>
- <value class="SampleSaveConfiguration">
- <time>true</time>
- <latency>true</latency>
- <timestamp>true</timestamp>
- <success>true</success>
- <label>true</label>
- <code>true</code>
- <message>true</message>
- <threadName>true</threadName>
- <dataType>true</dataType>
- <encoding>false</encoding>
- <assertions>true</assertions>
- <subresults>true</subresults>
- <responseData>false</responseData>
- <samplerData>false</samplerData>
- <xml>false</xml>
- <fieldNames>true</fieldNames>
- <responseHeaders>false</responseHeaders>
- <requestHeaders>false</requestHeaders>
- <responseDataOnError>false</responseDataOnError>
- <saveAssertionResultsFailureMessage>true</saveAssertionResultsFailureMessage>
- <assertionsResultsToSave>0</assertionsResultsToSave>
- <bytes>true</bytes>
- <sentBytes>true</sentBytes>
- <threadCounts>true</threadCounts>
- <idleTime>true</idleTime>
- <connectTime>true</connectTime>
- </value>
- </objProp>
- <stringProp name="filename"></stringProp>
- </ResultCollector>
- <hashTree/>
- <ResultCollector guiclass="ViewResultsFullVisualizer" testclass="ResultCollector" testname="View Results Tree" enabled="true">
- <boolProp name="ResultCollector.error_logging">false</boolProp>
- <objProp>
- <name>saveConfig</name>
- <value class="SampleSaveConfiguration">
- <time>true</time>
- <latency>true</latency>
- <timestamp>true</timestamp>
- <success>true</success>
- <label>true</label>
- <code>true</code>
- <message>true</message>
- <threadName>true</threadName>
- <dataType>true</dataType>
- <encoding>false</encoding>
- <assertions>true</assertions>
- <subresults>true</subresults>
- <responseData>false</responseData>
- <samplerData>false</samplerData>
- <xml>false</xml>
- <fieldNames>true</fieldNames>
- <responseHeaders>false</responseHeaders>
- <requestHeaders>false</requestHeaders>
- <responseDataOnError>false</responseDataOnError>
- <saveAssertionResultsFailureMessage>true</saveAssertionResultsFailureMessage>
- <assertionsResultsToSave>0</assertionsResultsToSave>
- <bytes>true</bytes>
- <sentBytes>true</sentBytes>
- <threadCounts>true</threadCounts>
- <idleTime>true</idleTime>
- <connectTime>true</connectTime>
- </value>
- </objProp>
- <stringProp name="filename"></stringProp>
- </ResultCollector>
- <hashTree/>
- <ResultCollector guiclass="TableVisualizer" testclass="ResultCollector" testname="View Results in Table" enabled="true">
- <boolProp name="ResultCollector.error_logging">false</boolProp>
- <objProp>
- <name>saveConfig</name>
- <value class="SampleSaveConfiguration">
- <time>true</time>
- <latency>true</latency>
- <timestamp>true</timestamp>
- <success>true</success>
- <label>true</label>
- <code>true</code>
- <message>true</message>
- <threadName>true</threadName>
- <dataType>true</dataType>
- <encoding>false</encoding>
- <assertions>true</assertions>
- <subresults>true</subresults>
- <responseData>false</responseData>
- <samplerData>false</samplerData>
- <xml>false</xml>
- <fieldNames>true</fieldNames>
- <responseHeaders>false</responseHeaders>
- <requestHeaders>false</requestHeaders>
- <responseDataOnError>false</responseDataOnError>
- <saveAssertionResultsFailureMessage>true</saveAssertionResultsFailureMessage>
- <assertionsResultsToSave>0</assertionsResultsToSave>
- <bytes>true</bytes>
- <sentBytes>true</sentBytes>
- <threadCounts>true</threadCounts>
- <idleTime>true</idleTime>
- <connectTime>true</connectTime>
- </value>
- </objProp>
- <stringProp name="filename"></stringProp>
- </ResultCollector>
- <hashTree/>
- </hashTree>
- </hashTree>
-</jmeterTestPlan> \ No newline at end of file
diff --git a/testsuites/stability/src/main/resources/amsterdam/generate_performace_report.sh b/testsuites/stability/src/main/resources/amsterdam/generate_performace_report.sh
deleted file mode 100644
index 846628543..000000000
--- a/testsuites/stability/src/main/resources/amsterdam/generate_performace_report.sh
+++ /dev/null
@@ -1,185 +0,0 @@
-#!/bin/bash
-
-# Copyright (C) 2018 Ericsson. All rights reserved.
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-# The aim of this script is to collect performance metric for policies running in PDP-D.
-#
-# Pre-requisites:
-#
-# Run the JMeter Stability test plan (see below link) on the PDP-D for atleast few hours so that enough samples are collected and used for performance calculation.
-#
-# Recommendation:
-# Run for 72 hours
-#
-# https://gerrit.onap.org/r/gitweb?p=policy/drools-applications.git;a=blob;f=testsuites/stability/src/main/resources/amsterdam/droolsPdpStabilityTestPlan.jmx;h=8a327622acc38b4615e000bfab3f778d1997e6e7;hb=refs/heads/master
-#
-# How to run:
-# 1: Copy this script to drools container
-# 2: Pass following parameters to run the script
-# - log-dir : the complete directory location of audit.log file.
-# - wait : the wait time configured in JMeter test plan.
-#
-# Sample command for running the script: ./generate_performance_report -l /var/log/onap/policy/pdpd -w 500
-# Note: -h or --help can be used to display details about input parameters.
-#
-# How it works
-# The script will parse the audit.log file at the specified location and fetch the running time of each policy.
-# Take enough samples and then calculate the average time taken for policies to complete.
-
-usage()
-{
-_msg_="$@"
-scriptname=$(basename $0)
-
-cat<<-EOF
-
-Command Arguments:
-
--l, --log-dir
- Mandatory argument. Directory location of audit logs.
-
--w, --wait
- Mandatory argument. Wait time between onset and appc for vCPE and vFW (in milliseconds)
-
--h, --help
- Optional argument. Display this usage.
-
-EOF
-exit 1
-
-}
-
-process_vCPE() {
- # vCPE use case
- vcpe_perf_list=($(ls -lrth $LOG_DIR/audit.* | awk '{print $9}'| xargs -n1 zgrep vCPE | grep COMPLETE | grep generic-vnf.vnf-id | awk -F'|' '{print $7 }' | tail -10000))
-
- vcpeTotal=0
- vcpeSum=0
- for count in "${vcpe_perf_list[@]}"
- do
- vcpeSum=$(($vcpeSum + $count))
- vcpeTotal=$(($vcpeTotal + 1))
- done
- # Multiplying by 2 because stability test waits after onset and abatement
- average=$((($vcpeSum / $vcpeTotal)-(2*$WAIT)))
- echo "Average time taken to execute vCPE use case: $average ms [samples taken for average: $vcpeTotal]"
-}
-
-process_vFW() {
- # vFirewall use case
- vfw_perf_list=($(ls -lrth $LOG_DIR/audit.* | awk '{print $9}'| xargs -n1 zgrep vFirewall | grep COMPLETE | grep generic-vnf.vnf-id | awk -F'|' '{print $7 }' | tail -10000))
-
- vfwTotal=0
- vfwSum=0
- for count in "${vfw_perf_list[@]}"
- do
- vfwSum=$(($vfwSum + $count))
- vfwTotal=$(($vfwTotal + 1))
- done
- # Substracting wait as stability test waits after onset
- average=$((($vfwSum / $vfwTotal)-$WAIT))
- echo "Average time taken to execute vFirewall use case: $average ms [samples taken for average: $vfwTotal]"
-}
-
-process_vDNS() {
- # vDNS use case
- vdns_perf_list=($(ls -lrth $LOG_DIR/audit.* | awk '{print $9}'| xargs -n1 zgrep vDNS | grep COMPLETE | grep vserver.vserver-name | awk -F'|' '{print $7 }' | tail -10000))
-
- vdnsTotal=0
- vdnsSum=0
- for count in "${vdns_perf_list[@]}"
- do
- vdnsSum=$(($vdnsSum + $count))
- vdnsTotal=$(($vdnsTotal + 1))
- done
- average=$(($vdnsSum / $vdnsTotal))
- echo "Average time taken to execute vDNS use case: $average ms [samples taken for average: $vdnsTotal]"
-}
-
-process_VOLTE() {
- # VOLTE use case
- volte_perf_list=($(ls -lrth $LOG_DIR/audit.* | awk '{print $9}'| xargs -n1 zgrep VOLTE | grep COMPLETE | awk -F'|' '{print $7 }' | tail -10000))
-
- volteTotal=0
- volteSum=0
- for count in "${volte_perf_list[@]}"
- do
- volteSum=$(($volteSum + $count))
- volteTotal=$(($volteTotal + 1))
- done
- average=$(($volteSum / $volteTotal))
- echo "Average time taken to execute VOLTE use case: $average ms [samples taken for average: $volteTotal]"
-}
-
-# Called when script is executed with invalid arguments
-invalid_arguments() {
-echo "Missing or invalid option(s):"
-echo "$@"
-echo "Try -help for more information"
- exit 1
-}
-
-# Process the arguments passed to the script
-process_arguments() {
-short_args="hl:w:"
-long_args="help,log-dir:wait:"
-
-args=$(getopt -o $short_args -l $long_args -n "$0" -- "$@" 2>&1 )
-[[ $? -ne 0 ]] && invalid_arguments $( echo " $args"| head -1 )
-[[ $# -eq 0 ]] && invalid_arguments "No options provided"
-eval set -- "$args"
-cmd_arg="$0"
-
-while true; do
- case "$1" in
- -l|--log-dir)
- LOG_DIR=$2
- shift 2 ;;
- -w|--wait)
- WAIT=$2
- shift 2 ;;
- -h|--help)
- usage
- exit 0
- ;;
- --)
- shift
- break ;;
- *)
- echo BAD ARGUMENTS # perhaps error
- break ;;
- esac
-done
-
-if ! [[ -d $LOG_DIR ]]; then
- echo "$LOG_DIR does not exists" >&2; exit 1
-fi
-
-re='^[0-9]+$'
-if ! [[ $WAIT =~ $re ]] ; then
- echo "error: WAIT must be number " >&2; exit 1
-fi
-
-}
-
-
-# main body
-process_arguments $@
-process_vCPE
-process_vFW
-process_vDNS
-process_VOLTE
-
-
diff --git a/testsuites/stability/src/main/resources/frankfurt/s3p.jmx b/testsuites/stability/src/main/resources/frankfurt/s3p.jmx
deleted file mode 100644
index 46401c901..000000000
--- a/testsuites/stability/src/main/resources/frankfurt/s3p.jmx
+++ /dev/null
@@ -1,3172 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<jmeterTestPlan version="1.2" properties="5.0" jmeter="5.1.1 r1855137">
- <hashTree>
- <TestPlan guiclass="TestPlanGui" testclass="TestPlan" testname="PDP-D Stability" enabled="true">
- <stringProp name="TestPlan.comments"></stringProp>
- <boolProp name="TestPlan.functional_mode">false</boolProp>
- <boolProp name="TestPlan.tearDown_on_shutdown">true</boolProp>
- <boolProp name="TestPlan.serialize_threadgroups">false</boolProp>
- <elementProp name="TestPlan.user_defined_variables" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
- <collectionProp name="Arguments.arguments">
- <elementProp name="API_HOST" elementType="Argument">
- <stringProp name="Argument.name">API_HOST</stringProp>
- <stringProp name="Argument.value">10.12.5.193</stringProp>
- <stringProp name="Argument.metadata">=</stringProp>
- </elementProp>
- <elementProp name="API_PORT" elementType="Argument">
- <stringProp name="Argument.name">API_PORT</stringProp>
- <stringProp name="Argument.value">30709</stringProp>
- <stringProp name="Argument.metadata">=</stringProp>
- </elementProp>
- <elementProp name="PAP_HOST" elementType="Argument">
- <stringProp name="Argument.name">PAP_HOST</stringProp>
- <stringProp name="Argument.value">10.12.5.193</stringProp>
- <stringProp name="Argument.metadata">=</stringProp>
- </elementProp>
- <elementProp name="PAP_PORT" elementType="Argument">
- <stringProp name="Argument.name">PAP_PORT</stringProp>
- <stringProp name="Argument.value">32425</stringProp>
- <stringProp name="Argument.metadata">=</stringProp>
- </elementProp>
- <elementProp name="DMAAP_HOST" elementType="Argument">
- <stringProp name="Argument.name">DMAAP_HOST</stringProp>
- <stringProp name="Argument.value">10.12.5.193</stringProp>
- <stringProp name="Argument.metadata">=</stringProp>
- </elementProp>
- <elementProp name="DMAAP_PORT" elementType="Argument">
- <stringProp name="Argument.name">DMAAP_PORT</stringProp>
- <stringProp name="Argument.value">30226</stringProp>
- <stringProp name="Argument.metadata">=</stringProp>
- </elementProp>
- <elementProp name="DROOLS_HOST" elementType="Argument">
- <stringProp name="Argument.name">DROOLS_HOST</stringProp>
- <stringProp name="Argument.value">10.12.5.193</stringProp>
- <stringProp name="Argument.metadata">=</stringProp>
- </elementProp>
- <elementProp name="DROOLS_PORT" elementType="Argument">
- <stringProp name="Argument.name">DROOLS_PORT</stringProp>
- <stringProp name="Argument.value">30789</stringProp>
- <stringProp name="Argument.metadata">=</stringProp>
- </elementProp>
- <elementProp name="duration" elementType="Argument">
- <stringProp name="Argument.name">duration</stringProp>
- <stringProp name="Argument.value">259200</stringProp>
- <stringProp name="Argument.metadata">=</stringProp>
- </elementProp>
- </collectionProp>
- </elementProp>
- <stringProp name="TestPlan.user_define_classpath"></stringProp>
- </TestPlan>
- <hashTree>
- <HeaderManager guiclass="HeaderPanel" testclass="HeaderManager" testname="HTTP Header Manager" enabled="true">
- <collectionProp name="HeaderManager.headers">
- <elementProp name="" elementType="Header">
- <stringProp name="Header.name">Accept</stringProp>
- <stringProp name="Header.value">application/json</stringProp>
- </elementProp>
- <elementProp name="" elementType="Header">
- <stringProp name="Header.name">Content-Type</stringProp>
- <stringProp name="Header.value">application/json</stringProp>
- </elementProp>
- </collectionProp>
- </HeaderManager>
- <hashTree/>
- <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.username">healthcheck</stringProp>
- <stringProp name="Authorization.password">zb!XztG34</stringProp>
- <stringProp name="Authorization.domain"></stringProp>
- <stringProp name="Authorization.realm"></stringProp>
- </elementProp>
- <elementProp name="" elementType="Authorization">
- <stringProp name="Authorization.url">https://${PAP_HOST}:${PAP_PORT}/policy/pap/v1</stringProp>
- <stringProp name="Authorization.username">healthcheck</stringProp>
- <stringProp name="Authorization.password">zb!XztG34</stringProp>
- <stringProp name="Authorization.domain"></stringProp>
- <stringProp name="Authorization.realm"></stringProp>
- </elementProp>
- <elementProp name="" elementType="Authorization">
- <stringProp name="Authorization.url">https://${DROOLS_HOST}:${DROOLS_PORT}/policy/pdp/engine</stringProp>
- <stringProp name="Authorization.username">demo@people.osaaf.org</stringProp>
- <stringProp name="Authorization.password">demo123456!</stringProp>
- <stringProp name="Authorization.domain"></stringProp>
- <stringProp name="Authorization.realm"></stringProp>
- </elementProp>
- </collectionProp>
- </AuthManager>
- <hashTree/>
- <ConfigTestElement guiclass="HttpDefaultsGui" testclass="ConfigTestElement" testname="HTTP Request Defaults" 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"></stringProp>
- <stringProp name="HTTPSampler.port">9696</stringProp>
- <stringProp name="HTTPSampler.protocol">http</stringProp>
- <stringProp name="HTTPSampler.contentEncoding"></stringProp>
- <stringProp name="HTTPSampler.path"></stringProp>
- <stringProp name="HTTPSampler.concurrentPool">6</stringProp>
- <stringProp name="HTTPSampler.connect_timeout"></stringProp>
- <stringProp name="HTTPSampler.response_timeout"></stringProp>
- </ConfigTestElement>
- <hashTree/>
- <SetupThreadGroup guiclass="SetupThreadGroupGui" testclass="SetupThreadGroup" testname="Set up" 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>
- </SetupThreadGroup>
- <hashTree>
- <GenericController guiclass="LogicControllerGui" testclass="GenericController" testname="API" enabled="true"/>
- <hashTree>
- <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="API Healthcheck" 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/healthcheck</stringProp>
- <stringProp name="HTTPSampler.method">GET</stringProp>
- <boolProp name="HTTPSampler.follow_redirects">false</boolProp>
- <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
- <boolProp name="HTTPSampler.use_keepalive">false</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">8</intProp>
- </ResponseAssertion>
- <hashTree/>
- <JSONPathAssertion guiclass="JSONPathAssertionGui" testclass="JSONPathAssertion" testname="JSON Assertion" enabled="true">
- <stringProp name="JSON_PATH">$.healthy</stringProp>
- <stringProp name="EXPECTED_VALUE">true</stringProp>
- <boolProp name="JSONVALIDATION">true</boolProp>
- <boolProp name="EXPECT_NULL">false</boolProp>
- <boolProp name="INVERT">false</boolProp>
- <boolProp name="ISREGEX">false</boolProp>
- </JSONPathAssertion>
- <hashTree/>
- </hashTree>
- <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create vCPE Policy" 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_1_0&quot;,&#xd;
- &quot;topology_template&quot;: {&#xd;
- &quot;policies&quot;: [&#xd;
- {&#xd;
- &quot;operational.restart&quot;: {&#xd;
- &quot;type&quot;: &quot;onap.policies.controlloop.operational.common.Drools&quot;,&#xd;
- &quot;type_version&quot;: &quot;1.0.0&quot;,&#xd;
- &quot;version&quot;: &quot;1.0.0&quot;,&#xd;
- &quot;metadata&quot;: {&#xd;
- &quot;policy-id&quot;: &quot;operational.restart&quot;&#xd;
- },&#xd;
- &quot;properties&quot;: {&#xd;
- &quot;id&quot;: &quot;ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e&quot;,&#xd;
- &quot;timeout&quot;: 60,&#xd;
- &quot;abatement&quot;: false,&#xd;
- &quot;trigger&quot;: &quot;unique-policy-id-1-restart&quot;,&#xd;
- &quot;operations&quot;: [&#xd;
- {&#xd;
- &quot;id&quot;: &quot;unique-policy-id-1-restart&quot;,&#xd;
- &quot;description&quot;: &quot;Restart the VM&quot;,&#xd;
- &quot;operation&quot;: {&#xd;
- &quot;actor&quot;: &quot;APPC&quot;,&#xd;
- &quot;operation&quot;: &quot;Restart&quot;,&#xd;
- &quot;target&quot;: {&#xd;
- &quot;targetType&quot;: &quot;VNF&quot;&#xd;
- }&#xd;
- },&#xd;
- &quot;timeout&quot;: 20,&#xd;
- &quot;retries&quot;: 0,&#xd;
- &quot;success&quot;: &quot;final_success&quot;,&#xd;
- &quot;failure&quot;: &quot;final_failure&quot;,&#xd;
- &quot;failure_timeout&quot;: &quot;final_failure_timeout&quot;,&#xd;
- &quot;failure_retries&quot;: &quot;final_failure_retries&quot;,&#xd;
- &quot;failure_exception&quot;: &quot;final_failure_exception&quot;,&#xd;
- &quot;failure_guard&quot;: &quot;final_failure_guard&quot;&#xd;
- }&#xd;
- ],&#xd;
- &quot;controllerName&quot;: &quot;frankfurt&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/onap.policies.controlloop.operational.common.Drools/versions/1.0.0/policies</stringProp>
- <stringProp name="HTTPSampler.method">POST</stringProp>
- <boolProp name="HTTPSampler.follow_redirects">false</boolProp>
- <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
- <boolProp name="HTTPSampler.use_keepalive">false</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">8</intProp>
- </ResponseAssertion>
- <hashTree/>
- </hashTree>
- <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create vCPE Fail Policy" 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_1_0&quot;,&#xd;
- &quot;topology_template&quot;: {&#xd;
- &quot;policies&quot;: [&#xd;
- {&#xd;
- &quot;operational.restart.fail&quot;: {&#xd;
- &quot;type&quot;: &quot;onap.policies.controlloop.operational.common.Drools&quot;,&#xd;
- &quot;type_version&quot;: &quot;1.0.0&quot;,&#xd;
- &quot;version&quot;: &quot;1.0.0&quot;,&#xd;
- &quot;metadata&quot;: {&#xd;
- &quot;policy-id&quot;: &quot;operational.restart.fail&quot;&#xd;
- },&#xd;
- &quot;properties&quot;: {&#xd;
- &quot;id&quot;: &quot;ControlLoop-vCPE-Fail&quot;,&#xd;
- &quot;timeout&quot;: 60,&#xd;
- &quot;abatement&quot;: false,&#xd;
- &quot;trigger&quot;: &quot;unique-policy-id-1-restart&quot;,&#xd;
- &quot;operations&quot;: [&#xd;
- {&#xd;
- &quot;id&quot;: &quot;unique-policy-id-1-restart&quot;,&#xd;
- &quot;description&quot;: &quot;Restart the VM&quot;,&#xd;
- &quot;operation&quot;: {&#xd;
- &quot;actor&quot;: &quot;APPC&quot;,&#xd;
- &quot;operation&quot;: &quot;Restart&quot;,&#xd;
- &quot;target&quot;: {&#xd;
- &quot;targetType&quot;: &quot;VNF&quot;&#xd;
- }&#xd;
- },&#xd;
- &quot;timeout&quot;: 20,&#xd;
- &quot;retries&quot;: 0,&#xd;
- &quot;success&quot;: &quot;final_success&quot;,&#xd;
- &quot;failure&quot;: &quot;final_failure&quot;,&#xd;
- &quot;failure_timeout&quot;: &quot;final_failure_timeout&quot;,&#xd;
- &quot;failure_retries&quot;: &quot;final_failure_retries&quot;,&#xd;
- &quot;failure_exception&quot;: &quot;final_failure_exception&quot;,&#xd;
- &quot;failure_guard&quot;: &quot;final_failure_guard&quot;&#xd;
- }&#xd;
- ],&#xd;
- &quot;controllerName&quot;: &quot;frankfurt&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/onap.policies.controlloop.operational.common.Drools/versions/1.0.0/policies</stringProp>
- <stringProp name="HTTPSampler.method">POST</stringProp>
- <boolProp name="HTTPSampler.follow_redirects">false</boolProp>
- <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
- <boolProp name="HTTPSampler.use_keepalive">false</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">8</intProp>
- </ResponseAssertion>
- <hashTree/>
- </hashTree>
- <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create vFirewall Policy" 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_1_0&quot;,&#xd;
- &quot;topology_template&quot;: {&#xd;
- &quot;policies&quot;: [&#xd;
- {&#xd;
- &quot;operational.modifyconfig&quot;: {&#xd;
- &quot;type&quot;: &quot;onap.policies.controlloop.operational.common.Drools&quot;,&#xd;
- &quot;type_version&quot;: &quot;1.0.0&quot;,&#xd;
- &quot;version&quot;: &quot;1.0.0&quot;,&#xd;
- &quot;metadata&quot;: {&#xd;
- &quot;policy-id&quot;: &quot;operational.modifyconfig&quot;&#xd;
- },&#xd;
- &quot;properties&quot;: {&#xd;
- &quot;id&quot;: &quot;ControlLoop-vFirewall-d0a1dfc6-94f5-4fd4-a5b5-4630b438850a&quot;,&#xd;
- &quot;timeout&quot;: 60,&#xd;
- &quot;abatement&quot;: false,&#xd;
- &quot;trigger&quot;: &quot;unique-policy-id-1-modifyConfig&quot;,&#xd;
- &quot;operations&quot;: [&#xd;
- {&#xd;
- &quot;id&quot;: &quot;unique-policy-id-1-modifyConfig&quot;,&#xd;
- &quot;description&quot;: &quot;Modify the packet generator&quot;,&#xd;
- &quot;operation&quot;: {&#xd;
- &quot;actor&quot;: &quot;APPC&quot;,&#xd;
- &quot;operation&quot;: &quot;ModifyConfig&quot;,&#xd;
- &quot;target&quot;: {&#xd;
- &quot;targetType&quot;: &quot;VNF&quot;,&#xd;
- &quot;entityIds&quot;: {&#xd;
- &quot;resourceID&quot;: &quot;bbb3cefd-01c8-413c-9bdd-2b92f9ca3d38&quot;&#xd;
- }&#xd;
- },&#xd;
- &quot;payload&quot;: {&#xd;
- &quot;streams&quot;: &quot;{\&quot;active-streams\&quot;: 5 }&quot;&#xd;
- }&#xd;
- },&#xd;
- &quot;timeout&quot;: 20,&#xd;
- &quot;retries&quot;: 0,&#xd;
- &quot;success&quot;: &quot;final_success&quot;,&#xd;
- &quot;failure&quot;: &quot;final_failure&quot;,&#xd;
- &quot;failure_timeout&quot;: &quot;final_failure_timeout&quot;,&#xd;
- &quot;failure_retries&quot;: &quot;final_failure_retries&quot;,&#xd;
- &quot;failure_exception&quot;: &quot;final_failure_exception&quot;,&#xd;
- &quot;failure_guard&quot;: &quot;final_failure_guard&quot;&#xd;
- }&#xd;
- ],&#xd;
- &quot;controllerName&quot;: &quot;frankfurt&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/onap.policies.controlloop.operational.common.Drools/versions/1.0.0/policies</stringProp>
- <stringProp name="HTTPSampler.method">POST</stringProp>
- <boolProp name="HTTPSampler.follow_redirects">false</boolProp>
- <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
- <boolProp name="HTTPSampler.use_keepalive">false</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">8</intProp>
- </ResponseAssertion>
- <hashTree/>
- </hashTree>
- <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create vDNS Policy" 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_1_0&quot;,&#xd;
- &quot;topology_template&quot;: {&#xd;
- &quot;policies&quot;: [&#xd;
- {&#xd;
- &quot;operational.scaleout&quot;: {&#xd;
- &quot;type&quot;: &quot;onap.policies.controlloop.operational.common.Drools&quot;,&#xd;
- &quot;type_version&quot;: &quot;1.0.0&quot;,&#xd;
- &quot;version&quot;: &quot;1.0.0&quot;,&#xd;
- &quot;metadata&quot;: {&#xd;
- &quot;policy-id&quot;: &quot;operational.scaleout&quot;&#xd;
- },&#xd;
- &quot;properties&quot;: {&#xd;
- &quot;id&quot;: &quot;ControlLoop-vDNS-6f37f56d-a87d-4b85-b6a9-cc953cf779b3&quot;,&#xd;
- &quot;timeout&quot;: 60,&#xd;
- &quot;abatement&quot;: false,&#xd;
- &quot;trigger&quot;: &quot;unique-policy-id-1-scale-up&quot;,&#xd;
- &quot;operations&quot;: [&#xd;
- {&#xd;
- &quot;id&quot;: &quot;unique-policy-id-1-scale-up&quot;,&#xd;
- &quot;description&quot;: &quot;Create a new VF Module&quot;,&#xd;
- &quot;operation&quot;: {&#xd;
- &quot;actor&quot;: &quot;SO&quot;,&#xd;
- &quot;operation&quot;: &quot;VF Module Create&quot;,&#xd;
- &quot;target&quot;: {&#xd;
- &quot;targetType&quot;: &quot;VFMODULE&quot;,&#xd;
- &quot;entityIds&quot;: {&#xd;
- &quot;modelInvariantId&quot;: &quot;e6130d03-56f1-4b0a-9a1d-e1b2ebc30e0e&quot;,&#xd;
- &quot;modelVersionId&quot;: &quot;94b18b1d-cc91-4f43-911a-e6348665f292&quot;,&#xd;
- &quot;modelName&quot;: &quot;VfwclVfwsnkBbefb8ce2bde..base_vfw..module-0&quot;,&#xd;
- &quot;modelVersion&quot;: &quot;1&quot;,&#xd;
- &quot;modelCustomizationId&quot;: &quot;47958575-138f-452a-8c8d-d89b595f8164&quot;&#xd;
- }&#xd;
- },&#xd;
- &quot;payload&quot;: {&#xd;
- &quot;requestParameters&quot;: &quot;{\&quot;usePreload\&quot;:true,\&quot;userParams\&quot;:[]}&quot;,&#xd;
- &quot;configurationParameters&quot;: &quot;[{\&quot;ip-addr\&quot;:\&quot;$.vf-module-topology.vf-module-parameters.param[9]\&quot;,\&quot;oam-ip-addr\&quot;:\&quot;$.vf-module-topology.vf-module-parameters.param[16]\&quot;,\&quot;enabled\&quot;:\&quot;$.vf-module-topology.vf-module-parameters.param[23]\&quot;}]&quot;&#xd;
- }&#xd;
- },&#xd;
- &quot;timeout&quot;: 20,&#xd;
- &quot;retries&quot;: 0,&#xd;
- &quot;success&quot;: &quot;final_success&quot;,&#xd;
- &quot;failure&quot;: &quot;final_failure&quot;,&#xd;
- &quot;failure_timeout&quot;: &quot;final_failure_timeout&quot;,&#xd;
- &quot;failure_retries&quot;: &quot;final_failure_retries&quot;,&#xd;
- &quot;failure_exception&quot;: &quot;final_failure_exception&quot;,&#xd;
- &quot;failure_guard&quot;: &quot;final_failure_guard&quot;&#xd;
- }&#xd;
- ],&#xd;
- &quot;controllerName&quot;: &quot;frankfurt&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/onap.policies.controlloop.operational.common.Drools/versions/1.0.0/policies</stringProp>
- <stringProp name="HTTPSampler.method">POST</stringProp>
- <boolProp name="HTTPSampler.follow_redirects">false</boolProp>
- <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
- <boolProp name="HTTPSampler.use_keepalive">false</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">8</intProp>
- </ResponseAssertion>
- <hashTree/>
- </hashTree>
- <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create vDNS Fail Policy" 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_1_0&quot;,&#xd;
- &quot;topology_template&quot;: {&#xd;
- &quot;policies&quot;: [&#xd;
- {&#xd;
- &quot;operational.scaleout.fail&quot;: {&#xd;
- &quot;type&quot;: &quot;onap.policies.controlloop.operational.common.Drools&quot;,&#xd;
- &quot;type_version&quot;: &quot;1.0.0&quot;,&#xd;
- &quot;version&quot;: &quot;1.0.0&quot;,&#xd;
- &quot;metadata&quot;: {&#xd;
- &quot;policy-id&quot;: &quot;operational.scaleout.fail&quot;&#xd;
- },&#xd;
- &quot;properties&quot;: {&#xd;
- &quot;id&quot;: &quot;ControlLoop-vDNS-Fail&quot;,&#xd;
- &quot;timeout&quot;: 60,&#xd;
- &quot;abatement&quot;: false,&#xd;
- &quot;trigger&quot;: &quot;unique-policy-id-1-scale-up&quot;,&#xd;
- &quot;operations&quot;: [&#xd;
- {&#xd;
- &quot;id&quot;: &quot;unique-policy-id-1-scale-up&quot;,&#xd;
- &quot;description&quot;: &quot;Create a new VF Module&quot;,&#xd;
- &quot;operation&quot;: {&#xd;
- &quot;actor&quot;: &quot;SO&quot;,&#xd;
- &quot;operation&quot;: &quot;VF Module Create&quot;,&#xd;
- &quot;target&quot;: {&#xd;
- &quot;targetType&quot;: &quot;VFMODULE&quot;,&#xd;
- &quot;entityIds&quot;: {&#xd;
- &quot;modelInvariantId&quot;: &quot;e6130d03-56f1-4b0a-9a1d-e1b2ebc30e0e&quot;,&#xd;
- &quot;modelVersionId&quot;: &quot;94b18b1d-cc91-4f43-911a-e6348665f292&quot;,&#xd;
- &quot;modelName&quot;: &quot;VfwclVfwsnkBbefb8ce2bde..base_vfw..module-0&quot;,&#xd;
- &quot;modelVersion&quot;: &quot;1&quot;,&#xd;
- &quot;modelCustomizationId&quot;: &quot;47958575-138f-452a-8c8d-d89b595f8164&quot;&#xd;
- }&#xd;
- },&#xd;
- &quot;payload&quot;: {&#xd;
- &quot;requestParameters&quot;: &quot;{\&quot;usePreload\&quot;:true,\&quot;userParams\&quot;:[]}&quot;,&#xd;
- &quot;configurationParameters&quot;: &quot;[{\&quot;ip-addr\&quot;:\&quot;$.vf-module-topology.vf-module-parameters.param[9]\&quot;,\&quot;oam-ip-addr\&quot;:\&quot;$.vf-module-topology.vf-module-parameters.param[16]\&quot;,\&quot;enabled\&quot;:\&quot;$.vf-module-topology.vf-module-parameters.param[23]\&quot;}]&quot;&#xd;
- }&#xd;
- },&#xd;
- &quot;timeout&quot;: 20,&#xd;
- &quot;retries&quot;: 0,&#xd;
- &quot;success&quot;: &quot;final_success&quot;,&#xd;
- &quot;failure&quot;: &quot;final_failure&quot;,&#xd;
- &quot;failure_timeout&quot;: &quot;final_failure_timeout&quot;,&#xd;
- &quot;failure_retries&quot;: &quot;final_failure_retries&quot;,&#xd;
- &quot;failure_exception&quot;: &quot;final_failure_exception&quot;,&#xd;
- &quot;failure_guard&quot;: &quot;final_failure_guard&quot;&#xd;
- }&#xd;
- ],&#xd;
- &quot;controllerName&quot;: &quot;frankfurt&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/onap.policies.controlloop.operational.common.Drools/versions/1.0.0/policies</stringProp>
- <stringProp name="HTTPSampler.method">POST</stringProp>
- <boolProp name="HTTPSampler.follow_redirects">false</boolProp>
- <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
- <boolProp name="HTTPSampler.use_keepalive">false</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">8</intProp>
- </ResponseAssertion>
- <hashTree/>
- </hashTree>
- </hashTree>
- <GenericController guiclass="LogicControllerGui" testclass="GenericController" testname="PAP" enabled="true"/>
- <hashTree>
- <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="PAP Healthcheck" 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">${PAP_HOST}</stringProp>
- <stringProp name="HTTPSampler.port">${PAP_PORT}</stringProp>
- <stringProp name="HTTPSampler.protocol">https</stringProp>
- <stringProp name="HTTPSampler.contentEncoding"></stringProp>
- <stringProp name="HTTPSampler.path">/policy/pap/v1/healthcheck</stringProp>
- <stringProp name="HTTPSampler.method">GET</stringProp>
- <boolProp name="HTTPSampler.follow_redirects">false</boolProp>
- <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
- <boolProp name="HTTPSampler.use_keepalive">false</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">8</intProp>
- </ResponseAssertion>
- <hashTree/>
- <JSONPathAssertion guiclass="JSONPathAssertionGui" testclass="JSONPathAssertion" testname="JSON Assertion" enabled="true">
- <stringProp name="JSON_PATH">$.healthy</stringProp>
- <stringProp name="EXPECTED_VALUE">true</stringProp>
- <boolProp name="JSONVALIDATION">true</boolProp>
- <boolProp name="EXPECT_NULL">false</boolProp>
- <boolProp name="INVERT">false</boolProp>
- <boolProp name="ISREGEX">false</boolProp>
- </JSONPathAssertion>
- <hashTree/>
- </hashTree>
- <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Deploy vCPE Policy" 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">{&quot;policies&quot;:[{&quot;policy-id&quot;:&quot;operational.restart&quot;, &quot;version&quot;: &quot;1.0.0&quot;}]}</stringProp>
- <stringProp name="Argument.metadata">=</stringProp>
- </elementProp>
- </collectionProp>
- </elementProp>
- <stringProp name="HTTPSampler.domain">${PAP_HOST}</stringProp>
- <stringProp name="HTTPSampler.port">${PAP_PORT}</stringProp>
- <stringProp name="HTTPSampler.protocol">https</stringProp>
- <stringProp name="HTTPSampler.contentEncoding"></stringProp>
- <stringProp name="HTTPSampler.path">policy/pap/v1/pdps/policies</stringProp>
- <stringProp name="HTTPSampler.method">POST</stringProp>
- <boolProp name="HTTPSampler.follow_redirects">false</boolProp>
- <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
- <boolProp name="HTTPSampler.use_keepalive">false</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">8</intProp>
- </ResponseAssertion>
- <hashTree/>
- </hashTree>
- <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Deploy vCPE Fail Policy" 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">{&quot;policies&quot;:[{&quot;policy-id&quot;:&quot;operational.restart.fail&quot;, &quot;version&quot;: &quot;1.0.0&quot;}]}</stringProp>
- <stringProp name="Argument.metadata">=</stringProp>
- </elementProp>
- </collectionProp>
- </elementProp>
- <stringProp name="HTTPSampler.domain">${PAP_HOST}</stringProp>
- <stringProp name="HTTPSampler.port">${PAP_PORT}</stringProp>
- <stringProp name="HTTPSampler.protocol">https</stringProp>
- <stringProp name="HTTPSampler.contentEncoding"></stringProp>
- <stringProp name="HTTPSampler.path">policy/pap/v1/pdps/policies</stringProp>
- <stringProp name="HTTPSampler.method">POST</stringProp>
- <boolProp name="HTTPSampler.follow_redirects">false</boolProp>
- <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
- <boolProp name="HTTPSampler.use_keepalive">false</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">8</intProp>
- </ResponseAssertion>
- <hashTree/>
- </hashTree>
- <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Deploy vFirewall Policy" 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">{&quot;policies&quot;:[{&quot;policy-id&quot;:&quot;operational.modifyconfig&quot;, &quot;version&quot;: &quot;1.0.0&quot;}]}</stringProp>
- <stringProp name="Argument.metadata">=</stringProp>
- </elementProp>
- </collectionProp>
- </elementProp>
- <stringProp name="HTTPSampler.domain">${PAP_HOST}</stringProp>
- <stringProp name="HTTPSampler.port">${PAP_PORT}</stringProp>
- <stringProp name="HTTPSampler.protocol">https</stringProp>
- <stringProp name="HTTPSampler.contentEncoding"></stringProp>
- <stringProp name="HTTPSampler.path">policy/pap/v1/pdps/policies</stringProp>
- <stringProp name="HTTPSampler.method">POST</stringProp>
- <boolProp name="HTTPSampler.follow_redirects">false</boolProp>
- <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
- <boolProp name="HTTPSampler.use_keepalive">false</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">8</intProp>
- </ResponseAssertion>
- <hashTree/>
- </hashTree>
- <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Deploy vDNS Policy" 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">{&quot;policies&quot;:[{&quot;policy-id&quot;:&quot;operational.scaleout&quot;, &quot;version&quot;: &quot;1.0.0&quot;}]}</stringProp>
- <stringProp name="Argument.metadata">=</stringProp>
- </elementProp>
- </collectionProp>
- </elementProp>
- <stringProp name="HTTPSampler.domain">${PAP_HOST}</stringProp>
- <stringProp name="HTTPSampler.port">${PAP_PORT}</stringProp>
- <stringProp name="HTTPSampler.protocol">https</stringProp>
- <stringProp name="HTTPSampler.contentEncoding"></stringProp>
- <stringProp name="HTTPSampler.path">policy/pap/v1/pdps/policies</stringProp>
- <stringProp name="HTTPSampler.method">POST</stringProp>
- <boolProp name="HTTPSampler.follow_redirects">false</boolProp>
- <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
- <boolProp name="HTTPSampler.use_keepalive">false</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">8</intProp>
- </ResponseAssertion>
- <hashTree/>
- </hashTree>
- <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Deploy vDNS Fail Policy" 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">{&quot;policies&quot;:[{&quot;policy-id&quot;:&quot;operational.scaleout.fail&quot;, &quot;version&quot;: &quot;1.0.0&quot;}]}</stringProp>
- <stringProp name="Argument.metadata">=</stringProp>
- </elementProp>
- </collectionProp>
- </elementProp>
- <stringProp name="HTTPSampler.domain">${PAP_HOST}</stringProp>
- <stringProp name="HTTPSampler.port">${PAP_PORT}</stringProp>
- <stringProp name="HTTPSampler.protocol">https</stringProp>
- <stringProp name="HTTPSampler.contentEncoding"></stringProp>
- <stringProp name="HTTPSampler.path">policy/pap/v1/pdps/policies</stringProp>
- <stringProp name="HTTPSampler.method">POST</stringProp>
- <boolProp name="HTTPSampler.follow_redirects">false</boolProp>
- <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
- <boolProp name="HTTPSampler.use_keepalive">false</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">8</intProp>
- </ResponseAssertion>
- <hashTree/>
- </hashTree>
- </hashTree>
- <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="POLICY-PDP-PAP " 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">${DMAAP_HOST}</stringProp>
- <stringProp name="HTTPSampler.port">${DMAAP_PORT}</stringProp>
- <stringProp name="HTTPSampler.protocol">https</stringProp>
- <stringProp name="HTTPSampler.contentEncoding"></stringProp>
- <stringProp name="HTTPSampler.path">events/POLICY-PDP-PAP/${__time()}/1?timeout=2000</stringProp>
- <stringProp name="HTTPSampler.method">GET</stringProp>
- <boolProp name="HTTPSampler.follow_redirects">false</boolProp>
- <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
- <boolProp name="HTTPSampler.use_keepalive">false</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">8</intProp>
- </ResponseAssertion>
- <hashTree/>
- </hashTree>
- <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Drain vCPE success POLICY-CL-MGT" 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">${DMAAP_HOST}</stringProp>
- <stringProp name="HTTPSampler.port">${DMAAP_PORT}</stringProp>
- <stringProp name="HTTPSampler.protocol">https</stringProp>
- <stringProp name="HTTPSampler.contentEncoding"></stringProp>
- <stringProp name="HTTPSampler.path">events/POLICY-CL-MGT/vcpesuccess/1?timeout=20000</stringProp>
- <stringProp name="HTTPSampler.method">GET</stringProp>
- <boolProp name="HTTPSampler.follow_redirects">false</boolProp>
- <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
- <boolProp name="HTTPSampler.use_keepalive">false</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">8</intProp>
- </ResponseAssertion>
- <hashTree/>
- </hashTree>
- <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Drain vCPE success APPC-LCM-READ" 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">${DMAAP_HOST}</stringProp>
- <stringProp name="HTTPSampler.port">${DMAAP_PORT}</stringProp>
- <stringProp name="HTTPSampler.protocol">https</stringProp>
- <stringProp name="HTTPSampler.contentEncoding"></stringProp>
- <stringProp name="HTTPSampler.path">events/APPC-LCM-READ/vcpesuccess/1?timeout=20000</stringProp>
- <stringProp name="HTTPSampler.method">GET</stringProp>
- <boolProp name="HTTPSampler.follow_redirects">false</boolProp>
- <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
- <boolProp name="HTTPSampler.use_keepalive">false</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">8</intProp>
- </ResponseAssertion>
- <hashTree/>
- </hashTree>
- <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Drain vCPE failure POLICY-CL-MGT" 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">${DMAAP_HOST}</stringProp>
- <stringProp name="HTTPSampler.port">${DMAAP_PORT}</stringProp>
- <stringProp name="HTTPSampler.protocol">https</stringProp>
- <stringProp name="HTTPSampler.contentEncoding"></stringProp>
- <stringProp name="HTTPSampler.path">events/POLICY-CL-MGT/vcpefailure/1?timeout=20000</stringProp>
- <stringProp name="HTTPSampler.method">GET</stringProp>
- <boolProp name="HTTPSampler.follow_redirects">false</boolProp>
- <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
- <boolProp name="HTTPSampler.use_keepalive">false</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">8</intProp>
- </ResponseAssertion>
- <hashTree/>
- </hashTree>
- <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Drain vCPE failure APPC-LCM-READ" 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">${DMAAP_HOST}</stringProp>
- <stringProp name="HTTPSampler.port">${DMAAP_PORT}</stringProp>
- <stringProp name="HTTPSampler.protocol">https</stringProp>
- <stringProp name="HTTPSampler.contentEncoding"></stringProp>
- <stringProp name="HTTPSampler.path">events/APPC-LCM-READ/vcpefailure/1?timeout=20000</stringProp>
- <stringProp name="HTTPSampler.method">GET</stringProp>
- <boolProp name="HTTPSampler.follow_redirects">false</boolProp>
- <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
- <boolProp name="HTTPSampler.use_keepalive">false</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">8</intProp>
- </ResponseAssertion>
- <hashTree/>
- </hashTree>
- <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="PDP-D" 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">${DROOLS_HOST}</stringProp>
- <stringProp name="HTTPSampler.port">${DROOLS_PORT}</stringProp>
- <stringProp name="HTTPSampler.protocol">https</stringProp>
- <stringProp name="HTTPSampler.contentEncoding"></stringProp>
- <stringProp name="HTTPSampler.path">policy/pdp/engine/controllers/frankfurt/drools/facts</stringProp>
- <stringProp name="HTTPSampler.method">GET</stringProp>
- <boolProp name="HTTPSampler.follow_redirects">false</boolProp>
- <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
- <boolProp name="HTTPSampler.use_keepalive">false</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">8</intProp>
- </ResponseAssertion>
- <hashTree/>
- <JSONPathAssertion guiclass="JSONPathAssertionGui" testclass="JSONPathAssertion" testname="JSON Assertion" enabled="true">
- <stringProp name="JSON_PATH">$.frankfurt</stringProp>
- <stringProp name="EXPECTED_VALUE">10</stringProp>
- <boolProp name="JSONVALIDATION">true</boolProp>
- <boolProp name="EXPECT_NULL">false</boolProp>
- <boolProp name="INVERT">false</boolProp>
- <boolProp name="ISREGEX">false</boolProp>
- </JSONPathAssertion>
- <hashTree/>
- </hashTree>
- </hashTree>
- <ThreadGroup guiclass="ThreadGroupGui" testclass="ThreadGroup" testname="vCPE Success" enabled="true">
- <stringProp name="ThreadGroup.on_sample_error">startnextloop</stringProp>
- <elementProp name="ThreadGroup.main_controller" elementType="LoopController" guiclass="LoopControlPanel" testclass="LoopController" testname="Loop Controller" enabled="true">
- <boolProp name="LoopController.continue_forever">false</boolProp>
- <intProp name="LoopController.loops">-1</intProp>
- </elementProp>
- <stringProp name="ThreadGroup.num_threads">1</stringProp>
- <stringProp name="ThreadGroup.ramp_time">1</stringProp>
- <boolProp name="ThreadGroup.scheduler">true</boolProp>
- <stringProp name="ThreadGroup.duration">${duration}</stringProp>
- <stringProp name="ThreadGroup.delay">1</stringProp>
- </ThreadGroup>
- <hashTree>
- <UserParameters guiclass="UserParametersGui" testclass="UserParameters" testname="Set consumer group per scenario" enabled="true">
- <collectionProp name="UserParameters.names">
- <stringProp name="-308835287">consumerGroup</stringProp>
- </collectionProp>
- <collectionProp name="UserParameters.thread_values">
- <collectionProp name="-1571164782">
- <stringProp name="-2075285407">vcpesuccess</stringProp>
- </collectionProp>
- </collectionProp>
- <boolProp name="UserParameters.per_iteration">false</boolProp>
- <stringProp name="TestPlan.comments">Global to the thread group</stringProp>
- </UserParameters>
- <hashTree/>
- <UserParameters guiclass="UserParametersGui" testclass="UserParameters" testname="Set request id per cycle" enabled="true">
- <collectionProp name="UserParameters.names">
- <stringProp name="693933066">requestId</stringProp>
- </collectionProp>
- <collectionProp name="UserParameters.thread_values">
- <collectionProp name="681405977">
- <stringProp name="118040362">${__UUID()}</stringProp>
- </collectionProp>
- </collectionProp>
- <boolProp name="UserParameters.per_iteration">true</boolProp>
- <stringProp name="TestPlan.comments">Update on a per iteration basis</stringProp>
- </UserParameters>
- <hashTree/>
- <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="DCAE[DCAE_TOPIC]: ONSET" 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;closedLoopControlName&quot;: &quot;ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e&quot;,&#xd;
- &quot;closedLoopAlarmStart&quot;: 1463679805324,&#xd;
- &quot;closedLoopEventClient&quot;: &quot;DCAE_INSTANCE_ID.dcae-tca&quot;,&#xd;
- &quot;closedLoopEventStatus&quot;: &quot;ONSET&quot;,&#xd;
- &quot;requestID&quot;: &quot;${requestId}&quot;,&#xd;
- &quot;target_type&quot;: &quot;VNF&quot;,&#xd;
- &quot;target&quot;: &quot;generic-vnf.vnf-id&quot;,&#xd;
- &quot;AAI&quot;: {&#xd;
- &quot;vserver.is-closed-loop-disabled&quot;: &quot;false&quot;,&#xd;
- &quot;vserver.prov-status&quot;: &quot;ACTIVE&quot;,&#xd;
- &quot;generic-vnf.vnf-id&quot;: &quot;vCPE_Infrastructure_vGMUX_demo_app&quot;&#xd;
- },&#xd;
- &quot;from&quot;: &quot;DCAE&quot;,&#xd;
- &quot;version&quot;: &quot;1.0.2&quot;&#xd;
-}</stringProp>
- <stringProp name="Argument.metadata">=</stringProp>
- </elementProp>
- </collectionProp>
- </elementProp>
- <stringProp name="HTTPSampler.domain">${DROOLS_HOST}</stringProp>
- <stringProp name="HTTPSampler.port">${DROOLS_PORT}</stringProp>
- <stringProp name="HTTPSampler.protocol">https</stringProp>
- <stringProp name="HTTPSampler.contentEncoding"></stringProp>
- <stringProp name="HTTPSampler.path">policy/pdp/engine/topics/sources/dmaap/DCAE_TOPIC/events</stringProp>
- <stringProp name="HTTPSampler.method">PUT</stringProp>
- <boolProp name="HTTPSampler.follow_redirects">false</boolProp>
- <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
- <boolProp name="HTTPSampler.use_keepalive">false</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>
- <HeaderManager guiclass="HeaderPanel" testclass="HeaderManager" testname="HTTP Header Manager" enabled="true">
- <collectionProp name="HeaderManager.headers">
- <elementProp name="" elementType="Header">
- <stringProp name="Header.name">Content-Type</stringProp>
- <stringProp name="Header.value">text/plain</stringProp>
- </elementProp>
- </collectionProp>
- </HeaderManager>
- <hashTree/>
- </hashTree>
- <JSR223Sampler guiclass="TestBeanGUI" testclass="JSR223Sampler" testname="Init DMaaP Counter" enabled="true">
- <stringProp name="scriptLanguage">groovy</stringProp>
- <stringProp name="parameters"></stringProp>
- <stringProp name="filename"></stringProp>
- <stringProp name="cacheKey">true</stringProp>
- <stringProp name="script">vars.put(&quot;counter&quot;, &quot;0&quot;);</stringProp>
- </JSR223Sampler>
- <hashTree/>
- <WhileController guiclass="WhileControllerGui" testclass="WhileController" testname="APPCL Restart Loop Controller" enabled="true">
- <stringProp name="WhileController.condition">${__javaScript(${counter} &lt; 10)}</stringProp>
- </WhileController>
- <hashTree>
- <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="POLICY[APPC-LCM-READ]: Restart" enabled="true">
- <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
- <collectionProp name="Arguments.arguments">
- <elementProp name="filter" elementType="HTTPArgument">
- <boolProp name="HTTPArgument.always_encode">true</boolProp>
- <stringProp name="Argument.value">{&quot;class&quot;:&quot;And&quot;, &quot;filters&quot;: [ { &quot;class&quot;:&quot;Equals&quot;, &quot;field&quot;:&quot;request-id&quot;, &quot;value&quot;:&quot;${requestId}&quot; }, { &quot;class&quot;:&quot;Equals&quot;, &quot;field&quot;:&quot;rpc-name&quot;, &quot;value&quot;:&quot;restart&quot; }]}</stringProp>
- <stringProp name="Argument.metadata">=</stringProp>
- <boolProp name="HTTPArgument.use_equals">true</boolProp>
- <stringProp name="Argument.name">filter</stringProp>
- </elementProp>
- </collectionProp>
- </elementProp>
- <stringProp name="HTTPSampler.domain">${DMAAP_HOST}</stringProp>
- <stringProp name="HTTPSampler.port">${DMAAP_PORT}</stringProp>
- <stringProp name="HTTPSampler.protocol">https</stringProp>
- <stringProp name="HTTPSampler.contentEncoding"></stringProp>
- <stringProp name="HTTPSampler.path">events/APPC-LCM-READ/${consumerGroup}/1?timeout=15000&amp;limit=1</stringProp>
- <stringProp name="HTTPSampler.method">GET</stringProp>
- <boolProp name="HTTPSampler.follow_redirects">false</boolProp>
- <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
- <boolProp name="HTTPSampler.use_keepalive">false</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="No []" enabled="true">
- <collectionProp name="Asserion.test_strings">
- <stringProp name="2914">[]</stringProp>
- </collectionProp>
- <stringProp name="Assertion.custom_message"></stringProp>
- <stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
- <boolProp name="Assertion.assume_success">false</boolProp>
- <intProp name="Assertion.test_type">12</intProp>
- </ResponseAssertion>
- <hashTree/>
- <RegexExtractor guiclass="RegexExtractorGui" testclass="RegexExtractor" testname="request-id extractor" enabled="true">
- <stringProp name="RegexExtractor.useHeaders">false</stringProp>
- <stringProp name="RegexExtractor.refname">requestIdOnset</stringProp>
- <stringProp name="RegexExtractor.regex">\\&quot;request-id\\&quot;: \\&quot;(.+?)\\&quot;</stringProp>
- <stringProp name="RegexExtractor.template">$1$</stringProp>
- <stringProp name="RegexExtractor.default">none</stringProp>
- <stringProp name="RegexExtractor.match_number"></stringProp>
- </RegexExtractor>
- <hashTree/>
- <RegexExtractor guiclass="RegexExtractorGui" testclass="RegexExtractor" testname="correlation-id extractor" enabled="true">
- <stringProp name="RegexExtractor.useHeaders">false</stringProp>
- <stringProp name="RegexExtractor.refname">correlationId</stringProp>
- <stringProp name="RegexExtractor.regex">correlation-id\\&quot;: \\&quot;(.+?)\\&quot;</stringProp>
- <stringProp name="RegexExtractor.template">$1$</stringProp>
- <stringProp name="RegexExtractor.default">none</stringProp>
- <stringProp name="RegexExtractor.match_number"></stringProp>
- </RegexExtractor>
- <hashTree/>
- <RegexExtractor guiclass="RegexExtractorGui" testclass="RegexExtractor" testname="sub-request-id extractor" enabled="true">
- <stringProp name="RegexExtractor.useHeaders">false</stringProp>
- <stringProp name="RegexExtractor.refname">subRequestId</stringProp>
- <stringProp name="RegexExtractor.regex">sub-request-id\\&quot;: \\&quot;(.+?)\\&quot;</stringProp>
- <stringProp name="RegexExtractor.template">$1$</stringProp>
- <stringProp name="RegexExtractor.default">none</stringProp>
- <stringProp name="RegexExtractor.match_number"></stringProp>
- </RegexExtractor>
- <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">String requestIdOnset = vars.get(&quot;requestIdOnset&quot;);
-String requestId = vars.get(&quot;requestId&quot;);
-String correlationId = vars.get(&quot;correlationId&quot;);
-String subRequestId = vars.get(&quot;subRequestId&quot;);
-String counter = vars.get(&quot;counter&quot;);
-
-String transaction = &quot;none&quot;;
-
-log.info (&quot;The requestId id is &quot; + requestId);
-log.info (&quot;The requestIdOnset id is &quot; + requestIdOnset);
-log.info (&quot;The correlation id is &quot; + correlationId);
-log.info (&quot;The subrequest id is &quot; + subRequestId);
-log.info (&quot;The counter is &quot; + counter);
-
-if ( requestId == requestIdOnset ) {
- if ( correlationId == &quot;none&quot; || subRequestId == &quot;none&quot; ) {
- transaction = &quot;FINAL&quot;;
- log.info (&quot;Final Failure Transaction&quot;);
- AssertionResult.setFailureMessage(&quot;Missing correlationId or subRequestId&quot;);
- AssertionResult.setFailure(true);
- } else {
- transaction = &quot;FINAL&quot;;
- vars.put(&quot;transaction&quot;, &quot;FINAL&quot;);
- log.info (&quot;Final Success Transaction&quot;);
- }
-}
-
-int counterTemp = Integer.parseInt(counter) +1;
-if (transaction == &quot;FINAL&quot;) {
- counterTemp = 99;
-} else if (counterTemp &gt;= 10) {
- AssertionResult.setFailureMessage(&quot;Failure, reached maximum number of 10 attempts &quot;);
- AssertionResult.setFailure(true);
-}
-
-vars.put(&quot;counter&quot;, Integer.toString(counterTemp));
-
-</stringProp>
- </JSR223Assertion>
- <hashTree/>
- </hashTree>
- </hashTree>
- <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="APPC[APPC-LCM-READ]: SUCCESS" 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;body&quot;: {&#xd;
- &quot;output&quot;: {&#xd;
- &quot;common-header&quot;: {&#xd;
- &quot;timestamp&quot;: &quot;2020-05-05T15:56:34.845Z&quot;,&#xd;
- &quot;api-ver&quot;: &quot;2.00&quot;,&#xd;
- &quot;originator-id&quot;: &quot;${requestId}&quot;,&#xd;
- &quot;request-id&quot;: &quot;${requestId}&quot;,&#xd;
- &quot;sub-request-id&quot;: &quot;${subRequestId}&quot;,&#xd;
- &quot;flags&quot;: {}&#xd;
- },&#xd;
- &quot;status&quot;: {&#xd;
- &quot;code&quot;: 400,&#xd;
- &quot;message&quot;: &quot;Restart Successful&quot;&#xd;
- }&#xd;
- }&#xd;
- },&#xd;
- &quot;version&quot;: &quot;2.0&quot;,&#xd;
- &quot;rpc-name&quot;: &quot;restart&quot;,&#xd;
- &quot;correlation-id&quot;: &quot;${correlationId}&quot;,&#xd;
- &quot;type&quot;: &quot;response&quot;&#xd;
-}&#xd;
-</stringProp>
- <stringProp name="Argument.metadata">=</stringProp>
- </elementProp>
- </collectionProp>
- </elementProp>
- <stringProp name="HTTPSampler.domain">${DROOLS_HOST}</stringProp>
- <stringProp name="HTTPSampler.port">${DROOLS_PORT}</stringProp>
- <stringProp name="HTTPSampler.protocol">https</stringProp>
- <stringProp name="HTTPSampler.contentEncoding"></stringProp>
- <stringProp name="HTTPSampler.path">policy/pdp/engine/topics/sources/dmaap/APPC-LCM-WRITE/events</stringProp>
- <stringProp name="HTTPSampler.method">PUT</stringProp>
- <boolProp name="HTTPSampler.follow_redirects">false</boolProp>
- <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
- <boolProp name="HTTPSampler.use_keepalive">false</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>
- <HeaderManager guiclass="HeaderPanel" testclass="HeaderManager" testname="HTTP Header Manager" enabled="true">
- <collectionProp name="HeaderManager.headers">
- <elementProp name="" elementType="Header">
- <stringProp name="Header.name">Content-Type</stringProp>
- <stringProp name="Header.value">text/plain</stringProp>
- </elementProp>
- </collectionProp>
- </HeaderManager>
- <hashTree/>
- </hashTree>
- <JSR223Sampler guiclass="TestBeanGUI" testclass="JSR223Sampler" testname="Init DMaaP Counter" enabled="true">
- <stringProp name="scriptLanguage">groovy</stringProp>
- <stringProp name="parameters"></stringProp>
- <stringProp name="filename"></stringProp>
- <stringProp name="cacheKey">true</stringProp>
- <stringProp name="script">vars.put(&quot;counter&quot;, &quot;0&quot;);</stringProp>
- </JSR223Sampler>
- <hashTree/>
- <WhileController guiclass="WhileControllerGui" testclass="WhileController" testname="Final Success Controller" enabled="true">
- <stringProp name="WhileController.condition">${__javaScript(${counter} &lt; 60)}</stringProp>
- </WhileController>
- <hashTree>
- <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="POLICY[POLICY-CL-MGT]: FINAL_SUCCESS" enabled="true">
- <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
- <collectionProp name="Arguments.arguments">
- <elementProp name="filter" elementType="HTTPArgument">
- <boolProp name="HTTPArgument.always_encode">true</boolProp>
- <stringProp name="Argument.value">{&quot;class&quot;:&quot;And&quot;, &quot;filters&quot;: [ { &quot;class&quot;:&quot;Equals&quot;, &quot;field&quot;:&quot;requestId&quot;, &quot;value&quot;:&quot;${requestId}&quot; }, { &quot;class&quot;:&quot;Equals&quot;, &quot;field&quot;:&quot;notification&quot;, &quot;value&quot;:&quot;FINAL: SUCCESS&quot; }]}</stringProp>
- <stringProp name="Argument.metadata">=</stringProp>
- <boolProp name="HTTPArgument.use_equals">true</boolProp>
- <stringProp name="Argument.name">filter</stringProp>
- </elementProp>
- </collectionProp>
- </elementProp>
- <stringProp name="HTTPSampler.domain">${DMAAP_HOST}</stringProp>
- <stringProp name="HTTPSampler.port">${DMAAP_PORT}</stringProp>
- <stringProp name="HTTPSampler.protocol">https</stringProp>
- <stringProp name="HTTPSampler.contentEncoding"></stringProp>
- <stringProp name="HTTPSampler.path">events/POLICY-CL-MGT/${consumerGroup}/1?timeout=15000&amp;limit=1</stringProp>
- <stringProp name="HTTPSampler.method">GET</stringProp>
- <boolProp name="HTTPSampler.follow_redirects">false</boolProp>
- <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
- <boolProp name="HTTPSampler.use_keepalive">false</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="No []" enabled="true">
- <collectionProp name="Asserion.test_strings">
- <stringProp name="2914">[]</stringProp>
- </collectionProp>
- <stringProp name="Assertion.custom_message"></stringProp>
- <stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
- <boolProp name="Assertion.assume_success">false</boolProp>
- <intProp name="Assertion.test_type">12</intProp>
- </ResponseAssertion>
- <hashTree/>
- <RegexExtractor guiclass="RegexExtractorGui" testclass="RegexExtractor" testname="requestId extractor" enabled="true">
- <stringProp name="RegexExtractor.useHeaders">false</stringProp>
- <stringProp name="RegexExtractor.refname">requestIdOnset</stringProp>
- <stringProp name="RegexExtractor.regex">requestId\\&quot;: \\&quot;(.+?)\\&quot;</stringProp>
- <stringProp name="RegexExtractor.template">$1$</stringProp>
- <stringProp name="RegexExtractor.default">none</stringProp>
- <stringProp name="RegexExtractor.match_number"></stringProp>
- </RegexExtractor>
- <hashTree/>
- <RegexExtractor guiclass="RegexExtractorGui" testclass="RegexExtractor" testname="notification extractor" enabled="true">
- <stringProp name="RegexExtractor.useHeaders">false</stringProp>
- <stringProp name="RegexExtractor.refname">notification</stringProp>
- <stringProp name="RegexExtractor.regex">notification\\&quot;: \\&quot;FINAL: (.+?)\\&quot;</stringProp>
- <stringProp name="RegexExtractor.template">$1$</stringProp>
- <stringProp name="RegexExtractor.default">none</stringProp>
- <stringProp name="RegexExtractor.match_number"></stringProp>
- </RegexExtractor>
- <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">String requestIdOnset = vars.get(&quot;requestIdOnset&quot;);
-String requestId = vars.get(&quot;requestId&quot;);
-String notification = vars.get(&quot;notification&quot;);
-String counter = vars.get(&quot;counter&quot;);
-
-String transaction = &quot;none&quot;;
-
-log.info (&quot;The requestId id is &quot; + requestId);
-log.info (&quot;The requestIdOnset id is &quot; + requestIdOnset);
-log.info (&quot;The notification is &quot; + notification);
-log.info (&quot;The transaction is &quot; + transaction);
-log.info (&quot;The counter is &quot; + counter);
-
-if ( requestId == requestIdOnset ) {
- if ( notification == &quot;SUCCESS&quot; ) {
- transaction = &quot;FINAL&quot;;
- log.info (&quot;Final Success Transaction&quot;);
- log.info (&quot;The notification is SUCCESS&quot;);
- } else if ( notification == &quot;FAILURE&quot; ) {
- transaction = &quot;FINAL&quot;;
- log.info (&quot;Final Failure Transaction&quot;);
- AssertionResult.setFailureMessage(&quot;Bad final notification&quot;);
- AssertionResult.setFailure(true);
- }
-}
-
-int counterTemp = Integer.parseInt(counter) +1;
-if (transaction == &quot;FINAL&quot;) {
- counterTemp = 99;
-} else if (counterTemp &gt;= 60) {
- AssertionResult.setFailureMessage(&quot;Failure, reached maximum number of attempts &quot;);
- AssertionResult.setFailure(true);
-}
-
-vars.put(&quot;counter&quot;, Integer.toString(counterTemp));</stringProp>
- </JSR223Assertion>
- <hashTree/>
- </hashTree>
- </hashTree>
- <ResultCollector guiclass="ViewResultsFullVisualizer" testclass="ResultCollector" testname="View Results Tree" enabled="true">
- <boolProp name="ResultCollector.error_logging">false</boolProp>
- <objProp>
- <name>saveConfig</name>
- <value class="SampleSaveConfiguration">
- <time>true</time>
- <latency>true</latency>
- <timestamp>true</timestamp>
- <success>true</success>
- <label>true</label>
- <code>true</code>
- <message>true</message>
- <threadName>true</threadName>
- <dataType>true</dataType>
- <encoding>false</encoding>
- <assertions>true</assertions>
- <subresults>true</subresults>
- <responseData>false</responseData>
- <samplerData>false</samplerData>
- <xml>false</xml>
- <fieldNames>true</fieldNames>
- <responseHeaders>false</responseHeaders>
- <requestHeaders>false</requestHeaders>
- <responseDataOnError>false</responseDataOnError>
- <saveAssertionResultsFailureMessage>true</saveAssertionResultsFailureMessage>
- <assertionsResultsToSave>0</assertionsResultsToSave>
- <bytes>true</bytes>
- <sentBytes>true</sentBytes>
- <url>true</url>
- <threadCounts>true</threadCounts>
- <idleTime>true</idleTime>
- <connectTime>true</connectTime>
- </value>
- </objProp>
- <stringProp name="filename"></stringProp>
- </ResultCollector>
- <hashTree/>
- </hashTree>
- <ThreadGroup guiclass="ThreadGroupGui" testclass="ThreadGroup" testname="vCPE Failure" enabled="true">
- <stringProp name="ThreadGroup.on_sample_error">startnextloop</stringProp>
- <elementProp name="ThreadGroup.main_controller" elementType="LoopController" guiclass="LoopControlPanel" testclass="LoopController" testname="Loop Controller" enabled="true">
- <boolProp name="LoopController.continue_forever">false</boolProp>
- <intProp name="LoopController.loops">-1</intProp>
- </elementProp>
- <stringProp name="ThreadGroup.num_threads">1</stringProp>
- <stringProp name="ThreadGroup.ramp_time">1</stringProp>
- <boolProp name="ThreadGroup.scheduler">true</boolProp>
- <stringProp name="ThreadGroup.duration">${duration}</stringProp>
- <stringProp name="ThreadGroup.delay">5</stringProp>
- </ThreadGroup>
- <hashTree>
- <UserParameters guiclass="UserParametersGui" testclass="UserParameters" testname="Set consumer group per scenario" enabled="true">
- <collectionProp name="UserParameters.names">
- <stringProp name="-308835287">consumerGroup</stringProp>
- </collectionProp>
- <collectionProp name="UserParameters.thread_values">
- <collectionProp name="-1129400645">
- <stringProp name="-1294689816">vcpefailure</stringProp>
- </collectionProp>
- </collectionProp>
- <boolProp name="UserParameters.per_iteration">false</boolProp>
- <stringProp name="TestPlan.comments">Global to the thread group</stringProp>
- </UserParameters>
- <hashTree/>
- <UserParameters guiclass="UserParametersGui" testclass="UserParameters" testname="Set request id per cycle" enabled="true">
- <collectionProp name="UserParameters.names">
- <stringProp name="693933066">requestId</stringProp>
- </collectionProp>
- <collectionProp name="UserParameters.thread_values">
- <collectionProp name="681405977">
- <stringProp name="118040362">${__UUID()}</stringProp>
- </collectionProp>
- </collectionProp>
- <boolProp name="UserParameters.per_iteration">true</boolProp>
- <stringProp name="TestPlan.comments">Update on a per iteration basis</stringProp>
- </UserParameters>
- <hashTree/>
- <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="DCAE[DCAE_TOPIC]: ONSET" 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;closedLoopControlName&quot;: &quot;ControlLoop-vCPE-Fail&quot;,&#xd;
- &quot;closedLoopAlarmStart&quot;: 1463679805324,&#xd;
- &quot;closedLoopEventClient&quot;: &quot;DCAE_INSTANCE_ID.dcae-tca&quot;,&#xd;
- &quot;closedLoopEventStatus&quot;: &quot;ONSET&quot;,&#xd;
- &quot;requestID&quot;: &quot;${requestId}&quot;,&#xd;
- &quot;target_type&quot;: &quot;VNF&quot;,&#xd;
- &quot;target&quot;: &quot;generic-vnf.vnf-id&quot;,&#xd;
- &quot;AAI&quot;: {&#xd;
- &quot;vserver.is-closed-loop-disabled&quot;: &quot;false&quot;,&#xd;
- &quot;vserver.prov-status&quot;: &quot;ACTIVE&quot;,&#xd;
- &quot;generic-vnf.vnf-id&quot;: &quot;a_fail_vnf_id&quot;&#xd;
- },&#xd;
- &quot;from&quot;: &quot;DCAE&quot;,&#xd;
- &quot;version&quot;: &quot;1.0.2&quot;&#xd;
-}</stringProp>
- <stringProp name="Argument.metadata">=</stringProp>
- </elementProp>
- </collectionProp>
- </elementProp>
- <stringProp name="HTTPSampler.domain">${DROOLS_HOST}</stringProp>
- <stringProp name="HTTPSampler.port">${DROOLS_PORT}</stringProp>
- <stringProp name="HTTPSampler.protocol">https</stringProp>
- <stringProp name="HTTPSampler.contentEncoding"></stringProp>
- <stringProp name="HTTPSampler.path">policy/pdp/engine/topics/sources/dmaap/DCAE_TOPIC/events</stringProp>
- <stringProp name="HTTPSampler.method">PUT</stringProp>
- <boolProp name="HTTPSampler.follow_redirects">false</boolProp>
- <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
- <boolProp name="HTTPSampler.use_keepalive">false</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>
- <HeaderManager guiclass="HeaderPanel" testclass="HeaderManager" testname="HTTP Header Manager" enabled="true">
- <collectionProp name="HeaderManager.headers">
- <elementProp name="" elementType="Header">
- <stringProp name="Header.name">Content-Type</stringProp>
- <stringProp name="Header.value">text/plain</stringProp>
- </elementProp>
- </collectionProp>
- </HeaderManager>
- <hashTree/>
- </hashTree>
- <JSR223Sampler guiclass="TestBeanGUI" testclass="JSR223Sampler" testname="Init DMaaP Counter" enabled="true">
- <stringProp name="scriptLanguage">groovy</stringProp>
- <stringProp name="parameters"></stringProp>
- <stringProp name="filename"></stringProp>
- <stringProp name="cacheKey">true</stringProp>
- <stringProp name="script">vars.put(&quot;counter&quot;, &quot;0&quot;);</stringProp>
- </JSR223Sampler>
- <hashTree/>
- <WhileController guiclass="WhileControllerGui" testclass="WhileController" testname="APPCL Restart Loop Controller" enabled="true">
- <stringProp name="WhileController.condition">${__javaScript(${counter} &lt; 10)}</stringProp>
- </WhileController>
- <hashTree>
- <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="POLICY[APPC-LCM-READ]: Restart" enabled="true">
- <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
- <collectionProp name="Arguments.arguments">
- <elementProp name="filter" elementType="HTTPArgument">
- <boolProp name="HTTPArgument.always_encode">true</boolProp>
- <stringProp name="Argument.value">{&quot;class&quot;:&quot;And&quot;, &quot;filters&quot;: [ { &quot;class&quot;:&quot;Equals&quot;, &quot;field&quot;:&quot;request-id&quot;, &quot;value&quot;:&quot;${requestId}&quot; }, { &quot;class&quot;:&quot;Equals&quot;, &quot;field&quot;:&quot;rpc-name&quot;, &quot;value&quot;:&quot;restart&quot; }]}</stringProp>
- <stringProp name="Argument.metadata">=</stringProp>
- <boolProp name="HTTPArgument.use_equals">true</boolProp>
- <stringProp name="Argument.name">filter</stringProp>
- </elementProp>
- </collectionProp>
- </elementProp>
- <stringProp name="HTTPSampler.domain">${DMAAP_HOST}</stringProp>
- <stringProp name="HTTPSampler.port">${DMAAP_PORT}</stringProp>
- <stringProp name="HTTPSampler.protocol">https</stringProp>
- <stringProp name="HTTPSampler.contentEncoding"></stringProp>
- <stringProp name="HTTPSampler.path">events/APPC-LCM-READ/${consumerGroup}/1?timeout=15000&amp;limit=1</stringProp>
- <stringProp name="HTTPSampler.method">GET</stringProp>
- <boolProp name="HTTPSampler.follow_redirects">false</boolProp>
- <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
- <boolProp name="HTTPSampler.use_keepalive">false</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="No []" enabled="true">
- <collectionProp name="Asserion.test_strings">
- <stringProp name="2914">[]</stringProp>
- </collectionProp>
- <stringProp name="Assertion.custom_message"></stringProp>
- <stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
- <boolProp name="Assertion.assume_success">false</boolProp>
- <intProp name="Assertion.test_type">12</intProp>
- </ResponseAssertion>
- <hashTree/>
- <RegexExtractor guiclass="RegexExtractorGui" testclass="RegexExtractor" testname="request-id extractor" enabled="true">
- <stringProp name="RegexExtractor.useHeaders">false</stringProp>
- <stringProp name="RegexExtractor.refname">requestIdOnset</stringProp>
- <stringProp name="RegexExtractor.regex">\\&quot;request-id\\&quot;: \\&quot;(.+?)\\&quot;</stringProp>
- <stringProp name="RegexExtractor.template">$1$</stringProp>
- <stringProp name="RegexExtractor.default">none</stringProp>
- <stringProp name="RegexExtractor.match_number"></stringProp>
- </RegexExtractor>
- <hashTree/>
- <RegexExtractor guiclass="RegexExtractorGui" testclass="RegexExtractor" testname="correlation-id extractor" enabled="true">
- <stringProp name="RegexExtractor.useHeaders">false</stringProp>
- <stringProp name="RegexExtractor.refname">correlationId</stringProp>
- <stringProp name="RegexExtractor.regex">correlation-id\\&quot;: \\&quot;(.+?)\\&quot;</stringProp>
- <stringProp name="RegexExtractor.template">$1$</stringProp>
- <stringProp name="RegexExtractor.default">none</stringProp>
- <stringProp name="RegexExtractor.match_number"></stringProp>
- </RegexExtractor>
- <hashTree/>
- <RegexExtractor guiclass="RegexExtractorGui" testclass="RegexExtractor" testname="sub-request-id extractor" enabled="true">
- <stringProp name="RegexExtractor.useHeaders">false</stringProp>
- <stringProp name="RegexExtractor.refname">subRequestId</stringProp>
- <stringProp name="RegexExtractor.regex">sub-request-id\\&quot;: \\&quot;(.+?)\\&quot;</stringProp>
- <stringProp name="RegexExtractor.template">$1$</stringProp>
- <stringProp name="RegexExtractor.default">none</stringProp>
- <stringProp name="RegexExtractor.match_number"></stringProp>
- </RegexExtractor>
- <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">String requestIdOnset = vars.get(&quot;requestIdOnset&quot;);
-String requestId = vars.get(&quot;requestId&quot;);
-String correlationId = vars.get(&quot;correlationId&quot;);
-String subRequestId = vars.get(&quot;subRequestId&quot;);
-String counter = vars.get(&quot;counter&quot;);
-
-String transaction = &quot;none&quot;;
-
-log.info (&quot;The requestId id is &quot; + requestId);
-log.info (&quot;The requestIdOnset id is &quot; + requestIdOnset);
-log.info (&quot;The correlation id is &quot; + correlationId);
-log.info (&quot;The subrequest id is &quot; + subRequestId);
-log.info (&quot;The counter is &quot; + counter);
-
-if ( requestId == requestIdOnset ) {
- if ( correlationId == &quot;none&quot; || subRequestId == &quot;none&quot; ) {
- transaction = &quot;FINAL&quot;;
- log.info (&quot;Final Failure Transaction&quot;);
- AssertionResult.setFailureMessage(&quot;Missing correlationId or subRequestId&quot;);
- AssertionResult.setFailure(true);
- } else {
- transaction = &quot;FINAL&quot;;
- vars.put(&quot;transaction&quot;, &quot;FINAL&quot;);
- log.info (&quot;Final Success Transaction&quot;);
- }
-}
-
-int counterTemp = Integer.parseInt(counter) +1;
-if (transaction == &quot;FINAL&quot;) {
- counterTemp = 99;
-} else if (counterTemp &gt;= 10) {
- AssertionResult.setFailureMessage(&quot;Failure, reached maximum number of 10 attempts &quot;);
- AssertionResult.setFailure(true);
-}
-
-vars.put(&quot;counter&quot;, Integer.toString(counterTemp));
-
-</stringProp>
- </JSR223Assertion>
- <hashTree/>
- </hashTree>
- </hashTree>
- <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="APPC[APPC-LCM-READ]: FAILURE" 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;body&quot;: {&#xd;
- &quot;output&quot;: {&#xd;
- &quot;common-header&quot;: {&#xd;
- &quot;timestamp&quot;: &quot;2020-05-07T15:56:34.845Z&quot;,&#xd;
- &quot;api-ver&quot;: &quot;2.00&quot;,&#xd;
- &quot;originator-id&quot;: &quot;${requestId}&quot;,&#xd;
- &quot;request-id&quot;: &quot;${requestId}&quot;,&#xd;
- &quot;sub-request-id&quot;: &quot;${subRequestId}&quot;,&#xd;
- &quot;flags&quot;: {}&#xd;
- },&#xd;
- &quot;status&quot;: {&#xd;
- &quot;code&quot;: 450,&#xd;
- &quot;message&quot;: &quot;Restart Failed&quot;&#xd;
- }&#xd;
- }&#xd;
- },&#xd;
- &quot;version&quot;: &quot;2.0&quot;,&#xd;
- &quot;rpc-name&quot;: &quot;restart&quot;,&#xd;
- &quot;correlation-id&quot;: &quot;${correlationId}&quot;,&#xd;
- &quot;type&quot;: &quot;response&quot;&#xd;
-}&#xd;
-</stringProp>
- <stringProp name="Argument.metadata">=</stringProp>
- </elementProp>
- </collectionProp>
- </elementProp>
- <stringProp name="HTTPSampler.domain">${DROOLS_HOST}</stringProp>
- <stringProp name="HTTPSampler.port">${DROOLS_PORT}</stringProp>
- <stringProp name="HTTPSampler.protocol">https</stringProp>
- <stringProp name="HTTPSampler.contentEncoding"></stringProp>
- <stringProp name="HTTPSampler.path">policy/pdp/engine/topics/sources/dmaap/APPC-LCM-WRITE/events</stringProp>
- <stringProp name="HTTPSampler.method">PUT</stringProp>
- <boolProp name="HTTPSampler.follow_redirects">false</boolProp>
- <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
- <boolProp name="HTTPSampler.use_keepalive">false</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>
- <HeaderManager guiclass="HeaderPanel" testclass="HeaderManager" testname="HTTP Header Manager" enabled="true">
- <collectionProp name="HeaderManager.headers">
- <elementProp name="" elementType="Header">
- <stringProp name="Header.name">Content-Type</stringProp>
- <stringProp name="Header.value">text/plain</stringProp>
- </elementProp>
- </collectionProp>
- </HeaderManager>
- <hashTree/>
- </hashTree>
- <JSR223Sampler guiclass="TestBeanGUI" testclass="JSR223Sampler" testname="Init DMaaP Counter" enabled="true">
- <stringProp name="scriptLanguage">groovy</stringProp>
- <stringProp name="parameters"></stringProp>
- <stringProp name="filename"></stringProp>
- <stringProp name="cacheKey">true</stringProp>
- <stringProp name="script">vars.put(&quot;counter&quot;, &quot;0&quot;);</stringProp>
- </JSR223Sampler>
- <hashTree/>
- <WhileController guiclass="WhileControllerGui" testclass="WhileController" testname="Final Success Controller" enabled="true">
- <stringProp name="WhileController.condition">${__javaScript(${counter} &lt; 60)}</stringProp>
- </WhileController>
- <hashTree>
- <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="POLICY[POLICY-CL-MGT]: FINAL_FAILURE" enabled="true">
- <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
- <collectionProp name="Arguments.arguments">
- <elementProp name="filter" elementType="HTTPArgument">
- <boolProp name="HTTPArgument.always_encode">true</boolProp>
- <stringProp name="Argument.value">{&quot;class&quot;:&quot;And&quot;, &quot;filters&quot;: [ { &quot;class&quot;:&quot;Equals&quot;, &quot;field&quot;:&quot;requestId&quot;, &quot;value&quot;:&quot;${requestId}&quot; }, { &quot;class&quot;:&quot;Equals&quot;, &quot;field&quot;:&quot;notification&quot;, &quot;value&quot;:&quot;FINAL: FAILURE&quot; }]}</stringProp>
- <stringProp name="Argument.metadata">=</stringProp>
- <boolProp name="HTTPArgument.use_equals">true</boolProp>
- <stringProp name="Argument.name">filter</stringProp>
- </elementProp>
- </collectionProp>
- </elementProp>
- <stringProp name="HTTPSampler.domain">${DMAAP_HOST}</stringProp>
- <stringProp name="HTTPSampler.port">${DMAAP_PORT}</stringProp>
- <stringProp name="HTTPSampler.protocol">https</stringProp>
- <stringProp name="HTTPSampler.contentEncoding"></stringProp>
- <stringProp name="HTTPSampler.path">events/POLICY-CL-MGT/${consumerGroup}/1?timeout=15000&amp;limit=1</stringProp>
- <stringProp name="HTTPSampler.method">GET</stringProp>
- <boolProp name="HTTPSampler.follow_redirects">false</boolProp>
- <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
- <boolProp name="HTTPSampler.use_keepalive">false</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="No []" enabled="true">
- <collectionProp name="Asserion.test_strings">
- <stringProp name="2914">[]</stringProp>
- </collectionProp>
- <stringProp name="Assertion.custom_message"></stringProp>
- <stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
- <boolProp name="Assertion.assume_success">false</boolProp>
- <intProp name="Assertion.test_type">12</intProp>
- </ResponseAssertion>
- <hashTree/>
- <RegexExtractor guiclass="RegexExtractorGui" testclass="RegexExtractor" testname="requestId extractor" enabled="true">
- <stringProp name="RegexExtractor.useHeaders">false</stringProp>
- <stringProp name="RegexExtractor.refname">requestIdOnset</stringProp>
- <stringProp name="RegexExtractor.regex">requestId\\&quot;: \\&quot;(.+?)\\&quot;</stringProp>
- <stringProp name="RegexExtractor.template">$1$</stringProp>
- <stringProp name="RegexExtractor.default">none</stringProp>
- <stringProp name="RegexExtractor.match_number"></stringProp>
- </RegexExtractor>
- <hashTree/>
- <RegexExtractor guiclass="RegexExtractorGui" testclass="RegexExtractor" testname="notification extractor" enabled="true">
- <stringProp name="RegexExtractor.useHeaders">false</stringProp>
- <stringProp name="RegexExtractor.refname">notification</stringProp>
- <stringProp name="RegexExtractor.regex">notification\\&quot;: \\&quot;FINAL: (.+?)\\&quot;</stringProp>
- <stringProp name="RegexExtractor.template">$1$</stringProp>
- <stringProp name="RegexExtractor.default">none</stringProp>
- <stringProp name="RegexExtractor.match_number"></stringProp>
- </RegexExtractor>
- <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">String requestIdOnset = vars.get(&quot;requestIdOnset&quot;);
-String requestId = vars.get(&quot;requestId&quot;);
-String notification = vars.get(&quot;notification&quot;);
-String counter = vars.get(&quot;counter&quot;);
-
-String transaction = &quot;none&quot;;
-
-log.info (&quot;The requestId id is &quot; + requestId);
-log.info (&quot;The requestIdOnset id is &quot; + requestIdOnset);
-log.info (&quot;The notification is &quot; + notification);
-log.info (&quot;The transaction is &quot; + transaction);
-log.info (&quot;The counter is &quot; + counter);
-
-if ( requestId == requestIdOnset ) {
- if ( notification == &quot;SUCCESS&quot; ) {
- transaction = &quot;FINAL&quot;;
- log.info (&quot;Final Success Transaction&quot;);
- AssertionResult.setFailureMessage(&quot;Unexpected SUCCESS notification&quot;);
- AssertionResult.setFailure(true);
- } else if ( notification == &quot;FAILURE&quot; ) {
- transaction = &quot;FINAL&quot;;
- log.info (&quot;Final Failure Transaction&quot;);
- }
-}
-
-int counterTemp = Integer.parseInt(counter) +1;
-if (transaction == &quot;FINAL&quot;) {
- counterTemp = 99;
-} else if (counterTemp &gt;= 60) {
- AssertionResult.setFailureMessage(&quot;Failure, reached maximum number of 10 attempts &quot;);
- AssertionResult.setFailure(true);
-}
-
-vars.put(&quot;counter&quot;, Integer.toString(counterTemp));</stringProp>
- </JSR223Assertion>
- <hashTree/>
- </hashTree>
- </hashTree>
- <ResultCollector guiclass="ViewResultsFullVisualizer" testclass="ResultCollector" testname="View Results Tree" enabled="true">
- <boolProp name="ResultCollector.error_logging">false</boolProp>
- <objProp>
- <name>saveConfig</name>
- <value class="SampleSaveConfiguration">
- <time>true</time>
- <latency>true</latency>
- <timestamp>true</timestamp>
- <success>true</success>
- <label>true</label>
- <code>true</code>
- <message>true</message>
- <threadName>true</threadName>
- <dataType>true</dataType>
- <encoding>false</encoding>
- <assertions>true</assertions>
- <subresults>true</subresults>
- <responseData>false</responseData>
- <samplerData>false</samplerData>
- <xml>false</xml>
- <fieldNames>true</fieldNames>
- <responseHeaders>false</responseHeaders>
- <requestHeaders>false</requestHeaders>
- <responseDataOnError>false</responseDataOnError>
- <saveAssertionResultsFailureMessage>true</saveAssertionResultsFailureMessage>
- <assertionsResultsToSave>0</assertionsResultsToSave>
- <bytes>true</bytes>
- <sentBytes>true</sentBytes>
- <url>true</url>
- <threadCounts>true</threadCounts>
- <idleTime>true</idleTime>
- <connectTime>true</connectTime>
- </value>
- </objProp>
- <stringProp name="filename"></stringProp>
- </ResultCollector>
- <hashTree/>
- </hashTree>
- <ThreadGroup guiclass="ThreadGroupGui" testclass="ThreadGroup" testname="vDNS Success" enabled="true">
- <stringProp name="ThreadGroup.on_sample_error">startnextloop</stringProp>
- <elementProp name="ThreadGroup.main_controller" elementType="LoopController" guiclass="LoopControlPanel" testclass="LoopController" testname="Loop Controller" enabled="true">
- <boolProp name="LoopController.continue_forever">false</boolProp>
- <intProp name="LoopController.loops">-1</intProp>
- </elementProp>
- <stringProp name="ThreadGroup.num_threads">1</stringProp>
- <stringProp name="ThreadGroup.ramp_time">1</stringProp>
- <boolProp name="ThreadGroup.scheduler">true</boolProp>
- <stringProp name="ThreadGroup.duration">${duration}</stringProp>
- <stringProp name="ThreadGroup.delay">10</stringProp>
- </ThreadGroup>
- <hashTree>
- <UserParameters guiclass="UserParametersGui" testclass="UserParameters" testname="Set consumer group per scenario" enabled="true">
- <collectionProp name="UserParameters.names">
- <stringProp name="-308835287">consumerGroup</stringProp>
- </collectionProp>
- <collectionProp name="UserParameters.thread_values">
- <collectionProp name="-2069404111">
- <stringProp name="-27349072">vdnssuccess</stringProp>
- </collectionProp>
- </collectionProp>
- <boolProp name="UserParameters.per_iteration">false</boolProp>
- <stringProp name="TestPlan.comments">Global to the thread group</stringProp>
- </UserParameters>
- <hashTree/>
- <UserParameters guiclass="UserParametersGui" testclass="UserParameters" testname="Set request id per cycle" enabled="true">
- <collectionProp name="UserParameters.names">
- <stringProp name="693933066">requestId</stringProp>
- </collectionProp>
- <collectionProp name="UserParameters.thread_values">
- <collectionProp name="681405977">
- <stringProp name="118040362">${__UUID()}</stringProp>
- </collectionProp>
- </collectionProp>
- <boolProp name="UserParameters.per_iteration">true</boolProp>
- <stringProp name="TestPlan.comments">Update on a per iteration basis</stringProp>
- </UserParameters>
- <hashTree/>
- <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="DCAE[DCAE_TOPIC]: ONSET" 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;closedLoopControlName&quot;: &quot;ControlLoop-vDNS-6f37f56d-a87d-4b85-b6a9-cc953cf779b3&quot;,&#xd;
- &quot;closedLoopAlarmStart&quot;: 1463679805324,&#xd;
- &quot;closedLoopEventClient&quot;: &quot;microservice.stringmatcher&quot;,&#xd;
- &quot;closedLoopEventStatus&quot;: &quot;ONSET&quot;,&#xd;
- &quot;requestID&quot;: &quot;${requestId}&quot;,&#xd;
- &quot;target_type&quot;: &quot;VNF&quot;,&#xd;
- &quot;target&quot;: &quot;vserver.vserver-name&quot;,&#xd;
- &quot;AAI&quot;: {&#xd;
- &quot;vserver.is-closed-loop-disabled&quot;: &quot;false&quot;,&#xd;
- &quot;vserver.prov-status&quot;: &quot;ACTIVE&quot;,&#xd;
- &quot;vserver.vserver-name&quot;: &quot;OzVServer&quot;&#xd;
- },&#xd;
- &quot;from&quot;: &quot;DCAE&quot;,&#xd;
- &quot;version&quot;: &quot;1.0.2&quot;&#xd;
-}</stringProp>
- <stringProp name="Argument.metadata">=</stringProp>
- </elementProp>
- </collectionProp>
- </elementProp>
- <stringProp name="HTTPSampler.domain">${DROOLS_HOST}</stringProp>
- <stringProp name="HTTPSampler.port">${DROOLS_PORT}</stringProp>
- <stringProp name="HTTPSampler.protocol">https</stringProp>
- <stringProp name="HTTPSampler.contentEncoding"></stringProp>
- <stringProp name="HTTPSampler.path">policy/pdp/engine/topics/sources/dmaap/DCAE_TOPIC/events</stringProp>
- <stringProp name="HTTPSampler.method">PUT</stringProp>
- <boolProp name="HTTPSampler.follow_redirects">false</boolProp>
- <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
- <boolProp name="HTTPSampler.use_keepalive">false</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>
- <HeaderManager guiclass="HeaderPanel" testclass="HeaderManager" testname="HTTP Header Manager" enabled="true">
- <collectionProp name="HeaderManager.headers">
- <elementProp name="" elementType="Header">
- <stringProp name="Header.name">Content-Type</stringProp>
- <stringProp name="Header.value">text/plain</stringProp>
- </elementProp>
- </collectionProp>
- </HeaderManager>
- <hashTree/>
- </hashTree>
- <JSR223Sampler guiclass="TestBeanGUI" testclass="JSR223Sampler" testname="Init DMaaP Counter" enabled="true">
- <stringProp name="scriptLanguage">groovy</stringProp>
- <stringProp name="parameters"></stringProp>
- <stringProp name="filename"></stringProp>
- <stringProp name="cacheKey">true</stringProp>
- <stringProp name="script">vars.put(&quot;counter&quot;, &quot;0&quot;);
-vars.put(&quot;transaction&quot;, &quot;none&quot;);</stringProp>
- </JSR223Sampler>
- <hashTree/>
- <WhileController guiclass="WhileControllerGui" testclass="WhileController" testname="Final Success Controller" enabled="true">
- <stringProp name="WhileController.condition">${__javaScript(${counter} &lt; 60)}</stringProp>
- </WhileController>
- <hashTree>
- <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="POLICY[POLICY-CL-MGT]: FINAL_SUCCESS" enabled="true">
- <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
- <collectionProp name="Arguments.arguments">
- <elementProp name="filter" elementType="HTTPArgument">
- <boolProp name="HTTPArgument.always_encode">true</boolProp>
- <stringProp name="Argument.value">{&quot;class&quot;:&quot;And&quot;, &quot;filters&quot;: [ { &quot;class&quot;:&quot;Equals&quot;, &quot;field&quot;:&quot;requestId&quot;, &quot;value&quot;:&quot;${requestId}&quot; }, { &quot;class&quot;:&quot;Equals&quot;, &quot;field&quot;:&quot;notification&quot;, &quot;value&quot;:&quot;FINAL: SUCCESS&quot; }]}</stringProp>
- <stringProp name="Argument.metadata">=</stringProp>
- <boolProp name="HTTPArgument.use_equals">true</boolProp>
- <stringProp name="Argument.name">filter</stringProp>
- </elementProp>
- </collectionProp>
- </elementProp>
- <stringProp name="HTTPSampler.domain">${DMAAP_HOST}</stringProp>
- <stringProp name="HTTPSampler.port">${DMAAP_PORT}</stringProp>
- <stringProp name="HTTPSampler.protocol">https</stringProp>
- <stringProp name="HTTPSampler.contentEncoding"></stringProp>
- <stringProp name="HTTPSampler.path">events/POLICY-CL-MGT/${consumerGroup}/1?timeout=20000&amp;limit=1</stringProp>
- <stringProp name="HTTPSampler.method">GET</stringProp>
- <boolProp name="HTTPSampler.follow_redirects">false</boolProp>
- <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
- <boolProp name="HTTPSampler.use_keepalive">false</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="No []" enabled="true">
- <collectionProp name="Asserion.test_strings">
- <stringProp name="2914">[]</stringProp>
- </collectionProp>
- <stringProp name="Assertion.custom_message"></stringProp>
- <stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
- <boolProp name="Assertion.assume_success">false</boolProp>
- <intProp name="Assertion.test_type">12</intProp>
- </ResponseAssertion>
- <hashTree/>
- <RegexExtractor guiclass="RegexExtractorGui" testclass="RegexExtractor" testname="requestId extractor" enabled="true">
- <stringProp name="RegexExtractor.useHeaders">false</stringProp>
- <stringProp name="RegexExtractor.refname">requestIdOnset</stringProp>
- <stringProp name="RegexExtractor.regex">requestId\\&quot;: \\&quot;(.+?)\\&quot;</stringProp>
- <stringProp name="RegexExtractor.template">$1$</stringProp>
- <stringProp name="RegexExtractor.default">none</stringProp>
- <stringProp name="RegexExtractor.match_number"></stringProp>
- </RegexExtractor>
- <hashTree/>
- <RegexExtractor guiclass="RegexExtractorGui" testclass="RegexExtractor" testname="notification extractor" enabled="true">
- <stringProp name="RegexExtractor.useHeaders">false</stringProp>
- <stringProp name="RegexExtractor.refname">notification</stringProp>
- <stringProp name="RegexExtractor.regex">notification\\&quot;: \\&quot;FINAL: (.+?)\\&quot;</stringProp>
- <stringProp name="RegexExtractor.template">$1$</stringProp>
- <stringProp name="RegexExtractor.default">none</stringProp>
- <stringProp name="RegexExtractor.match_number"></stringProp>
- </RegexExtractor>
- <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">String requestIdOnset = vars.get(&quot;requestIdOnset&quot;);
-String requestId = vars.get(&quot;requestId&quot;);
-String notification = vars.get(&quot;notification&quot;);
-String counter = vars.get(&quot;counter&quot;);
-
-String transaction = &quot;none&quot;;
-
-log.info (&quot;The requestId id is &quot; + requestId);
-log.info (&quot;The requestIdOnset id is &quot; + requestIdOnset);
-log.info (&quot;The notification is &quot; + notification);
-log.info (&quot;The transaction is &quot; + transaction);
-log.info (&quot;The counter is &quot; + counter);
-
-if ( requestId == requestIdOnset ) {
- if ( notification == &quot;SUCCESS&quot; ) {
- transaction = &quot;FINAL&quot;;
- log.info (&quot;Final Success Transaction&quot;);
- log.info (&quot;The notification is SUCCESS&quot;);
- } else if ( notification == &quot;FAILURE&quot; ) {
- transaction = &quot;FINAL&quot;;
- log.info (&quot;Final Failure Transaction&quot;);
- AssertionResult.setFailureMessage(&quot;Bad final notification&quot;);
- AssertionResult.setFailure(true);
- }
-}
-
-int counterTemp = Integer.parseInt(counter) +1;
-if (transaction == &quot;FINAL&quot;) {
- counterTemp = 99;
-} else if (counterTemp &gt;= 60) {
- AssertionResult.setFailureMessage(&quot;Failure, reached maximum number of attempts &quot;);
- AssertionResult.setFailure(true);
-}
-
-vars.put(&quot;counter&quot;, Integer.toString(counterTemp));</stringProp>
- </JSR223Assertion>
- <hashTree/>
- </hashTree>
- </hashTree>
- <ResultCollector guiclass="ViewResultsFullVisualizer" testclass="ResultCollector" testname="View Results Tree" enabled="true">
- <boolProp name="ResultCollector.error_logging">false</boolProp>
- <objProp>
- <name>saveConfig</name>
- <value class="SampleSaveConfiguration">
- <time>true</time>
- <latency>true</latency>
- <timestamp>true</timestamp>
- <success>true</success>
- <label>true</label>
- <code>true</code>
- <message>true</message>
- <threadName>true</threadName>
- <dataType>true</dataType>
- <encoding>false</encoding>
- <assertions>true</assertions>
- <subresults>true</subresults>
- <responseData>false</responseData>
- <samplerData>false</samplerData>
- <xml>false</xml>
- <fieldNames>true</fieldNames>
- <responseHeaders>false</responseHeaders>
- <requestHeaders>false</requestHeaders>
- <responseDataOnError>false</responseDataOnError>
- <saveAssertionResultsFailureMessage>true</saveAssertionResultsFailureMessage>
- <assertionsResultsToSave>0</assertionsResultsToSave>
- <bytes>true</bytes>
- <sentBytes>true</sentBytes>
- <url>true</url>
- <threadCounts>true</threadCounts>
- <idleTime>true</idleTime>
- <connectTime>true</connectTime>
- </value>
- </objProp>
- <stringProp name="filename"></stringProp>
- </ResultCollector>
- <hashTree/>
- </hashTree>
- <ThreadGroup guiclass="ThreadGroupGui" testclass="ThreadGroup" testname="vDNS Failure" enabled="true">
- <stringProp name="ThreadGroup.on_sample_error">startnextloop</stringProp>
- <elementProp name="ThreadGroup.main_controller" elementType="LoopController" guiclass="LoopControlPanel" testclass="LoopController" testname="Loop Controller" enabled="true">
- <boolProp name="LoopController.continue_forever">false</boolProp>
- <intProp name="LoopController.loops">-1</intProp>
- </elementProp>
- <stringProp name="ThreadGroup.num_threads">1</stringProp>
- <stringProp name="ThreadGroup.ramp_time">1</stringProp>
- <boolProp name="ThreadGroup.scheduler">true</boolProp>
- <stringProp name="ThreadGroup.duration">${duration}</stringProp>
- <stringProp name="ThreadGroup.delay">15</stringProp>
- </ThreadGroup>
- <hashTree>
- <UserParameters guiclass="UserParametersGui" testclass="UserParameters" testname="Set consumer group per scenario" enabled="true">
- <collectionProp name="UserParameters.names">
- <stringProp name="-308835287">consumerGroup</stringProp>
- </collectionProp>
- <collectionProp name="UserParameters.thread_values">
- <collectionProp name="877384373">
- <stringProp name="753246519">vdnsfailure</stringProp>
- </collectionProp>
- </collectionProp>
- <boolProp name="UserParameters.per_iteration">false</boolProp>
- <stringProp name="TestPlan.comments">Global to the thread group</stringProp>
- </UserParameters>
- <hashTree/>
- <UserParameters guiclass="UserParametersGui" testclass="UserParameters" testname="Set request id per cycle" enabled="true">
- <collectionProp name="UserParameters.names">
- <stringProp name="693933066">requestId</stringProp>
- </collectionProp>
- <collectionProp name="UserParameters.thread_values">
- <collectionProp name="681405977">
- <stringProp name="118040362">${__UUID()}</stringProp>
- </collectionProp>
- </collectionProp>
- <boolProp name="UserParameters.per_iteration">true</boolProp>
- <stringProp name="TestPlan.comments">Update on a per iteration basis</stringProp>
- </UserParameters>
- <hashTree/>
- <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="DCAE[DCAE_TOPIC]: ONSET" 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;closedLoopControlName&quot;: &quot;ControlLoop-vDNS-Fail&quot;,&#xd;
- &quot;closedLoopAlarmStart&quot;: 1463679805324,&#xd;
- &quot;closedLoopEventClient&quot;: &quot;microservice.stringmatcher&quot;,&#xd;
- &quot;closedLoopEventStatus&quot;: &quot;ONSET&quot;,&#xd;
- &quot;requestID&quot;: &quot;${requestId}&quot;,&#xd;
- &quot;target_type&quot;: &quot;VNF&quot;,&#xd;
- &quot;target&quot;: &quot;vserver.vserver-name&quot;,&#xd;
- &quot;AAI&quot;: {&#xd;
- &quot;vserver.is-closed-loop-disabled&quot;: &quot;false&quot;,&#xd;
- &quot;vserver.prov-status&quot;: &quot;ACTIVE&quot;,&#xd;
- &quot;vserver.vserver-name&quot;: &quot;AAA&quot;&#xd;
- },&#xd;
- &quot;from&quot;: &quot;DCAE&quot;,&#xd;
- &quot;version&quot;: &quot;1.0.2&quot;&#xd;
-}</stringProp>
- <stringProp name="Argument.metadata">=</stringProp>
- </elementProp>
- </collectionProp>
- </elementProp>
- <stringProp name="HTTPSampler.domain">${DROOLS_HOST}</stringProp>
- <stringProp name="HTTPSampler.port">${DROOLS_PORT}</stringProp>
- <stringProp name="HTTPSampler.protocol">https</stringProp>
- <stringProp name="HTTPSampler.contentEncoding"></stringProp>
- <stringProp name="HTTPSampler.path">policy/pdp/engine/topics/sources/dmaap/DCAE_TOPIC/events</stringProp>
- <stringProp name="HTTPSampler.method">PUT</stringProp>
- <boolProp name="HTTPSampler.follow_redirects">false</boolProp>
- <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
- <boolProp name="HTTPSampler.use_keepalive">false</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>
- <HeaderManager guiclass="HeaderPanel" testclass="HeaderManager" testname="HTTP Header Manager" enabled="true">
- <collectionProp name="HeaderManager.headers">
- <elementProp name="" elementType="Header">
- <stringProp name="Header.name">Content-Type</stringProp>
- <stringProp name="Header.value">text/plain</stringProp>
- </elementProp>
- </collectionProp>
- </HeaderManager>
- <hashTree/>
- </hashTree>
- <JSR223Sampler guiclass="TestBeanGUI" testclass="JSR223Sampler" testname="Init DMaaP Counter" enabled="true">
- <stringProp name="scriptLanguage">groovy</stringProp>
- <stringProp name="parameters"></stringProp>
- <stringProp name="filename"></stringProp>
- <stringProp name="cacheKey">true</stringProp>
- <stringProp name="script">vars.put(&quot;counter&quot;, &quot;0&quot;);
-vars.put(&quot;transaction&quot;, &quot;none&quot;);</stringProp>
- </JSR223Sampler>
- <hashTree/>
- <WhileController guiclass="WhileControllerGui" testclass="WhileController" testname="Final Failure Controller" enabled="true">
- <stringProp name="WhileController.condition">${__javaScript(${counter} &lt; 60)}</stringProp>
- </WhileController>
- <hashTree>
- <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="POLICY[POLICY-CL-MGT]: FINAL_FAILURE" enabled="true">
- <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
- <collectionProp name="Arguments.arguments">
- <elementProp name="filter" elementType="HTTPArgument">
- <boolProp name="HTTPArgument.always_encode">true</boolProp>
- <stringProp name="Argument.value">{&quot;class&quot;:&quot;And&quot;, &quot;filters&quot;: [ { &quot;class&quot;:&quot;Equals&quot;, &quot;field&quot;:&quot;requestId&quot;, &quot;value&quot;:&quot;${requestId}&quot; }, { &quot;class&quot;:&quot;Equals&quot;, &quot;field&quot;:&quot;notification&quot;, &quot;value&quot;:&quot;FINAL: SUCCESS&quot; }]}</stringProp>
- <stringProp name="Argument.metadata">=</stringProp>
- <boolProp name="HTTPArgument.use_equals">true</boolProp>
- <stringProp name="Argument.name">filter</stringProp>
- </elementProp>
- </collectionProp>
- </elementProp>
- <stringProp name="HTTPSampler.domain">${DMAAP_HOST}</stringProp>
- <stringProp name="HTTPSampler.port">${DMAAP_PORT}</stringProp>
- <stringProp name="HTTPSampler.protocol">https</stringProp>
- <stringProp name="HTTPSampler.contentEncoding"></stringProp>
- <stringProp name="HTTPSampler.path">events/POLICY-CL-MGT/${consumerGroup}/1?timeout=20000&amp;limit=1</stringProp>
- <stringProp name="HTTPSampler.method">GET</stringProp>
- <boolProp name="HTTPSampler.follow_redirects">false</boolProp>
- <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
- <boolProp name="HTTPSampler.use_keepalive">false</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="No []" enabled="true">
- <collectionProp name="Asserion.test_strings">
- <stringProp name="2914">[]</stringProp>
- </collectionProp>
- <stringProp name="Assertion.custom_message"></stringProp>
- <stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
- <boolProp name="Assertion.assume_success">false</boolProp>
- <intProp name="Assertion.test_type">12</intProp>
- </ResponseAssertion>
- <hashTree/>
- <RegexExtractor guiclass="RegexExtractorGui" testclass="RegexExtractor" testname="requestId extractor" enabled="true">
- <stringProp name="RegexExtractor.useHeaders">false</stringProp>
- <stringProp name="RegexExtractor.refname">requestIdOnset</stringProp>
- <stringProp name="RegexExtractor.regex">requestId\\&quot;: \\&quot;(.+?)\\&quot;</stringProp>
- <stringProp name="RegexExtractor.template">$1$</stringProp>
- <stringProp name="RegexExtractor.default">none</stringProp>
- <stringProp name="RegexExtractor.match_number"></stringProp>
- </RegexExtractor>
- <hashTree/>
- <RegexExtractor guiclass="RegexExtractorGui" testclass="RegexExtractor" testname="notification extractor" enabled="true">
- <stringProp name="RegexExtractor.useHeaders">false</stringProp>
- <stringProp name="RegexExtractor.refname">notification</stringProp>
- <stringProp name="RegexExtractor.regex">notification\\&quot;: \\&quot;FINAL: (.+?)\\&quot;</stringProp>
- <stringProp name="RegexExtractor.template">$1$</stringProp>
- <stringProp name="RegexExtractor.default">none</stringProp>
- <stringProp name="RegexExtractor.match_number"></stringProp>
- </RegexExtractor>
- <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">String requestIdOnset = vars.get(&quot;requestIdOnset&quot;);
-String requestId = vars.get(&quot;requestId&quot;);
-String notification = vars.get(&quot;notification&quot;);
-String counter = vars.get(&quot;counter&quot;);
-
-String transaction = &quot;none&quot;;
-
-log.info (&quot;The requestId id is &quot; + requestId);
-log.info (&quot;The requestIdOnset id is &quot; + requestIdOnset);
-log.info (&quot;The notification is &quot; + notification);
-log.info (&quot;The transaction is &quot; + transaction);
-log.info (&quot;The counter is &quot; + counter);
-
-if ( requestId == requestIdOnset ) {
- if ( notification == &quot;SUCCESS&quot; ) {
- transaction = &quot;FINAL&quot;;
- log.info (&quot;Final Success Transaction&quot;);
- AssertionResult.setFailureMessage(&quot;Bad final notification&quot;);
- AssertionResult.setFailure(true);
- } else if ( notification == &quot;FAILURE&quot; ) {
- transaction = &quot;FINAL&quot;;
- log.info (&quot;Final Failure Transaction&quot;);
- }
-}
-
-int counterTemp = Integer.parseInt(counter) +1;
-if (transaction == &quot;FINAL&quot;) {
- counterTemp = 99;
-} else if (counterTemp &gt;= 60) {
- AssertionResult.setFailureMessage(&quot;Failure, reached maximum number of attempts &quot;);
- AssertionResult.setFailure(true);
-}
-
-vars.put(&quot;counter&quot;, Integer.toString(counterTemp));</stringProp>
- </JSR223Assertion>
- <hashTree/>
- </hashTree>
- </hashTree>
- <ResultCollector guiclass="ViewResultsFullVisualizer" testclass="ResultCollector" testname="View Results Tree" enabled="true">
- <boolProp name="ResultCollector.error_logging">false</boolProp>
- <objProp>
- <name>saveConfig</name>
- <value class="SampleSaveConfiguration">
- <time>true</time>
- <latency>true</latency>
- <timestamp>true</timestamp>
- <success>true</success>
- <label>true</label>
- <code>true</code>
- <message>true</message>
- <threadName>true</threadName>
- <dataType>true</dataType>
- <encoding>false</encoding>
- <assertions>true</assertions>
- <subresults>true</subresults>
- <responseData>false</responseData>
- <samplerData>false</samplerData>
- <xml>false</xml>
- <fieldNames>true</fieldNames>
- <responseHeaders>false</responseHeaders>
- <requestHeaders>false</requestHeaders>
- <responseDataOnError>false</responseDataOnError>
- <saveAssertionResultsFailureMessage>true</saveAssertionResultsFailureMessage>
- <assertionsResultsToSave>0</assertionsResultsToSave>
- <bytes>true</bytes>
- <sentBytes>true</sentBytes>
- <url>true</url>
- <threadCounts>true</threadCounts>
- <idleTime>true</idleTime>
- <connectTime>true</connectTime>
- </value>
- </objProp>
- <stringProp name="filename"></stringProp>
- </ResultCollector>
- <hashTree/>
- </hashTree>
- <ThreadGroup guiclass="ThreadGroupGui" testclass="ThreadGroup" testname="vFW Success" enabled="true">
- <stringProp name="ThreadGroup.on_sample_error">startnextloop</stringProp>
- <elementProp name="ThreadGroup.main_controller" elementType="LoopController" guiclass="LoopControlPanel" testclass="LoopController" testname="Loop Controller" enabled="true">
- <boolProp name="LoopController.continue_forever">false</boolProp>
- <intProp name="LoopController.loops">-1</intProp>
- </elementProp>
- <stringProp name="ThreadGroup.num_threads">1</stringProp>
- <stringProp name="ThreadGroup.ramp_time">1</stringProp>
- <boolProp name="ThreadGroup.scheduler">true</boolProp>
- <stringProp name="ThreadGroup.duration">${duration}</stringProp>
- <stringProp name="ThreadGroup.delay">20</stringProp>
- </ThreadGroup>
- <hashTree>
- <UserParameters guiclass="UserParametersGui" testclass="UserParameters" testname="Set consumer group per scenario" enabled="true">
- <collectionProp name="UserParameters.names">
- <stringProp name="-308835287">consumerGroup</stringProp>
- </collectionProp>
- <collectionProp name="UserParameters.thread_values">
- <collectionProp name="-75926649">
- <stringProp name="-2021688740">vfwsuccess</stringProp>
- </collectionProp>
- </collectionProp>
- <boolProp name="UserParameters.per_iteration">false</boolProp>
- <stringProp name="TestPlan.comments">Global to the thread group</stringProp>
- </UserParameters>
- <hashTree/>
- <UserParameters guiclass="UserParametersGui" testclass="UserParameters" testname="Set request id per cycle" enabled="true">
- <collectionProp name="UserParameters.names">
- <stringProp name="693933066">requestId</stringProp>
- </collectionProp>
- <collectionProp name="UserParameters.thread_values">
- <collectionProp name="681405977">
- <stringProp name="118040362">${__UUID()}</stringProp>
- </collectionProp>
- </collectionProp>
- <boolProp name="UserParameters.per_iteration">true</boolProp>
- <stringProp name="TestPlan.comments">Update on a per iteration basis</stringProp>
- </UserParameters>
- <hashTree/>
- <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="DCAE[DCAE_TOPIC]: ONSET" 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;closedLoopControlName&quot;: &quot;ControlLoop-vFirewall-d0a1dfc6-94f5-4fd4-a5b5-4630b438850a&quot;,&#xd;
- &quot;closedLoopAlarmStart&quot;: 1463679805324,&#xd;
- &quot;closedLoopEventClient&quot;: &quot;microservice.stringmatcher&quot;,&#xd;
- &quot;closedLoopEventStatus&quot;: &quot;ONSET&quot;,&#xd;
- &quot;requestID&quot;: &quot;${requestId}&quot;,&#xd;
- &quot;target_type&quot;: &quot;VNF&quot;,&#xd;
- &quot;target&quot;: &quot;generic-vnf.vnf-name&quot;,&#xd;
- &quot;AAI&quot;: {&#xd;
- &quot;vserver.is-closed-loop-disabled&quot;: &quot;false&quot;,&#xd;
- &quot;vserver.prov-status&quot;: &quot;ACTIVE&quot;,&#xd;
- &quot;generic-vnf.vnf-name&quot;: &quot;fw0002vm002fw002&quot;,&#xd;
- &quot;vserver.vserver-name&quot;: &quot;OzVServer&quot;&#xd;
- },&#xd;
- &quot;from&quot;: &quot;DCAE&quot;,&#xd;
- &quot;version&quot;: &quot;1.0.2&quot;&#xd;
-}&#xd;
-</stringProp>
- <stringProp name="Argument.metadata">=</stringProp>
- </elementProp>
- </collectionProp>
- </elementProp>
- <stringProp name="HTTPSampler.domain">${DROOLS_HOST}</stringProp>
- <stringProp name="HTTPSampler.port">${DROOLS_PORT}</stringProp>
- <stringProp name="HTTPSampler.protocol">https</stringProp>
- <stringProp name="HTTPSampler.contentEncoding"></stringProp>
- <stringProp name="HTTPSampler.path">policy/pdp/engine/topics/sources/dmaap/DCAE_TOPIC/events</stringProp>
- <stringProp name="HTTPSampler.method">PUT</stringProp>
- <boolProp name="HTTPSampler.follow_redirects">false</boolProp>
- <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
- <boolProp name="HTTPSampler.use_keepalive">false</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>
- <HeaderManager guiclass="HeaderPanel" testclass="HeaderManager" testname="HTTP Header Manager" enabled="true">
- <collectionProp name="HeaderManager.headers">
- <elementProp name="" elementType="Header">
- <stringProp name="Header.name">Content-Type</stringProp>
- <stringProp name="Header.value">text/plain</stringProp>
- </elementProp>
- </collectionProp>
- </HeaderManager>
- <hashTree/>
- </hashTree>
- <JSR223Sampler guiclass="TestBeanGUI" testclass="JSR223Sampler" testname="Init DMaaP Counter" enabled="true">
- <stringProp name="scriptLanguage">groovy</stringProp>
- <stringProp name="parameters"></stringProp>
- <stringProp name="filename"></stringProp>
- <stringProp name="cacheKey">true</stringProp>
- <stringProp name="script">vars.put(&quot;counter&quot;, &quot;0&quot;);</stringProp>
- </JSR223Sampler>
- <hashTree/>
- <WhileController guiclass="WhileControllerGui" testclass="WhileController" testname="APPCL Restart Loop Controller" enabled="true">
- <stringProp name="WhileController.condition">${__javaScript(${counter} &lt; 10)}</stringProp>
- </WhileController>
- <hashTree>
- <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="POLICY[APPC-CL]: Restart" enabled="true">
- <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
- <collectionProp name="Arguments.arguments">
- <elementProp name="filter" elementType="HTTPArgument">
- <boolProp name="HTTPArgument.always_encode">true</boolProp>
- <stringProp name="Argument.value">{&quot;class&quot;:&quot;And&quot;, &quot;filters&quot;: [ { &quot;class&quot;:&quot;Equals&quot;, &quot;field&quot;:&quot;RequestID&quot;, &quot;value&quot;:&quot;${requestId}&quot; }, { &quot;class&quot;:&quot;Equals&quot;, &quot;field&quot;:&quot;Action&quot;, &quot;value&quot;:&quot;ModifyConfig&quot; }]}</stringProp>
- <stringProp name="Argument.metadata">=</stringProp>
- <boolProp name="HTTPArgument.use_equals">true</boolProp>
- <stringProp name="Argument.name">filter</stringProp>
- </elementProp>
- </collectionProp>
- </elementProp>
- <stringProp name="HTTPSampler.domain">${DMAAP_HOST}</stringProp>
- <stringProp name="HTTPSampler.port">${DMAAP_PORT}</stringProp>
- <stringProp name="HTTPSampler.protocol">https</stringProp>
- <stringProp name="HTTPSampler.contentEncoding"></stringProp>
- <stringProp name="HTTPSampler.path">events/APPC-CL/${consumerGroup}/1?timeout=15000&amp;limit=1</stringProp>
- <stringProp name="HTTPSampler.method">GET</stringProp>
- <boolProp name="HTTPSampler.follow_redirects">false</boolProp>
- <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
- <boolProp name="HTTPSampler.use_keepalive">false</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="No []" enabled="true">
- <collectionProp name="Asserion.test_strings">
- <stringProp name="2914">[]</stringProp>
- </collectionProp>
- <stringProp name="Assertion.custom_message"></stringProp>
- <stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
- <boolProp name="Assertion.assume_success">false</boolProp>
- <intProp name="Assertion.test_type">12</intProp>
- </ResponseAssertion>
- <hashTree/>
- <RegexExtractor guiclass="RegexExtractorGui" testclass="RegexExtractor" testname="RequestID extractor" enabled="true">
- <stringProp name="RegexExtractor.useHeaders">false</stringProp>
- <stringProp name="RegexExtractor.refname">requestIdOnset</stringProp>
- <stringProp name="RegexExtractor.regex">\\&quot;RequestID\\&quot;: \\&quot;(.+?)\\&quot;</stringProp>
- <stringProp name="RegexExtractor.template">$1$</stringProp>
- <stringProp name="RegexExtractor.default">none</stringProp>
- <stringProp name="RegexExtractor.match_number"></stringProp>
- </RegexExtractor>
- <hashTree/>
- <RegexExtractor guiclass="RegexExtractorGui" testclass="RegexExtractor" testname="SubRequestID extractor" enabled="true">
- <stringProp name="RegexExtractor.useHeaders">false</stringProp>
- <stringProp name="RegexExtractor.refname">subRequestId</stringProp>
- <stringProp name="RegexExtractor.regex">SubRequestID\\&quot;: \\&quot;(.+?)\\&quot;</stringProp>
- <stringProp name="RegexExtractor.template">$1$</stringProp>
- <stringProp name="RegexExtractor.default">none</stringProp>
- <stringProp name="RegexExtractor.match_number"></stringProp>
- </RegexExtractor>
- <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">String requestIdOnset = vars.get(&quot;requestIdOnset&quot;);
-String requestId = vars.get(&quot;requestId&quot;);
-String subRequestId = vars.get(&quot;subRequestId&quot;);
-String counter = vars.get(&quot;counter&quot;);
-
-String transaction = &quot;none&quot;;
-
-log.info (&quot;The requestId id is &quot; + requestId);
-log.info (&quot;The requestIdOnset id is &quot; + requestIdOnset);
-log.info (&quot;The subrequest id is &quot; + subRequestId);
-log.info (&quot;The counter is &quot; + counter);
-
-if ( requestId == requestIdOnset ) {
- if ( subRequestId == &quot;none&quot; ) {
- transaction = &quot;FINAL&quot;;
- log.info (&quot;APPC ModifyConfig does not contain enough information&quot;);
- AssertionResult.setFailureMessage(&quot;Missing subRequestId&quot;);
- AssertionResult.setFailure(true);
- } else {
- transaction = &quot;FINAL&quot;;
- vars.put(&quot;transaction&quot;, &quot;FINAL&quot;);
- log.info (&quot;Final Success Transaction&quot;);
- }
-}
-
-int counterTemp = Integer.parseInt(counter) +1;
-if (transaction == &quot;FINAL&quot;) {
- counterTemp = 99;
-} else if (counterTemp &gt;= 10) {
- AssertionResult.setFailureMessage(&quot;Failure, reached maximum number of 10 attempts &quot;);
- AssertionResult.setFailure(true);
-}
-
-vars.put(&quot;counter&quot;, Integer.toString(counterTemp));
-
-</stringProp>
- </JSR223Assertion>
- <hashTree/>
- </hashTree>
- </hashTree>
- <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="APPC[APPC-CL]: SUCCESS" 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;CommonHeader&quot;: {&#xd;
- &quot;TimeStamp&quot;: 1506051879001,&#xd;
- &quot;APIver&quot;: &quot;1.01&quot;,&#xd;
- &quot;RequestID&quot;: &quot;${requestId}&quot;,&#xd;
- &quot;SubRequestID&quot;: &quot;${subRequestId}&quot;,&#xd;
- &quot;RequestTrack&quot;: [],&#xd;
- &quot;Flags&quot;: []&#xd;
- },&#xd;
- &quot;Status&quot;: {&#xd;
- &quot;Code&quot;: 400,&#xd;
- &quot;Value&quot;: &quot;SUCCESS&quot;&#xd;
- },&#xd;
- &quot;Payload&quot;: {&#xd;
- &quot;generic-vnf.vnf-id&quot;: &quot;f17face5-69cb-4c88-9e0b-7426db7edddd&quot;&#xd;
- }&#xd;
-}</stringProp>
- <stringProp name="Argument.metadata">=</stringProp>
- </elementProp>
- </collectionProp>
- </elementProp>
- <stringProp name="HTTPSampler.domain">${DROOLS_HOST}</stringProp>
- <stringProp name="HTTPSampler.port">${DROOLS_PORT}</stringProp>
- <stringProp name="HTTPSampler.protocol">https</stringProp>
- <stringProp name="HTTPSampler.contentEncoding"></stringProp>
- <stringProp name="HTTPSampler.path">policy/pdp/engine/topics/sources/dmaap/APPC-CL/events</stringProp>
- <stringProp name="HTTPSampler.method">PUT</stringProp>
- <boolProp name="HTTPSampler.follow_redirects">false</boolProp>
- <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
- <boolProp name="HTTPSampler.use_keepalive">false</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>
- <HeaderManager guiclass="HeaderPanel" testclass="HeaderManager" testname="HTTP Header Manager" enabled="true">
- <collectionProp name="HeaderManager.headers">
- <elementProp name="" elementType="Header">
- <stringProp name="Header.name">Content-Type</stringProp>
- <stringProp name="Header.value">text/plain</stringProp>
- </elementProp>
- </collectionProp>
- </HeaderManager>
- <hashTree/>
- </hashTree>
- <JSR223Sampler guiclass="TestBeanGUI" testclass="JSR223Sampler" testname="Init DMaaP Counter" enabled="true">
- <stringProp name="scriptLanguage">groovy</stringProp>
- <stringProp name="parameters"></stringProp>
- <stringProp name="filename"></stringProp>
- <stringProp name="cacheKey">true</stringProp>
- <stringProp name="script">vars.put(&quot;counter&quot;, &quot;0&quot;);</stringProp>
- </JSR223Sampler>
- <hashTree/>
- <WhileController guiclass="WhileControllerGui" testclass="WhileController" testname="Final Success Controller" enabled="true">
- <stringProp name="WhileController.condition">${__javaScript(${counter} &lt; 60)}</stringProp>
- </WhileController>
- <hashTree>
- <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="POLICY[POLICY-CL-MGT]: FINAL_SUCCESS" enabled="true">
- <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
- <collectionProp name="Arguments.arguments">
- <elementProp name="filter" elementType="HTTPArgument">
- <boolProp name="HTTPArgument.always_encode">true</boolProp>
- <stringProp name="Argument.value">{&quot;class&quot;:&quot;And&quot;, &quot;filters&quot;: [ { &quot;class&quot;:&quot;Equals&quot;, &quot;field&quot;:&quot;requestId&quot;, &quot;value&quot;:&quot;${requestId}&quot; }, { &quot;class&quot;:&quot;Equals&quot;, &quot;field&quot;:&quot;notification&quot;, &quot;value&quot;:&quot;FINAL: SUCCESS&quot; }]}</stringProp>
- <stringProp name="Argument.metadata">=</stringProp>
- <boolProp name="HTTPArgument.use_equals">true</boolProp>
- <stringProp name="Argument.name">filter</stringProp>
- </elementProp>
- </collectionProp>
- </elementProp>
- <stringProp name="HTTPSampler.domain">${DMAAP_HOST}</stringProp>
- <stringProp name="HTTPSampler.port">${DMAAP_PORT}</stringProp>
- <stringProp name="HTTPSampler.protocol">https</stringProp>
- <stringProp name="HTTPSampler.contentEncoding"></stringProp>
- <stringProp name="HTTPSampler.path">events/POLICY-CL-MGT/${consumerGroup}/1?timeout=15000&amp;limit=1</stringProp>
- <stringProp name="HTTPSampler.method">GET</stringProp>
- <boolProp name="HTTPSampler.follow_redirects">false</boolProp>
- <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
- <boolProp name="HTTPSampler.use_keepalive">false</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="No []" enabled="true">
- <collectionProp name="Asserion.test_strings">
- <stringProp name="2914">[]</stringProp>
- </collectionProp>
- <stringProp name="Assertion.custom_message"></stringProp>
- <stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
- <boolProp name="Assertion.assume_success">false</boolProp>
- <intProp name="Assertion.test_type">12</intProp>
- </ResponseAssertion>
- <hashTree/>
- <RegexExtractor guiclass="RegexExtractorGui" testclass="RegexExtractor" testname="requestId extractor" enabled="true">
- <stringProp name="RegexExtractor.useHeaders">false</stringProp>
- <stringProp name="RegexExtractor.refname">requestIdOnset</stringProp>
- <stringProp name="RegexExtractor.regex">requestId\\&quot;: \\&quot;(.+?)\\&quot;</stringProp>
- <stringProp name="RegexExtractor.template">$1$</stringProp>
- <stringProp name="RegexExtractor.default">none</stringProp>
- <stringProp name="RegexExtractor.match_number"></stringProp>
- </RegexExtractor>
- <hashTree/>
- <RegexExtractor guiclass="RegexExtractorGui" testclass="RegexExtractor" testname="notification extractor" enabled="true">
- <stringProp name="RegexExtractor.useHeaders">false</stringProp>
- <stringProp name="RegexExtractor.refname">notification</stringProp>
- <stringProp name="RegexExtractor.regex">notification\\&quot;: \\&quot;FINAL: (.+?)\\&quot;</stringProp>
- <stringProp name="RegexExtractor.template">$1$</stringProp>
- <stringProp name="RegexExtractor.default">none</stringProp>
- <stringProp name="RegexExtractor.match_number"></stringProp>
- </RegexExtractor>
- <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">String requestIdOnset = vars.get(&quot;requestIdOnset&quot;);
-String requestId = vars.get(&quot;requestId&quot;);
-String notification = vars.get(&quot;notification&quot;);
-String counter = vars.get(&quot;counter&quot;);
-
-String transaction = &quot;none&quot;;
-
-log.info (&quot;The requestId id is &quot; + requestId);
-log.info (&quot;The requestIdOnset id is &quot; + requestIdOnset);
-log.info (&quot;The notification is &quot; + notification);
-log.info (&quot;The transaction is &quot; + transaction);
-log.info (&quot;The counter is &quot; + counter);
-
-if ( requestId == requestIdOnset ) {
- if ( notification == &quot;SUCCESS&quot; ) {
- transaction = &quot;FINAL&quot;;
- log.info (&quot;Final Success Transaction&quot;);
- log.info (&quot;The notification is SUCCESS&quot;);
- } else if ( notification == &quot;FAILURE&quot; ) {
- transaction = &quot;FINAL&quot;;
- log.info (&quot;Final Failure Transaction&quot;);
- AssertionResult.setFailureMessage(&quot;Bad final notification&quot;);
- AssertionResult.setFailure(true);
- }
-}
-
-int counterTemp = Integer.parseInt(counter) +1;
-if (transaction == &quot;FINAL&quot;) {
- counterTemp = 99;
-} else if (counterTemp &gt;= 60) {
- AssertionResult.setFailureMessage(&quot;Failure, reached maximum number of attempts &quot;);
- AssertionResult.setFailure(true);
-}
-
-vars.put(&quot;counter&quot;, Integer.toString(counterTemp));</stringProp>
- </JSR223Assertion>
- <hashTree/>
- </hashTree>
- </hashTree>
- <ResultCollector guiclass="ViewResultsFullVisualizer" testclass="ResultCollector" testname="View Results Tree" enabled="true">
- <boolProp name="ResultCollector.error_logging">false</boolProp>
- <objProp>
- <name>saveConfig</name>
- <value class="SampleSaveConfiguration">
- <time>true</time>
- <latency>true</latency>
- <timestamp>true</timestamp>
- <success>true</success>
- <label>true</label>
- <code>true</code>
- <message>true</message>
- <threadName>true</threadName>
- <dataType>true</dataType>
- <encoding>false</encoding>
- <assertions>true</assertions>
- <subresults>true</subresults>
- <responseData>false</responseData>
- <samplerData>false</samplerData>
- <xml>false</xml>
- <fieldNames>true</fieldNames>
- <responseHeaders>false</responseHeaders>
- <requestHeaders>false</requestHeaders>
- <responseDataOnError>false</responseDataOnError>
- <saveAssertionResultsFailureMessage>true</saveAssertionResultsFailureMessage>
- <assertionsResultsToSave>0</assertionsResultsToSave>
- <bytes>true</bytes>
- <sentBytes>true</sentBytes>
- <url>true</url>
- <threadCounts>true</threadCounts>
- <idleTime>true</idleTime>
- <connectTime>true</connectTime>
- </value>
- </objProp>
- <stringProp name="filename"></stringProp>
- </ResultCollector>
- <hashTree/>
- </hashTree>
- <PostThreadGroup guiclass="PostThreadGroupGui" testclass="PostThreadGroup" testname="Tear down" 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>
- <GenericController guiclass="LogicControllerGui" testclass="GenericController" testname="PAP" enabled="true"/>
- <hashTree>
- <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Undeploy vCPE 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">${PAP_HOST}</stringProp>
- <stringProp name="HTTPSampler.port">${PAP_PORT}</stringProp>
- <stringProp name="HTTPSampler.protocol">https</stringProp>
- <stringProp name="HTTPSampler.contentEncoding"></stringProp>
- <stringProp name="HTTPSampler.path">policy/pap/v1/pdps/policies/operational.restart/versions/1.0.0</stringProp>
- <stringProp name="HTTPSampler.method">DELETE</stringProp>
- <boolProp name="HTTPSampler.follow_redirects">false</boolProp>
- <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
- <boolProp name="HTTPSampler.use_keepalive">false</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">16</intProp>
- </ResponseAssertion>
- <hashTree/>
- </hashTree>
- <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Undeploy vCPE Fail 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">${PAP_HOST}</stringProp>
- <stringProp name="HTTPSampler.port">${PAP_PORT}</stringProp>
- <stringProp name="HTTPSampler.protocol">https</stringProp>
- <stringProp name="HTTPSampler.contentEncoding"></stringProp>
- <stringProp name="HTTPSampler.path">policy/pap/v1/pdps/policies/operational.restart.fail/versions/1.0.0</stringProp>
- <stringProp name="HTTPSampler.method">DELETE</stringProp>
- <boolProp name="HTTPSampler.follow_redirects">false</boolProp>
- <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
- <boolProp name="HTTPSampler.use_keepalive">false</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">16</intProp>
- </ResponseAssertion>
- <hashTree/>
- </hashTree>
- <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Undeploy vFirewall 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">${PAP_HOST}</stringProp>
- <stringProp name="HTTPSampler.port">${PAP_PORT}</stringProp>
- <stringProp name="HTTPSampler.protocol">https</stringProp>
- <stringProp name="HTTPSampler.contentEncoding"></stringProp>
- <stringProp name="HTTPSampler.path">policy/pap/v1/pdps/policies/operational.modifyconfig/versions/1.0.0</stringProp>
- <stringProp name="HTTPSampler.method">DELETE</stringProp>
- <boolProp name="HTTPSampler.follow_redirects">false</boolProp>
- <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
- <boolProp name="HTTPSampler.use_keepalive">false</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">16</intProp>
- </ResponseAssertion>
- <hashTree/>
- </hashTree>
- <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Undeploy vDNS 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">${PAP_HOST}</stringProp>
- <stringProp name="HTTPSampler.port">${PAP_PORT}</stringProp>
- <stringProp name="HTTPSampler.protocol">https</stringProp>
- <stringProp name="HTTPSampler.contentEncoding"></stringProp>
- <stringProp name="HTTPSampler.path">policy/pap/v1/pdps/policies/operational.scaleout/versions/1.0.0</stringProp>
- <stringProp name="HTTPSampler.method">DELETE</stringProp>
- <boolProp name="HTTPSampler.follow_redirects">false</boolProp>
- <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
- <boolProp name="HTTPSampler.use_keepalive">false</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">16</intProp>
- </ResponseAssertion>
- <hashTree/>
- </hashTree>
- <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Undeploy vDNS Fail 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">${PAP_HOST}</stringProp>
- <stringProp name="HTTPSampler.port">${PAP_PORT}</stringProp>
- <stringProp name="HTTPSampler.protocol">https</stringProp>
- <stringProp name="HTTPSampler.contentEncoding"></stringProp>
- <stringProp name="HTTPSampler.path">policy/pap/v1/pdps/policies/operational.scaleout.fail/versions/1.0.0</stringProp>
- <stringProp name="HTTPSampler.method">DELETE</stringProp>
- <boolProp name="HTTPSampler.follow_redirects">false</boolProp>
- <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
- <boolProp name="HTTPSampler.use_keepalive">false</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">16</intProp>
- </ResponseAssertion>
- <hashTree/>
- </hashTree>
- </hashTree>
- <GenericController guiclass="LogicControllerGui" testclass="GenericController" testname="API" enabled="true"/>
- <hashTree>
- <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete vCPE 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.operational.common.Drools/versions/1.0.0/policies/operational.restart/versions/1.0.0</stringProp>
- <stringProp name="HTTPSampler.method">DELETE</stringProp>
- <boolProp name="HTTPSampler.follow_redirects">false</boolProp>
- <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
- <boolProp name="HTTPSampler.use_keepalive">false</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">16</intProp>
- </ResponseAssertion>
- <hashTree/>
- </hashTree>
- <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete vCPE Fail 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.operational.common.Drools/versions/1.0.0/policies/operational.restart.fail/versions/1.0.0</stringProp>
- <stringProp name="HTTPSampler.method">DELETE</stringProp>
- <boolProp name="HTTPSampler.follow_redirects">false</boolProp>
- <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
- <boolProp name="HTTPSampler.use_keepalive">false</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">16</intProp>
- </ResponseAssertion>
- <hashTree/>
- </hashTree>
- <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete vFirewall 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.operational.common.Drools/versions/1.0.0/policies/operational.modifyconfig/versions/1.0.0</stringProp>
- <stringProp name="HTTPSampler.method">DELETE</stringProp>
- <boolProp name="HTTPSampler.follow_redirects">false</boolProp>
- <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
- <boolProp name="HTTPSampler.use_keepalive">false</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">16</intProp>
- </ResponseAssertion>
- <hashTree/>
- </hashTree>
- <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete vDNS 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.operational.common.Drools/versions/1.0.0/policies/operational.scaleout/versions/1.0.0</stringProp>
- <stringProp name="HTTPSampler.method">DELETE</stringProp>
- <boolProp name="HTTPSampler.follow_redirects">false</boolProp>
- <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
- <boolProp name="HTTPSampler.use_keepalive">false</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">16</intProp>
- </ResponseAssertion>
- <hashTree/>
- </hashTree>
- <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete vDNS Fail 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.operational.common.Drools/versions/1.0.0/policies/operational.scaleout.fail/versions/1.0.0</stringProp>
- <stringProp name="HTTPSampler.method">DELETE</stringProp>
- <boolProp name="HTTPSampler.follow_redirects">false</boolProp>
- <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
- <boolProp name="HTTPSampler.use_keepalive">false</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">16</intProp>
- </ResponseAssertion>
- <hashTree/>
- </hashTree>
- </hashTree>
- </hashTree>
- <ResultCollector guiclass="SummaryReport" testclass="ResultCollector" testname="Summary Report" enabled="true">
- <boolProp name="ResultCollector.error_logging">false</boolProp>
- <objProp>
- <name>saveConfig</name>
- <value class="SampleSaveConfiguration">
- <time>true</time>
- <latency>true</latency>
- <timestamp>true</timestamp>
- <success>true</success>
- <label>true</label>
- <code>true</code>
- <message>true</message>
- <threadName>true</threadName>
- <dataType>true</dataType>
- <encoding>false</encoding>
- <assertions>true</assertions>
- <subresults>true</subresults>
- <responseData>false</responseData>
- <samplerData>false</samplerData>
- <xml>false</xml>
- <fieldNames>true</fieldNames>
- <responseHeaders>false</responseHeaders>
- <requestHeaders>false</requestHeaders>
- <responseDataOnError>false</responseDataOnError>
- <saveAssertionResultsFailureMessage>true</saveAssertionResultsFailureMessage>
- <assertionsResultsToSave>0</assertionsResultsToSave>
- <bytes>true</bytes>
- <sentBytes>true</sentBytes>
- <threadCounts>true</threadCounts>
- <idleTime>true</idleTime>
- <connectTime>true</connectTime>
- </value>
- </objProp>
- <stringProp name="filename"></stringProp>
- </ResultCollector>
- <hashTree/>
- <ResultCollector guiclass="ViewResultsFullVisualizer" testclass="ResultCollector" testname="View Results Tree" enabled="true">
- <boolProp name="ResultCollector.error_logging">false</boolProp>
- <objProp>
- <name>saveConfig</name>
- <value class="SampleSaveConfiguration">
- <time>true</time>
- <latency>true</latency>
- <timestamp>true</timestamp>
- <success>true</success>
- <label>true</label>
- <code>true</code>
- <message>true</message>
- <threadName>true</threadName>
- <dataType>true</dataType>
- <encoding>false</encoding>
- <assertions>true</assertions>
- <subresults>true</subresults>
- <responseData>false</responseData>
- <samplerData>false</samplerData>
- <xml>false</xml>
- <fieldNames>true</fieldNames>
- <responseHeaders>false</responseHeaders>
- <requestHeaders>false</requestHeaders>
- <responseDataOnError>false</responseDataOnError>
- <saveAssertionResultsFailureMessage>true</saveAssertionResultsFailureMessage>
- <assertionsResultsToSave>0</assertionsResultsToSave>
- <bytes>true</bytes>
- <sentBytes>true</sentBytes>
- <threadCounts>true</threadCounts>
- <idleTime>true</idleTime>
- <connectTime>true</connectTime>
- </value>
- </objProp>
- <stringProp name="filename"></stringProp>
- </ResultCollector>
- <hashTree/>
- <ResultCollector guiclass="TableVisualizer" testclass="ResultCollector" testname="View Results in Table" enabled="true">
- <boolProp name="ResultCollector.error_logging">false</boolProp>
- <objProp>
- <name>saveConfig</name>
- <value class="SampleSaveConfiguration">
- <time>true</time>
- <latency>true</latency>
- <timestamp>true</timestamp>
- <success>true</success>
- <label>true</label>
- <code>true</code>
- <message>true</message>
- <threadName>true</threadName>
- <dataType>true</dataType>
- <encoding>false</encoding>
- <assertions>true</assertions>
- <subresults>true</subresults>
- <responseData>false</responseData>
- <samplerData>false</samplerData>
- <xml>false</xml>
- <fieldNames>true</fieldNames>
- <responseHeaders>false</responseHeaders>
- <requestHeaders>false</requestHeaders>
- <responseDataOnError>false</responseDataOnError>
- <saveAssertionResultsFailureMessage>true</saveAssertionResultsFailureMessage>
- <assertionsResultsToSave>0</assertionsResultsToSave>
- <bytes>true</bytes>
- <sentBytes>true</sentBytes>
- <threadCounts>true</threadCounts>
- <idleTime>true</idleTime>
- <connectTime>true</connectTime>
- </value>
- </objProp>
- <stringProp name="filename"></stringProp>
- </ResultCollector>
- <hashTree/>
- </hashTree>
- </hashTree>
-</jmeterTestPlan>
diff --git a/testsuites/stability/src/main/resources/guilin/generate_performace_report.sh b/testsuites/stability/src/main/resources/generate_performance_report.sh
index f8745e179..f8745e179 100755
--- a/testsuites/stability/src/main/resources/guilin/generate_performace_report.sh
+++ b/testsuites/stability/src/main/resources/generate_performance_report.sh
diff --git a/testsuites/stability/src/main/resources/guilin/s3p.jmx b/testsuites/stability/src/main/resources/s3p.jmx
index 3ce7e8627..3ce7e8627 100644
--- a/testsuites/stability/src/main/resources/guilin/s3p.jmx
+++ b/testsuites/stability/src/main/resources/s3p.jmx