Skip to content

Commit

Permalink
chore(auth): Fix tests by using proper birthdate attribute according …
Browse files Browse the repository at this point in the history
…to Cognito (#2865)
  • Loading branch information
tylerjroach authored Jul 1, 2024
1 parent 25221fb commit 0b0c15b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class AuthCanaryTest {
(AuthUserAttribute(AuthUserAttributeKey.address(), "Sesame Street")),
(AuthUserAttribute(AuthUserAttributeKey.name(), "Elmo")),
(AuthUserAttribute(AuthUserAttributeKey.gender(), "Male")),
(AuthUserAttribute(AuthUserAttributeKey.birthdate(), "February 3")),
(AuthUserAttribute(AuthUserAttributeKey.birthdate(), "2000-02-03")),
(AuthUserAttribute(AuthUserAttributeKey.phoneNumber(), "+16268319333")), // Elmo's phone #
(AuthUserAttribute(AuthUserAttributeKey.updatedAt(), "${System.currentTimeMillis()}"))
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class AuthCanaryTestGen2 {
(AuthUserAttribute(AuthUserAttributeKey.address(), "Sesame Street")),
(AuthUserAttribute(AuthUserAttributeKey.name(), "Elmo")),
(AuthUserAttribute(AuthUserAttributeKey.gender(), "Male")),
(AuthUserAttribute(AuthUserAttributeKey.birthdate(), "February 3")),
(AuthUserAttribute(AuthUserAttributeKey.birthdate(), "2000-02-03")),
(AuthUserAttribute(AuthUserAttributeKey.phoneNumber(), "+16268319333")), // Elmo's phone #
(AuthUserAttribute(AuthUserAttributeKey.updatedAt(), "${System.currentTimeMillis()}"))
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class AuthStressTests {
(AuthUserAttribute(AuthUserAttributeKey.address(), "Sesame Street")),
(AuthUserAttribute(AuthUserAttributeKey.name(), "Elmo")),
(AuthUserAttribute(AuthUserAttributeKey.gender(), "Male")),
(AuthUserAttribute(AuthUserAttributeKey.birthdate(), "February 3")),
(AuthUserAttribute(AuthUserAttributeKey.birthdate(), "2000-02-03")),
(AuthUserAttribute(AuthUserAttributeKey.phoneNumber(), "+16268319333")),
(AuthUserAttribute(AuthUserAttributeKey.updatedAt(), "${System.currentTimeMillis()}"))
)
Expand Down

0 comments on commit 0b0c15b

Please sign in to comment.