Skip to content

Commit

Permalink
chore: Update to Keycloak 23
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-frak committed Apr 14, 2024
1 parent 011f6d2 commit 24eaa49
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 9 deletions.
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ Make sure your test cases are reasonable, readable and maintainable. Don't forge
When updating the code to work with newer versions of Keycloak, remember to update the following:
* `keycloak.version` in [pom.xml](pom.xml) (from https://mvnrepository.com/artifact/org.keycloak.bom/keycloak-spi-bom)
* `KEYCLOAK_IMAGE` in [docker/.env](docker/.env) (from https://quay.io/repository/keycloak/keycloak?tab=tags)
* `Compatibility history` table in [README.md](README.md)
* `Compatibility history` table in [README.md](README.md) - the plugin version should be `SNAPSHOT`

To check if the plugin works correctly after the upgrade:
1) Run `mvn clean package` in the project's root directory to run unit tests and build the plugin
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ https://codesoapbox.dev/keycloak-user-migration

| Keycloak Version | Version/Commit |
|------------------|----------------------------------------------------------------------------------------------------------------------------------------------------|
| 22.X | [2.0.0](https://github.com/daniel-frak/keycloak-user-migration/releases/tag/2.0.0) |
| 23.X | SNAPSHOT |
| 22.X | [2.0.0](https://github.com/daniel-frak/keycloak-user-migration/releases/tag/2.0.0) |
| 21.X | [1.0.0](https://github.com/daniel-frak/keycloak-user-migration/releases/tag/1.0.0) |
| 20.X | [f4836a26aff16009738d5f6c74af0f8e69ba8d26](https://github.com/daniel-frak/keycloak-user-migration/commit/64e2fb30b7eac94ca944a5ef2759dcc5417ad9b2) |
| 19.X | [f4836a26aff16009738d5f6c74af0f8e69ba8d26](https://github.com/daniel-frak/keycloak-user-migration/commit/f4836a26aff16009738d5f6c74af0f8e69ba8d26) |
Expand Down
2 changes: 1 addition & 1 deletion docker/.env
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
COMPOSE_PROJECT_NAME=keycloak_migration_demo
KEYCLOAK_IMAGE=quay.io/keycloak/keycloak:22.0.5
KEYCLOAK_IMAGE=quay.io/keycloak/keycloak:23.0.7
MAVEN_IMAGE=maven:3.9.2-eclipse-temurin-17
OPENJDK_IMAGE=openjdk:17-jdk-slim

Expand Down
6 changes: 1 addition & 5 deletions docker/e2e/cypress/e2e/migrating_users.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,16 +48,12 @@ describe('user migration plugin', () => {
}

function signOutViaUI() {
cy.get('#pf-dropdown-toggle-id-8').click()
cy.get('#pf-dropdown-toggle-id-6').click()
cy.get('#sign-out').get('a').contains('Sign out').click({force: true});
}

function configureLoginSettings() {
cy.visit('/admin/master/console/#/master/realm-settings/login');

cy.get('#kc-forgot-pw-switch')
.uncheck({force: true});
cy.wait(500);
cy.get('#kc-forgot-pw-switch')
.check({force: true});
cy.get('.pf-c-alert__title').should('contain', "Forgot password changed successfully");
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<version>2.0.1-SNAPSHOT</version>
<properties>
<java.version>17</java.version>
<keycloak.version>22.0.5</keycloak.version>
<keycloak.version>23.0.7</keycloak.version>
<mockito.version>5.11.0</mockito.version>

<maven.compiler.target>${java.version}</maven.compiler.target>
Expand Down

0 comments on commit 24eaa49

Please sign in to comment.