-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[Serverless][Testing] Improve serverless force logout and enable some related tests #184202
Merged
gergoabraham
merged 10 commits into
elastic:main
from
gergoabraham:improve-serverless-force-logout-and-enable-tests
May 31, 2024
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
9f78892
add retry (i.e. page reload) to serverless forceLogout
gergoabraham cb51073
enable endpoint FTRs
gergoabraham 1d1efb6
enable landing_page tests (#168037)
gergoabraham 7b5cf4c
Merge branch 'main' into improve-serverless-force-logout-and-enable-t…
kibanamachine c561d2b
Revert "enable landing_page tests (#168037)"
gergoabraham ae6bd39
Merge branch 'main' into improve-serverless-force-logout-and-enable-t…
kibanamachine cb954eb
Merge branch 'main' into improve-serverless-force-logout-and-enable-t…
kibanamachine 2bfce62
enable endpoint integration tests (#184319)
gergoabraham fb9cae3
review findings: improve comments
gergoabraham 04d415e
Merge branch 'main' into improve-serverless-force-logout-and-enable-t…
gergoabraham File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Hey @gergoabraham We saw similar flakiness before and from appex-qa perspective it is related to basic authentication in UI tests (line 42 calls
svlCommonPage.login()
) for serverless env when serverless env is setup with mock-idp to do SAML authentication. I tried retries before myself and flaky-test-runner proved it won't help as redirects issue still persist.The right solution is to migrate the FTR tests to role-based SAML authentication, it is mostly 1 line change and we didn't see similar flakiness:
https://github.com/elastic/kibana/blob/main/x-pack/test_serverless/functional/page_objects/svl_common_page.ts#L73-L130
More details with examples are here
You probably saw recent email about new preferred login method for a local serverless Kibana, with that we consider deprecating
svlCommonPage.login()
as all e2e UI tests should be using SAML auth.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.
hey @dmlemeshko, a big thank you for letting me know! 🙌
addressing the change here: