test: complete Phase 2 media/presence/security/consistency/WS scenarios#54
Merged
ULookup merged 28 commits intoJul 16, 2026
Merged
Conversation
…scribe-idempotent
…t/typing notifies
…dedup/reaction - FN-CC-02: 10 goroutines concurrent send with different client_msg_id, verify all 10 land in DB with unique message_ids - FN-CC-03: Friend accept then immediate concurrent send (5 msgs), verify no message loss via DB count - FN-CC-04: Concurrent ApplyUpload with same content_hash after initial upload, verify dedup returns identical file_id - FN-CC-05: Two users (a+b) concurrently add same emoji reaction, verify get_reactions succeeds (idempotency) All tests use real full-stack via fixture helpers (setupConv/sendMsg) and DBVerifier.MessageCount for storage assertions. Compilation, go vet, and gofmt all pass clean.
…test, identity/test) C++ behavior is fully covered by Go black-box tests: - mime/jwt/content_hash/object_key/magic -> media_test.go + auth_middleware_test.go - s3/media_dao integration -> SC-05 MediaUploadFullFlow + FN-DC-07 MediaQuota - identity_client -> tests/pkg/client/http.go Root CMakeLists.txt no longer add_subdirectory(common/test). All C++ test build targets were already commented out (FIXME 3.0).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Phase 2: media + presence + 安全 + 一致性 + WS + 并发 + L3 场景
继 Phase 1(PR #49)的测试基础设施与核心门禁后,本 PR 完成 Phase 2 的 Go 全栈黑盒测试扩展,并移除已被替代的 C++ gtest 目录。
任务状态
主要新增
C++ 测试清理
删除:
common/test/media/test/identity/test/并移除根
CMakeLists.txt对common/test的引用。等价外部行为已映射到现有tests/pkg+tests/func框架,不恢复独立测试体系。Final review 修复
验证说明
按本轮用户指示,本地环境未就位,因此未运行
go test、go vet、编译、CMake、Docker 或全栈测试。已执行:
git diff --check运行时行为仍需在可用 Linux 全栈环境或 CI 中确认。