Add support to select supplier for a given type#31292
Conversation
7e26283 to
d258379
Compare
There was a problem hiding this comment.
Temporary until we have Smallrye config stuff in place, but this let's you define the supplier using system property, environment variable, or in .env file.
Example of the last one:
# cat ./test-poc/base/.env
KC_TEST_BROWSER=firefox
KC_TEST_SERVER=remote
| Set<Supplier> skippedSuppliers = new HashSet<>(); | ||
|
|
||
| while (supplierIterator.hasNext()) { | ||
| Supplier supplier = supplierIterator.next(); |
There was a problem hiding this comment.
supplier.getValueType() is called 4 times in this loop, perhaps re-use it in a variable?
| shouldAdd = true; | ||
| } | ||
| } else { | ||
| shouldAdd = !loadedValueTypes.contains(supplier.getValueType()); |
There was a problem hiding this comment.
This is always true, as it matches the condition of the if it is contained in.
| shouldAdd = !loadedValueTypes.contains(supplier.getValueType()); | |
| shouldAdd = true; |
d258379 to
de1e1c5
Compare
de1e1c5 to
32f3eb3
Compare
|
|
||
| private static final Map<Class, String> aliases = Map.of( | ||
| WebDriver.class, "browser", | ||
| KeycloakTestServer.class, "server" |
There was a problem hiding this comment.
@stianst Since TestDatabase is merged, I propose to rebase it and add a database support here as well with particular aliases. WDYT?
Closes keycloak#30609 Signed-off-by: stianst <[email protected]>
32f3eb3 to
49e5cf9
Compare
lhanusov
left a comment
There was a problem hiding this comment.
thank you Stian for updating the code, LGTM 👍
Closes keycloak#30609 Signed-off-by: stianst <[email protected]>
Few things related to this:
Closes #30609
Signed-off-by: stianst [email protected]