From 851a7521a75046aaa89931e392294d8a33cb8aaf Mon Sep 17 00:00:00 2001 From: Andre Kurait Date: Tue, 3 Nov 2026 17:39:10 -0600 Subject: [PATCH] fix(test): isolate shared message inspection fixtures (#7451) Serialize the two Cognito compatibility classes that clear the shared SES and SNS inspection stores, using the suite's established Isolated convention. Preserve existing assertions and timeout bounds. Signed-off-by: Andre Kurait --- .../com/floci/test/CognitoConfirmSignUpVerificationTest.java | 2 ++ .../java/com/floci/test/CognitoVerifyUserAttributeTest.java | 2 ++ 2 files changed, 4 insertions(+) diff --git a/compatibility-tests/sdk-test-java/src/test/java/com/floci/test/CognitoConfirmSignUpVerificationTest.java b/compatibility-tests/sdk-test-java/src/test/java/com/floci/test/CognitoConfirmSignUpVerificationTest.java index e6fbd95447..e06a42831c 100644 --- a/compatibility-tests/sdk-test-java/src/test/java/com/floci/test/CognitoConfirmSignUpVerificationTest.java +++ b/compatibility-tests/sdk-test-java/src/test/java/com/floci/test/CognitoConfirmSignUpVerificationTest.java @@ -10,6 +10,7 @@ import org.junit.jupiter.api.MethodOrderer; import org.junit.jupiter.api.Order; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.TestMethodOrder; +import org.junit.jupiter.api.parallel.Isolated; import software.amazon.awssdk.services.cognitoidentityprovider.CognitoIdentityProviderClient; import software.amazon.awssdk.services.cognitoidentityprovider.model.AdminGetUserResponse; import software.amazon.awssdk.services.cognitoidentityprovider.model.AttributeType; @@ -35,6 +36,7 @@ import static org.assertj.core.api.Assertions.assertThat; * Compatibility tests for Cognito ConfirmSignUp verified attribute updates (Issue #1654). */ @TestMethodOrder(MethodOrderer.OrderAnnotation.class) +@Isolated("Clears the shared SES and SNS inspection stores") class CognitoConfirmSignUpVerificationTest { private static final ObjectMapper JSON = new ObjectMapper(); diff --git a/compatibility-tests/sdk-test-java/src/test/java/com/floci/test/CognitoVerifyUserAttributeTest.java b/compatibility-tests/sdk-test-java/src/test/java/com/floci/test/CognitoVerifyUserAttributeTest.java index 56a2a9aafc..ec6bff087f 100644 --- a/compatibility-tests/sdk-test-java/src/test/java/com/floci/test/CognitoVerifyUserAttributeTest.java +++ b/compatibility-tests/sdk-test-java/src/test/java/com/floci/test/CognitoVerifyUserAttributeTest.java @@ -7,6 +7,7 @@ import org.junit.jupiter.api.AfterEach; import org.junit.jupiter.api.Assumptions; import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.parallel.Isolated; import software.amazon.awssdk.core.SdkBytes; import software.amazon.awssdk.services.cognitoidentityprovider.CognitoIdentityProviderClient; import software.amazon.awssdk.services.cognitoidentityprovider.model.AliasAttributeType; @@ -39,6 +40,7 @@ import java.util.regex.Pattern; import static org.assertj.core.api.Assertions.assertThat; import static org.assertj.core.api.Assertions.assertThatThrownBy; +@Isolated("Clears the shared SES and SNS inspection stores") class CognitoVerifyUserAttributeTest { private static final ObjectMapper JSON = new ObjectMapper();