8000 Improvements on Operator Integration Tests to make sure that Config set in CR takes precedence by andre-nascimento6791 · Pull Request #16639 · keycloak/keycloak · GitHub
[go: up one dir, main page]

Skip to content

Improvements on Operator Integration Tests to make sure that Config set in CR takes precedence - #16639

Merged
vmuzikar merged 1 commit into
keycloak:mainfrom
andre-nascimento6791:issue-13114
Feb 23, 2023
Merged

vmuzikar merged 1 commit into
keycloak:mainfrom
andre-nascimento6791:issue-13114

Conversation

@andre-nascimento6791
Copy link
Copy Markdown
Contributor

In order to make sure that the Config set in CR takes Precedence over the default values and hence none Environment Variable gets duplicated in Deployment, then just some improvements on Operator Integration Tests were implemented.

Closes #13114

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

@andre-nascimento-rh Thank you for this PR. Added a few comments.

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

@ghost
ghost commented Feb 21, 2023
Copy link
Copy Markdown

Unreported flaky test detected

If 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.WelcomeScreenTest#applicationsTest

Keycloak CI - Account Console IT (firefox)

java.lang.AssertionError: Expected ApplicationsPage but was Keycloak Account Management (https://localhost:8543/auth/realms/test/account/#/applications&state=f52e54dc-1aa9-484b-810e-b8d829a15632&session_state=a680b2d7-940c-44b9-a9fd-aaa0c1efb356&code=3c4126ab-33f5-485a-ad32-7a9af6e94e5b.a680b2d7-940c-44b9-a9fd-aaa0c1efb356.b073e9db-cc97-47d5-b2b0-8adc25dafeb0)
	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:110)
	at jdk.internal.reflect.GeneratedMethodAccessor106.invoke(Unknown Source)
...

Report flaky test

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

@andre-nascimento-rh Thanks for the update, added two more comments.

@andre-nascimento6791
Copy link
Copy Markdown
Contributor Author

Due to the fact that the Operator does not support overriding or removing Env Vars throughout PodTemplate, makes no sense to have such test method. Therefore, I'm removing all this new method from PodTemplateTest class.

Thanks.

@vmuzikar vmuzikar 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, thanks!

@vmuzikar
vmuzikar enabled auto-merge (rebase) February 23, 2023 07:30
@vmuzikar
vmuzikar merged commit aa42248 into keycloak:main Feb 23, 2023
@andre-nascimento6791
andre-nascimento6791 deleted the issue-13114 branch February 23, 2023 09:35
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.

Reencrypt proxy ignored with new operator

3 participants

0