-
Notifications
You must be signed in to change notification settings - Fork 7.4k
Aligns the logic in the welcome resources #23259
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
Conversation
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.
@shawkins Nice! Looking forward to try to remove the QuarkusWelcomeResource
altogether :)
throw new WebApplicationException(e, Response.Status.INTERNAL_SERVER_ERROR); | ||
} | ||
@Override | ||
protected String getAdminCreationMessage() { |
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 think we can change the message on WelcomeResource
and remove more code from this class. The message from WelcomeResource
does not make sense anymore.
...me/src/main/java/org/keycloak/quarkus/runtime/services/resources/QuarkusWelcomeResource.java
Outdated
Show resolved
Hide resolved
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.
Unreported flaky test detected, please review
Unreported flaky test detectedIf the below flaky tests below are affected by the changes, please review and update the changes accordingly. Otherwise, a maintainer should report the flaky tests prior to merging the PR. org.keycloak.testsuite.ui.account2.UpdateEmailTest#updateUserInfoWithRegistrationEnabledKeycloak CI - Account Console IT (firefox)
org.keycloak.testsuite.ui.account2.UpdateEmailTest#updateEmailSucceedsKeycloak CI - Account Console IT (firefox)
|
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 @shawkins.
LGTM but +1 to @pedroigor's comment around leveraging our Hostname SPI.
The changes were just pushed ;)
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.
LGTM.
Unreported flaky test detectedIf the below flaky tests below are affected by the changes, please review and update the changes accordingly. Otherwise, a maintainer should report the flaky tests prior to merging the PR. org.keycloak.testsuite.forms.VerifyProfileTest#testAttributeRequiredForDefaultScopeKeycloak CI - Forms IT (chrome)
|
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.
Unreported flaky test detected, please review
@pedroigor Do you want to give it another look? :) |
@shawkins Could you please rebase? LGTM. |
@pedroigor squashed and rebased |
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.
@shawkins Just found an issue when running your changes. Please, see the comment.
Basically, when accessing the local admin URL with an IP other than localhost
the link in the page is built using the host as the scheme. I'm not 100% sure how to test this in our test suite as we need to resolve to a IP other than localhost.
...kus/runtime/src/main/java/org/keycloak/quarkus/runtime/hostname/DefaultHostnameProvider.java
Outdated
Show resolved
Hide resolved
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.
@shawkins Thanks!
as a result the quarkus one can be removed closes keycloak#23243
…tname/DefaultHostnameProvider.java Co-authored-by: Pedro Igor <pigor.craveiro@gmail.com>
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.
Unreported flaky test detected, please review
Unreported flaky test detectedIf the below flaky tests below are affected by the changes, please review and update the changes accordingly. Otherwise, a maintainer should report the flaky tests prior to merging the PR. org.keycloak.testsuite.webauthn.account.WebAuthnTransportLocaleTest#localizationTransportUSBKeycloak CI - WebAuthn IT (chrome)
|
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.
Unreported flaky test detected, please review
Unreported flaky test detectedIf the below flaky tests below are affected by the changes, please review and update the changes accordingly. Otherwise, a maintainer should report the flaky tests prior to merging the PR. org.keycloak.testsuite.webauthn.account.WebAuthnTransportLocaleTest#localizationTransportUSBKeycloak CI - WebAuthn IT (chrome)
|
1 flaky test on run #9144 ↗︎Details:
|
Test | Artifacts | |
---|---|---|
Realm settings general tab tests > Test all general tab switches |
Test Replay
Output
Screenshots
|
Review all test suite changes for PR #23259 ↗︎
Thanks for all involved in landing this, it's much appreciated! |
Assumes the following:
closes #23243