Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@shawkins
Copy link
Contributor

closes: #24815

Copy link

@keycloak-github-bot keycloak-github-bot bot left a 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

@keycloak-github-bot
Copy link

Unreported flaky test detected

If the 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.LevelOfAssuranceFlowTest#testWithOTPAndRecoveryCodesAtLevel2

Keycloak CI - Forms IT (chrome)

org.openqa.selenium.ElementClickInterceptedException: 
element click intercepted: Element <input type="submit" class="pf-v5-c-button pf-v5-c-button pf-m-primary btn-lg" id="saveRecoveryAuthnCodesBtn" value="Complete setup" disabled=""> is not clickable at point (1769, 1393). Other element would receive the click: <form action="https://localhost:8543/auth/realms/test/login-actions/required-action?session_code=Of0k0Mvtt_GihQGz2yDLpvf6Uv_5bMW1P4F67EtzBj8&amp;execution=CONFIGURE_RECOVERY_AUTHN_CODES&amp;client_id=test-app&amp;tab_id=2Lhti8gUctQ&amp;client_data=eyJydSI6Imh0dHBzOi8vbG9jYWxob3N0Ojg1NDMvYXV0aC9yZWFsbXMvbWFzdGVyL2FwcC9hdXRoIiwicnQiOiJjb2RlIiwic3QiOiJkNTU3ODg0Yy01YzdkLTQyMjItYjE3NC0yYTYzYjQyYjlmOTcifQ" class="pf-v5-c-form__group" id="kc-recovery-codes-settings-form" method="post">...</form>
  (Session info: chrome=128.0.6613.137)
Build info: version: '4.21.0', revision: '79ed462ef4'
System info: os.name: 'Linux', os.arch: 'amd64', os.version: '6.8.0-1014-azure', java.version: '21.0.4'
...

Report flaky test

Pepo48
Pepo48 previously approved these changes Sep 25, 2024
@shawkins
Copy link
Contributor Author

Added some refinements to #33209 on this pr as well - it can be done as a separate one if desired.

Copy link

@keycloak-github-bot keycloak-github-bot bot left a 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

@keycloak-github-bot
Copy link

Unreported flaky test detected

If the 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.registration.PolicyJsInjectionTest#requireResidentKey

Keycloak CI - WebAuthn IT (chrome)

