diff options
Diffstat (limited to 'testsuites/performance/src/main/resources/testplans')
-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 |