Files
mtusi2026lab2/scripts/expiry.bat
2026-10-15 10:34:56 +03:00

11 lines
343 B
Batchfile

@echo off
cd /d "%~dp0.."
echo [expiry] starting api with SESSION_TTL_SECONDS=3
set SESSION_TTL_SECONDS=3
docker compose up -d api
timeout /t 12 /nobreak >nul
python student-tests\expiry_checks.py --base-url http://localhost:8080
set SESSION_TTL_SECONDS=
echo [expiry] restoring default TTL
docker compose up -d api
timeout /t 10 /nobreak >nul