fix(ci): put curl commands on single line in smoke-test

This commit is contained in:
Chris Christiansen 2026-06-10 14:48:22 +00:00
parent 6eb05b3dc7
commit f3e15331cd

View File

@ -81,9 +81,7 @@ steps:
sleep 10 sleep 10
continue continue
fi fi
STATUS=$$(curl -s -o /dev/null -w "%{http_code}" STATUS=$$(curl -s -o /dev/null -w "%{http_code}" -H "Authorization: Bearer $$TOKEN" "$$BASE_URL/health")
-H "Authorization: Bearer $$TOKEN"
"$$BASE_URL/health")
echo " /health forsøk $$i: HTTP $$STATUS" echo " /health forsøk $$i: HTTP $$STATUS"
[ "$$STATUS" = "200" ] && break [ "$$STATUS" = "200" ] && break
sleep 10 sleep 10
@ -98,11 +96,7 @@ steps:
TOKEN=$$(gcloud auth print-identity-token TOKEN=$$(gcloud auth print-identity-token
--audiences="$$BASE_URL") --audiences="$$BASE_URL")
RESPONSE=$$(curl -s -w "\nHTTP_STATUS:%{http_code}" \ RESPONSE=$$(curl -s -w "\nHTTP_STATUS:%{http_code}" -H "Authorization: Bearer $$TOKEN" -H "Content-Type: application/json" -d '{"user_id": "ci", "session_id": "smoke-$$BUILD_ID", "message": "ping"}' "$$BASE_URL/run")
-H "Authorization: Bearer $$TOKEN" \
-H "Content-Type: application/json" \
-d '{"user_id": "ci", "session_id": "smoke-$$BUILD_ID", "message": "ping"}' \
"$$BASE_URL/run")
"$$BASE_URL/run") "$$BASE_URL/run")
HTTP_STATUS=$$(echo "$$RESPONSE" | grep "HTTP_STATUS:" | cut -d: -f2) HTTP_STATUS=$$(echo "$$RESPONSE" | grep "HTTP_STATUS:" | cut -d: -f2)