From 5e1237836165b9e6c5bd3719e6f4c914090be2d9 Mon Sep 17 00:00:00 2001 From: RossC Date: Tue, 19 May 2020 12:32:53 +0100 Subject: Fixing clearuppolicies counter issue Issue-ID: POLICY-2458 Change-Id: I8aca5c2f4a4cae790ed8c129dcf542cab2dd50bd Signed-off-by: RossC --- .../src/main/resources/testplans/clearuppolicies.sh | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'testsuites/performance') diff --git a/testsuites/performance/src/main/resources/testplans/clearuppolicies.sh b/testsuites/performance/src/main/resources/testplans/clearuppolicies.sh index 6cf38a0d..d67df1c1 100755 --- a/testsuites/performance/src/main/resources/testplans/clearuppolicies.sh +++ b/testsuites/performance/src/main/resources/testplans/clearuppolicies.sh @@ -28,16 +28,17 @@ POLICY_PAP_IP=$3 POLICY_PAP_PORT=$4 send_delete_request(){ - echo $1 - curl -k -u 'healthcheck:zb!XztG34' -X DELETE "$1" - COUNTER=$((COUNTER +1)) + ARG=$(echo $@ | sed 's/ //g') + echo $ARG + curl -k -u 'healthcheck:zb!XztG34' -X DELETE "$ARG" } COUNTER=1 while [ $COUNTER != 11 ] do - send_delete_request https://"$POLICY_PAP_IP":"$POLICY_PAP_PORT"/policy/pap/v1/pdps/policies/operational.apex.\ -sampledomain.test$COUNTER - send_delete_request https://"$POLICY_API_IP":"$POLICY_API_PORT"/policy/api/v1/policytypes/operational.apex.\ -sampledomain.test$COUNTER/versions/1.0.0/policies/operational.apex.sampledomain.test$COUNTER/versions/1.0.0 + send_delete_request https://"$POLICY_PAP_IP":"$POLICY_PAP_PORT"/policy/pap/v1/pdps/policies/\ + operational.apex.sampledomain.test$COUNTER + send_delete_request https://"$POLICY_API_IP":"$POLICY_API_PORT"/policy/api/v1/policytypes/operational\ + .apex.sampledomain.test$COUNTER/versions/1.0.0/policies/operational.apex.sampledomain.test$COUNTER/versions/1.0.0 + COUNTER=$((COUNTER +1)) done -- cgit 1.2.3-korg