chore: initial import for test contour

This commit is contained in:
sova-bootstrap
2026-05-27 19:36:34 +03:00
commit 721afae5d5
19 changed files with 464 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
#!/usr/bin/env bash
set -euo pipefail
ROOT="$(cd "$(dirname "$0")/.." && pwd)"
cd "$ROOT"
docker compose up -d --wait 2>/dev/null || docker-compose up -d
sleep 2
curl -sf "http://localhost:8080/api/reservation/intervals?doctor=1" | grep -q workdates && echo "OK mis-intervals"
curl -sf -X POST "http://localhost:8080/api/reservation/anonymous-reserve" \
-H "Content-Type: application/json" -d '{"test":true}' | grep -q reservationId && echo "OK anonymous-reserve"
curl -sf -X POST "http://localhost:8080/validate" | grep -q '"status"' && echo "OK captcha"
echo "Mock smoke passed."