From 5e39fe1f1291f5b3b6beffca4f91638b6d1bb1c6 Mon Sep 17 00:00:00 2001 From: waynedunican Date: Fri, 8 Oct 2021 09:06:25 +0100 Subject: PAP S3P jmx file changes Issue-ID: POLICY-3653 Change-Id: I4a7b033d6ba0356c46c571640e85c40253ec6ad5 Signed-off-by: Wayne Dunican --- .../src/main/resources/testplans/performance.jmx | 211 +++++++++++++++++---- .../src/main/resources/testplans/stability.jmx | 161 ++++++++++++---- 2 files changed, 302 insertions(+), 70 deletions(-) diff --git a/testsuites/performance/src/main/resources/testplans/performance.jmx b/testsuites/performance/src/main/resources/testplans/performance.jmx index 5dbeae09..a143b892 100644 --- a/testsuites/performance/src/main/resources/testplans/performance.jmx +++ b/testsuites/performance/src/main/resources/testplans/performance.jmx @@ -10,9 +10,7 @@ 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. @@ -20,7 +18,7 @@ limitations under the License. ============LICENSE_END========================================================= --> - + Policy PAP Performance Tests @@ -31,27 +29,27 @@ PAP_HOST - ${__P(PAP_HOST,10.2.0.149)} + ${__P(PAP_HOST,172.16.1.230)} = PAP_PORT - ${__P(PAP_PORT,31427)} + ${__P(PAP_PORT,31937)} = API_HOST - ${__P(API_HOST,10.2.0.149)} + ${__P(API_HOST,172.16.1.230)} = API_PORT - ${__P(API_PORT,30443)} + ${__P(API_PORT,31339)} = HOME_PATH - ${__P(HOME,/home/wayned)} + ${__P(HOME,/home/wayne/paps3p)} = @@ -77,14 +75,14 @@ - https://${PAP_HOST}:${PAP_PORT}/policy/pap/v1 + http://${PAP_HOST}:${PAP_PORT}/policy/pap/v1 healthcheck zb!XztG34 - https://${API_HOST}:${API_PORT}/policy/api/v1 + http://${API_HOST}:${API_PORT}/policy/api/v1 healthcheck zb!XztG34 @@ -109,7 +107,7 @@ - stoptest + continue false 1 @@ -7574,7 +7572,7 @@ ${API_HOST} ${API_PORT} - https + http /policy/api/v1/policytypes/onap.policies.controlloop.operational.common.Apex/versions/1.0.0/policies POST @@ -15050,7 +15048,7 @@ ${API_HOST} ${API_PORT} - https + http /policy/api/v1/policytypes/onap.policies.native.Apex/versions/1.0.0/policies POST @@ -15095,7 +15093,7 @@ ${PAP_HOST} ${PAP_PORT} - https + http /policy/pap/v1/healthcheck GET @@ -15147,7 +15145,7 @@ if (prev.getResponseCode() == '200') { ${PAP_HOST} ${PAP_PORT} - https + http policy/pap/v1/statistics GET @@ -15201,7 +15199,7 @@ if (prev.getResponseCode() == '200') { ${PAP_HOST} ${PAP_PORT} - https + http policy/pap/v1/pdps/groups/defaultGroup?state=ACTIVE PUT @@ -15231,7 +15229,7 @@ if (prev.getResponseCode() == '200') { ${PAP_HOST} ${PAP_PORT} - https + http /policy/pap/v1/pdps GET @@ -15291,7 +15289,7 @@ if (prev.getResponseCode() == '200') { ${PAP_HOST} ${PAP_PORT} - https + http policy/pap/v1/pdps/policies POST @@ -15332,7 +15330,7 @@ if (prev.getResponseCode() == '200') { ${PAP_HOST} ${PAP_PORT} - https + http /policy/pap/v1/policies/status/defaultGroup/operational.apex.stabilityTestDefaultDomain/1.0.0 GET @@ -15358,6 +15356,68 @@ if (prev.getResponseCode() == '200') { + + + + + ${PAP_HOST} + ${PAP_PORT} + http + + /policy/pap/v1/policies/audit/defaultGroup + GET + true + false + true + false + + + + Check PdpGroup Audit + + + + + 200 + + + Assertion.response_code + false + 1 + + + + + + + + ${PAP_HOST} + ${PAP_PORT} + http + + /policy/pap/v1/policies/audit/defaultGroup/operational.apex.stabilityTestDefaultDomain/1.0.0 + GET + true + false + true + false + + + + Check PdpGroup Audit + + + + + 200 + + + Assertion.response_code + false + 1 + + + true @@ -15393,7 +15453,7 @@ if (prev.getResponseCode() == '200') { ${PAP_HOST} ${PAP_PORT} - https + http /policy/pap/v1/pdps/groups/batch POST @@ -15424,7 +15484,7 @@ if (prev.getResponseCode() == '200') { ${PAP_HOST} ${PAP_PORT} - https + http /policy/pap/v1/pdps GET @@ -15499,7 +15559,7 @@ if (prev.getResponseCode() == '200') { ${PAP_HOST} ${PAP_PORT} - https + http /policy/pap/v1/pdps/deployments/batch POST @@ -15529,7 +15589,7 @@ if (prev.getResponseCode() == '200') { ${PAP_HOST} ${PAP_PORT} - https + http /policy/pap/v1/policies/status/sampleGroup GET @@ -15560,7 +15620,7 @@ if (prev.getResponseCode() == '200') { ${PAP_HOST} ${PAP_PORT} - https + http /policy/pap/v1/policies/status GET @@ -15591,7 +15651,7 @@ if (prev.getResponseCode() == '200') { ${PAP_HOST} ${PAP_PORT} - https + http /policy/pap/v1/pdps GET @@ -15649,13 +15709,94 @@ if (prev.getResponseCode() == '200') { - + + + + + ${PAP_HOST} + ${PAP_PORT} + http + + /policy/pap/v1/policies/audit + GET + true + false + true + false + + + + Check Audit + + + + + 200 + + + Assertion.response_code + false + 1 + + + + + + + + ${PAP_HOST} + ${PAP_PORT} + http + + /policy/pap/v1/components/healthcheck + GET + true + false + true + false + + + + Consolidated Health Check + + + + + 200 + + + Assertion.response_code + false + 1 + + + + groovy + + + true + import groovy.json.JsonSlurper; + +def res = []; +if (prev.getResponseCode() == '200') { + def jsonSlurper = new JsonSlurper(); + res = jsonSlurper.parseText(prev.getResponseDataAsString()); + assert res instanceof Map; + assert res.pdps.xacml!=null; + assert res.pdps.drools!=null; + assert res.pdps.apex!=null; +} + + + + + ${PAP_HOST} ${PAP_PORT} - https + http /policy/pap/v1/policies/deployed GET @@ -15711,7 +15852,7 @@ if (prev.getResponseCode() == '200') { ${PAP_HOST} ${PAP_PORT} - https + http /policy/pap/v1/pdps/deployments/batch POST @@ -15746,7 +15887,7 @@ if (prev.getResponseCode() == '200') { ${PAP_HOST} ${PAP_PORT} - https + http policy/pap/v1/pdps/policies/operational.apex.stabilityTestDefaultDomain DELETE @@ -15777,7 +15918,7 @@ if (prev.getResponseCode() == '200') { ${PAP_HOST} ${PAP_PORT} - https + http policy/pap/v1/pdps/groups/sampleGroup_${threadCounter}?state=PASSIVE PUT @@ -15807,7 +15948,7 @@ if (prev.getResponseCode() == '200') { ${PAP_HOST} ${PAP_PORT} - https + http /policy/pap/v1/pdps/groups/sampleGroup_${threadCounter} DELETE @@ -15843,7 +15984,7 @@ if (prev.getResponseCode() == '200') { ${PAP_HOST} ${PAP_PORT} - https + http policy/pap/v1/pdps/groups/defaultGroup?state=PASSIVE PUT @@ -15888,7 +16029,7 @@ if (prev.getResponseCode() == '200') { ${PAP_HOST} ${PAP_PORT} - https + http policy/pap/v1/pdps/groups/defaultGroup?state=PASSIVE PUT @@ -15918,7 +16059,7 @@ if (prev.getResponseCode() == '200') { ${API_HOST} ${API_PORT} - https + http /policy/api/v1/policytypes/onap.policies.controlloop.operational.Apex/versions/1.0.0/policies/operational.apex.stabilityTestDefaultDomain/versions/1.0.0 DELETE @@ -15948,7 +16089,7 @@ if (prev.getResponseCode() == '200') { ${API_HOST} ${API_PORT} - https + http /policy/api/v1/policytypes/onap.policies.native.Apex/versions/1.0.0/policies/operational.apex.stabilityTestSampleDomain/versions/1.0.0 DELETE diff --git a/testsuites/stability/src/main/resources/testplans/stability.jmx b/testsuites/stability/src/main/resources/testplans/stability.jmx index 3bd690ad..2291883d 100644 --- a/testsuites/stability/src/main/resources/testplans/stability.jmx +++ b/testsuites/stability/src/main/resources/testplans/stability.jmx @@ -10,9 +10,7 @@ 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. @@ -20,7 +18,7 @@ limitations under the License. ============LICENSE_END========================================================= --> - + Policy PAP Stability Tests @@ -31,22 +29,22 @@ PAP_HOST - 10.2.0.149 + 172.16.1.230 = PAP_PORT - 31427 + 31937 = API_HOST - 10.2.0.149 + 172.16.1.230 = API_PORT - 30443 + 31339 = @@ -57,14 +55,14 @@ - https://${PAP_HOST}:${PAP_PORT}/policy/pap/v1 + http://${PAP_HOST}:${PAP_PORT}/policy/pap/v1 healthcheck zb!XztG34 - https://${API_HOST}:${API_PORT}/policy/api/v1 + http://${API_HOST}:${API_PORT}/policy/api/v1 healthcheck zb!XztG34 @@ -7554,7 +7552,7 @@ ${API_HOST} ${API_PORT} - https + http /policy/api/v1/policytypes/onap.policies.controlloop.operational.common.Apex/versions/1.0.0/policies POST @@ -15030,7 +15028,7 @@ ${API_HOST} ${API_PORT} - https + http /policy/api/v1/policytypes/onap.policies.controlloop.operational.common.Apex/versions/1.0.0/policies POST @@ -15075,7 +15073,7 @@ ${PAP_HOST} ${PAP_PORT} - https + http /policy/pap/v1/healthcheck GET @@ -15127,7 +15125,7 @@ if (prev.getResponseCode() == '200') { ${PAP_HOST} ${PAP_PORT} - https + http policy/pap/v1/statistics GET @@ -15181,7 +15179,7 @@ if (prev.getResponseCode() == '200') { ${PAP_HOST} ${PAP_PORT} - https + http policy/pap/v1/pdps/groups/defaultGroup?state=ACTIVE PUT @@ -15215,7 +15213,7 @@ if (prev.getResponseCode() == '200') { ${PAP_HOST} ${PAP_PORT} - https + http /policy/pap/v1/pdps GET @@ -15278,7 +15276,7 @@ if (prev.getResponseCode() == '200') { ${PAP_HOST} ${PAP_PORT} - https + http policy/pap/v1/pdps/policies POST @@ -15312,7 +15310,7 @@ if (prev.getResponseCode() == '200') { ${PAP_HOST} ${PAP_PORT} - https + http /policy/pap/v1/policies/status/defaultGroup/operational.apex.stabilityTestDefaultDomain/1.0.0 GET @@ -15337,6 +15335,68 @@ if (prev.getResponseCode() == '200') { + + + + + ${PAP_HOST} + ${PAP_PORT} + http + + /policy/pap/v1/policies/audit/defaultGroup + GET + true + false + true + false + + + + Check PdpGroup Audit + + + + + 200 + + + Assertion.response_code + false + 1 + + + + + + + + ${PAP_HOST} + ${PAP_PORT} + http + + /policy/pap/v1/policies/audit/defaultGroup/operational.apex.stabilityTestDefaultDomain/1.0.0 + GET + true + false + true + false + + + + Check PdpGroup Audit + + + + + 200 + + + Assertion.response_code + false + 1 + + + true @@ -15372,7 +15432,7 @@ if (prev.getResponseCode() == '200') { ${PAP_HOST} ${PAP_PORT} - https + http /policy/pap/v1/pdps/groups/batch POST @@ -15403,7 +15463,7 @@ if (prev.getResponseCode() == '200') { ${PAP_HOST} ${PAP_PORT} - https + http /policy/pap/v1/pdps GET @@ -15500,7 +15560,7 @@ if (prev.getResponseCode() == '200') { ${PAP_HOST} ${PAP_PORT} - https + http /policy/pap/v1/pdps/deployments/batch POST @@ -15530,7 +15590,7 @@ if (prev.getResponseCode() == '200') { ${PAP_HOST} ${PAP_PORT} - https + http /policy/pap/v1/policies/status/sampleGroup GET @@ -15561,7 +15621,7 @@ if (prev.getResponseCode() == '200') { ${PAP_HOST} ${PAP_PORT} - https + http /policy/pap/v1/policies/status GET @@ -15592,7 +15652,7 @@ if (prev.getResponseCode() == '200') { ${PAP_HOST} ${PAP_PORT} - https + http /policy/pap/v1/pdps GET @@ -15652,13 +15712,44 @@ if (prev.getResponseCode() == '200') { + + + + + ${PAP_HOST} + ${PAP_PORT} + http + + /policy/pap/v1/policies/audit + GET + true + false + true + false + + + + Check Audit + + + + + 200 + + + Assertion.response_code + false + 1 + + + ${PAP_HOST} ${PAP_PORT} - https + http /policy/pap/v1/components/healthcheck GET @@ -15708,7 +15799,7 @@ if (prev.getResponseCode() == '200') { ${PAP_HOST} ${PAP_PORT} - https + http /policy/pap/v1/policies/deployed GET @@ -15781,7 +15872,7 @@ if (prev.getResponseCode() == '200') { ${PAP_HOST} ${PAP_PORT} - https + http /policy/pap/v1/pdps/deployments/batch POST @@ -15811,7 +15902,7 @@ if (prev.getResponseCode() == '200') { ${PAP_HOST} ${PAP_PORT} - https + http policy/pap/v1/pdps/policies/operational.apex.stabilityTestDefaultDomain DELETE @@ -15841,7 +15932,7 @@ if (prev.getResponseCode() == '200') { ${PAP_HOST} ${PAP_PORT} - https + http policy/pap/v1/pdps/groups/sampleGroup?state=PASSIVE PUT @@ -15871,7 +15962,7 @@ if (prev.getResponseCode() == '200') { ${PAP_HOST} ${PAP_PORT} - https + http /policy/pap/v1/pdps/groups/sampleGroup DELETE @@ -15902,7 +15993,7 @@ if (prev.getResponseCode() == '200') { ${PAP_HOST} ${PAP_PORT} - https + http policy/pap/v1/pdps/groups/defaultGroup?state=PASSIVE PUT @@ -15936,7 +16027,7 @@ if (prev.getResponseCode() == '200') { ${PAP_HOST} ${PAP_PORT} - https + http /policy/pap/v1/pdps GET @@ -16002,7 +16093,7 @@ if (prev.getResponseCode() == '200') { ${PAP_HOST} ${PAP_PORT} - https + http policy/pap/v1/pdps/groups/defaultGroup?state=PASSIVE PUT @@ -16032,7 +16123,7 @@ if (prev.getResponseCode() == '200') { ${API_HOST} ${API_PORT} - https + http /policy/api/v1/policytypes/onap.policies.controlloop.operational.common.Apex/versions/1.0.0/policies/operational.apex.stabilityTestDefaultDomain/versions/1.0.0 DELETE @@ -16062,7 +16153,7 @@ if (prev.getResponseCode() == '200') { ${API_HOST} ${API_PORT} - https + http /policy/api/v1/policytypes/onap.policies.controlloop.operational.common.Apex/versions/1.0.0/policies/operational.apex.stabilityTestSampleDomain/versions/1.0.0 DELETE @@ -16121,7 +16212,7 @@ if (prev.getResponseCode() == '200') { true - C:\pap_s3p_res\stability_results\testresult3003.jtl + /home/wayne/dev/pap_results_1010.jtl -- cgit 1.2.3-korg