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 <akurait@amazon.com>
This commit is contained in:
Andre Kurait authored and GitHub committed 2026-11-03 19:39:10 -04:00
1 parent 710b2488bf
commit 851a7521a7
2 files changed
+4

No files matched your search

@@ -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();
@@ -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();