docker-deploy-smoke
Some checks failed
ci / test (push) Has been cancelled

This commit is contained in:
VPN SaaS Dev
2026-05-16 19:35:07 +09:00
parent 8efac3a844
commit 9fe172702f
9 changed files with 42 additions and 10 deletions

16
scripts/smoke_test.sh Executable file
View File

@@ -0,0 +1,16 @@
#!/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"
echo "Smoke test passed."