16 lines
588 B
Bash
Executable File
16 lines
588 B
Bash
Executable File
#!/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."
|