From: FrancescoFioraEst Date: Tue, 3 Jun 2025 09:44:27 +0000 (+0100) Subject: Add pagination tests in performance test X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=2daf58b02a9c98e9efc71a256a41ae7d80488e50;p=policy%2Fclamp.git Add pagination tests in performance test Issue-ID: POLICY-5378 Change-Id: Ie94395ad59725827f94c39f7ecba630940fe5e4f Signed-off-by: FrancescoFioraEst --- diff --git a/testsuites/performance/src/main/resources/testplans/performance.jmx b/testsuites/performance/src/main/resources/testplans/performance.jmx index 6d0f80441..0f423f69d 100644 --- a/testsuites/performance/src/main/resources/testplans/performance.jmx +++ b/testsuites/performance/src/main/resources/testplans/performance.jmx @@ -30,7 +30,7 @@ INSTANCES - ${__P(INSTANCES,50)} + ${__P(INSTANCES,100)} = @@ -823,7 +823,7 @@ props.put(baseCount, ("" + icount)); - + false @@ -831,7 +831,41 @@ props.put(baseCount, ("" + icount)); ${RUNTIME_HOST} ${RUNTIME_PORT} http - /onap/policy/clamp/acm/v2/participants + /onap/policy/clamp/acm/v2/participants?page=0&size=10 + GET + true + false + true + false + false + false + false + 6 + false + 0 + + + + + 200 + + + Assertion.response_code + false + 1 + + + + + + false + + + + ${RUNTIME_HOST} + ${RUNTIME_PORT} + http + /onap/policy/clamp/acm/v2/compositions?page=0&size=10 GET true false @@ -856,8 +890,23 @@ props.put(baseCount, ("" + icount)); + + compositionIds + $.service_templates..metadata.compositionId + -1 + + + + groovy + + + true + String compositionIds = vars.get("compositionIds_matchNr"); +assert compositionIds.equals("10") + + - + false @@ -865,7 +914,7 @@ props.put(baseCount, ("" + icount)); ${RUNTIME_HOST} ${RUNTIME_PORT} http - /onap/policy/clamp/acm/v2/compositions + /onap/policy/clamp/acm/v2/compositions?page=1000&size=10 GET true false @@ -890,6 +939,21 @@ props.put(baseCount, ("" + icount)); + + compositionIds + $.service_templates..metadata.compositionId + -1 + + + + groovy + + + true + String compositionIds = vars.get("compositionIds_matchNr"); +assert compositionIds.equals("0") + + ${INSTANCES} @@ -1168,8 +1232,6 @@ if (prev.getResponseCode() == '200') { // Extracted JSON array String jsonArray = vars.get("automationCompositionList"); -//String jsonArray = "[]"; - log.info("instanceArray: " + jsonArray); // Check if the JSON array is empty