8000 Fix for Issue #26937 by kaustubh-rh · Pull Request #27134 · keycloak/keycloak · GitHub
[go: up one dir, main page]

Skip to content

Fix for Issue #26937 - #27134

Merged
jonkoops merged 9 commits into
keycloak:mainfrom
kaustubh-rh:main
Feb 26, 2024
Merged

jonkoops merged 9 commits into
keycloak:mainfrom
kaustubh-rh:main

Conversation

@kaustubh-rh
@kaustubh-rh kaustubh-rh commented Feb 19, 2024 •
Copy link
Copy Markdown
Contributor

Made it not possible to remove all the client scopes .Issue #26937

Closes #26937

Signed-off-by: Kaustubh B <kbawanka@redhat.com>
@kaustubh-rh
kaustubh-rh requested a review from a team as a code owner February 19, 2024 14:45
@cypress
cypress Bot commented Feb 19, 2024 •
Copy link
Copy Markdown

Passing run #11092 ↗︎

0 553 53 0 Flakiness 0

Details:

Merge c407543 into 5a71e68...
Project: Keycloak Admin UI Commit: 88da9bef02 ℹ️
Status: Passed Duration: 07:59 💡
Started: Feb 19, 2024 5:42 PM Ended: Feb 19, 2024 5:50 PM

Review all test suite changes for PR #27134 ↗︎

@edewit
edewit commented Feb 19, 2024
Copy link
Copy Markdown
Contributor

There should also be a check on the backend, because now I can still do it with the rest endpoint

Signed-off-by: Kaustubh B <kbawanka@redhat.com>
@kaustubh-rh
Copy link
Copy Markdown
Contributor Author

Hi @edewit , thank you for the update. Added the check on the backend.

@keycloak-github-bot keycloak-github-bot Bot left a comment
Copy link
Copy Markdown

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
Copy Markdown

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.account.WebAuthnErrorTest#errorPageWithTimeout

Keycloak CI - WebAuthn IT (chrome)

java.lang.AssertionError: Expected OIDCLogin but was  (https://localhost:8543/auth/realms/test/protocol/openid-connect/auth?client_id=account-console&redirect_uri=https%3A%2F%2Flocalhost%3A8543%2Fauth%2Frealms%2Ftest%2Faccount%2F%23%2Fsecurity%2Fsigningin&state=bee91268-20b3-4e36-8b56-7dec86711d0a&response_mode=fragment&response_type=code&scope=openid&nonce=56e4097e-7627-473e-88cd-0cab4faa5e74&code_challenge=x2I0si7ClD9l-LTGVBfMU_q2vbsyPSdRA9DacN7_BZ4&code_challenge_method=S256)
	at org.junit.Assert.fail(Assert.java:89)
	at org.junit.Assert.assertTrue(Assert.java:42)
	at org.keycloak.testsuite.page.AbstractPage.assertCurrent(AbstractPage.java:109)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
...

Report flaky test

@mposolda mposolda left a comment
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@kaustubh-rh Thanks! Added few comments inline, but only minor things. I did not review UI part (leaving for UI team to review that).

@mposolda mposolda self-assigned this Feb 21, 2024
Signed-off-by: Kaustubh B <kbawanka@redhat.com>
Signed-off-by: Kaustubh B <kbawanka@redhat.com>
Signed-off-by: Kaustubh B <kbawanka@redhat.com>
Signed-off-by: Kaustubh B <kbawanka@redhat.com>
Signed-off-by: Kaustubh B <kbawanka@redhat.com>
Signed-off-by: Kaustubh B <kbawanka@redhat.com>
@keycloak-github-bot keycloak-github-bot Bot left a comment
Copy link
Copy Markdown

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
Copy Markdown

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.x509.X509BrowserLoginTest#changeLocaleOnX509InfoPage

Keycloak CI - Java Distribution IT (windows-latest - temurin - 19)

java.lang.RuntimeException: Could not create statement
	at org.jboss.arquillian.junit.Arquillian.methodBlock(Arquillian.java:307)
	at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100)
	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103)
...

Report flaky test

webAuthnPolicyCreateTimeout=超时
comparison=对比
deletedSuccessClientScope=客户端作用域已删除
notAllowedToDeleteAllClientScopes=您不能删除所有客户端范围
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@xianli123 could you verify this translation is accurate?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Yes. I made a suggestion for the line #285. @jonkoops

jonkoops
jonkoops previously approved these changes Feb 22, 2024
@jonkoops jonkoops left a comment
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Chang 8 es to th 10BC8 e front-end look good to me.

@xianli123 xianli123 left a comment
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I would change the line 285 from notAllowedToDeleteAllClientScopes=您不能删除所有客户端范围 to notAllowedToDeleteAllClientScopes=您不能删除所有客户端作用域. In this way, we can keep the wording consistent.

Signed-off-by: Kaustubh B <kbawanka@redhat.com>
@mposolda mposolda left a comment
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@kaustubh-rh @jonkoops Thanks for the updates and review! I hope to merge if tests are OK (saw the failure in UI test, but looks it might be rather some instability not related to this PR. So tried to re-run UI tests).

@kaustubh-rh
Copy link
Copy Markdown
Contributor Author

Hi @mposolda , thanks for the update. It looks like all the tests have passed. Thanks

@jonkoops
Copy link
Copy Markdown
Contributor

@mposolda Yeah, we've been having some test stability issues recently. I think this is good to go, thanks again @kaustubh-rh!

@jonkoops
jonkoops merged commit 03f6cda into keycloak:main Feb 26, 2024
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.

Once all default client scopes are deleted from the realm we can't create a new custom role.

5 participants

0