X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=testsuites%2Fstability%2Fsrc%2Fmain%2Fresources%2Ftestplans%2Fstability.jmx;fp=testsuites%2Fstability%2Fsrc%2Fmain%2Fresources%2Ftestplans%2Fstability.jmx;h=3bd690ad902254e63d5e8de6ea66005b88cc6649;hb=f5ba0b3b0e2d1453cb2afccdf5c297e476b06eb1;hp=760f4cd81d26e564c8fa4f062c9780624f1c21b1;hpb=43c05f435510137c8e241c3c6d24b562f1244403;p=policy%2Fpap.git diff --git a/testsuites/stability/src/main/resources/testplans/stability.jmx b/testsuites/stability/src/main/resources/testplans/stability.jmx index 760f4cd8..3bd690ad 100644 --- a/testsuites/stability/src/main/resources/testplans/stability.jmx +++ b/testsuites/stability/src/main/resources/testplans/stability.jmx @@ -4,7 +4,7 @@ ONAP Policy PAP ================================================================================ Copyright (C) 2019 AT&T Intellectual Property. All rights reserved. - Modifications Copyright (C) 2019 - 2020 Nordix Foundation. + Modifications Copyright (C) 2020-2021 Nordix Foundation. Modifications Copyright (C) 2020 Bell Canada. All rights reserved. ================================================================================ Licensed under the Apache License, Version 2.0 (the "License"); @@ -31,22 +31,22 @@ PAP_HOST - 10.2.0.29 + 10.2.0.149 = PAP_PORT - 30679 + 31427 = API_HOST - 10.2.0.29 + 10.2.0.149 = API_PORT - 30859 + 30443 = @@ -15175,7 +15175,7 @@ if (prev.getResponseCode() == '200') { - + @@ -15204,6 +15204,10 @@ if (prev.getResponseCode() == '200') { 1 + + 6000 + + @@ -15286,6 +15290,41 @@ if (prev.getResponseCode() == '200') { + + + + 202 + + + Assertion.response_code + false + 1 + + + + 6000 + + + + + + + + ${PAP_HOST} + ${PAP_PORT} + https + + /policy/pap/v1/policies/status/defaultGroup/operational.apex.stabilityTestDefaultDomain/1.0.0 + GET + true + false + true + false + + + + Query policies status for defaultGroup + @@ -15410,7 +15449,7 @@ if (prev.getResponseCode() == '200') { def pdpSubGrp=res.groups[groupSize].pdpSubgroups[subGrpSize]; for(int supportedPolicyTypesSize=0;supportedPolicyTypesSize<pdpSubGrp.supportedPolicyTypes.size;supportedPolicyTypesSize++){ if(pdpSubGrp.supportedPolicyTypes[supportedPolicyTypesSize].name =='onap.policies.controlloop.operational.common.Apex'){ - assert pdpSubGrp.pdpInstances.size > 0; + assert pdpSubGrp.pdpInstances.size >= 0; if (res.groups[groupSize].name == 'defaultGroup') { assert pdpSubGrp.policies[0].name == 'operational.apex.stabilityTestDefaultDomain'; } @@ -15473,6 +15512,68 @@ if (prev.getResponseCode() == '200') { + + + + 202 + + + Assertion.response_code + false + 1 + + + + + + + + ${PAP_HOST} + ${PAP_PORT} + https + + /policy/pap/v1/policies/status/sampleGroup + GET + true + false + true + false + + + + Query policies status + + + + + 200 + + + Assertion.response_code + false + 1 + + + + + + + + ${PAP_HOST} + ${PAP_PORT} + https + + /policy/pap/v1/policies/status + GET + true + false + true + false + + + + Query policies status + @@ -15593,7 +15694,9 @@ if (prev.getResponseCode() == '200') { def jsonSlurper = new JsonSlurper(); res = jsonSlurper.parseText(prev.getResponseDataAsString()); assert res instanceof Map; - assert res.healthy==true; + assert res.pdps.xacml!=null; + assert res.pdps.drools!=null; + assert res.pdps.apex!=null; } @@ -15693,7 +15796,7 @@ if (prev.getResponseCode() == '200') { - 200 + 202 Assertion.response_code @@ -15723,7 +15826,7 @@ if (prev.getResponseCode() == '200') { - 200 + 202 Assertion.response_code @@ -15822,6 +15925,10 @@ if (prev.getResponseCode() == '200') { 1 + + 6000 + + @@ -16014,7 +16121,7 @@ if (prev.getResponseCode() == '200') { true - /home/ubuntu/pap_stability/summary.log + C:\pap_s3p_res\stability_results\testresult3003.jtl @@ -16051,7 +16158,7 @@ if (prev.getResponseCode() == '200') { true - /home/ubuntu/pap_stability/resultTree.log + C:\Users\WayneDunican\Desktop\S3P_PAP\testresults.jtl