From 51d5b1b208e96a8e7587d6a0a5c9f3e1b801023a Mon Sep 17 00:00:00 2001 From: FrancescoFioraEst Date: Tue, 11 Mar 2025 16:35:44 +0000 Subject: [PATCH] Add support on jmeter performace test with replica 2 in ACM Add support on jmeter performace test with replica 2 in ACM and add configurable parameter for http element instance. Issue-ID: POLICY-5271 Change-Id: I78ac0727885595be234e60da0f1bfe22e1af9952 Signed-off-by: FrancescoFioraEst --- .../src/main/resources/testplans/performance.jmx | 44 +++++++++++----------- 1 file changed, 21 insertions(+), 23 deletions(-) diff --git a/testsuites/performance/src/main/resources/testplans/performance.jmx b/testsuites/performance/src/main/resources/testplans/performance.jmx index 0257de825..6d0f80441 100644 --- a/testsuites/performance/src/main/resources/testplans/performance.jmx +++ b/testsuites/performance/src/main/resources/testplans/performance.jmx @@ -18,16 +18,6 @@ 30007 = - - POLICY_PARTICIPANT_HOST - localhost - = - - - POLICY_PARTICIPANT_HOST_PORT - 30008 - = - HOME_PATH ./ @@ -48,6 +38,21 @@ ${__P(USERS,10)} = + + http://policy-clamp-ac-pf-ppnt:6969 + HTTP_BASE_URL + = + + + HTTP_PATH + = + /onap/policyparticipant/health + + + HTTP_AUTHORIZATION + = + Basic cGFydGljaXBhbnRVc2VyOnpiIVh6dEczNA== + @@ -61,13 +66,6 @@ - - http://${POLICY_PARTICIPANT_HOST}:${POLICY_PARTICIPANT_HOST_PORT}/onap/policyparticipant - participantUser - zb!XztG34 - - - true false @@ -138,7 +136,8 @@ false - int n = 20; + String users = vars.get("USERS"); +int n = Integer.parseInt(users) + 2; for (int i = 0; i < n; i++) { props.put("baseCount" + i, "1"); log.info("baseCount" + i); @@ -646,15 +645,15 @@ log.info("Create Composition: " + compositionId); "description": "Starter Automation Composition Element for the Demo", "properties": { "uninitializedToPassiveTimeout": 180, - "baseUrl": "http://policy-clamp-ac-pf-ppnt:6969", + "baseUrl": "${HTTP_BASE_URL}", "httpHeaders": { "Content-Type": "application/json", - "Authorization": "Basic cGFydGljaXBhbnRVc2VyOnpiIVh6dEczNA==" + "Authorization": "${HTTP_AUTHORIZATION}" }, "configurationEntities": [ { "configurationEntityId": { - "name": "onap.policy.clamp.ac.starter", + "name": "onap.policy.mockrestendpoint", "version": "1.0.0" }, "restSequence": [ @@ -664,7 +663,7 @@ log.info("Create Composition: " + compositionId); "version": "1.0.1" }, "httpMethod": "GET", - "path": "/onap/policyparticipant/health", + "path": "${HTTP_PATH}", "body": "", "expectedResponse": 200 } @@ -1103,7 +1102,6 @@ if (prev.getResponseCode() == '200') { assert res.contains("publisher_automation_composition_state_change_seconds_count") assert res.contains("publisher_participant_update_seconds_count") - assert res.contains("publisher_participant_status_req_seconds_count") assert res.contains("publisher_automation_composition_deploy_seconds_count") assert res.contains("listener_participant_prime_ack_seconds_count") -- 2.16.6