diff --git a/src/test/java/io/floci/aws/services/cloudformation/ElastiCacheCfnIntegrationTest.java b/src/test/java/io/floci/aws/services/cloudformation/ElastiCacheCfnIntegrationTest.java index db8427288b..4b129f1839 100644 --- a/src/test/java/io/floci/aws/services/cloudformation/ElastiCacheCfnIntegrationTest.java +++ b/src/test/java/io/floci/aws/services/cloudformation/ElastiCacheCfnIntegrationTest.java @@ -1,6 +1,7 @@ package io.floci.aws.services.cloudformation; import io.floci.aws.core.common.XmlParser; +import io.floci.aws.testing.AwsTestClients; import io.floci.aws.testing.CfnStackWaits; import io.floci.aws.testing.DockerAvailability; import io.floci.aws.testing.RestAssuredJsonUtils; @@ -10,8 +11,6 @@ import io.restassured.specification.RequestSpecification; import org.junit.jupiter.api.Assumptions; import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.Test; -import software.amazon.awssdk.auth.credentials.AwsBasicCredentials; -import software.amazon.awssdk.auth.credentials.StaticCredentialsProvider; import software.amazon.awssdk.regions.Region; import software.amazon.awssdk.services.elasticache.ElastiCacheClient; import software.amazon.awssdk.services.elasticache.model.CacheCluster; @@ -133,9 +132,7 @@ class ElastiCacheCfnIntegrationTest { } private ElastiCacheClient client() { - return ElastiCacheClient.builder().endpointOverride(endpoint).region(Region.US_EAST_1) - .credentialsProvider(StaticCredentialsProvider.create(AwsBasicCredentials.create("test", "test"))) - .build(); + return AwsTestClients.create(ElastiCacheClient.builder(), "000000000000", Region.US_EAST_1, endpoint); } @Test diff --git a/src/test/java/io/floci/aws/services/cloudformation/ElastiCacheServerlessCfnIntegrationTest.java b/src/test/java/io/floci/aws/services/cloudformation/ElastiCacheServerlessCfnIntegrationTest.java index 0eb39ea1bb..66dd5093e9 100644 --- a/src/test/java/io/floci/aws/services/cloudformation/ElastiCacheServerlessCfnIntegrationTest.java +++ b/src/test/java/io/floci/aws/services/cloudformation/ElastiCacheServerlessCfnIntegrationTest.java @@ -1,6 +1,7 @@ package io.floci.aws.services.cloudformation; import io.floci.aws.core.common.XmlParser; +import io.floci.aws.testing.AwsTestClients; import io.floci.aws.testing.CfnStackWaits; import io.floci.aws.testing.RestAssuredJsonUtils; import io.floci.aws.testing.SidecarContainersProfile; @@ -10,8 +11,6 @@ import io.quarkus.test.junit.TestProfile; import io.restassured.specification.RequestSpecification; import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.Test; -import software.amazon.awssdk.auth.credentials.AwsBasicCredentials; -import software.amazon.awssdk.auth.credentials.StaticCredentialsProvider; import software.amazon.awssdk.regions.Region; import software.amazon.awssdk.services.elasticache.ElastiCacheClient; import software.amazon.awssdk.services.elasticache.model.ServerlessCache; @@ -82,9 +81,7 @@ class ElastiCacheServerlessCfnIntegrationTest { } private ElastiCacheClient client() { - return ElastiCacheClient.builder().endpointOverride(endpoint).region(Region.US_EAST_1) - .credentialsProvider(StaticCredentialsProvider.create(AwsBasicCredentials.create("test", "test"))) - .build(); + return AwsTestClients.create(ElastiCacheClient.builder(), "000000000000", Region.US_EAST_1, endpoint); } @Test