From e69b0d04218e2c021c7080461fac4e0884539542 Mon Sep 17 00:00:00 2001 From: tjroach Date: Mon, 1 Jul 2024 13:40:29 -0400 Subject: [PATCH] Fix tests by using proper birthdate attribute according to cognito --- .../java/com/amplifyframework/auth/cognito/AuthCanaryTest.kt | 2 +- .../com/amplifyframework/auth/cognito/AuthCanaryTestGen2.kt | 2 +- .../java/com/amplifyframework/auth/cognito/AuthStressTests.kt | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/aws-auth-cognito/src/androidTest/java/com/amplifyframework/auth/cognito/AuthCanaryTest.kt b/aws-auth-cognito/src/androidTest/java/com/amplifyframework/auth/cognito/AuthCanaryTest.kt index d1c4013731..f576a6d11d 100644 --- a/aws-auth-cognito/src/androidTest/java/com/amplifyframework/auth/cognito/AuthCanaryTest.kt +++ b/aws-auth-cognito/src/androidTest/java/com/amplifyframework/auth/cognito/AuthCanaryTest.kt @@ -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()}")) ) diff --git a/aws-auth-cognito/src/androidTest/java/com/amplifyframework/auth/cognito/AuthCanaryTestGen2.kt b/aws-auth-cognito/src/androidTest/java/com/amplifyframework/auth/cognito/AuthCanaryTestGen2.kt index 7b9f6f60d5..e7d59cc387 100644 --- a/aws-auth-cognito/src/androidTest/java/com/amplifyframework/auth/cognito/AuthCanaryTestGen2.kt +++ b/aws-auth-cognito/src/androidTest/java/com/amplifyframework/auth/cognito/AuthCanaryTestGen2.kt @@ -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()}")) ) diff --git a/aws-auth-cognito/src/androidTest/java/com/amplifyframework/auth/cognito/AuthStressTests.kt b/aws-auth-cognito/src/androidTest/java/com/amplifyframework/auth/cognito/AuthStressTests.kt index 6323e0befb..bcc06b7a11 100644 --- a/aws-auth-cognito/src/androidTest/java/com/amplifyframework/auth/cognito/AuthStressTests.kt +++ b/aws-auth-cognito/src/androidTest/java/com/amplifyframework/auth/cognito/AuthStressTests.kt @@ -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()}")) )