-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
CredsStore validation for RegistryAuthLocator #1303
CredsStore validation for RegistryAuthLocator #1303
Conversation
Could you guys help with what behaviour should be implemented for empty values? Options:
FYI: I explicitly fail test until this behaviour will be defined and implemented |
Hi @NikitaZhevnitskiy When the I'd agree that it's a good idea to log, though - perhaps at WARN level? Thanks! |
core/src/test/java/org/testcontainers/utility/RegistryAuthLocatorTest.java
Outdated
Show resolved
Hide resolved
core/src/main/java/org/testcontainers/utility/RegistryAuthLocator.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a couple of trivial comments from me but otherwise this is great, thank you!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great, thanks @NikitaZhevnitskiy
LGTM - will merge.
Releasing this in 1.11.0 🎉 |
Fixes
RegistryAuthLocator
: Add additional validation for existing keycredsStore
but empty valuePurpose
Define behaviour for RegistryAuthLocator on empty values in config
Offer:
Background Context
Currently experienced problems using testcontainers, I found existing issue for my problem and decided to help.
Potentially, put checks for all existing
keys
with empty stringsReferences
ref: #921