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

Check inbox code validity in Native Auth E2E tests, Fixes AB#3037823 #2509

Open
wants to merge 7 commits into
base: dev
Choose a base branch
from

Conversation

rmccahill
Copy link
Contributor

@rmccahill rmccahill commented Sep 24, 2024

This PR updates the logic for retrieving a code from the test inbox - the code retrieved will be checked in the calling test to ensure that the retrieved code is valid, since we occasionally get expired codes from the inbox. If a code is invalid, the test is retried, filtering out the emails previously retrieved to ensure we're getting the latest email. If we don't get a valid code after 3 tries, an IllegalStateException will be thrown. The E2E tests will use this new function in this PR: https://github.com/AzureAD/microsoft-authentication-library-for-android/compare/robert/retry-submit-code-e2e-tests

Work Item: AB#3037823

Copy link

❌ Work item link check failed. Description does not contain AB#{ID}.

Click here to Learn more.

@rmccahill rmccahill added the No-Changelog This Pull-Request has no associated changelog entry. label Sep 24, 2024
Copy link

✅ Work item link check complete. Description contains link AB#3037823 to an Azure Boards work item.

@rmccahill rmccahill changed the title Draft: Check inbox code validity in E2E tests Draft: Check inbox code validity in Native Auth E2E tests Sep 24, 2024
@github-actions github-actions bot changed the title Draft: Check inbox code validity in Native Auth E2E tests Draft: Check inbox code validity in Native Auth E2E tests, Fixes AB#3037823 Sep 24, 2024
@rmccahill rmccahill changed the title Draft: Check inbox code validity in Native Auth E2E tests, Fixes AB#3037823 Check inbox code validity in Native Auth E2E tests, Fixes AB#3037823 Oct 7, 2024
@rmccahill rmccahill marked this pull request as ready for review October 7, 2024 09:54
@rmccahill rmccahill requested a review from a team as a code owner October 7, 2024 09:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
No-Changelog This Pull-Request has no associated changelog entry.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant