8000 Upgrade Selenium and Arquillian dependencies in testsuite by mabartos · Pull Request #29779 · keycloak/keycloak · GitHub
[go: up one dir, main page]

Skip to content

Upgrade Selenium and Arquillian dependencies in testsuite - #29779

Merged
mposolda merged 2 commits into
keycloak:mainfrom
mabartos:upgradeSelenium
May 29, 2024
Merged

mposolda merged 2 commits into
keycloak:mainfrom
mabartos:upgradeSelenium

Conversation

@mabartos
@mabartos mabartos commented May 22, 2024 •
Copy link
Copy Markdown
Member

Closes #29778
Closes #9979

These two parts need to be merged together.

@mabartos
mabartos force-pushed the upgradeSelenium branch 2 times, most recently from 559b400 to 6105333 Compare May 22, 2024 12:31
@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.model.session.UserSessionPersisterProviderTest#testMigrateSession

Keycloak CI - Store Model Tests

java.lang.AssertionError: expected:<3> but was:<0>
	at org.junit.Assert.fail(Assert.java:89)
	at org.junit.Assert.failNotEquals(Assert.java:835)
	at org.junit.Assert.assertEquals(Assert.java:647)
	at org.junit.Assert.assertEquals(Assert.java:633)
...

Report flaky test

@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.model.session.UserSessionPersisterProviderTest#testMigrateSession

Keycloak CI - Store Model Tests

java.lang.AssertionError: expected:<3> but was:<2>
	at org.junit.Assert.fail(Assert.java:89)
	at org.junit.Assert.failNotEquals(Assert.java:835)
	at org.junit.Assert.assertEquals(Assert.java:647)
	at org.junit.Assert.assertEquals(Assert.java:633)
...

Report flaky test

org.keycloak.testsuite.model.session.UserSessionProviderOfflineModelTest#testExpired

Keycloak CI - Store Model Tests

java.lang.AssertionError: expected null, but was:<org.keycloak.models.sessions.infinispan.UserSessionAdapter@7225a72e>
	at org.junit.Assert.fail(Assert.java:89)
	at org.junit.Assert.failNotNull(Assert.java:756)
	at org.junit.Assert.assertNull(Assert.java:738)
	at org.junit.Assert.assertNull(Assert.java:748)
...

Report flaky test

@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 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.broker.KcOidcBrokerTest#testPostBrokerLoginFlowWithOTP_bruteForceEnabled

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

java.lang.AssertionError: expected:<Invalid authenticator code.> but was:<null>
	at org.junit.Assert.fail(Assert.java:89)
	at org.junit.Assert.failNotEquals(Assert.java:835)
	at org.junit.Assert.assertEquals(Assert.java:120)
	at org.junit.Assert.assertEquals(Assert.java:146)
...

Report flaky test

@jonkoops
Copy link
Copy Markdown
Contributor

@mabartos I think you might also be closing #9979 here. If I am not mistake this removes all of the remaining PhantomJS test code right?

@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.broker.KcOidcBrokerTest#testPostBrokerLoginFlowWithOTP_bruteForceEnabled

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

java.lang.AssertionError: expected:<Invalid authenticator code.> but was:<null>
	at org.junit.Assert.fail(Assert.java:89)
	at org.junit.Assert.failNotEquals(Assert.java:835)
	at org.junit.Assert.assertEquals(Assert.java:120)
	at org.junit.Assert.assertEquals(Assert.java:146)
...

Report flaky test

@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 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.broker.KcOidcBrokerTest#testPostBrokerLoginFlowWithOTP_bruteForceEnabled

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

java.lang.AssertionError: expected:<Invalid authenticator code.> but was:<null>
	at org.junit.Assert.fail(Assert.java:89)
	at org.junit.Assert.failNotEquals(Assert.java:835)
	at org.junit.Assert.assertEquals(Assert.java:120)
	at org.junit.Assert.assertEquals(Assert.java:146)
...

Report flaky test

@mabartos
mabartos force-pushed the upgradeSelenium branch 2 times, most recently from bc37ef3 to f0d1bbb Compare May 28, 2024 09:42
@mabartos
mabartos marked this pull request as ready for review May 28, 2024 09:56
@lhanusov lhanusov 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.

LGTM, all comments addressed and discussed in person, thank you @mabartos great job!

There will be a post task for QE to remove Safari and Appium support.

@jonkoops
Copy link
Copy Markdown
Contributor

There will be a post task for QE to remove Safari and Appium support.

Created a PR to remove Appium under #29923

mabartos and others added 2 commits May 28, 2024 16:16
Closes keycloak#29778

Signed-off-by: Martin Bartoš <mabartos@redhat.com>
Closes keycloak#9979

Co-authored-by: Jon Koops <jonkoops@gmail.com>
Signed-off-by: Martin Bartoš <mabartos@redhat.com>
@mabartos
mabartos marked this pull request as draft May 28, 2024 14:17
@mabartos
Copy link
Copy Markdown
Member Author

@jonkoops Thanks for these comments.

A more comprehensive pattern matching seen in different places should be done in a separate manner with the associated change of the maven.compiler properties. I'm not sure what is the state of adapters and the testing for them, so I tried to touch these props as little as possible.

With regards to the early return pattern - I'm not saying I'm not a "fan" of it, but it depends on the case. I find it more readable(at least in my eyes) as is in these mentioned cases with the nesting - so ignoring it.

@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.

LGTM

@mabartos
mabartos marked this pull request as ready for review May 28, 2024 16:09
@mabartos
Copy link
Copy Markdown
Member Author

@Aboullos @mposolda Do you want to review it as well, as you were involved in the PhantomJS removal?

@miquelsi miquelsi 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.

Thanks for this @mabartos!

@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.

@mabartos Thanks for this effort! Approving.

Testing things like X.509 with real browser (FF or Chrome) could be slightly better (that is the path which @Aboullos was looking at AFAIK), but looks like non-trivial effort for both setup and maintenance... Great that you managed to have it working with HtmlUnit, which is hopefully sufficient.

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.

Upgrade Selenium and Arquillian dependencies in testsuite PhantomJS is end-of-life and should be replaced

5 participants

0