Validate candidate pages before public ingress and deployment checks
Advertiser console CI and test deployment / build-deploy (push) Failing after 1m4s
Advertiser console CI and test deployment / build-deploy (push) Failing after 1m4s
This commit is contained in:
@@ -18,6 +18,9 @@ done
|
||||
[[ "$ready" == true ]] || { echo 'Candidate failed health check'; exit 1; }
|
||||
# Auth endpoint should exist and reject unauthenticated requests, rather than 404/502.
|
||||
docker exec "$candidate" sh -c 'wget -S -O /dev/null http://127.0.0.1/v1/advertiser/me 2>&1 | grep "401 Unauthorized"'
|
||||
# Validate functionality on the runner before changing the published service.
|
||||
# This loopback origin is already permitted by the API's development CORS policy.
|
||||
docker run --rm --network "container:$candidate" --shm-size=256m -e BASE_URL=http://localhost:5173 "adcloud-advertiser:$SOURCE_REVISION-tests"
|
||||
old=false
|
||||
if docker container inspect "$name" >/dev/null 2>&1; then
|
||||
docker stop "$name"
|
||||
|
||||
Reference in New Issue
Block a user