feat: attachments over S3 (grade 3)

This commit is contained in:
2026-11-20 03:55:39 +03:00
parent 083d0d80cc
commit 89e9e7b4d4
44 changed files with 1468 additions and 67 deletions
+64
View File
@@ -0,0 +1,64 @@
2026-11-20T03:54:42+03:00
make test-go
? messenger/cmd/server [no test files]
? messenger/internal/config [no test files]
? messenger/internal/domain [no test files]
=== RUN TestSessionExpiry
--- PASS: TestSessionExpiry (3.09s)
=== RUN TestLogout
--- PASS: TestLogout (0.11s)
=== RUN TestWrongPassword
--- PASS: TestWrongPassword (0.10s)
=== RUN TestRedisUnavailable
redis: 2026/11/20 03:54:46 pool.go:770: redis: connection pool: failed to dial after 5 attempts: dial tcp 127.0.0.1:1: connect: connection refused
redis: 2026/11/20 03:54:46 pool.go:770: redis: connection pool: failed to dial after 5 attempts: dial tcp 127.0.0.1:1: connect: connection refused
redis: 2026/11/20 03:54:47 pool.go:770: redis: connection pool: failed to dial after 5 attempts: dial tcp 127.0.0.1:1: connect: connection refused
redis: 2026/11/20 03:54:47 pool.go:770: redis: connection pool: failed to dial after 5 attempts: dial tcp 127.0.0.1:1: connect: connection refused
redis: 2026/11/20 03:54:47 pool.go:770: redis: connection pool: failed to dial after 5 attempts: dial tcp 127.0.0.1:1: connect: connection refused
redis: 2026/11/20 03:54:48 pool.go:770: redis: connection pool: failed to dial after 5 attempts: dial tcp 127.0.0.1:1: connect: connection refused
--- PASS: TestRedisUnavailable (2.81s)
=== RUN TestDatabaseUnavailable
--- PASS: TestDatabaseUnavailable (0.17s)
=== RUN TestInvalidJSON
--- PASS: TestInvalidJSON (0.01s)
=== RUN TestForeignChat
--- PASS: TestForeignChat (0.18s)
=== RUN TestEmptyMessage
redis: 2026/11/20 03:54:48 pool.go:770: redis: connection pool: failed to dial after 5 attempts: dial tcp 127.0.0.1:1: connect: connection refused
--- PASS: TestEmptyMessage (0.08s)
=== RUN TestDuplicateUsername
--- PASS: TestDuplicateUsername (0.09s)
=== RUN TestPaginationMultiplePages
--- PASS: TestPaginationMultiplePages (0.09s)
=== RUN TestConcurrentMessages
--- PASS: TestConcurrentMessages (0.57s)
PASS
ok messenger/internal/handler 7.289s
=== RUN TestRegisterUsernameRace
--- PASS: TestRegisterUsernameRace (0.05s)
=== RUN TestCreateChatRollback
--- PASS: TestCreateChatRollback (0.01s)
PASS
ok messenger/internal/repository/postgres 0.072s
? messenger/internal/repository/redis [no test files]
? messenger/internal/repository/s3 [no test files]
? messenger/internal/router [no test files]
=== RUN TestCheckFilename
--- PASS: TestCheckFilename (0.00s)
=== RUN TestDetectImageType
--- PASS: TestDetectImageType (0.00s)
=== RUN TestCheckPixels
--- PASS: TestCheckPixels (0.00s)
=== RUN TestCheckIntegrity
--- PASS: TestCheckIntegrity (0.00s)
=== RUN TestCheckMessageText
--- PASS: TestCheckMessageText (0.00s)
=== RUN TestCheckAttachmentIDs
--- PASS: TestCheckAttachmentIDs (0.00s)
=== RUN TestMessageHash
--- PASS: TestMessageHash (0.00s)
=== RUN TestReadLimited
--- PASS: TestReadLimited (0.00s)
PASS
ok messenger/internal/service 0.004s