23 lines
480 B
Bash
Executable File
23 lines
480 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
BASE_URL="${BASE_URL:-http://127.0.0.1:8000}"
|
|
|
|
echo "Checking health..."
|
|
curl -fsS "$BASE_URL/health"
|
|
echo
|
|
|
|
echo "Checking readiness..."
|
|
curl -fsS "$BASE_URL/ready"
|
|
echo
|
|
|
|
echo "Checking metrics..."
|
|
curl -fsS "$BASE_URL/metrics" | grep -q "carpass_requests_total"
|
|
|
|
for path in / /sto.html /admin.html /work_order.html; do
|
|
echo "Checking static page $path..."
|
|
curl -fsSI "$BASE_URL$path" | grep -q "200 OK"
|
|
done
|
|
|
|
echo "Smoke test passed."
|