java.lang.AssertionError: Expected RegisterPage but was Sign in to test (https://localhost:8543/auth/realms/test/protocol/openid-connect/auth?response_type=code&client_id=test-app&redirect_uri=https%3A%2F%2Flocalhost%3A8543%2Fauth%2Frealms%2Fmaster%2Fapp%2Fauth&state=0dd0e9e5-18d0-49a9-a3aa-61365280c64c&scope=openid)
	at org.junit.Assert.fail(Assert.java:89)
	at org.junit.Assert.assertTrue(Assert.java:42)
	at org.keycloak.testsuite.pages.AbstractPage.assertCurrent(AbstractPage.java:47)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
...

Report flaky test

org.keycloak.testsuite.webauthn.registration.ResidentKeyRegisterTest#residentKeyNotRequiredNoRK

Keycloak CI - WebAuthn IT (chrome)

java.lang.AssertionError: Expected LoginPage but was AUTH_RESPONSE (https://localhost:8543/auth/realms/master/app/auth?state=7825c07a-17c6-422e-812b-b2f5c364ba70&session_state=ab1a29d5-145d-4a8e-b41d-7dbe556af266&iss=https%3A%2F%2Flocalhost%3A8543%2Fauth%2Frealms%2Ftest&code=88976b63-3fda-46b0-81fd-28e2a1020e75.ab1a29d5-145d-4a8e-b41d-7dbe556af266.dd631abe-72dc-46fb-811d-7585f47be708)
	at org.junit.Assert.fail(Assert.java:89)
	at org.junit.Assert.assertTrue(Assert.java:42)
	at org.keycloak.testsuite.pages.AbstractPage.assertCurrent(AbstractPage.java:47)
	at org.keycloak.testsuite.pages.LoginPage.open(LoginPage.java:262)
...

Report flaky test

org.keycloak.testsuite.webauthn.registration.passwordless.PwdLessResidentKeyRegTest#residentKeyNotRequiredPresent

Keycloak CI - WebAuthn IT (chrome)

java.lang.AssertionError: Expected RegisterPage but was Sign in to test (https://localhost:8543/auth/realms/test/protocol/openid-connect/auth?response_type=code&client_id=test-app&redirect_uri=https%3A%2F%2Flocalhost%3A8543%2Fauth%2Frealms%2Fmaster%2Fapp%2Fauth&state=ea9ab455-c5db-4524-8644-417fdb42ba4d&scope=openid)
	at org.junit.Assert.fail(Assert.java:89)
	at org.junit.Assert.assertTrue(Assert.java:42)
	at org.keycloak.testsuite.pages.AbstractPage.assertCurrent(AbstractPage.java:47)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
...

Report flaky test

Signed-off-by: Steve Hawkins <[email protected]>
}


List<String> inUse = REMOVED_OPTIONS.stream().filter(s -> config.get(s) != null).toList();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@shawkins I believe this won't work as the config provider here has a scope that only contains options starting with kc.spi-hostname-v2-. The old options had a prefix of kc.spi-hostname-default-.

Since we don't have access to all config options through the SmallRye Config here, we have move it somewhere to quarkus module I'm afraid.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since we don't have access to all config options through the SmallRye Config here, we have move it somewhere to quarkus module I'm afraid.

Right, forgot about the spi mapping. I'll move it.

vmuzikar
vmuzikar previously approved these changes Sep 27, 2024
Copy link
Contributor

@vmuzikar vmuzikar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@vmuzikar vmuzikar enabled auto-merge (squash) September 27, 2024 15:13
Copy link
Contributor

@mabartos mabartos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@shawkins Just some typos. I don't want to block this PR due to these nitpicks, so merge it manually if necessary.

…figuration/mappers/HostnameV2PropertyMappers.java

Co-authored-by: Martin Bartoš <[email protected]>
Signed-off-by: Steven Hawkins <[email protected]>
Copy link
Contributor

@mabartos mabartos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@shawkins Looks better now, thanks!

cc @vmuzikar - just to be aware of the latest changes

@mabartos mabartos enabled auto-merge (squash) September 27, 2024 16:33
Copy link

@keycloak-github-bot keycloak-github-bot bot left a 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

@keycloak-github-bot
Copy link

Unreported flaky test detected

If the 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.WebAuthnPropertyTest#requiredActionRegistration

Keycloak CI - WebAuthn IT (chrome)

java.lang.AssertionError: Expected LoginPage but was AUTH_RESPONSE (https://localhost:8543/auth/realms/master/app/auth?state=7b8298fb-17a3-45ef-9a73-6f26763dbf2f&session_state=97d0cfc5-1298-478c-aa3b-de4c4dc11bb4&iss=https%3A%2F%2Flocalhost%3A8543%2Fauth%2Frealms%2Ftest&code=1e21121d-57b7-4218-bbe1-8d6e98a8c9eb.97d0cfc5-1298-478c-aa3b-de4c4dc11bb4.8d46e7e3-f549-42fa-9f80-acac5e63c030)
	at org.junit.Assert.fail(Assert.java:89)
	at org.junit.Assert.assertTrue(Assert.java:42)
	at org.keycloak.testsuite.pages.AbstractPage.assertCurrent(AbstractPage.java:47)
	at org.keycloak.testsuite.pages.LoginPage.open(LoginPage.java:262)
...

Report flaky test

Copy link

@keycloak-github-bot keycloak-github-bot bot left a 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

@keycloak-github-bot
Copy link

Unreported flaky test detected

If the 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.WebAuthnPropertyTest#requiredActionRegistration

Keycloak CI - WebAuthn IT (chrome)

java.lang.AssertionError: Expected LoginPage but was AUTH_RESPONSE (https://localhost:8543/auth/realms/master/app/auth?state=7b8298fb-17a3-45ef-9a73-6f26763dbf2f&session_state=97d0cfc5-1298-478c-aa3b-de4c4dc11bb4&iss=https%3A%2F%2Flocalhost%3A8543%2Fauth%2Frealms%2Ftest&code=1e21121d-57b7-4218-bbe1-8d6e98a8c9eb.97d0cfc5-1298-478c-aa3b-de4c4dc11bb4.8d46e7e3-f549-42fa-9f80-acac5e63c030)
	at org.junit.Assert.fail(Assert.java:89)
	at org.junit.Assert.assertTrue(Assert.java:42)
	at org.keycloak.testsuite.pages.AbstractPage.assertCurrent(AbstractPage.java:47)
	at org.keycloak.testsuite.pages.LoginPage.open(LoginPage.java:262)
...

Report flaky test

@mabartos mabartos merged commit f1a7a48 into keycloak:main Sep 28, 2024
@shawkins shawkins mentioned this pull request Sep 30, 2024
2 tasks
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.

Hostname config check on welcome page

4 participants