X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=testsuites%2Fapex-pdp-stability%2Fsrc%2Fmain%2Fresources%2FapexPdpStabilityTestPlan.jmx;fp=testsuites%2Fapex-pdp-stability%2Fsrc%2Fmain%2Fresources%2FapexPdpStabilityTestPlan.jmx;h=864e6f511409148d1a9ba8812ddacaa43d13c00d;hb=cc6fd2a0b84d0f1ef2b88ffce4ac930925a9aaa4;hp=e74c06331548bc7364e99f336fd381b725dc76ba;hpb=c162109af895908f6f206b17fb8cd76b25c8411d;p=policy%2Fapex-pdp.git diff --git a/testsuites/apex-pdp-stability/src/main/resources/apexPdpStabilityTestPlan.jmx b/testsuites/apex-pdp-stability/src/main/resources/apexPdpStabilityTestPlan.jmx index e74c06331..864e6f511 100644 --- a/testsuites/apex-pdp-stability/src/main/resources/apexPdpStabilityTestPlan.jmx +++ b/testsuites/apex-pdp-stability/src/main/resources/apexPdpStabilityTestPlan.jmx @@ -5,6 +5,7 @@ ================================================================================ Copyright (C) 2020-2022 Nordix Foundation.All rights reserved. Modifications Copyright (C) 2021 Bell Canada. All rights reserved. + Modifications Copyright (C) 2023 Nordix Foundation. ================================================================================ Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -19,17 +20,15 @@ limitations under the License. ============LICENSE_END========================================================= --> - + - false true true - @@ -45,18 +44,12 @@ - + - 23324 http - - - 6 - - @@ -123,35 +116,35 @@ - https://${HOSTNAME}:${API_PORT} + http://${HOSTNAME}:${API_PORT} policyadmin zb!XztG34 - https://${HOSTNAME}:${PAP_PORT} + http://${HOSTNAME}:${PAP_PORT} policyadmin zb!XztG34 - https://${HOSTNAME}:${APEX_PORT}/policy/apex-pdp/v1/healthcheck + http://${HOSTNAME}:${APEX_PORT}/policy/apex-pdp/v1/healthcheck healthcheck zb!XztG34 - https://${HOSTNAME}:${APEX_PORT}/metrics + http://${HOSTNAME}:${APEX_PORT}/metrics healthcheck zb!XztG34 - https://${HOSTNAME}:${APEX_PORT} + http://${HOSTNAME}:${APEX_PORT} policyadmin zb!XztG34 @@ -164,8 +157,8 @@ continue - false 1 + false 1 1 @@ -3374,17 +3367,19 @@ ${HOSTNAME} ${API_PORT} - https - + http /policy/api/v1/policies POST true false true false - - - + false + false + false + 6 + false + 0 @@ -6302,17 +6297,19 @@ ${HOSTNAME} ${API_PORT} - https - + http /policy/api/v1/policies POST true false true false - - - + false + false + false + 6 + false + 0 @@ -6360,17 +6357,19 @@ ${HOSTNAME} ${PAP_PORT} - https - + http /policy/pap/v1/pdps/deployments/batch POST true false true false - - - + false + false + false + 6 + false + 0 @@ -6392,8 +6391,8 @@ continue - false -1 + false ${threads} 1 @@ -6401,28 +6400,32 @@ 259200 true + false + false ${HOSTNAME} ${APEX_PORT} - https - + http /policy/apex-pdp/v1/healthcheck GET true false true false - - - + false + false + false + 6 + false + 0 - + true @@ -6441,24 +6444,37 @@ if (prev.getResponseCode() == '200') { groovy + + + 200 + + + Assertion.response_code + false + 8 + + + false ${HOSTNAME} ${APEX_PORT} - https - + http /metrics GET true false true false - - - + false + false + false + 6 + false + 0 @@ -6496,22 +6512,25 @@ if (prev.getResponseCode() == '200') { + false ${SIM_HOST} ${DMAAP_PORT} http - /events/APEX-CL-MGT/cg${__threadNum}/c1?limit=100&timeout=500 GET true false true false - - - + false + false + false + 6 + false + 0 Clean up DMaaP notification topic @@ -6577,16 +6596,18 @@ if (prev.getResponseCode() == '200') { ${SIM_HOST} ${DMAAP_PORT} http - /events/unauthenticated.DCAE_CL_OUTPUT POST true false true false - - - + false + false + false + 6 + false + 0 Send Trigger Event - simplecl success @@ -6608,22 +6629,25 @@ if (prev.getResponseCode() == '200') { + false ${SIM_HOST} ${DMAAP_PORT} http - /events/APEX-CL-MGT/cg${__threadNum}/c1?limit=50&timeout=30000 GET true false true false - - - + false + false + false + 6 + false + 0 Read notification events - simplecl success @@ -6639,7 +6663,7 @@ if (prev.getResponseCode() == '200') { Assert response code coming back from apex-pdp - + true @@ -6667,22 +6691,25 @@ if (prev.getResponseCode() == '200') { + false ${SIM_HOST} ${DMAAP_PORT} http - /events/APEX-CL-MGT/cg${__threadNum}/c1?limit=100&timeout=500 GET true false true false - - - + false + false + false + 6 + false + 0 Clean up DMaaP notification topic @@ -6748,16 +6775,18 @@ if (prev.getResponseCode() == '200') { ${SIM_HOST} ${DMAAP_PORT} http - /events/unauthenticated.DCAE_CL_OUTPUT POST true false true false - - - + false + false + false + 6 + false + 0 Send Trigger Event - simplecl failure @@ -6779,22 +6808,25 @@ if (prev.getResponseCode() == '200') { + false ${SIM_HOST} ${DMAAP_PORT} http - /events/APEX-CL-MGT/cg${__threadNum}/c1?limit=50&timeout=30000 GET true false true false - - - + false + false + false + 6 + false + 0 Read notification events - simplecl failure @@ -6810,7 +6842,7 @@ if (prev.getResponseCode() == '200') { Assert response code coming back from apex-pdp - + true @@ -6832,27 +6864,52 @@ if (prev.getResponseCode() == '200') { groovy + + groovy + + + true + import groovy.json.JsonSlurper; + +def res = []; +if (prev.getResponseCode() == '200') { + def jsonSlurper = new JsonSlurper(); + def responseString = prev.getResponseDataAsString(); + res = jsonSlurper.parseText(responseString); + def expectedNumberOfNotifications = ${threads} * 2; + assert res instanceof List; + assert res.size() == expectedNumberOfNotifications; + assert responseString.contains("ACTIVE") + assert responseString.contains("FINAL_FAILURE") + assert !responseString.contains("FINAL_SUCCESS") +} + + + + false ${SIM_HOST} ${DMAAP_PORT} http - /events/APEX-CL-MGT/cg${__threadNum}/c1?limit=100&timeout=500 GET true false true false - - - + false + false + false + 6 + false + 0 Clean up DMaaP notification topic @@ -6920,16 +6977,18 @@ if (prev.getResponseCode() == '200') { ${SIM_HOST} ${DMAAP_PORT} http - /events/unauthenticated.DCAE_POLICY_EXAMPLE_OUTPUT POST true false true false - - - + false + false + false + 6 + false + 0 Send Trigger Event - example success @@ -6951,22 +7010,25 @@ if (prev.getResponseCode() == '200') { + false ${SIM_HOST} ${DMAAP_PORT} http - /events/APEX-CL-MGT/cg${__threadNum}/c1?limit=50&timeout=30000 GET true false true false - - - + false + false + false + 6 + false + 0 Read notification events - example success @@ -6982,7 +7044,7 @@ if (prev.getResponseCode() == '200') { Assert response code coming back from apex-pdp - + true @@ -7010,22 +7072,25 @@ if (prev.getResponseCode() == '200') { + false ${SIM_HOST} ${DMAAP_PORT} http - /events/APEX-CL-MGT/cg${__threadNum}/c1?limit=100&timeout=500 GET true false true false - - - + false + false + false + 6 + false + 0 Clean up DMaaP notification topic @@ -7093,16 +7158,18 @@ if (prev.getResponseCode() == '200') { ${SIM_HOST} ${DMAAP_PORT} http - /events/unauthenticated.DCAE_POLICY_EXAMPLE_OUTPUT POST true false true false - - - + false + false + false + 6 + false + 0 Send Trigger Event - example failure @@ -7124,22 +7191,25 @@ if (prev.getResponseCode() == '200') { + false ${SIM_HOST} ${DMAAP_PORT} http - /events/APEX-CL-MGT/cg${__threadNum}/c1?limit=50&timeout=30000 GET true false true false - - - + false + false + false + 6 + false + 0 Read notification events - example failure @@ -7155,7 +7225,7 @@ if (prev.getResponseCode() == '200') { Assert response code coming back from apex-pdp - + true @@ -7180,11 +7250,11 @@ if (prev.getResponseCode() == '200') { - + continue - false 1 + false 1 1 @@ -7194,7 +7264,7 @@ if (prev.getResponseCode() == '200') { true - + true @@ -7228,17 +7298,19 @@ if (prev.getResponseCode() == '200') { ${HOSTNAME} ${PAP_PORT} - https - + http /policy/pap/v1/pdps/deployments/batch POST true false true false - - - + false + false + false + 6 + false + 0 @@ -7252,23 +7324,26 @@ if (prev.getResponseCode() == '200') { - + + false ${HOSTNAME} ${API_PORT} - https - + http /policy/api/v1/policytypes/onap.policies.native.Apex/versions/1.0.0/policies/onap.policies.apex.Simplecontrolloop/versions/1.0.0 DELETE true false true false - - - + false + false + false + 6 + false + 0 @@ -7282,23 +7357,26 @@ if (prev.getResponseCode() == '200') { - + + false ${HOSTNAME} ${API_PORT} - https - + http /policy/api/v1/policytypes/onap.policies.native.Apex/versions/1.0.0/policies/onap.policies.apex.Example/versions/1.0.0 DELETE true false true false - - - + false + false + false + 6 + false + 0 @@ -7316,8 +7394,8 @@ if (prev.getResponseCode() == '200') { continue - false -1 + false ${threads} 1 @@ -7325,25 +7403,29 @@ if (prev.getResponseCode() == '200') { 259200 true + false + false ${HOSTNAME} ${APEX_PORT} https - /policy/apex-pdp/v1/healthcheck GET true false true false - - - + false + false + false + 6 + false + 0 @@ -7366,7 +7448,7 @@ if (prev.getResponseCode() == '200') { - + ${threads} @@ -7414,16 +7496,18 @@ if (prev.getResponseCode() == '200') { ${SIM_HOST} ${DMAAP_PORT} http - /events/unauthenticated.DCAE_CL_OUTPUT POST true false true false - - - + false + false + false + 6 + false + 0 Send input event to apex-pdp @@ -7444,23 +7528,26 @@ if (prev.getResponseCode() == '200') { - + + false ${SIM_HOST} ${DMAAP_PORT} http - /events/APEX-CL-MGT/cg${__threadNum}/c1?timeout=30000 GET true false true false - - - + false + false + false + 6 + false + 0 Check output event @@ -7499,22 +7586,25 @@ if (prev.getResponseCode() == '200') { + false ${SIM_HOST} ${DMAAP_PORT} http - /events/APEX-CL-MGT/cg${__threadNum}/c1?limit=1&timeout=30000 GET true false true false - - - + false + false + false + 6 + false + 0 Check output event @@ -7552,22 +7642,25 @@ if (prev.getResponseCode() == '200') { + false ${SIM_HOST} ${DMAAP_PORT} http - /events/APEX-CL-MGT/cg${__threadNum}/c1?limit=1&timeout=30000 GET true false true false - - - + false + false + false + 6 + false + 0 Check output event @@ -7618,22 +7711,25 @@ if (prev.getResponseCode() == '200') { + false ${SIM_HOST} ${DMAAP_PORT} http - /events/APEX-CL-MGT/cg${__threadNum}/c1?timeout=30000 GET true false true false - - - + false + false + false + 6 + false + 0 Check output event