forked from mtusi2026/mtusi2026lab4
Реализовать ЛР4: S3-хранилище и вложения на оценку 3
Стенд: PostgreSQL 16 + две API-реплики за HAProxy + SeaweedFS S3 в приватном bucket. Метаданные вложений в PostgreSQL, байты в S3, object key назначает сервер. Лимиты 10 MiB и 40 млн пикселей, MIME по магическим байтам, проверка filename. Добавлены smoke/негативные тесты, хуки restart/stop-one, сценарий отказа S3 и отчёт с доказательствами.
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
PASS: oversized upload returns 413 before decoding
|
||||
PASS: corrupt image returns 415
|
||||
PASS: MIME mismatch returns 415
|
||||
PASS: unsupported declared type returns 415
|
||||
PASS: path-like and control-character filenames return 400
|
||||
PASS: pixel limit returns 413
|
||||
PASS: attachment from another chat cannot be attached
|
||||
PASS: unknown attachment id returns 404
|
||||
PASS: outsider cannot read metadata or bytes
|
||||
PASS: chat member downloads identical bytes
|
||||
PASS: real JPEG upload roundtrip
|
||||
PASS: attachment_ids survive message history
|
||||
|
||||
PASS: all negative attachment scenarios
|
||||
Reference in New Issue
Block a user