summaryrefslogtreecommitdiffstats
path: root/testsuites/stability/src
diff options
context:
space:
mode:
authora.sreekumar <ajith.sreekumar@bell.ca>2020-10-22 12:50:24 +0100
committera.sreekumar <ajith.sreekumar@bell.ca>2020-10-22 13:12:04 +0100
commitf2097279954d4fd3d1118130863a2ec1b63574e3 (patch)
treed071715c94a2a0f8db96bc8b0470d87bed71444b /testsuites/stability/src
parentc83b18418818c7c20f4a7813088f2818b00a67db (diff)
Policy-PAP S3P jmx changes
Change-Id: Ie6e57eb0a5f2174cfa934b65db8e1badaad7fe85 Issue-ID: POLICY-2830 Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
Diffstat (limited to 'testsuites/stability/src')
-rw-r--r--testsuites/stability/src/main/resources/testplans/stability.jmx543
1 files changed, 93 insertions, 450 deletions
diff --git a/testsuites/stability/src/main/resources/testplans/stability.jmx b/testsuites/stability/src/main/resources/testplans/stability.jmx
index 89fbb037..760f4cd8 100644
--- a/testsuites/stability/src/main/resources/testplans/stability.jmx
+++ b/testsuites/stability/src/main/resources/testplans/stability.jmx
@@ -5,6 +5,7 @@
================================================================================
Copyright (C) 2019 AT&T Intellectual Property. All rights reserved.
Modifications Copyright (C) 2019 - 2020 Nordix Foundation.
+ Modifications Copyright (C) 2020 Bell Canada. 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.
@@ -19,7 +20,7 @@
limitations under the License.
============LICENSE_END=========================================================
-->
-<jmeterTestPlan version="1.2" properties="5.0" jmeter="5.2.1">
+<jmeterTestPlan version="1.2" properties="5.0" jmeter="5.3">
<hashTree>
<TestPlan guiclass="TestPlanGui" testclass="TestPlan" testname="Policy PAP Stability" enabled="true">
<stringProp name="TestPlan.comments">Policy PAP Stability Tests</stringProp>
@@ -30,32 +31,22 @@
<collectionProp name="Arguments.arguments">
<elementProp name="PAP_HOST" elementType="Argument">
<stringProp name="Argument.name">PAP_HOST</stringProp>
- <stringProp name="Argument.value">10.2.0.163</stringProp>
+ <stringProp name="Argument.value">10.2.0.29</stringProp>
<stringProp name="Argument.metadata">=</stringProp>
</elementProp>
<elementProp name="PAP_PORT" elementType="Argument">
<stringProp name="Argument.name">PAP_PORT</stringProp>
- <stringProp name="Argument.value">6969</stringProp>
+ <stringProp name="Argument.value">30679</stringProp>
<stringProp name="Argument.metadata">=</stringProp>
</elementProp>
<elementProp name="API_HOST" elementType="Argument">
<stringProp name="Argument.name">API_HOST</stringProp>
- <stringProp name="Argument.value">10.2.0.135</stringProp>
+ <stringProp name="Argument.value">10.2.0.29</stringProp>
<stringProp name="Argument.metadata">=</stringProp>
</elementProp>
<elementProp name="API_PORT" elementType="Argument">
<stringProp name="Argument.name">API_PORT</stringProp>
- <stringProp name="Argument.value">6969</stringProp>
- <stringProp name="Argument.metadata">=</stringProp>
- </elementProp>
- <elementProp name="DIR" elementType="Argument">
- <stringProp name="Argument.name">DIR</stringProp>
- <stringProp name="Argument.value">/home/adityap/pap/testsuites/stability/src/main/resources/testplans/</stringProp>
- <stringProp name="Argument.metadata">=</stringProp>
- </elementProp>
- <elementProp name="CONFIG_DIR" elementType="Argument">
- <stringProp name="Argument.name">CONFIG_DIR</stringProp>
- <stringProp name="Argument.value">/home/adityap/pap/testsuites/stability/src/main/resources/simulatorsetup/</stringProp>
+ <stringProp name="Argument.value">30859</stringProp>
<stringProp name="Argument.metadata">=</stringProp>
</elementProp>
</collectionProp>
@@ -111,303 +102,6 @@
<boolProp name="ThreadGroup.same_user_on_next_iteration">true</boolProp>
</SetupThreadGroup>
<hashTree>
- <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create Policy Type" 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;policy_types&quot;: {&#xd;
- &quot;onap.policies.controlloop.operational.Apex&quot;: {&#xd;
- &quot;version&quot;: &quot;1.0.0&quot;,&#xd;
- &quot;description&quot;: &quot;Operational Policy for Control Loops using the APEX PDP&quot;,&#xd;
- &quot;properties&quot;: {&#xd;
- &quot;engine_service&quot;: {&#xd;
- &quot;type&quot;: &quot;onap.datatypes.policies.controlloop.operational.apex.EngineService&quot;,&#xd;
- &quot;description&quot;: &quot;APEX Engine Service Parameters&quot;&#xd;
- },&#xd;
- &quot;inputs&quot;: {&#xd;
- &quot;type&quot;: &quot;map&quot;,&#xd;
- &quot;description&quot;: &quot;Inputs for handling events coming into the APEX engine&quot;,&#xd;
- &quot;entry_schema&quot;: {&#xd;
- &quot;type&quot;: &quot;onap.datatypes.policies.controlloop.operational.apex.EventHandler&quot;&#xd;
- }&#xd;
- },&#xd;
- &quot;outputs&quot;: {&#xd;
- &quot;type&quot;: &quot;map&quot;,&#xd;
- &quot;description&quot;: &quot;Outputs for handling events going out of the APEX engine&quot;,&#xd;
- &quot;entry_schema&quot;: {&#xd;
- &quot;type&quot;: &quot;onap.datatypes.policies.controlloop.operational.apex.EventHandler&quot;&#xd;
- }&#xd;
- },&#xd;
- &quot;environment&quot;: {&#xd;
- &quot;type&quot;: &quot;list&quot;,&#xd;
- &quot;description&quot;: &quot;Envioronmental parameters for the APEX engine&quot;,&#xd;
- &quot;entry_schema&quot;: {&#xd;
- &quot;type&quot;: &quot;onap.datatypes.policies.controlloop.operational.apex.Environment&quot;&#xd;
- }&#xd;
- }&#xd;
- }&#xd;
- }&#xd;
- },&#xd;
- &quot;data_types&quot;: {&#xd;
- &quot;onap.datatypes.policies.controlloop.operational.apex.EngineService&quot;: {&#xd;
- &quot;derived_from&quot;: &quot;tosca.datatypes.Root&quot;,&#xd;
- &quot;properties&quot;: {&#xd;
- &quot;name&quot;: {&#xd;
- &quot;type&quot;: &quot;string&quot;,&#xd;
- &quot;description&quot;: &quot;Specifies the engine name&quot;,&#xd;
- &quot;required&quot;: false,&#xd;
- &quot;default&quot;: &quot;ApexEngineService&quot;&#xd;
- },&#xd;
- &quot;version&quot;: {&#xd;
- &quot;type&quot;: &quot;string&quot;,&#xd;
- &quot;description&quot;: &quot;Specifies the engine version in double dotted format&quot;,&#xd;
- &quot;required&quot;: false,&#xd;
- &quot;default&quot;: &quot;1.0.0&quot;&#xd;
- },&#xd;
- &quot;id&quot;: {&#xd;
- &quot;type&quot;: &quot;integer&quot;,&#xd;
- &quot;description&quot;: &quot;Specifies the engine id&quot;,&#xd;
- &quot;required&quot;: true&#xd;
- },&#xd;
- &quot;instance_count&quot;: {&#xd;
- &quot;type&quot;: &quot;integer&quot;,&#xd;
- &quot;description&quot;: &quot;Specifies the number of engine threads that should be run&quot;,&#xd;
- &quot;required&quot;: true&#xd;
- },&#xd;
- &quot;deployment_port&quot;: {&#xd;
- &quot;type&quot;: &quot;integer&quot;,&#xd;
- &quot;description&quot;: &quot;Specifies the port to connect to for engine administration&quot;,&#xd;
- &quot;required&quot;: false,&#xd;
- &quot;default&quot;: 1&#xd;
- },&#xd;
- &quot;policy_model_file_name&quot;: {&#xd;
- &quot;type&quot;: &quot;string&quot;,&#xd;
- &quot;description&quot;: &quot;The name of the file from which to read the APEX policy model&quot;,&#xd;
- &quot;required&quot;: false&#xd;
- },&#xd;
- &quot;policy_type_impl&quot;: {&#xd;
- &quot;type&quot;: &quot;string&quot;,&#xd;
- &quot;description&quot;: &quot;The policy type implementation from which to read the APEX policy model&quot;,&#xd;
- &quot;required&quot;: false&#xd;
- },&#xd;
- &quot;periodic_event_period&quot;: {&#xd;
- &quot;type&quot;: &quot;string&quot;,&#xd;
- &quot;description&quot;: &quot;The time interval in milliseconds for the periodic scanning event, 0 means \&quot;don&apos;t scan\&quot;&quot;,&#xd;
- &quot;required&quot;: false,&#xd;
- &quot;default&quot;: 0&#xd;
- },&#xd;
- &quot;engine&quot;: {&#xd;
- &quot;type&quot;: &quot;onap.datatypes.policies.controlloop.operational.apex.engineservice.Engine&quot;,&#xd;
- &quot;description&quot;: &quot;The parameters for all engines in the APEX engine service&quot;,&#xd;
- &quot;required&quot;: true&#xd;
- }&#xd;
- }&#xd;
- },&#xd;
- &quot;onap.datatypes.policies.controlloop.operational.apex.EventHandler&quot;: {&#xd;
- &quot;derived_from&quot;: &quot;tosca.datatypes.Root&quot;,&#xd;
- &quot;properties&quot;: {&#xd;
- &quot;name&quot;: {&#xd;
- &quot;type&quot;: &quot;string&quot;,&#xd;
- &quot;description&quot;: &quot;Specifies the event handler name, if not specified this is set to the key name&quot;,&#xd;
- &quot;required&quot;: false&#xd;
- },&#xd;
- &quot;carrier_technology&quot;: {&#xd;
- &quot;type&quot;: &quot;onap.datatypes.policies.controlloop.operational.apex.CarrierTechnology&quot;,&#xd;
- &quot;description&quot;: &quot;Specifies the carrier technology of the event handler (such as REST/Web Socket/Kafka)&quot;,&#xd;
- &quot;required&quot;: true&#xd;
- },&#xd;
- &quot;event_protocol&quot;: {&#xd;
- &quot;type&quot;: &quot;onap.datatypes.policies.controlloop.operational.apex.EventProtocol&quot;,&#xd;
- &quot;description&quot;: &quot;Specifies the event protocol of events for the event handler (such as Yaml/JSON/XML/POJO)&quot;,&#xd;
- &quot;required&quot;: true&#xd;
- },&#xd;
- &quot;event_name&quot;: {&#xd;
- &quot;type&quot;: &quot;string&quot;,&#xd;
- &quot;description&quot;: &quot;Specifies the event name for events on this event handler, if not specified, the event name is read from or written to the event being received or sent&quot;,&#xd;
- &quot;required&quot;: false&#xd;
- },&#xd;
- &quot;event_name_filter&quot;: {&#xd;
- &quot;type&quot;: &quot;string&quot;,&#xd;
- &quot;description&quot;: &quot;Specifies a filter as a regular expression, events that do not match the filter are dropped, the default is to let all events through&quot;,&#xd;
- &quot;required&quot;: false&#xd;
- },&#xd;
- &quot;synchronous_mode&quot;: {&#xd;
- &quot;type&quot;: &quot;boolean&quot;,&#xd;
- &quot;description&quot;: &quot;Specifies the event handler is syncronous (receive event and send response)&quot;,&#xd;
- &quot;required&quot;: false,&#xd;
- &quot;default&quot;: false&#xd;
- },&#xd;
- &quot;synchronous_peer&quot;: {&#xd;
- &quot;type&quot;: &quot;string&quot;,&#xd;
- &quot;description&quot;: &quot;The peer event handler (output for input or input for output) of this event handler in synchronous mode, this parameter is mandatory if the event handler is in synchronous mode&quot;,&#xd;
- &quot;required&quot;: false&#xd;
- },&#xd;
- &quot;synchronous_timeout&quot;: {&#xd;
- &quot;type&quot;: &quot;integer&quot;,&#xd;
- &quot;description&quot;: &quot;The timeout in milliseconds for responses to be issued by APEX torequests, this parameter is mandatory if the event handler is in synchronous mode&quot;,&#xd;
- &quot;required&quot;: false&#xd;
- },&#xd;
- &quot;requestor_mode&quot;: {&#xd;
- &quot;type&quot;: &quot;boolean&quot;,&#xd;
- &quot;description&quot;: &quot;Specifies the event handler is in requestor mode (send event and wait for response mode)&quot;,&#xd;
- &quot;required&quot;: false,&#xd;
- &quot;default&quot;: false&#xd;
- },&#xd;
- &quot;requestor_peer&quot;: {&#xd;
- &quot;type&quot;: &quot;string&quot;,&#xd;
- &quot;description&quot;: &quot;The peer event handler (output for input or input for output) of this event handler in requestor mode, this parameter is mandatory if the event handler is in requestor mode&quot;,&#xd;
- &quot;required&quot;: false&#xd;
- },&#xd;
- &quot;requestor_timeout&quot;: {&#xd;
- &quot;type&quot;: &quot;integer&quot;,&#xd;
- &quot;description&quot;: &quot;The timeout in milliseconds for wait for responses to requests, this parameter is mandatory if the event handler is in requestor mode&quot;,&#xd;
- &quot;required&quot;: false&#xd;
- }&#xd;
- }&#xd;
- },&#xd;
- &quot;onap.datatypes.policies.controlloop.operational.apex.CarrierTechnology&quot;: {&#xd;
- &quot;derived_from&quot;: &quot;tosca.datatypes.Root&quot;,&#xd;
- &quot;properties&quot;: {&#xd;
- &quot;label&quot;: {&#xd;
- &quot;type&quot;: &quot;string&quot;,&#xd;
- &quot;description&quot;: &quot;The label (name) of the carrier technology (such as REST, Kafka, WebSocket)&quot;,&#xd;
- &quot;required&quot;: true&#xd;
- },&#xd;
- &quot;plugin_parameter_class_name&quot;: {&#xd;
- &quot;type&quot;: &quot;string&quot;,&#xd;
- &quot;description&quot;: &quot;The class name of the class that overrides default handling of event input or output for this carrier technology, defaults to the supplied input or output class&quot;,&#xd;
- &quot;required&quot;: false&#xd;
- }&#xd;
- }&#xd;
- },&#xd;
- &quot;onap.datatypes.policies.controlloop.operational.apex.EventProtocol&quot;: {&#xd;
- &quot;derived_from&quot;: &quot;tosca.datatypes.Root&quot;,&#xd;
- &quot;properties&quot;: {&#xd;
- &quot;label&quot;: {&#xd;
- &quot;type&quot;: &quot;string&quot;,&#xd;
- &quot;description&quot;: &quot;The label (name) of the event protocol (such as Yaml, JSON, XML, or POJO)&quot;,&#xd;
- &quot;required&quot;: true&#xd;
- },&#xd;
- &quot;event_protocol_plugin_class&quot;: {&#xd;
- &quot;type&quot;: &quot;string&quot;,&#xd;
- &quot;description&quot;: &quot;The class name of the class that overrides default handling of the event protocol for this carrier technology, defaults to the supplied event protocol class&quot;,&#xd;
- &quot;required&quot;: false&#xd;
- }&#xd;
- }&#xd;
- },&#xd;
- &quot;onap.datatypes.policies.controlloop.operational.apex.Environment&quot;: {&#xd;
- &quot;derived_from&quot;: &quot;tosca.datatypes.Root&quot;,&#xd;
- &quot;properties&quot;: {&#xd;
- &quot;name&quot;: {&#xd;
- &quot;type&quot;: &quot;string&quot;,&#xd;
- &quot;description&quot;: &quot;The name of the environment variable&quot;,&#xd;
- &quot;required&quot;: true&#xd;
- },&#xd;
- &quot;value&quot;: {&#xd;
- &quot;type&quot;: &quot;string&quot;,&#xd;
- &quot;description&quot;: &quot;The value of the environment variable&quot;,&#xd;
- &quot;required&quot;: true&#xd;
- }&#xd;
- }&#xd;
- },&#xd;
- &quot;onap.datatypes.policies.controlloop.operational.apex.engineservice.Engine&quot;: {&#xd;
- &quot;derived_from&quot;: &quot;tosca.datatypes.Root&quot;,&#xd;
- &quot;properties&quot;: {&#xd;
- &quot;context&quot;: {&#xd;
- &quot;type&quot;: &quot;onap.datatypes.policies.controlloop.operational.apex.engineservice.engine.Context&quot;,&#xd;
- &quot;description&quot;: &quot;The properties for handling context in APEX engines, defaults to using Java maps for context&quot;,&#xd;
- &quot;required&quot;: false&#xd;
- },&#xd;
- &quot;executors&quot;: {&#xd;
- &quot;type&quot;: &quot;map&quot;,&#xd;
- &quot;description&quot;: &quot;The plugins for policy executors used in engines such as javascript, MVEL, Jython&quot;,&#xd;
- &quot;required&quot;: true,&#xd;
- &quot;entry_schema&quot;: {&#xd;
- &quot;description&quot;: &quot;The plugin class path for this policy executor&quot;,&#xd;
- &quot;type&quot;: &quot;string&quot;&#xd;
- }&#xd;
- }&#xd;
- }&#xd;
- },&#xd;
- &quot;onap.datatypes.policies.controlloop.operational.apex.engineservice.engine.Context&quot;: {&#xd;
- &quot;derived_from&quot;: &quot;tosca.datatypes.Root&quot;,&#xd;
- &quot;properties&quot;: {&#xd;
- &quot;distributor&quot;: {&#xd;
- &quot;type&quot;: &quot;onap.datatypes.policies.controlloop.operational.apex.Plugin&quot;,&#xd;
- &quot;description&quot;: &quot;The plugin to be used for distributing context between APEX PDPs at runtime&quot;,&#xd;
- &quot;required&quot;: false&#xd;
- },&#xd;
- &quot;schemas&quot;: {&#xd;
- &quot;type&quot;: &quot;map&quot;,&#xd;
- &quot;description&quot;: &quot;The plugins for context schemas available in APEX PDPs such as Java and Avro&quot;,&#xd;
- &quot;required&quot;: false,&#xd;
- &quot;entry_schema&quot;: {&#xd;
- &quot;type&quot;: &quot;onap.datatypes.policies.controlloop.operational.apex.Plugin&quot;&#xd;
- }&#xd;
- },&#xd;
- &quot;locking&quot;: {&#xd;
- &quot;type&quot;: &quot;onap.datatypes.policies.controlloop.operational.apex.Plugin&quot;,&#xd;
- &quot;description&quot;: &quot;The plugin to be used for locking context in and between APEX PDPs at runtime&quot;,&#xd;
- &quot;required&quot;: false&#xd;
- },&#xd;
- &quot;persistence&quot;: {&#xd;
- &quot;type&quot;: &quot;onap.datatypes.policies.controlloop.operational.apex.Plugin&quot;,&#xd;
- &quot;description&quot;: &quot;The plugin to be used for persisting context for APEX PDPs at runtime&quot;,&#xd;
- &quot;required&quot;: false&#xd;
- }&#xd;
- }&#xd;
- },&#xd;
- &quot;onap.datatypes.policies.controlloop.operational.apex.Plugin&quot;: {&#xd;
- &quot;derived_from&quot;: &quot;tosca.datatypes.Root&quot;,&#xd;
- &quot;properties&quot;: {&#xd;
- &quot;name&quot;: {&#xd;
- &quot;type&quot;: &quot;string&quot;,&#xd;
- &quot;description&quot;: &quot;The name of the executor such as Javascript, Jython or MVEL&quot;,&#xd;
- &quot;required&quot;: true&#xd;
- },&#xd;
- &quot;plugin_class_name&quot;: {&#xd;
- &quot;type&quot;: &quot;string&quot;,&#xd;
- &quot;description&quot;: &quot;The class path of the plugin class for this executor&quot;&#xd;
- }&#xd;
- }&#xd;
- }&#xd;
- }&#xd;
-}&#xd;
-</stringProp>
- <stringProp name="Argument.metadata">=</stringProp>
- </elementProp>
- </collectionProp>
- </elementProp>
- <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
- <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
- <stringProp name="HTTPSampler.protocol">https</stringProp>
- <stringProp name="HTTPSampler.contentEncoding"></stringProp>
- <stringProp name="HTTPSampler.path">policy/api/v1/policytypes</stringProp>
- <stringProp name="HTTPSampler.method">POST</stringProp>
- <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
- <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
- <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
- <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
- <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
- <stringProp name="HTTPSampler.connect_timeout"></stringProp>
- <stringProp name="HTTPSampler.response_timeout"></stringProp>
- </HTTPSamplerProxy>
- <hashTree>
- <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
- <collectionProp name="Asserion.test_strings">
- <stringProp name="49586">200</stringProp>
- </collectionProp>
- <stringProp name="Assertion.custom_message"></stringProp>
- <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
- <boolProp name="Assertion.assume_success">false</boolProp>
- <intProp name="Assertion.test_type">1</intProp>
- </ResponseAssertion>
- <hashTree/>
- </hashTree>
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create Policy" enabled="true">
<boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
<elementProp name="HTTPsampler.Arguments" elementType="Arguments">
@@ -420,7 +114,7 @@
&quot;policies&quot;: [&#xd;
{&#xd;
&quot;operational.apex.stabilityTestDefaultDomain&quot;: {&#xd;
- &quot;type&quot;: &quot;onap.policies.controlloop.operational.Apex&quot;,&#xd;
+ &quot;type&quot;: &quot;onap.policies.controlloop.operational.common.Apex&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;
@@ -7862,7 +7556,7 @@
<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.Apex/versions/1.0.0/policies</stringProp>
+ <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.controlloop.operational.common.Apex/versions/1.0.0/policies</stringProp>
<stringProp name="HTTPSampler.method">POST</stringProp>
<boolProp name="HTTPSampler.follow_redirects">true</boolProp>
<boolProp name="HTTPSampler.auto_redirects">false</boolProp>
@@ -7896,7 +7590,7 @@
&quot;policies&quot;: [&#xd;
{&#xd;
&quot;operational.apex.stabilityTestSampleDomain&quot;: {&#xd;
- &quot;type&quot;: &quot;onap.policies.controlloop.operational.Apex&quot;,&#xd;
+ &quot;type&quot;: &quot;onap.policies.controlloop.operational.common.Apex&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;
@@ -15338,7 +15032,7 @@
<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.Apex/versions/1.0.0/policies</stringProp>
+ <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.controlloop.operational.common.Apex/versions/1.0.0/policies</stringProp>
<stringProp name="HTTPSampler.method">POST</stringProp>
<boolProp name="HTTPSampler.follow_redirects">true</boolProp>
<boolProp name="HTTPSampler.auto_redirects">false</boolProp>
@@ -15369,7 +15063,7 @@
</elementProp>
<stringProp name="ThreadGroup.num_threads">1</stringProp>
<stringProp name="ThreadGroup.ramp_time">1</stringProp>
- <boolProp name="ThreadGroup.scheduler">true</boolProp>
+ <boolProp name="ThreadGroup.scheduler">false</boolProp>
<stringProp name="ThreadGroup.duration">600</stringProp>
<stringProp name="ThreadGroup.delay"></stringProp>
<boolProp name="ThreadGroup.same_user_on_next_iteration">true</boolProp>
@@ -15547,7 +15241,6 @@ if (prev.getResponseCode() == &apos;200&apos;) {
<stringProp name="filename"></stringProp>
<stringProp name="cacheKey">true</stringProp>
<stringProp name="script">import groovy.json.JsonSlurper;
-
def res = [];
if (prev.getResponseCode() == &apos;200&apos;) {
def jsonSlurper = new JsonSlurper();
@@ -15620,11 +15313,11 @@ if (prev.getResponseCode() == &apos;200&apos;) {
&quot;pdpSubgroups&quot;: [&#xd;
{&#xd;
&quot;pdpType&quot;: &quot;apex&quot;,&#xd;
- &quot;desiredInstanceCount&quot;: 2,&#xd;
+ &quot;desiredInstanceCount&quot;: 1,&#xd;
&quot;properties&quot;: {},&#xd;
&quot;supportedPolicyTypes&quot;: [&#xd;
{&#xd;
- &quot;name&quot;: &quot;onap.policies.controlloop.operational.Apex&quot;,&#xd;
+ &quot;name&quot;: &quot;onap.policies.controlloop.operational.common.Apex&quot;,&#xd;
&quot;version&quot;: &quot;1.0.0&quot;&#xd;
}&#xd;
],&#xd;
@@ -15665,30 +15358,6 @@ if (prev.getResponseCode() == &apos;200&apos;) {
</ResponseAssertion>
<hashTree/>
</hashTree>
- <SystemSampler guiclass="SystemSamplerGui" testclass="SystemSampler" testname="OS Process Sampler" enabled="true">
- <boolProp name="SystemSampler.checkReturnCode">false</boolProp>
- <stringProp name="SystemSampler.expectedReturnCode">0</stringProp>
- <stringProp name="SystemSampler.command">${DIR}pdp_sim_startup.sh</stringProp>
- <elementProp name="SystemSampler.arguments" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
- <collectionProp name="Arguments.arguments">
- <elementProp name="" elementType="Argument">
- <stringProp name="Argument.name"></stringProp>
- <stringProp name="Argument.value">${CONFIG_DIR}</stringProp>
- <stringProp name="Argument.metadata">=</stringProp>
- </elementProp>
- </collectionProp>
- </elementProp>
- <elementProp name="SystemSampler.environment" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
- <collectionProp name="Arguments.arguments"/>
- </elementProp>
- <stringProp name="SystemSampler.directory">${DIR}</stringProp>
- </SystemSampler>
- <hashTree>
- <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="Constant Timer" enabled="true">
- <stringProp name="ConstantTimer.delay">5000</stringProp>
- </ConstantTimer>
- <hashTree/>
- </hashTree>
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Check PdpGroup Query" enabled="true">
<elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
<collectionProp name="Arguments.arguments"/>
@@ -15733,34 +15402,33 @@ if (prev.getResponseCode() == &apos;200&apos;) {
assert res instanceof Map;
assert res.groups.size == 2;
-
- for(int groupSize=0;groupSize&lt;res.groups.size;groupSize++){
-
-
- for(int subGrpSize=0;subGrpSize&lt;res.groups.pdpSubgroups.size;subGrpSize++){
- def pdpSubGrp=res.groups[0].pdpSubgroups;
-
- for(int supportedPolicyTypesSize=0;supportedPolicyTypesSize&lt;pdpSubGrp[subGrpSize].supportedPolicyTypes.size;supportedPolicyTypesSize++){
-
- if(pdpSubGrp[subGrpSize].supportedPolicyTypes[supportedPolicyTypesSize].name ==&apos;onap.policies.controlloop.operational.Apex&apos;){
+ for(int groupSize=0;groupSize&lt;res.groups.size;groupSize++){
- assert pdpSubGrp[subGrpSize].pdpInstances.size &gt; 0;
- if (res.groups[0].name == &apos;defaultGroup&apos;)
- assert pdpSubGrp[subGrpSize].policies[0].name == &apos;operational.apex.stabilityTestDefaultDomain&apos;;
- }else if(res.groups[0].name == &apos;sampleGroup&apos; ){
- assert pdpSubGrp[subGrpSize].policies.size == 0;
-
+ for(int subGrpSize=0;subGrpSize&lt;res.groups[groupSize].pdpSubgroups.size;subGrpSize++){
+
+ def pdpSubGrp=res.groups[groupSize].pdpSubgroups[subGrpSize];
+ for(int supportedPolicyTypesSize=0;supportedPolicyTypesSize&lt;pdpSubGrp.supportedPolicyTypes.size;supportedPolicyTypesSize++){
+ if(pdpSubGrp.supportedPolicyTypes[supportedPolicyTypesSize].name ==&apos;onap.policies.controlloop.operational.common.Apex&apos;){
+ assert pdpSubGrp.pdpInstances.size &gt; 0;
+ if (res.groups[groupSize].name == &apos;defaultGroup&apos;) {
+ assert pdpSubGrp.policies[0].name == &apos;operational.apex.stabilityTestDefaultDomain&apos;;
+ }
+ else if(res.groups[groupSize].name == &apos;sampleGroup&apos; ){
+ assert pdpSubGrp.policies.size == 0;
+ }
}
-
}
}
-
}
}
</stringProp>
</JSR223Assertion>
<hashTree/>
+ <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="Constant Timer" enabled="true">
+ <stringProp name="ConstantTimer.delay">120000</stringProp>
+ </ConstantTimer>
+ <hashTree/>
</hashTree>
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Deployment Update sampleDomain" enabled="true">
<boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
@@ -15817,10 +15485,6 @@ if (prev.getResponseCode() == &apos;200&apos;) {
</ResponseAssertion>
<hashTree/>
</hashTree>
- <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="Constant Timer" enabled="true">
- <stringProp name="ConstantTimer.delay">500</stringProp>
- </ConstantTimer>
- <hashTree/>
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Check PdpGroup Query" enabled="true">
<elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
<collectionProp name="Arguments.arguments"/>
@@ -15865,31 +15529,76 @@ if (prev.getResponseCode() == &apos;200&apos;) {
assert res instanceof Map;
assert res.groups.size == 2;
- for(int groupSize=0;groupSize&lt;res.groups.size;groupSize++){
- for(int subGrpSize=0;subGrpSize&lt;res.groups.pdpSubgroups.size;subGrpSize++){
+ for(int groupSize=0;groupSize&lt;res.groups.size;groupSize++){
- def pdpSubGrp=res.groups[0].pdpSubgroups;
-
- for(int supportedPolicyTypesSize=0;supportedPolicyTypesSize&lt;pdpSubGrp[subGrpSize].supportedPolicyTypes.size;supportedPolicyTypesSize++){
-
- if(pdpSubGrp[subGrpSize].supportedPolicyTypes[supportedPolicyTypesSize].name ==&apos;onap.policies.controlloop.operational.Apex&apos;){
+ for(int subGrpSize=0;subGrpSize&lt;res.groups[groupSize].pdpSubgroups.size;subGrpSize++){
- if (res.groups[0].name == &apos;defaultGroup&apos;)
- assert pdpSubGrp[subGrpSize].policies[0].name == &apos;operational.apex.stabilityTestDefaultDomain&apos;;
- }else if(res.groups[0].name == &apos;sampleGroup&apos; ){
- assert pdpSubGrp[subGrpSize].policies[0].name == &apos;operational.apex.stabilityTestSampleDomain&apos;;
+ def pdpSubGrp=res.groups[groupSize].pdpSubgroups[subGrpSize];
+ for(int supportedPolicyTypesSize=0;supportedPolicyTypesSize&lt;pdpSubGrp.supportedPolicyTypes.size;supportedPolicyTypesSize++){
+ if(pdpSubGrp.supportedPolicyTypes[supportedPolicyTypesSize].name ==&apos;onap.policies.controlloop.operational.common.Apex&apos;){
+ if (res.groups[groupSize].name == &apos;defaultGroup&apos;) {
+ assert pdpSubGrp.policies[0].name == &apos;operational.apex.stabilityTestDefaultDomain&apos;;
+ }else if(res.groups[groupSize].name == &apos;sampleGroup&apos; ){
+ assert pdpSubGrp.policies[0].name == &apos;operational.apex.stabilityTestSampleDomain&apos;;
}
-
+ }
}
}
-
}
}
</stringProp>
</JSR223Assertion>
<hashTree/>
</hashTree>
+ <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Check Consolidated Health" 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/components/healthcheck</stringProp>
+ <stringProp name="HTTPSampler.method">GET</stringProp>
+ <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
+ <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
+ <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
+ <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>
+ <stringProp name="TestPlan.comments">Consolidated Health Check</stringProp>
+ </HTTPSamplerProxy>
+ <hashTree>
+ <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
+ <collectionProp name="Asserion.test_strings">
+ <stringProp name="49586">200</stringProp>
+ </collectionProp>
+ <stringProp name="Assertion.custom_message"></stringProp>
+ <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
+ <boolProp name="Assertion.assume_success">false</boolProp>
+ <intProp name="Assertion.test_type">1</intProp>
+ </ResponseAssertion>
+ <hashTree/>
+ <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
+ <stringProp name="scriptLanguage">groovy</stringProp>
+ <stringProp name="parameters"></stringProp>
+ <stringProp name="filename"></stringProp>
+ <stringProp name="cacheKey">true</stringProp>
+ <stringProp name="script">import groovy.json.JsonSlurper;
+
+def res = [];
+if (prev.getResponseCode() == &apos;200&apos;) {
+ def jsonSlurper = new JsonSlurper();
+ res = jsonSlurper.parseText(prev.getResponseDataAsString());
+ assert res instanceof Map;
+ assert res.healthy==true;
+}
+</stringProp>
+ </JSR223Assertion>
+ <hashTree/>
+ </hashTree>
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Check Deployed Policies" enabled="true">
<elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
<collectionProp name="Arguments.arguments"/>
@@ -15938,23 +15647,6 @@ if (prev.getResponseCode() == &apos;200&apos;) {
</JSR223Assertion>
<hashTree/>
</hashTree>
- <SystemSampler guiclass="SystemSamplerGui" testclass="SystemSampler" testname="OS Process Sampler" enabled="true">
- <boolProp name="SystemSampler.checkReturnCode">false</boolProp>
- <stringProp name="SystemSampler.expectedReturnCode">0</stringProp>
- <stringProp name="SystemSampler.command">${DIR}pdp_sim_stop.sh</stringProp>
- <elementProp name="SystemSampler.arguments" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
- <collectionProp name="Arguments.arguments"/>
- </elementProp>
- <elementProp name="SystemSampler.environment" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
- <collectionProp name="Arguments.arguments"/>
- </elementProp>
- <stringProp name="SystemSampler.directory">${DIR}</stringProp>
- </SystemSampler>
- <hashTree/>
- <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="Constant Timer" enabled="true">
- <stringProp name="ConstantTimer.delay">500</stringProp>
- </ConstantTimer>
- <hashTree/>
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Undeploy Policy sampleDomain" enabled="true">
<boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
<elementProp name="HTTPsampler.Arguments" elementType="Arguments">
@@ -16100,25 +15792,6 @@ if (prev.getResponseCode() == &apos;200&apos;) {
<intProp name="Assertion.test_type">1</intProp>
</ResponseAssertion>
<hashTree/>
- <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="false">
- <stringProp name="scriptLanguage">groovy</stringProp>
- <stringProp name="parameters"></stringProp>
- <stringProp name="filename"></stringProp>
- <stringProp name="cacheKey">true</stringProp>
- <stringProp name="script">import groovy.json.JsonSlurper;
-
-def res = [];
-if (prev.getResponseCode() == &apos;200&apos;) {
- def jsonSlurper = new JsonSlurper();
- res = jsonSlurper.parseText(prev.getResponseDataAsString());
-
- assert res instanceof Map;
- assert res.groups.size &gt; 0;
- assert res.groups[0].pdpGroupState== &apos;PASSIVE&apos;;
-}
-</stringProp>
- </JSR223Assertion>
- <hashTree/>
</hashTree>
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Change State to PASSIVE(defaultGroup)" enabled="true">
<elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
@@ -16254,7 +15927,7 @@ if (prev.getResponseCode() == &apos;200&apos;) {
<stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
<stringProp name="HTTPSampler.protocol">https</stringProp>
<stringProp name="HTTPSampler.contentEncoding"></stringProp>
- <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.controlloop.operational.Apex/versions/1.0.0/policies/operational.apex.stabilityTestDefaultDomain/versions/1.0.0</stringProp>
+ <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.controlloop.operational.common.Apex/versions/1.0.0/policies/operational.apex.stabilityTestDefaultDomain/versions/1.0.0</stringProp>
<stringProp name="HTTPSampler.method">DELETE</stringProp>
<boolProp name="HTTPSampler.follow_redirects">true</boolProp>
<boolProp name="HTTPSampler.auto_redirects">false</boolProp>
@@ -16284,37 +15957,7 @@ if (prev.getResponseCode() == &apos;200&apos;) {
<stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
<stringProp name="HTTPSampler.protocol">https</stringProp>
<stringProp name="HTTPSampler.contentEncoding"></stringProp>
- <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.controlloop.operational.Apex/versions/1.0.0/policies/operational.apex.stabilityTestSampleDomain/versions/1.0.0</stringProp>
- <stringProp name="HTTPSampler.method">DELETE</stringProp>
- <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
- <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
- <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
- <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
- <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
- <stringProp name="HTTPSampler.connect_timeout"></stringProp>
- <stringProp name="HTTPSampler.response_timeout"></stringProp>
- </HTTPSamplerProxy>
- <hashTree>
- <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
- <collectionProp name="Asserion.test_strings">
- <stringProp name="49586">200</stringProp>
- </collectionProp>
- <stringProp name="Assertion.custom_message"></stringProp>
- <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
- <boolProp name="Assertion.assume_success">false</boolProp>
- <intProp name="Assertion.test_type">1</intProp>
- </ResponseAssertion>
- <hashTree/>
- </hashTree>
- <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete Policy Type" enabled="true">
- <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
- <collectionProp name="Arguments.arguments"/>
- </elementProp>
- <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.Apex/versions/1.0.0</stringProp>
+ <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.controlloop.operational.common.Apex/versions/1.0.0/policies/operational.apex.stabilityTestSampleDomain/versions/1.0.0</stringProp>
<stringProp name="HTTPSampler.method">DELETE</stringProp>
<boolProp name="HTTPSampler.follow_redirects">true</boolProp>
<boolProp name="HTTPSampler.auto_redirects">false</boolProp>
@@ -16371,7 +16014,7 @@ if (prev.getResponseCode() == &apos;200&apos;) {
<connectTime>true</connectTime>
</value>
</objProp>
- <stringProp name="filename">/home/adityap/pap_stability/summary.log</stringProp>
+ <stringProp name="filename">/home/ubuntu/pap_stability/summary.log</stringProp>
</ResultCollector>
<hashTree/>
<ResultCollector guiclass="ViewResultsFullVisualizer" testclass="ResultCollector" testname="View Results Tree" enabled="true">
@@ -16408,7 +16051,7 @@ if (prev.getResponseCode() == &apos;200&apos;) {
<connectTime>true</connectTime>
</value>
</objProp>
- <stringProp name="filename">/home/adityap/pap_stability/resultTable.log</stringProp>
+ <stringProp name="filename">/home/ubuntu/pap_stability/resultTree.log</stringProp>
</ResultCollector>
<hashTree/>
<ResultCollector guiclass="TableVisualizer" testclass="ResultCollector" testname="View Results in Table" enabled="true">
@@ -16445,7 +16088,7 @@ if (prev.getResponseCode() == &apos;200&apos;) {
<connectTime>true</connectTime>
</value>
</objProp>
- <stringProp name="filename">/home/adityap/pap_stability/resultTree.log</stringProp>
+ <stringProp name="filename">/home/ubuntu/pap_stability/resultTable.log</stringProp>
</ResultCollector>
<hashTree/>
</hashTree>