-
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
Changes from 9 commits
bc2d12c
c5b13ac
09c80cc
01742d9
bafd2f2
f110860
f12954c
bb1b1f7
6ffcda3
b1f6722
04e3d88
564a012
4616378
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -51,14 +51,15 @@ class SignUpEmailOTPTest : NativeAuthPublicClientApplicationAbstractTest() { | |
| * 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.") | ||
| @Test | ||
| fun testSuccess() { | ||
| config = getConfig(defaultConfigType) | ||
| application = setupPCA(config, defaultChallengeTypes) | ||
|
|
||
| retryOperation { | ||
| runBlocking { // Running with runBlocking to avoid default 10 second execution timeout. | ||
| val user = tempEmailApi.generateRandomEmailAddress() | ||
| val user = tempEmailApi.generateRandomEmailAddressLocally() | ||
| val signUpResult = application.signUp(user) | ||
| assertResult<SignUpResult.CodeRequired>(signUpResult) | ||
|
|
||
|
|
@@ -73,14 +74,15 @@ class SignUpEmailOTPTest : NativeAuthPublicClientApplicationAbstractTest() { | |
| * 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.") | ||
|
||
| @Test | ||
| fun testResendCode() { | ||
| config = getConfig(defaultConfigType) | ||
| application = setupPCA(config, defaultChallengeTypes) | ||
|
|
||
| retryOperation { | ||
| runBlocking { // Running with runBlocking to avoid default 10 second execution timeout. | ||
| val user = tempEmailApi.generateRandomEmailAddress() | ||
| val user = tempEmailApi.generateRandomEmailAddressLocally() | ||
| val signUpResult = application.signUp(user) | ||
| assertResult<SignUpResult.CodeRequired>(signUpResult) | ||
| val otp1 = tempEmailApi.retrieveCodeFromInbox(user) | ||
|
|
@@ -172,7 +174,7 @@ class SignUpEmailOTPTest : NativeAuthPublicClientApplicationAbstractTest() { | |
|
|
||
| retryOperation { | ||
| runBlocking { // Running with runBlocking to avoid default 10 second execution timeout. | ||
| val user = tempEmailApi.generateRandomEmailAddress() | ||
| val user = tempEmailApi.generateRandomEmailAddressLocally() | ||
| val signUpResult = application.signUp(user) | ||
| assertResult<SignUpResult.CodeRequired>(signUpResult) | ||
| val otp = tempEmailApi.retrieveCodeFromInbox(user) | ||
|
|
@@ -193,8 +195,8 @@ class SignUpEmailOTPTest : NativeAuthPublicClientApplicationAbstractTest() { | |
| config = getConfig(ConfigType.SIGN_UP_PASSWORD) | ||
| application = setupPCA(config, listOf("oob")) | ||
|
|
||
| runBlocking { // Running with runBlocking to avoid default 10 second execution timeout. | ||
| val user = tempEmailApi.generateRandomEmailAddress() | ||
| runBlocking { | ||
| val user = tempEmailApi.generateRandomEmailAddressLocally() | ||
| val signUpResult = application.signUp(user) | ||
| Assert.assertTrue(signUpResult is SignUpError) | ||
| Assert.assertTrue((signUpResult as SignUpError).isBrowserRequired()) | ||
|
|
@@ -212,7 +214,7 @@ class SignUpEmailOTPTest : NativeAuthPublicClientApplicationAbstractTest() { | |
|
|
||
| retryOperation { | ||
| runBlocking { // Running with runBlocking to avoid default 10 second execution timeout. | ||
| val user = tempEmailApi.generateRandomEmailAddress() | ||
| val user = tempEmailApi.generateRandomEmailAddressLocally() | ||
| val signUpResult = application.signUp(user) | ||
| assertResult<SignUpResult.CodeRequired>(signUpResult) | ||
| val otp = tempEmailApi.retrieveCodeFromInbox(user) | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -48,6 +48,7 @@ class SignUpEmailPasswordTest : NativeAuthPublicClientApplicationAbstractTest() | |
| private val defaultChallengeTypes = listOf("password", "oob") | ||
|
|
||
|
|
||
| @Ignore("1secmail service is down. Ignoring test for now.") | ||
|
||
| @Test | ||
| fun testSignUpErrorSimple() { | ||
| config = getConfig(defaultConfigType) | ||
|
|
@@ -67,6 +68,7 @@ class SignUpEmailPasswordTest : NativeAuthPublicClientApplicationAbstractTest() | |
| * Sign up with email + password. Set email and password (mimicking one combined screen for email & password collection), and then verify email OTP as last step | ||
| * (hero scenario 9, use case 1.1.1) | ||
| */ | ||
| @Ignore("1secmail service is down. Ignoring test for now.") | ||
| @Test | ||
| fun testSuccessOTPLast() { | ||
| config = getConfig(defaultConfigType) | ||
|
|
@@ -90,6 +92,7 @@ class SignUpEmailPasswordTest : NativeAuthPublicClientApplicationAbstractTest() | |
| * Sign up with email + password. Resend email OOB. | ||
| * (use case 1.1.2) | ||
| */ | ||
| @Ignore("1secmail service is down. Ignoring test for now.") | ||
| @Test | ||
| fun testResendEmailOOB() { | ||
| config = getConfig(defaultConfigType) | ||
|
|
@@ -115,6 +118,7 @@ class SignUpEmailPasswordTest : NativeAuthPublicClientApplicationAbstractTest() | |
| * Sign up with email + password. Verify email address using email OTP and then set password (mimicking email and password collection on separate screens). | ||
| * (use case 1.1.4) | ||
| */ | ||
| @Ignore("1secmail service is down. Ignoring test for now.") | ||
| @Test | ||
| fun testSuccessOTPFirst() { | ||
| config = getConfig(defaultConfigType) | ||
|
|
@@ -140,6 +144,7 @@ class SignUpEmailPasswordTest : NativeAuthPublicClientApplicationAbstractTest() | |
| * Sign up with email + password. Verify email address using email OTP, resend OTP and then set password. | ||
| * (use case 1.1.5) | ||
| */ | ||
| @Ignore("1secmail service is down. Ignoring test for now.") | ||
| @Test | ||
| fun testSuccessOTPResend() { | ||
| config = getConfig(defaultConfigType) | ||
|
|
@@ -223,6 +228,7 @@ class SignUpEmailPasswordTest : NativeAuthPublicClientApplicationAbstractTest() | |
| * 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.") | ||
|
||
| @Test | ||
| fun testErrorInvalidPasswordFormat() { | ||
| config = getConfig(defaultConfigType) | ||
|
|
@@ -241,6 +247,7 @@ class SignUpEmailPasswordTest : NativeAuthPublicClientApplicationAbstractTest() | |
| * Sign up with email + password. Developer can opt to get AT and/or ID token (aka sign in after signup). | ||
| * (use case 1.1.14) | ||
| */ | ||
| @Ignore("1secmail service is down. Ignoring test for now.") | ||
| @Test | ||
| fun testSignInAfterSignUp() { | ||
| config = getConfig(defaultConfigType) | ||
|
|
||
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