Files
mtusi2026lab7/scripts/test_expiry.sh
T
2026-11-11 13:53:51 +03:00

12 lines
359 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
cd "$(dirname "$0")/.."
restore() {
SESSION_TTL_SECONDS=3600 docker compose up -d --force-recreate --no-deps api
python3 scripts/wait_ready.py
}
trap restore EXIT
SESSION_TTL_SECONDS=2 docker compose up -d --force-recreate --no-deps api
python3 scripts/wait_ready.py
python3 student-tests/http_security.py expiry