forked from testcontainers/testcontainers-go
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: define test session semantics (testcontainers#1513)
* feat: aggregate test executions at the sessionID level * chore: initialise ID in a simple manner, using the init function * fix: update tests * fix: mod tidy modules * chore: check if ryuk is running inspecting the container * chore: remove usage of deprecated labels * chore: do not pass sessionID everywhere Instead read the already shared value * chore: rename ID to SessionID * chore: define RunID as an identifier of the current test process * chore: pass RunID to reaper * feat: use parent pid creation date as part of the hash * chore: print out the test session and run IDs * fix: remove unused import * fix: remove blank line * chore: rename to processID * chore: go mod tidy modules * chore: protect sessionID and processID from undesired changes * chore: add label to Ryuk * chore: get reaper instance from the Docker response * fix: use sessionID as HTTP header * fix: proper format * chore: initialise reaper labels in a single manner * chore: do not add labels twice * fix: assertion was the opposite * fix: update test * chore: mod tidy * fix: right logic to bootstrap the reaper if it does not exist * fix: update test * chore: randomise the lookup of the reaper a little bit * chore: leverage sync.singleflight for starting the reaper just once * chore: do not call newReaper but reuseOrRecreate reaper * chore: back to sync.Once * fix: make sure there is one Ryuk instance * fix: properly set initial state for tests * fix: properly set initial state for tests * chore: make mockProvider restore the testing state * fix: mockReaperProvider must reset the state of the reaper * fix: apply reaper session ID when it exists * chore: remove unused code * chore: use reaper's sessionID * chore: use reaper's sessionID * chore: skip tests that need the reaper * chore: mod tidy * chore: move reaper tests to reaper_test.go * chore: proper order * chore: use reaper container in reused log * chore: do not panic but instead keep returning an error * chore: consistently read sessionID from session package of the reaper * fix: bring back check for reaper state if found * chore: mod tidy kafka module
- Loading branch information
1 parent
fcda830
commit aa3be2d
Showing
64 changed files
with
1,668 additions
and
411 deletions.
There are no files selected for viewing
This file contains 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 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.