From d8c0cbb09d9337f9b28473f21055c8c3db600ca1 Mon Sep 17 00:00:00 2001 From: Neil-Jocelyn Schark <neil.schark@h-da.de> Date: Thu, 19 Sep 2024 08:12:57 +0000 Subject: [PATCH] wip --- longevity-tests/run-curl.sh | 25 +++++++++++-------------- 1 file changed, 11 insertions(+), 14 deletions(-) diff --git a/longevity-tests/run-curl.sh b/longevity-tests/run-curl.sh index 349756a4..65b97fd1 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 -- GitLab