mirror of
https://github.com/lordmathis/dev-cluster.git
synced 2025-12-23 09:04:24 +00:00
Revert 401 and 403 healthcheck pass
This commit is contained in:
11
.github/workflows/health_monitor.yaml
vendored
11
.github/workflows/health_monitor.yaml
vendored
@@ -35,14 +35,11 @@ jobs:
|
|||||||
total=$((total + 1))
|
total=$((total + 1))
|
||||||
echo "Testing: $url"
|
echo "Testing: $url"
|
||||||
|
|
||||||
# Get HTTP status code
|
# Simple curl check - fail if HTTP code >= 400 or connection fails
|
||||||
status=$(curl -sfLI --max-time 10 -o /dev/null -w "%{http_code}" "$url" 2>&1 || echo "000")
|
if curl -sfLI --max-time 10 "$url" >/dev/null 2>&1; then
|
||||||
|
echo "✅ OK"
|
||||||
# Accept 2xx, 3xx, 401, and 403 as healthy
|
|
||||||
if [[ "$status" =~ ^(2|3|401|403) ]]; then
|
|
||||||
echo "✅ OK (HTTP $status)"
|
|
||||||
else
|
else
|
||||||
echo "❌ FAILED (HTTP $status)"
|
echo "❌ FAILED"
|
||||||
failed=$((failed + 1))
|
failed=$((failed + 1))
|
||||||
fi
|
fi
|
||||||
echo ""
|
echo ""
|
||||||
|
|||||||
Reference in New Issue
Block a user