From f7fe8fecf7e1d1bb4fb87041e1d3bae0ad9d59b6 Mon Sep 17 00:00:00 2001 From: Matt Creaser Date: Thu, 9 May 2024 11:40:05 -0300 Subject: [PATCH 1/2] Update to Kotlin SDK 1.2.8 --- gradle/libs.versions.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 2108b9de8..c9d8a2eff 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -15,9 +15,9 @@ androidx-test-junit = "1.1.2" androidx-test-orchestrator = "1.4.2" androidx-test-runner = "1.3.0" androidx-workmanager = "2.7.1" -aws-kotlin = "1.0.44" # ensure proper aws-smithy version also set +aws-kotlin = "1.2.8" # ensure proper aws-smithy version also set aws-sdk = "2.62.2" -aws-smithy = "1.0.11" # ensure proper aws-kotlin version also set +aws-smithy = "1.2.2" # ensure proper aws-kotlin version also set binary-compatibility-validator = "0.14.0" coroutines = "1.7.3" desugar = "1.2.0" From 8a6521bdab90695f4675410c5a00aa0d0da9c6ac Mon Sep 17 00:00:00 2001 From: Matt Creaser Date: Fri, 24 May 2024 14:56:38 -0300 Subject: [PATCH 2/2] Fix feature tests that are failing due to changed error shapes --- ...uthException_is_thrown_when_deleteUser_API_call_fails.json | 4 ++-- ...gnOut_returns_partial_success_with_revoke_token_error.json | 4 ++-- ...or_returns_partial_success_with_global_sign_out_error.json | 4 ++-- ...gnOut_returns_partial_success_with_revoke_token_error.json | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/aws-auth-cognito/src/test/resources/feature-test/testsuites/deleteUser/AuthException_is_thrown_when_deleteUser_API_call_fails.json b/aws-auth-cognito/src/test/resources/feature-test/testsuites/deleteUser/AuthException_is_thrown_when_deleteUser_API_call_fails.json index e2d687708..2ad8b411a 100644 --- a/aws-auth-cognito/src/test/resources/feature-test/testsuites/deleteUser/AuthException_is_thrown_when_deleteUser_API_call_fails.json +++ b/aws-auth-cognito/src/test/resources/feature-test/testsuites/deleteUser/AuthException_is_thrown_when_deleteUser_API_call_fails.json @@ -33,9 +33,9 @@ "recoverySuggestion": "Check whether the given values are correct and the user is authorized to perform the operation.", "cause": { "errorType": "NotAuthorizedException", - "errorMessage": null + "errorMessage": "Error type: Client, Protocol response: (empty response)" } } } ] -} \ No newline at end of file +} diff --git a/aws-auth-cognito/src/test/resources/feature-test/testsuites/signOut/Test_that_globalSignOut_returns_partial_success_with_revoke_token_error.json b/aws-auth-cognito/src/test/resources/feature-test/testsuites/signOut/Test_that_globalSignOut_returns_partial_success_with_revoke_token_error.json index ece33c320..d92ad5123 100644 --- a/aws-auth-cognito/src/test/resources/feature-test/testsuites/signOut/Test_that_globalSignOut_returns_partial_success_with_revoke_token_error.json +++ b/aws-auth-cognito/src/test/resources/feature-test/testsuites/signOut/Test_that_globalSignOut_returns_partial_success_with_revoke_token_error.json @@ -45,7 +45,7 @@ "recoverySuggestion": "See attached exception for more details. RevokeToken can be retried using the CognitoIdentityProviderClient accessible from the escape hatch.", "cause": { "errorType": "NotAuthorizedException", - "errorMessage": null + "errorMessage": "Error type: Client, Protocol response: (empty response)" } }, "refreshToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJ1c2VySWQiLCJ1c2VybmFtZSI6InVzZXJuYW1lIiwiZXhwIjoxNTE2MjM5MDIyLCJvcmlnaW5fanRpIjoib3JpZ2luX2p0aSJ9.Xqa-vjJe5wwwsqeRAdHf8kTBn_rYSkDn2lB7xj9Z1xU" @@ -54,4 +54,4 @@ } } ] -} \ No newline at end of file +} diff --git a/aws-auth-cognito/src/test/resources/feature-test/testsuites/signOut/Test_that_global_signOut_error_returns_partial_success_with_global_sign_out_error.json b/aws-auth-cognito/src/test/resources/feature-test/testsuites/signOut/Test_that_global_signOut_error_returns_partial_success_with_global_sign_out_error.json index 80b7fcb77..f828df831 100644 --- a/aws-auth-cognito/src/test/resources/feature-test/testsuites/signOut/Test_that_global_signOut_error_returns_partial_success_with_global_sign_out_error.json +++ b/aws-auth-cognito/src/test/resources/feature-test/testsuites/signOut/Test_that_global_signOut_error_returns_partial_success_with_global_sign_out_error.json @@ -37,7 +37,7 @@ "recoverySuggestion": "See attached exception for more details. GlobalSignOut can be retried using the CognitoIdentityProviderClient accessible from the escape hatch.", "cause": { "errorType": "NotAuthorizedException", - "errorMessage": null + "errorMessage": "Error type: Client, Protocol response: (empty response)" } } }, @@ -64,4 +64,4 @@ } } ] -} \ No newline at end of file +} diff --git a/aws-auth-cognito/src/test/resources/feature-test/testsuites/signOut/Test_that_signOut_returns_partial_success_with_revoke_token_error.json b/aws-auth-cognito/src/test/resources/feature-test/testsuites/signOut/Test_that_signOut_returns_partial_success_with_revoke_token_error.json index 857211df4..6443ba2fe 100644 --- a/aws-auth-cognito/src/test/resources/feature-test/testsuites/signOut/Test_that_signOut_returns_partial_success_with_revoke_token_error.json +++ b/aws-auth-cognito/src/test/resources/feature-test/testsuites/signOut/Test_that_signOut_returns_partial_success_with_revoke_token_error.json @@ -38,7 +38,7 @@ "recoverySuggestion": "See attached exception for more details. RevokeToken can be retried using the CognitoIdentityProviderClient accessible from the escape hatch.", "cause": { "errorType": "NotAuthorizedException", - "errorMessage": null + "errorMessage": "Error type: Client, Protocol response: (empty response)" } }, "refreshToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJ1c2VySWQiLCJ1c2VybmFtZSI6InVzZXJuYW1lIiwiZXhwIjoxNTE2MjM5MDIyLCJvcmlnaW5fanRpIjoib3JpZ2luX2p0aSJ9.Xqa-vjJe5wwwsqeRAdHf8kTBn_rYSkDn2lB7xj9Z1xU" @@ -47,4 +47,4 @@ } } ] -} \ No newline at end of file +}