chore: initial import for test contour
This commit is contained in:
Executable
+15
@@ -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."
|
||||
Reference in New Issue
Block a user