Initial commit: site monorepo with API, web, and infra.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Executable
+17
@@ -0,0 +1,17 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
BASE="${1:-http://127.0.0.1:8000}"
|
||||
BASE="${BASE%/}"
|
||||
|
||||
echo "== Smoke: health =="
|
||||
curl -fsS "$BASE/api/v1/health" | grep -q '"status":"ok"'
|
||||
|
||||
echo "== Smoke: docs disabled =="
|
||||
docs_code="$(curl -s -o /dev/null -w "%{http_code}" "$BASE/api/v1/docs")"
|
||||
[[ "$docs_code" == "404" || "$docs_code" == "307" ]] || { echo "Expected docs 404, got $docs_code"; exit 1; }
|
||||
|
||||
echo "== Smoke: public content =="
|
||||
curl -fsS "$BASE/api/v1/content/pages" | grep -q '"data"'
|
||||
|
||||
echo "All smoke checks passed."
|
||||
Reference in New Issue
Block a user