-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add option to override image validation (#108)
* feat: move image validation to container configuration Add methods to control when to perform image validation and define the validation behavior on `Testcontainers.Container` module. Also, adapt all containers to use these methods. * feat: control image validation publicly * fix: undo change in testcontainers * test: ensure validation works properly * chore: toying with alternatives This is just a simple translation of the current validation. I will work out a way to reduce the code duplication. * chore: use regex to match image With this update, it's easier to match parts of the image repository and assume any registry or tag. * chore: let the check_image regex fail With this, we let the end user know that the string can't be converted to a valid regular expression. * chore: simplify regex compilation * chore: reduce code duplication Create `guard` clause to validate `check_image`. * feat: example on how to use custom image * feat: add `check_image` on `Testcontainers.Ecto`
- Loading branch information
Showing
12 changed files
with
293 additions
and
63 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
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
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
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.