Skip to content

Commit 207df5e

Browse files
committed
fix validate scripts: keycloak 24 moved /health endpoint
1 parent ff8c660 commit 207df5e

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

testing/compose/validate-oauth-test.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,10 @@ NC='\033[0m'
99
echo -e "${YELLOW}Validating OAuth test environment...${NC}"
1010
echo ""
1111

12-
# Check Keycloak health
12+
# Check Keycloak health — Keycloak 24+ moved /health off the main listener,
13+
# so probe the realm directly which is the meaningful liveness check anyway.
1314
echo -n "Checking Keycloak health... "
14-
if curl -sf http://localhost:9080/health/ready > /dev/null 2>&1; then
15+
if curl -sf http://localhost:9080/realms/stirling-oauth > /dev/null 2>&1; then
1516
echo -e "${GREEN}${NC}"
1617
else
1718
echo -e "${RED}✗ Keycloak is not ready${NC}"

testing/compose/validate-saml-test.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,10 @@ NC='\033[0m'
99
echo -e "${YELLOW}Validating SAML test environment...${NC}"
1010
echo ""
1111

12-
# Check Keycloak health
12+
# Check Keycloak health — Keycloak 24+ moved /health off the main listener,
13+
# so probe the realm directly which is the meaningful liveness check anyway.
1314
echo -n "Checking Keycloak health... "
14-
if curl -sf http://localhost:9080/health/ready > /dev/null 2>&1; then
15+
if curl -sf http://localhost:9080/realms/stirling-saml > /dev/null 2>&1; then
1516
echo -e "${GREEN}${NC}"
1617
else
1718
echo -e "${RED}✗ Keycloak is not ready${NC}"

0 commit comments

Comments
 (0)