-
Notifications
You must be signed in to change notification settings - Fork 28
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
KeycloakContainer and Keycloak service refactoring, Keycloak image bump and resulting OCP fixes #986
Merged
jedla97
merged 1 commit into
quarkus-qe:main
from
michalvavrik:feature/kc-annotation-improvements
Dec 18, 2023
Merged
KeycloakContainer and Keycloak service refactoring, Keycloak image bump and resulting OCP fixes #986
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
52 changes: 0 additions & 52 deletions
52
examples/keycloak/src/test/java/io/quarkus/qe/LegacyKeycloakIT.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 0 additions & 8 deletions
8
examples/keycloak/src/test/java/io/quarkus/qe/OpenShiftUsingExtensionLegacyKeycloakIT.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,6 +11,9 @@ | |
|
||
public class KeycloakService extends BaseService<KeycloakService> { | ||
|
||
public static final String DEFAULT_REALM_BASE_PATH = "/realms"; | ||
public static final String DEFAULT_REALM = "test-realm"; | ||
public static final String DEFAULT_REALM_FILE = "/keycloak-realm.json"; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. +1 for adding these in one place. |
||
private static final String REALM_DEST_PATH = "/opt/keycloak/data/import"; | ||
private static final String USER = "admin"; | ||
private static final String PASSWORD = "admin"; | ||
|
@@ -33,16 +36,6 @@ public KeycloakService(String realmFile, String realmName, String realmBasePath) | |
withProperty("KEYCLOAK_REALM_IMPORT", "resource_with_destination::" + REALM_DEST_PATH + "|" + realmFile); | ||
} | ||
|
||
/** | ||
* Legacy constructor used by previous versions of Keycloak 18. | ||
*/ | ||
@Deprecated | ||
public KeycloakService(String realmFile, String realmName) { | ||
this(realmName); | ||
withProperty("KEYCLOAK_IMPORT", "resource::" + realmFile); | ||
withProperty("KEYCLOAK_REALM_IMPORT", "resource_with_destination::" + REALM_DEST_PATH + "|" + realmFile); | ||
} | ||
|
||
public KeycloakService(String realmName) { | ||
this.realm = realmName; | ||
withProperty("KEYCLOAK_ADMIN", USER); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Shouldn't here be also newer Keycloak?
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.
No idea why there is hardcoded image instead of
@KeycloakContainer
used, but I suppose we can do it in a separate PR? I'm happy to change annotation, but I'd like to make release and fix TS.Also @gtroitsk have some ticket on getting rid of hardcoded images, maybe he can take care of it?
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.
Ok no problem with this. Make sense to leave it the task with removing hardcoded images.
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.
Thanks; @gtroitsk please create PR (ideally with others if there are such hardcoded images) and link it with this one.
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.
I will do it after finish with TS related stuff