fix(ci): put curl commands on single line in smoke-test
This commit is contained in:
parent
6eb05b3dc7
commit
f3e15331cd
|
|
@ -81,9 +81,7 @@ steps:
|
|||
sleep 10
|
||||
continue
|
||||
fi
|
||||
STATUS=$$(curl -s -o /dev/null -w "%{http_code}"
|
||||
-H "Authorization: Bearer $$TOKEN"
|
||||
"$$BASE_URL/health")
|
||||
STATUS=$$(curl -s -o /dev/null -w "%{http_code}" -H "Authorization: Bearer $$TOKEN" "$$BASE_URL/health")
|
||||
echo " /health forsøk $$i: HTTP $$STATUS"
|
||||
[ "$$STATUS" = "200" ] && break
|
||||
sleep 10
|
||||
|
|
@ -98,11 +96,7 @@ steps:
|
|||
TOKEN=$$(gcloud auth print-identity-token
|
||||
--audiences="$$BASE_URL")
|
||||
|
||||
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")
|
||||
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")
|
||||
"$$BASE_URL/run")
|
||||
|
||||
HTTP_STATUS=$$(echo "$$RESPONSE" | grep "HTTP_STATUS:" | cut -d: -f2)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user