Files
mtusi2026lab4/evidence/criteria/proxy-attachments.md
T
2026-10-19 00:20:43 +03:00

45 lines
1.4 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# PNG/JPEG, ready, сообщение и побайтный download
[Отчёт](../../REPORT.md) · [Все критерии](README.md)
Статус: **PASS**. Запуск: `20261018T203755.405686Z`.
Тесты создают синтетические данные. Интеграционные Go-тесты используют отдельные схемы БД и собственные S3-ключи.
Проверенные сценарии: `TestAttachmentAccessHTTP`.
## proxy
```sh
make test-grade3
```
Начало: 2026-10-18T20:41:01.363701+00:00; длительность: 3.645 с; exit code: 0.
````text
python3 scripts/check_grade3.py --base-url "http://localhost:8080"
PASS: image limits, chunked upload, ACL, message attachments, concurrent replay across replicas
````
## backend
```sh
make test-backend
```
Начало: 2026-10-18T20:38:40.802787+00:00; длительность: 148.987 с; exit code: 0.
Фрагмент; полный вывод: [backend.txt](runs/20261018T203755.405686Z/backend.txt).
````text
=== RUN TestAttachmentAccessHTTP
--- PASS: TestAttachmentAccessHTTP (1.08s)
PASS
````
## Реализация
- [src/backend/services/attachment.go](../../src/backend/services/attachment.go)
- [src/backend/handlers/attachment_http.go](../../src/backend/handlers/attachment_http.go)
- [src/backend/repositories/attachment.go](../../src/backend/repositories/attachment.go)