-
Notifications
You must be signed in to change notification settings - Fork 0
test: share testcontainers per service via pkg/testutil #208
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 14 commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
16c3073
test(search-service): share NATS / ES / Valkey containers across inte…
claude 4252c54
test(search-service): fail tests when shared Valkey FLUSHDB cleanup e…
claude 6b23294
test(search-service): split CCS integration tests into their own file
claude 24e9280
test(search-service): split integration tests by search endpoint
claude 17ef382
test(search-service): add router cleanup to CCS fixture; trim comments
claude 1e5d970
test(search-service): pre-warm shared containers in parallel; halve E…
claude a71664b
test(search-service): explicit shared-container cleanup; disable Ryuk…
claude 436dc39
test(testutil,search-service): add TerminateMongo for explicit cleanup
claude a5a5c5a
test(testutil): add Elasticsearch, NATS, Valkey + Terminate{All,Xxx}
claude 08ba0b4
test(testutil): disable Ryuk repo-wide via init(); drop CI env var
claude d356c6a
test(repo): migrate every integration package to testutil shared cont…
claude 66cecfe
test(loadgen): migrate members_integration_test.go to testutil.NATS
claude 94827bc
test(testutil): re-disable Ryuk via init(); audit per-container cleanup
claude cda13a2
test(testutil,search-service): simplify pass — RunTests helper, const…
claude 713d5eb
test(search-sync-worker): fail-fast on prewarm errors
claude 1cdad60
test: switch integration test files to internal package per CLAUDE.md
claude ff2312a
test(roomkeystore): add missing TestMain
claude 42552f7
docs(CLAUDE.md): document the testcontainer best practice this PR est…
claude ff03e8d
Merge origin/main into testcontainer-share branch
claude 7a6cc36
Post-merge fixes for Valkey cluster-mode migration
claude 80514d1
test(testutil): add SharedValkeyCluster + FlushValkey for shared cluster
claude c6424e3
chore(history-service): remove local docker-compose folder
claude 7b76258
test: trim comments per simplify pass
claude e757c42
test(testutil): extract PrewarmFailFast, RunTestsWithPrewarm, Elastic…
claude File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| //go:build integration | ||
|
|
||
| package main | ||
|
|
||
| import ( | ||
| "testing" | ||
|
|
||
| "github.com/hmchangw/chat/pkg/testutil" | ||
| ) | ||
|
|
||
| func TestMain(m *testing.M) { testutil.RunTests(m) } |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| //go:build integration | ||
|
|
||
| package cassrepo | ||
|
|
||
| import ( | ||
| "testing" | ||
|
|
||
| "github.com/hmchangw/chat/pkg/testutil" | ||
| ) | ||
|
|
||
| func TestMain(m *testing.M) { testutil.RunTests(m) } |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| //go:build integration | ||
|
|
||
| package mongorepo | ||
|
|
||
| import ( | ||
| "testing" | ||
|
|
||
| "github.com/hmchangw/chat/pkg/testutil" | ||
| ) | ||
|
|
||
| func TestMain(m *testing.M) { testutil.RunTests(m) } |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| //go:build integration | ||
|
|
||
| package service_test | ||
|
|
||
| import ( | ||
| "testing" | ||
|
|
||
| "github.com/hmchangw/chat/pkg/testutil" | ||
| ) | ||
|
|
||
| func TestMain(m *testing.M) { testutil.RunTests(m) } | ||
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| //go:build integration | ||
|
|
||
| package main | ||
|
|
||
| import ( | ||
| "testing" | ||
|
|
||
| "github.com/hmchangw/chat/pkg/testutil" | ||
| ) | ||
|
|
||
| func TestMain(m *testing.M) { testutil.RunTests(m) } |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| //go:build integration | ||
|
|
||
| package main | ||
|
|
||
| import ( | ||
| "testing" | ||
|
|
||
| "github.com/hmchangw/chat/pkg/testutil" | ||
| ) | ||
|
|
||
| func TestMain(m *testing.M) { testutil.RunTests(m) } |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| //go:build integration | ||
|
|
||
| package main | ||
|
|
||
| import ( | ||
| "testing" | ||
|
|
||
| "github.com/hmchangw/chat/pkg/testutil" | ||
| ) | ||
|
|
||
| func TestMain(m *testing.M) { testutil.RunTests(m) } |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| //go:build integration | ||
|
|
||
| package minioutil | ||
|
|
||
| import ( | ||
| "testing" | ||
|
|
||
| "github.com/hmchangw/chat/pkg/testutil" | ||
| ) | ||
|
|
||
| func TestMain(m *testing.M) { testutil.RunTests(m) } |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| //go:build integration | ||
|
|
||
| package mongoutil | ||
|
|
||
| import ( | ||
| "testing" | ||
|
|
||
| "github.com/hmchangw/chat/pkg/testutil" | ||
| ) | ||
|
|
||
| func TestMain(m *testing.M) { testutil.RunTests(m) } |
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| //go:build integration | ||
|
|
||
| package natsrouter_test | ||
|
coderabbitai[bot] marked this conversation as resolved.
Outdated
|
||
|
|
||
| import ( | ||
| "testing" | ||
|
|
||
| "github.com/hmchangw/chat/pkg/testutil" | ||
| ) | ||
|
|
||
| func TestMain(m *testing.M) { testutil.RunTests(m) } | ||
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| //go:build integration | ||
|
|
||
| package roomcrypto | ||
|
|
||
| // Import testutil for the Ryuk-disable init() side effect even though | ||
| // this package starts its containers per-test (t.Cleanup handles teardown). | ||
|
|
||
| import ( | ||
| "testing" | ||
|
|
||
| "github.com/hmchangw/chat/pkg/testutil" | ||
| ) | ||
|
|
||
| func TestMain(m *testing.M) { testutil.RunTests(m) } |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| //go:build integration | ||
|
|
||
| package roomkeysender_test | ||
|
coderabbitai[bot] marked this conversation as resolved.
Outdated
|
||
|
|
||
| // Import testutil for the Ryuk-disable init() side effect even though | ||
| // this package starts its containers per-test (t.Cleanup handles teardown). | ||
|
|
||
| import ( | ||
| "testing" | ||
|
|
||
| "github.com/hmchangw/chat/pkg/testutil" | ||
| ) | ||
|
|
||
| func TestMain(m *testing.M) { testutil.RunTests(m) } | ||
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.