Skip to content
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

OIDC: Fix wait strategy not respecting timeout #28299

Merged
merged 1 commit into from
Sep 30, 2022
Merged

OIDC: Fix wait strategy not respecting timeout #28299

merged 1 commit into from
Sep 30, 2022

Conversation

bernardocoferre
Copy link
Contributor

As the log message wait strategy for Keycloak container was defined in the QuarkusOidcContainer#configure method, the global Dev Services timeout was not being respected correctly.

By having it defined in the GenericContainer constructor, and as the container startup timeout is set at KeycloakDevServicesProcessor.java:341, the global timeout is not being wrongly overrided anymore.

To reproduce this issue, set the global timeout to 1 second with the following configuration in the application.properties:
quarkus.devservices.timeout=PT1S

And then run an application with Keycloak using Dev Services enabled in dev mode with the following command:
quarkus dev

The application will fail to start after the default Testcontainers timeout, which is 1 minute, instead of the configured timeout of 1 second.

@bernardocoferre
Copy link
Contributor Author

CC @sberyozkin

@sberyozkin sberyozkin self-requested a review September 29, 2022 15:30
@sberyozkin
Copy link
Member

@bernardocoferre thanks for the fix
@gsmet I guess this one also should be synced with #28294

@quarkus-bot
Copy link

quarkus-bot bot commented Sep 29, 2022

Failing Jobs - Building ecb6402

Status Name Step Failures Logs Raw logs
✔️ JVM Tests - JDK 11
✔️ JVM Tests - JDK 17
JVM Tests - JDK 17 MacOS M1 Set up runner ⚠️ Check → Logs Raw logs
✔️ JVM Tests - JDK 18

@gsmet gsmet merged commit 6759300 into quarkusio:main Sep 30, 2022
@quarkus-bot quarkus-bot bot added this to the 2.14 - main milestone Sep 30, 2022
@gsmet gsmet modified the milestones: 2.14 - main, 2.13.1.Final Sep 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants