Files
mtusi2026lab2/scripts/test-grade4.sh
T
RainakandClaude Opus 5.5 0c5846173b
Skeleton contracts / contracts (pull_request) Canceled after 0s
ЛР2: PostgreSQL, сессии и Valkey (на 4)
API мессенджера на FastAPI + asyncpg, миграции, Argon2id, Bearer-сессии
в PostgreSQL с кэшем Valkey, compose-стенд, restart.sh, тесты уровня 4,
EXPLAIN и отчёт.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-29 18:49:32 +03:00

12 lines
598 B
Bash
Executable File

#!/bin/sh
# Собственные проверки уровня 4. Запускать на хосте (Linux/macOS/Git Bash) из корня репозитория.
# Поднимает api-ttl (SESSION_TTL_SECONDS=2), запускает student-tests в контейнере tester, гасит api-ttl.
set -eu
cd "$(dirname "$0")/.."
compose() { docker compose --env-file .env "$@"; }
compose --profile test up -d --wait api-ttl
status=0
MSYS_NO_PATHCONV=1 compose --profile tools run --rm tester python student-tests/test_grade4.py || status=$?
compose --profile test stop api-ttl
exit $status