-
Notifications
You must be signed in to change notification settings - Fork 138
Native Auth E2E test fix, Fixes AB#3125466 #2244
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
Conversation
|
❌ Work item link check failed. Description does not contain AB#{ID}. Click here to Learn more. |
| * Use valid email address, but invalid OTP to receive "invalid code" error. | ||
| * (use case 2.2.7) | ||
| */ | ||
| @Ignore("1secmail service is down. Ignoring test for now.") |
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.
For this test we don't retrieve an OTP code from the email inbox, so it should not be ignored
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.
Done.
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.
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.
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.
Can you use the correct explanation why we're skipping this test? We're skipping it because the user is blocked not for 1secmail service. Please, update all the other tests that apply
| * Sign up with email + OTP. Server requires password authentication, which is not supported by the developer (aka redirect flow). | ||
| * (use case 2.1.10) | ||
| */ | ||
| @Ignore("1secmail service is down. Ignoring test for now.") |
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.
For this test we don't retrieve an OTP code from the email inbox, so it should not be ignored
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.
Hi @nilo-ms , for the following 3 test cases, please refer to this build https://identitydivision.visualstudio.com/Engineering/_build/results?buildId=1413056&view=logs&j=6f26e4aa-3eaf-5d24-2c84-463275687676&t=733235bb-4511-5023-8af6-9a666fd33e21
Although the test case itself has no relation with the OTP code.
com.microsoft.identity.internal.test.labapi.ApiException:
at com.microsoft.identity.internal.test.labapi.ApiClient.handleResponse(ApiClient.java:911)
at com.microsoft.identity.internal.test.labapi.ApiClient.execute(ApiClient.java:827)
at com.microsoft.identity.internal.testutils.nativeauth.api.TemporaryEmailService$TemporaryEmailApi.generateRandomEmailAddress(TemporaryEmailService.kt:142)
It used genRandomMailbox from the service.
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.
Thanks Yuki, on iOS we generate the random email address locally with the following code:
func generateRandomEmailAddress() -> String {
let randomId = UUID().uuidString.prefix(8)
return "native-auth-signup-\(randomId)@1secmail.org"
}
Can you please do the same on Android? So, we don't need to use 1secmail for this or similar test
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.
Good suggestions. Done.
There would be a company PR in common #2244
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.
I need to merge the common PR first then update the submodule then run the pipeline here.
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.
Thanks Yuki, I think the right link to the common PR is this one:
AzureAD/microsoft-authentication-library-common-for-android#2570
I approved that PR
| private val defaultChallengeTypes = listOf("password", "oob") | ||
|
|
||
|
|
||
| @Ignore("1secmail service is down. Ignoring test for now.") |
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.
For this test we don't retrieve an OTP code from the email inbox, so it should not be ignored
| * Sign up with email + password. Developer makes a request with password that does not match password complexity requirements set on portal. | ||
| * (use case 1.1.13) | ||
| */ | ||
| @Ignore("1secmail service is down. Ignoring test for now.") |
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.
For this test we don't retrieve an OTP code from the email inbox, so it should not be ignored
...c/test/java/com/microsoft/identity/client/e2e/tests/network/nativeauth/SignInEmailOTPTest.kt
Outdated
Show resolved
Hide resolved
| * Sign up with email + OTP. Resend email OTP. | ||
| * (hero scenario 1, use case 2.1.5) | ||
| */ | ||
| @Ignore("1secmail service is down. Ignoring test for now.") |
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.
Do we still need to ignore this test after you made the change around random email generation?
| * Sign up with email + OTP. Verify email address using email OTP and sign up. | ||
| * (hero scenario 1, use case 2.1.1) | ||
| */ | ||
| @Ignore("1secmail service is down. Ignoring test for now.") |
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.
Same here
Make changes inside TemporaryEmailService.kt to generate random email account locally. Please refer to the MSAL PR: AzureAD/microsoft-authentication-library-for-android#2244

The third party of 1secmail used for E2E test OTP code fetching is down.
Common PR: AzureAD/microsoft-authentication-library-common-for-android#2570
Fixes AB#3125466