From 4b86b70a18b373cd04cb7bdf56e616c8a79b4731 Mon Sep 17 00:00:00 2001 From: Paul SAGE Date: Fri, 5 Jun 2026 14:49:39 +0200 Subject: [PATCH] chore(scripts): add 401 for st2web healthcheck --- scripts/st2web-healthcheck.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/st2web-healthcheck.sh b/scripts/st2web-healthcheck.sh index 327a1733..5018e07c 100755 --- a/scripts/st2web-healthcheck.sh +++ b/scripts/st2web-healthcheck.sh @@ -4,11 +4,11 @@ # check downstream services and mark container unhealthy if downstream is not unreachable DOWNSTREAM_API_STATUS=$(curl --write-out "%{http_code}\n" --silent --output /dev/null $ST2_API_URL/v1) -if [ "${DOWNSTREAM_API_STATUS}" != "404" ]; then +if [ "${DOWNSTREAM_API_STATUS}" != "404" ] && [ "${DOWNSTREAM_API_STATUS}" != "401" ]; then echo "st2api downstream failure"; exit 1; fi DOWNSTREAM_STREAM_STATUS=$(curl --write-out "%{http_code}\n" --silent --output /dev/null $ST2_STREAM_URL/v1/stream) -if [ "${DOWNSTREAM_STREAM_STATUS}" != "404" ]; then +if [ "${DOWNSTREAM_STREAM_STATUS}" != "404" ] && [ "${DOWNSTREAM_API_STATUS}" != "401" ]; then echo "st2stream downstream failure"; exit 1; fi DOWNSTREAM_AUTH_STATUS=$(curl --write-out "%{http_code}\n" --silent --output /dev/null $ST2_AUTH_URL/v1)