forked from mtusi2026/mtusi2026lab6
95 lines
5.4 KiB
Plaintext
95 lines
5.4 KiB
Plaintext
python3 tests/smoke.py --base-url "http://localhost:18086"
|
|
PASS: lab6 public API scenario; infrastructure and grading evidence remain separate.
|
|
cd service && TEST_BASE_URL="http://localhost:18086" go test -race -count=1 -v ./...
|
|
? gitea.privcloud.tech/mtusi2026/cmd/app [no test files]
|
|
=== RUN TestLostPostResponseIsNotRetried
|
|
--- PASS: TestLostPostResponseIsNotRetried (0.00s)
|
|
PASS
|
|
ok gitea.privcloud.tech/mtusi2026/cmd/benchmark 1.439s
|
|
? gitea.privcloud.tech/mtusi2026/internal/adapter/broker [no test files]
|
|
? gitea.privcloud.tech/mtusi2026/internal/adapter/controller/http [no test files]
|
|
? gitea.privcloud.tech/mtusi2026/internal/adapter/repository/cache/outside [no test files]
|
|
=== RUN TestIdempotencyTransactionAndExpiry
|
|
idempotency_test.go:27: run make test-storage for an isolated PostgreSQL database
|
|
--- SKIP: TestIdempotencyTransactionAndExpiry (0.00s)
|
|
PASS
|
|
ok gitea.privcloud.tech/mtusi2026/internal/adapter/repository/storage 1.715s
|
|
? gitea.privcloud.tech/mtusi2026/internal/config [no test files]
|
|
? gitea.privcloud.tech/mtusi2026/internal/dto [no test files]
|
|
? gitea.privcloud.tech/mtusi2026/internal/gen/contracts [no test files]
|
|
? gitea.privcloud.tech/mtusi2026/internal/pkg/apperr [no test files]
|
|
? gitea.privcloud.tech/mtusi2026/internal/pkg/auth/jwtprovider [no test files]
|
|
? gitea.privcloud.tech/mtusi2026/internal/pkg/cache [no test files]
|
|
=== RUN TestSessionFingerprints
|
|
--- PASS: TestSessionFingerprints (0.03s)
|
|
PASS
|
|
ok gitea.privcloud.tech/mtusi2026/internal/pkg/encrypting 1.341s
|
|
? gitea.privcloud.tech/mtusi2026/internal/pkg/fault [no test files]
|
|
? gitea.privcloud.tech/mtusi2026/internal/pkg/imageprocessor [no test files]
|
|
? gitea.privcloud.tech/mtusi2026/internal/pkg/migrator [no test files]
|
|
? gitea.privcloud.tech/mtusi2026/internal/pkg/objectstore [no test files]
|
|
? gitea.privcloud.tech/mtusi2026/internal/pkg/postgres [no test files]
|
|
? gitea.privcloud.tech/mtusi2026/internal/pkg/postgres/txmanager [no test files]
|
|
? gitea.privcloud.tech/mtusi2026/internal/pkg/rest/framework [no test files]
|
|
? gitea.privcloud.tech/mtusi2026/internal/pkg/rest/headers [no test files]
|
|
=== RUN TestVerifiedSessionIsRequestScoped
|
|
2026/11/16 13:21:03 ERROR http_error error_code=CodeUnauthorized status=401 request_id=a407e1e0-b4ee-4006-b34f-8256cb26951b
|
|
--- PASS: TestVerifiedSessionIsRequestScoped (0.00s)
|
|
=== RUN TestMissingTokenDoesNotCallSessionStore
|
|
2026/11/16 13:21:03 ERROR http_error error_code=CodeUnauthorized status=401 request_id=12e5acbe-dc1b-4b12-ab1a-d7bf23c5b0c2
|
|
--- PASS: TestMissingTokenDoesNotCallSessionStore (0.00s)
|
|
PASS
|
|
ok gitea.privcloud.tech/mtusi2026/internal/pkg/rest/middleware 1.992s
|
|
? gitea.privcloud.tech/mtusi2026/internal/pkg/rest/router [no test files]
|
|
? gitea.privcloud.tech/mtusi2026/internal/pkg/telemetry [no test files]
|
|
? gitea.privcloud.tech/mtusi2026/internal/pkg/types [no test files]
|
|
? gitea.privcloud.tech/mtusi2026/internal/pkg/types/authprovider [no test files]
|
|
? gitea.privcloud.tech/mtusi2026/internal/pkg/types/environment [no test files]
|
|
? gitea.privcloud.tech/mtusi2026/internal/pkg/types/role [no test files]
|
|
? gitea.privcloud.tech/mtusi2026/internal/pkg/validator [no test files]
|
|
? gitea.privcloud.tech/mtusi2026/internal/service/attachment [no test files]
|
|
? gitea.privcloud.tech/mtusi2026/internal/service/auth [no test files]
|
|
? gitea.privcloud.tech/mtusi2026/internal/service/chat [no test files]
|
|
? gitea.privcloud.tech/mtusi2026/internal/service/observation [no test files]
|
|
? gitea.privcloud.tech/mtusi2026/internal/service/outbox [no test files]
|
|
? gitea.privcloud.tech/mtusi2026/internal/service/user [no test files]
|
|
? gitea.privcloud.tech/mtusi2026/migrations [no test files]
|
|
=== RUN TestInvalidJSON
|
|
=== RUN TestInvalidJSON/malformed
|
|
=== RUN TestInvalidJSON/wrong_type
|
|
=== RUN TestInvalidJSON/unknown_field
|
|
--- PASS: TestInvalidJSON (0.01s)
|
|
--- PASS: TestInvalidJSON/malformed (0.01s)
|
|
--- PASS: TestInvalidJSON/wrong_type (0.00s)
|
|
--- PASS: TestInvalidJSON/unknown_field (0.00s)
|
|
=== RUN TestForeignChatIsHidden
|
|
--- PASS: TestForeignChatIsHidden (0.57s)
|
|
=== RUN TestEmptyMessage
|
|
--- PASS: TestEmptyMessage (0.19s)
|
|
=== RUN TestDuplicateUsername
|
|
--- PASS: TestDuplicateUsername (0.22s)
|
|
=== RUN TestMessagePagination
|
|
--- PASS: TestMessagePagination (0.20s)
|
|
=== RUN TestAttachmentContractAndErrors
|
|
=== RUN TestAttachmentContractAndErrors/fake
|
|
=== RUN TestAttachmentContractAndErrors/mime_mismatch
|
|
=== RUN TestAttachmentContractAndErrors/wrong_type
|
|
=== RUN TestAttachmentContractAndErrors/truncated
|
|
--- PASS: TestAttachmentContractAndErrors (1.05s)
|
|
--- PASS: TestAttachmentContractAndErrors/fake (0.00s)
|
|
--- PASS: TestAttachmentContractAndErrors/mime_mismatch (0.00s)
|
|
--- PASS: TestAttachmentContractAndErrors/wrong_type (0.00s)
|
|
--- PASS: TestAttachmentContractAndErrors/truncated (0.00s)
|
|
=== RUN TestConcurrentAttachmentMessage
|
|
--- PASS: TestConcurrentAttachmentMessage (0.20s)
|
|
=== RUN TestConcurrentMessages
|
|
concurrency_test.go:160: 10 clients sent 100 messages; history contains 100 unique messages across 6 pages
|
|
--- PASS: TestConcurrentMessages (1.46s)
|
|
=== RUN TestIdempotencyContract
|
|
--- PASS: TestIdempotencyContract (0.53s)
|
|
=== RUN TestConcurrentIdempotencyAcrossReplicas
|
|
idempotency_test.go:103: 32 requests across 2 replicas created exactly one message
|
|
--- PASS: TestConcurrentIdempotencyAcrossReplicas (0.22s)
|
|
PASS
|
|
ok gitea.privcloud.tech/mtusi2026/tests 6.932s
|