fix(ci): remove --audiences flag from smoke-test token

This commit is contained in:
Chris Christiansen 2026-06-10 16:06:49 +00:00
parent 0d2e5dbf1f
commit 4693fea445

View File

@ -75,8 +75,7 @@ steps:
sleep 30 sleep 30
STATUS="000" STATUS="000"
for i in $$(seq 1 9); do for i in $$(seq 1 9); do
TOKEN=$$(gcloud auth print-identity-token TOKEN=$$(gcloud auth print-identity-token 2>/dev/null)
--audiences="$$BASE_URL" 2>/dev/null)
if [ -z "$$TOKEN" ]; then if [ -z "$$TOKEN" ]; then
echo " /health forsøk $$i: kunne ikke hente token, venter..." echo " /health forsøk $$i: kunne ikke hente token, venter..."
sleep 10 sleep 10
@ -94,8 +93,7 @@ steps:
fi fi
# Kjør /run med fersk token # Kjør /run med fersk token
TOKEN=$$(gcloud auth print-identity-token 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") "$$BASE_URL/run")