From 78c6f58b317633acfb934ec3bc0e2f3b511bf309 Mon Sep 17 00:00:00 2001 From: ramverma Date: Tue, 23 Oct 2018 16:58:34 +0100 Subject: Adding stability test plan of apex-pdp Change-Id: I41e1237c350b9cceca2b80db3fc9dcccf1173a66 Issue-ID: POLICY-817 Signed-off-by: ramverma --- testsuites/apex-pdp-stability/pom.xml | 59 +++++ .../apex-pdp-stability/src/assembly/assembly.xml | 41 ++++ .../main/resources/apexPdpStabilityTestPlan.jmx | 262 +++++++++++++++++++++ testsuites/pom.xml | 1 + 4 files changed, 363 insertions(+) create mode 100644 testsuites/apex-pdp-stability/pom.xml create mode 100644 testsuites/apex-pdp-stability/src/assembly/assembly.xml create mode 100644 testsuites/apex-pdp-stability/src/main/resources/apexPdpStabilityTestPlan.jmx diff --git a/testsuites/apex-pdp-stability/pom.xml b/testsuites/apex-pdp-stability/pom.xml new file mode 100644 index 000000000..887827a66 --- /dev/null +++ b/testsuites/apex-pdp-stability/pom.xml @@ -0,0 +1,59 @@ + + + + 4.0.0 + + org.onap.policy.apex-pdp.testsuites + testsuites + 2.0.0-SNAPSHOT + + + org.onap.policy.apex-pdp.testsuites.stability + apex-pdp-stability + + ${project.artifactId} + This module contains test plan for running stability test of apex-pdp + + + + + org.apache.maven.plugins + maven-assembly-plugin + + + create-distribution + package + + single + + + + src/assembly/assembly.xml + + + + + + + + + \ No newline at end of file diff --git a/testsuites/apex-pdp-stability/src/assembly/assembly.xml b/testsuites/apex-pdp-stability/src/assembly/assembly.xml new file mode 100644 index 000000000..471a674a2 --- /dev/null +++ b/testsuites/apex-pdp-stability/src/assembly/assembly.xml @@ -0,0 +1,41 @@ + + + + stability + + zip + + /apex-pdp/testsuites/apex-pdp-stability + + + ${project.basedir}/src/main/resources/ + + *.jmx + + unix + 0644 + true + + + diff --git a/testsuites/apex-pdp-stability/src/main/resources/apexPdpStabilityTestPlan.jmx b/testsuites/apex-pdp-stability/src/main/resources/apexPdpStabilityTestPlan.jmx new file mode 100644 index 000000000..1ba0976de --- /dev/null +++ b/testsuites/apex-pdp-stability/src/main/resources/apexPdpStabilityTestPlan.jmx @@ -0,0 +1,262 @@ + + + + + + false + true + true + + + + + + + + + + Content-Type + application/json + + + Accept + application/json + + + + + + + + + + 23324 + http + + + 6 + + + + + + + + threads + 10 + = + + + threadsTimeOutInMs + 5000 + = + + + wait + 500 + Wait time between requests to apex-pdp + = + + + + + + stoptest + + false + -1 + + ${threads} + 1 + false + + + + + + + + ${threads} + ${threadsTimeOutInMs} + + + + true + + + + false + { + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "REST_0", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 3, + "TestTimestamp": 1536363522018, + "TestTemperature": 9080.866 +} + + = + + + + + + + + /apex/FirstConsumer/EventIn + PUT + true + false + true + false + + + + Send input event to apex-pdp + + + + + 200 + + + Assertion.response_code + false + 8 + Response code + Assert response code coming back from apex-pdp + + + + + "nameSpace": "org.onap.policy.apex.sample.events" + + + Assertion.response_data + false + 2 + Response code + Assert response message coming back from apex-pdp + + + + ${wait} + + + + + + + false + + saveConfig + + + true + true + true + + true + true + true + true + false + true + true + false + false + false + true + false + false + false + true + 0 + true + true + true + true + true + + + + + + + false + + saveConfig + + + true + true + true + + true + true + true + true + false + true + true + false + false + false + true + false + false + false + true + 0 + true + true + true + true + true + + + + + + + false + + saveConfig + + + true + true + true + + true + true + true + true + false + true + true + false + false + false + true + false + false + false + true + 0 + true + true + true + true + true + + + + + + + + diff --git a/testsuites/pom.xml b/testsuites/pom.xml index 95766ba81..e79124016 100644 --- a/testsuites/pom.xml +++ b/testsuites/pom.xml @@ -33,6 +33,7 @@ integration performance + apex-pdp-stability -- cgit 1.2.3-korg