forked from mtusi2026/mtusi2026lab2
ЛР2: PostgreSQL + Valkey, сессии Basic/Bearer, миграции, compose, тесты, отчёт
This commit is contained in:
Executable
+12
@@ -0,0 +1,12 @@
|
||||
#!/bin/sh
|
||||
set -eu
|
||||
# Prove session expiry with a SHORT SESSION_TTL_SECONDS on a throwaway stack.
|
||||
# The main stand can stay up; this uses a second compose project on port 8081.
|
||||
cd "$(dirname "$0")/.."
|
||||
export SESSION_TTL_SECONDS=2
|
||||
export PUBLISH_PORT=8081
|
||||
PROJECT=mtusi2expiry
|
||||
cleanup() { docker compose -p "$PROJECT" down -v >/dev/null 2>&1 || true; }
|
||||
trap cleanup EXIT
|
||||
docker compose -p "$PROJECT" up -d --build
|
||||
python3 scripts/expiry_probe.py --base-url http://localhost:8081 --ttl 2
|
||||
Reference in New Issue
Block a user