-
Notifications
You must be signed in to change notification settings - Fork 2.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
Added keycloak-server test framework #16035
Added keycloak-server test framework #16035
Conversation
Hi @cemnura Great work :-) |
Hi @sberyozkin thanks for your review :) I added Is there any reference I can look up to run KC instance? I had difficulties with |
@cemnura Having said that, may be it is the right time to switch to |
@cemnura Do you mean this one, https://github.com/quarkusio/quarkus/blob/main/integration-tests/oidc/pom.xml#L124 ? That is a property set by CI :-), while quarkus/integration-tests/oidc/pom.xml Line 178 in 13c5469
|
@cemnura for the users it would likely be simpler to use the |
Yes sorry I meant that module runs KC docker container with fabric 8 😄 |
@cemnura Re getting |
Using it in CI might be difficult I just thought I was going to run a full KC instance programmatically. If there is a way to launch a KC instance without testcontainers I would gladly give it a try 😄 |
@cemnura sorry, may be I'm missing something. |
@cemnura It is grand, |
@cemnura please use |
@cemnura OK, so you have:
First I propose to rename the realm name from and also create and copy this code: https://github.com/quarkusio/quarkus/blob/main/integration-tests/oidc-code-flow/src/test/java/io/quarkus/it/keycloak/KeycloakRealmResourceManager.java#L75 It is nearly the same as for the service realm but there is an extra sso property and the client creation code also has a redirect uri property. Probably makes sense to have 1 |
c4d7715
to
6df24e3
Compare
Hey @sberyozkin I configured the first realm and added the webapp realm as you said (and collapsed them to seperate createRealm methods (I also thought it would be cleaner 😄). I removed I only had a problem to load the We need to be able to load the #application.properties
keycloak.docker.image=${keycloak.docker.image} Perhaps there is a better way to load configurations for |
@cemnura Hi, thanks, it is nearly ready to go then :-) (sorry mistyped the smiley the prev time)
|
Hello @sberyozkin I believe the problem is more to access the maven property in the java code rather then the property I am not sure how to use maven properties it in the java code hence bringing me to the following search 😄 https://www.google.com/search?q=maven+use+properties+in+code I tried to load the property as a system property via |
Signed-off-by: Cem Nura <[email protected]>
6df24e3
to
5714317
Compare
Hello @sberyozkin I successfully tested out whether we can access Example:
the I agree that Such as;
That being said I would gladly implement The balls in your court 😄 Cheers |
@cemnura Makes sense, we can support |
🎉 @sberyozkin great thanks looking forward 😄 |
Fixes #13957