Skip to content

Commit 0b0c15b

Browse files
authored
chore(auth): Fix tests by using proper birthdate attribute according to Cognito (#2865)
1 parent 25221fb commit 0b0c15b

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

aws-auth-cognito/src/androidTest/java/com/amplifyframework/auth/cognito/AuthCanaryTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ class AuthCanaryTest {
5656
(AuthUserAttribute(AuthUserAttributeKey.address(), "Sesame Street")),
5757
(AuthUserAttribute(AuthUserAttributeKey.name(), "Elmo")),
5858
(AuthUserAttribute(AuthUserAttributeKey.gender(), "Male")),
59-
(AuthUserAttribute(AuthUserAttributeKey.birthdate(), "February 3")),
59+
(AuthUserAttribute(AuthUserAttributeKey.birthdate(), "2000-02-03")),
6060
(AuthUserAttribute(AuthUserAttributeKey.phoneNumber(), "+16268319333")), // Elmo's phone #
6161
(AuthUserAttribute(AuthUserAttributeKey.updatedAt(), "${System.currentTimeMillis()}"))
6262
)

aws-auth-cognito/src/androidTest/java/com/amplifyframework/auth/cognito/AuthCanaryTestGen2.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ class AuthCanaryTestGen2 {
5959
(AuthUserAttribute(AuthUserAttributeKey.address(), "Sesame Street")),
6060
(AuthUserAttribute(AuthUserAttributeKey.name(), "Elmo")),
6161
(AuthUserAttribute(AuthUserAttributeKey.gender(), "Male")),
62-
(AuthUserAttribute(AuthUserAttributeKey.birthdate(), "February 3")),
62+
(AuthUserAttribute(AuthUserAttributeKey.birthdate(), "2000-02-03")),
6363
(AuthUserAttribute(AuthUserAttributeKey.phoneNumber(), "+16268319333")), // Elmo's phone #
6464
(AuthUserAttribute(AuthUserAttributeKey.updatedAt(), "${System.currentTimeMillis()}"))
6565
)

aws-auth-cognito/src/androidTest/java/com/amplifyframework/auth/cognito/AuthStressTests.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class AuthStressTests {
4040
(AuthUserAttribute(AuthUserAttributeKey.address(), "Sesame Street")),
4141
(AuthUserAttribute(AuthUserAttributeKey.name(), "Elmo")),
4242
(AuthUserAttribute(AuthUserAttributeKey.gender(), "Male")),
43-
(AuthUserAttribute(AuthUserAttributeKey.birthdate(), "February 3")),
43+
(AuthUserAttribute(AuthUserAttributeKey.birthdate(), "2000-02-03")),
4444
(AuthUserAttribute(AuthUserAttributeKey.phoneNumber(), "+16268319333")),
4545
(AuthUserAttribute(AuthUserAttributeKey.updatedAt(), "${System.currentTimeMillis()}"))
4646
)

0 commit comments

Comments
 (0)