diff options
author | RossC <ross.carter@est.tech> | 2020-05-19 12:32:53 +0100 |
---|---|---|
committer | Ross Carter <ross.carter@est.tech> | 2020-05-19 16:07:02 +0000 |
commit | 5e1237836165b9e6c5bd3719e6f4c914090be2d9 (patch) | |
tree | 6a89ee7513cf0f651cc3872fc83a9dd0100c3661 | |
parent | 5f3c6aba1ef89f41e82b8d47bef8731b679da971 (diff) |
Fixing clearuppolicies counter issue
Issue-ID: POLICY-2458
Change-Id: I8aca5c2f4a4cae790ed8c129dcf542cab2dd50bd
Signed-off-by: RossC <ross.carter@est.tech>
-rwxr-xr-x | testsuites/performance/src/main/resources/testplans/clearuppolicies.sh | 15 |
1 files changed, 8 insertions, 7 deletions
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 |