Files
mtusi2026lab3/scripts/test-lab3.sh
T
RainakandClaude Opus 5.5 95556845e6 ЛР3 БВТ2304 Запорожец на 4
HAProxy + 2 API-реплики, общие PostgreSQL/Valkey, обязательный Idempotency-Key,
graceful drain по SIGTERM, stop-one/restart/rolling-update, серии отказов и REPORT.md.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-05 17:36:07 +03:00

13 lines
693 B
Bash
Executable File

#!/bin/sh
# Собственные проверки lab3 + регрессия уровня 4 lab2. Запускать на хосте (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 sh -c \
'python student-tests/test_lab3.py; a=$?; python student-tests/test_lab2_regression.py; b=$?; exit $((a | b))' || status=$?
compose --profile test stop api-ttl
exit $status