-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Replace region
with regionSupplier
in all AWS tests
#126285
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
Replace region
with regionSupplier
in all AWS tests
#126285
Conversation
Rather than hard-coding a region name we should always auto-generate it randomly during test execution. This commit replaces the remaining fixed `String` arguments with a `Supplier<String>` argument to enable this.
Pinging @elastic/es-distributed-coordination (Team:Distributed Coordination) |
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.
Looks fine to me 👍 Though I'm not sure where you're headed with the change.
IIUC, a Supplier was used to get around static requirements for random string generation. There then isn't a need for a Supplier beyond feeding an initial method call: is this symmetry or are you heading someplace else with the change?
In the v2 SDK upgrade I want to assert these regions more strongly since the region behaviour is changing, but I don't really want to continue to generate them statically, thought it'd be better to do this up front. |
Rather than hard-coding a region name we should always auto-generate it randomly during test execution. This commit replaces the remaining fixed `String` arguments with a `Supplier<String>` argument to enable this.
💚 Backport successful
|
…26323) Rather than hard-coding a region name we should always auto-generate it randomly during test execution. This commit replaces the remaining fixed `String` arguments with a `Supplier<String>` argument to enable this.
Rather than hard-coding a region name we should always auto-generate it
randomly during test execution. This commit replaces the remaining fixed
String
arguments with aSupplier<String>
argument to enable this.