ЛР4 БВТ2304 Запорожец на 3

Вложения: приватный S3-bucket (RustFS 1.0.4) + метаданные в PostgreSQL, upload PNG/JPEG
с лимитами до декодирования, авторизованный download, attachment_ids в сообщениях,
идемпотентный bootstrap bucket, failover/persistence/S3-down тесты и REPORT.md.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-12 18:49:12 +03:00
co-authored by Claude Opus 5.5
parent ec540a1a72
commit 2dca5c114b
44 changed files with 3698 additions and 16 deletions
+12
View File
@@ -0,0 +1,12 @@
#!/bin/sh
# Собственные проверки lab4 + регрессия 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_lab4.py; a=$?; python student-tests/test_lab3.py; b=$?; python student-tests/test_lab2_regression.py; c=$?; exit $((a | b | c))' || status=$?
compose --profile test stop api-ttl
exit $status