From ffa03ebb9b82a753f3d00807c0af999b0ed70297 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 (cherry picked from commit 5e39fe1f1291f5b3b6beffca4f91638b6d1bb1c6) --- .../src/main/resources/testplans/performance.jmx | 211 +++++++++++++++++---- 1 file changed, 176 insertions(+), 35 deletions(-) (limited to 'testsuites/performance/src') 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 -- cgit 1.2.3-korg