Skip to content
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

Wait for tenant radio to be selected in flaky SAML integ test #1201

Merged
merged 4 commits into from
Nov 12, 2022

Conversation

cwperks
Copy link
Member

@cwperks cwperks commented Nov 7, 2022

Signed-off-by: Craig Perkins [email protected]

Description

Fixes flaky SAML integration test that tests tenancy persistence on logout. Adds a step to wait for the radio button to be selected before selenium proceeds to confirm the tenant selection modal.

Category

[Enhancement, New feature, Bug fix, Test fix, Refactoring, Maintenance, Documentation]

Test fix

Issues Resolved

#1193

Testing

To run the flaky test use:

yarn run test:jest_server -- saml_auth.test.ts -t "Tenancy persisted after Logout in SAML"

Check List

  • New functionality includes testing
  • New functionality has been documented
  • Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

@cwperks cwperks requested a review from a team November 7, 2022 18:57
Signed-off-by: Craig Perkins <[email protected]>
cliu123
cliu123 previously approved these changes Nov 7, 2022
@cliu123 cliu123 added the backport 2.x backport to 2.x branch label Nov 7, 2022
@cwperks cwperks changed the title Add sleep between tenant selection and confirmation in flaky SAML test Wait for tenant radio to be selected in flaky SAML integ test Nov 11, 2022
@codecov-commenter
Copy link

Codecov Report

Merging #1201 (9255b1f) into main (b04271a) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main    #1201   +/-   ##
=======================================
  Coverage   71.78%   71.78%           
=======================================
  Files          88       88           
  Lines        2027     2027           
  Branches      269      269           
=======================================
  Hits         1455     1455           
  Misses        509      509           
  Partials       63       63           

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@RyanL1997
Copy link
Collaborator

Looks good to me. Thank you @cwperks!

@peternied peternied merged commit 257325c into opensearch-project:main Nov 12, 2022
opensearch-trigger-bot bot pushed a commit that referenced this pull request Nov 12, 2022
cwperks added a commit that referenced this pull request Nov 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 2.x backport to 2.x branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants