fix(ci): remove --audiences flag from smoke-test token
This commit is contained in:
parent
0d2e5dbf1f
commit
4693fea445
|
|
@ -75,8 +75,7 @@ steps:
|
|||
sleep 30
|
||||
STATUS="000"
|
||||
for i in $$(seq 1 9); do
|
||||
TOKEN=$$(gcloud auth print-identity-token
|
||||
--audiences="$$BASE_URL" 2>/dev/null)
|
||||
TOKEN=$$(gcloud auth print-identity-token 2>/dev/null)
|
||||
if [ -z "$$TOKEN" ]; then
|
||||
echo " /health forsøk $$i: kunne ikke hente token, venter..."
|
||||
sleep 10
|
||||
|
|
@ -94,8 +93,7 @@ steps:
|
|||
fi
|
||||
|
||||
# Kjør /run med fersk token
|
||||
TOKEN=$$(gcloud auth print-identity-token
|
||||
--audiences="$$BASE_URL")
|
||||
TOKEN=$$(gcloud auth print-identity-token)
|
||||
|
||||
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")
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user