diff --git a/longevity-tests/run-curl.sh b/longevity-tests/run-curl.sh index 349756a43085a5a9eeaa5b63f54ef41281f4fe68..65b97fd1250ae5705ac52a829cebf501cf829c79 100755 --- a/longevity-tests/run-curl.sh +++ b/longevity-tests/run-curl.sh @@ -9,23 +9,20 @@ while true; do requestId=$((requestId+1)) echo "requestId: $requestId" url="https://${kms1AkmsURL}/api/v1/keys/ksa_key_req" - data=$(cat <<EOF - { - "ReceivingCKMSID": "5e41c291-6121-4335-84f6-41e04b8bdaa2", - "RequestID": "${requestId}", - "KeyProperties": { - "Number": 1, - "KeyLength": 256, - "Timeout": 20, - "TTL": 24 - } - } -EOF + data=$( ) curl -X POST "$url" \ -H "Content-Type: application/json" \ - -d "$data" - + -d "$data" { + "ReceivingCKMSID": "5e41c291-6121-4335-84f6-41e04b8bdaa2", + "RequestID": "${requestId}", + "KeyProperties": { \ + "Number": 1, \ + "KeyLength": 256, \ + "Timeout": 20, \ + "TTL": 24 \ + } \ + } sleep 1 done