docs: write REPORT.md

This commit is contained in:
TAskMAster339
2026-10-19 00:20:43 +03:00
parent 95c2e78fe3
commit 84175cf1e2
68 changed files with 6629 additions and 38 deletions
+49
View File
@@ -0,0 +1,49 @@
# Лимиты, MIME, filename и доступ к чужим вложениям
[Отчёт](../../REPORT.md) · [Все критерии](README.md)
Статус: **PASS**. Запуск: `20261018T203755.405686Z`.
Тесты создают синтетические данные. Интеграционные Go-тесты используют отдельные схемы БД и собственные S3-ключи.
Проверенные сценарии: `TestAttachmentValidationHTTP`, `TestAttachmentImageValidation`, `TestAttachmentFilenameValidation`, `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 TestAttachmentValidationHTTP
--- PASS: TestAttachmentValidationHTTP (1.47s)
=== RUN TestAttachmentAccessHTTP
--- PASS: TestAttachmentAccessHTTP (1.08s)
=== RUN TestAttachmentImageValidation
--- PASS: TestAttachmentImageValidation (0.00s)
=== RUN TestAttachmentFilenameValidation
--- PASS: TestAttachmentFilenameValidation (0.00s)
PASS
````
## Реализация
- [src/backend/tests/attachment_http_test.go](../../src/backend/tests/attachment_http_test.go)
- [src/backend/services/attachment.go](../../src/backend/services/attachment.go)