diff --git a/aws-cloudwatch-project/src/test/java/com/example/awsspring/common/LocalStackConfig.java b/aws-cloudwatch-project/src/test/java/com/example/awsspring/common/LocalStackConfig.java index 12177c5c..1b369bdf 100644 --- a/aws-cloudwatch-project/src/test/java/com/example/awsspring/common/LocalStackConfig.java +++ b/aws-cloudwatch-project/src/test/java/com/example/awsspring/common/LocalStackConfig.java @@ -14,7 +14,7 @@ public class LocalStackConfig { static { localStackContainer = new LocalStackContainer( - DockerImageName.parse("localstack/localstack").withTag("3.1.0")) + DockerImageName.parse("localstack/localstack").withTag("3.3.0")) .withServices(CLOUDWATCH) .withExposedPorts(4566); localStackContainer.start(); diff --git a/aws-dynamodb-project/src/test/java/com/learning/awsspring/common/LocalStackConfig.java b/aws-dynamodb-project/src/test/java/com/learning/awsspring/common/LocalStackConfig.java index 222d2c61..d17aa6f0 100644 --- a/aws-dynamodb-project/src/test/java/com/learning/awsspring/common/LocalStackConfig.java +++ b/aws-dynamodb-project/src/test/java/com/learning/awsspring/common/LocalStackConfig.java @@ -12,7 +12,7 @@ @Slf4j public class LocalStackConfig { protected static final LocalStackContainer LOCAL_STACK_CONTAINER = - new LocalStackContainer(DockerImageName.parse("localstack/localstack").withTag("3.1.0")) + new LocalStackContainer(DockerImageName.parse("localstack/localstack").withTag("3.3.0")) .withCopyFileToContainer( MountableFile.forHostPath(".localstack/"), "/etc/localstack/init/ready.d/") diff --git a/aws-kinesis-project/consumer/src/test/java/com/learning/aws/spring/common/LocalStackConfig.java b/aws-kinesis-project/consumer/src/test/java/com/learning/aws/spring/common/LocalStackConfig.java index 3f9e8c36..fe31927e 100644 --- a/aws-kinesis-project/consumer/src/test/java/com/learning/aws/spring/common/LocalStackConfig.java +++ b/aws-kinesis-project/consumer/src/test/java/com/learning/aws/spring/common/LocalStackConfig.java @@ -19,7 +19,8 @@ public class LocalStackConfig { private static final Logger log = LoggerFactory.getLogger(LocalStackConfig.class); static LocalStackContainer localStackContainer = - new LocalStackContainer(DockerImageName.parse("localstack/localstack:3.2.0")); + new LocalStackContainer( + DockerImageName.parse("localstack/localstack").withTag("3.3.0")); static { localStackContainer.start(); diff --git a/aws-kinesis-project/producer/src/test/java/com/learning/aws/spring/TestKinesisProducerApplication.java b/aws-kinesis-project/producer/src/test/java/com/learning/aws/spring/TestKinesisProducerApplication.java index 24f5d33c..001b30b4 100644 --- a/aws-kinesis-project/producer/src/test/java/com/learning/aws/spring/TestKinesisProducerApplication.java +++ b/aws-kinesis-project/producer/src/test/java/com/learning/aws/spring/TestKinesisProducerApplication.java @@ -19,7 +19,8 @@ public class TestKinesisProducerApplication { @Bean LocalStackContainer localStackContainer(DynamicPropertyRegistry dynamicPropertyRegistry) { LocalStackContainer localStackContainer = - new LocalStackContainer(DockerImageName.parse("localstack/localstack:3.2.0")); + new LocalStackContainer( + DockerImageName.parse("localstack/localstack").withTag("3.3.0")); dynamicPropertyRegistry.add("spring.cloud.aws.endpoint", localStackContainer::getEndpoint); dynamicPropertyRegistry.add( "spring.cloud.aws.region.static", localStackContainer::getRegion); diff --git a/aws-lambda-project/src/test/java/com/learning/awslambda/ApplicationIntegrationTest.java b/aws-lambda-project/src/test/java/com/learning/awslambda/ApplicationIntegrationTest.java index febdfdf3..0303649f 100644 --- a/aws-lambda-project/src/test/java/com/learning/awslambda/ApplicationIntegrationTest.java +++ b/aws-lambda-project/src/test/java/com/learning/awslambda/ApplicationIntegrationTest.java @@ -57,14 +57,14 @@ class ApplicationIntegrationTest { static Network network = Network.newNetwork(); @Container - static PostgreSQLContainer postgres = new PostgreSQLContainer<>("postgres:16.1-alpine") + static PostgreSQLContainer postgres = new PostgreSQLContainer<>("postgres:16.2-alpine") .withNetwork(network) .withNetworkAliases("postgres") .withReuse(true); @Container static LocalStackContainer localstack = new LocalStackContainer( - DockerImageName.parse("localstack/localstack:3.1.0")) + DockerImageName.parse("localstack/localstack").withTag("3.3.0")) .withNetwork(network) .withEnv("LOCALSTACK_HOST", "localhost.localstack.cloud") .withEnv("LAMBDA_DOCKER_NETWORK", ((Network.NetworkImpl) network).getName()) diff --git a/aws-lambda-project/src/test/java/com/learning/awslambda/common/ContainersConfig.java b/aws-lambda-project/src/test/java/com/learning/awslambda/common/ContainersConfig.java index b3209b00..3ab6f1fa 100644 --- a/aws-lambda-project/src/test/java/com/learning/awslambda/common/ContainersConfig.java +++ b/aws-lambda-project/src/test/java/com/learning/awslambda/common/ContainersConfig.java @@ -12,6 +12,6 @@ public class ContainersConfig { @Bean @ServiceConnection PostgreSQLContainer postgreSQLContainer() { - return new PostgreSQLContainer<>(DockerImageName.parse("postgres:16.1-alpine")); + return new PostgreSQLContainer<>(DockerImageName.parse("postgres:16.2-alpine")); } } diff --git a/aws-parameterstore-project/src/test/java/com/example/awsspring/common/LocalStackContainerConfig.java b/aws-parameterstore-project/src/test/java/com/example/awsspring/common/LocalStackContainerConfig.java index 0bec3bd8..ff9b62a2 100644 --- a/aws-parameterstore-project/src/test/java/com/example/awsspring/common/LocalStackContainerConfig.java +++ b/aws-parameterstore-project/src/test/java/com/example/awsspring/common/LocalStackContainerConfig.java @@ -14,7 +14,7 @@ public class LocalStackContainerConfig { @Container private static final LocalStackContainer localStackContainer = - new LocalStackContainer(DockerImageName.parse("localstack/localstack").withTag("3.1.0")) + new LocalStackContainer(DockerImageName.parse("localstack/localstack").withTag("3.3.0")) .withCopyFileToContainer( MountableFile.forHostPath("localstack/"), "/etc/localstack/init/ready.d/") diff --git a/aws-s3-project/src/test/java/com/learning/awspring/TestS3Application.java b/aws-s3-project/src/test/java/com/learning/awspring/TestS3Application.java index 76b7eb63..466c41be 100644 --- a/aws-s3-project/src/test/java/com/learning/awspring/TestS3Application.java +++ b/aws-s3-project/src/test/java/com/learning/awspring/TestS3Application.java @@ -27,7 +27,7 @@ PostgreSQLContainer postgresContainer() { LocalStackContainer localstackContainer(DynamicPropertyRegistry registry) { LocalStackContainer localStackContainer = new LocalStackContainer( - DockerImageName.parse("localstack/localstack").withTag("3.2.0")) + DockerImageName.parse("localstack/localstack").withTag("3.3.0")) .withCopyFileToContainer( MountableFile.forHostPath(".localstack/"), "/etc/localstack/init/ready.d/") diff --git a/aws-secretmanager-project/src/test/java/com/example/awsspring/common/DBTestContainer.java b/aws-secretmanager-project/src/test/java/com/example/awsspring/common/DBTestContainer.java index 21391e8a..1af281d9 100644 --- a/aws-secretmanager-project/src/test/java/com/example/awsspring/common/DBTestContainer.java +++ b/aws-secretmanager-project/src/test/java/com/example/awsspring/common/DBTestContainer.java @@ -7,5 +7,5 @@ public interface DBTestContainer { @Container @ServiceConnection - PostgreSQLContainer sqlContainer = new PostgreSQLContainer<>("postgres:16.1-alpine"); + PostgreSQLContainer sqlContainer = new PostgreSQLContainer<>("postgres:16.2-alpine"); } diff --git a/aws-secretmanager-project/src/test/java/com/example/awsspring/common/LocalStackContainerConfig.java b/aws-secretmanager-project/src/test/java/com/example/awsspring/common/LocalStackContainerConfig.java index 39be4f3d..f4da8470 100644 --- a/aws-secretmanager-project/src/test/java/com/example/awsspring/common/LocalStackContainerConfig.java +++ b/aws-secretmanager-project/src/test/java/com/example/awsspring/common/LocalStackContainerConfig.java @@ -14,7 +14,7 @@ public class LocalStackContainerConfig { @Container private static final LocalStackContainer localStackContainer = - new LocalStackContainer(DockerImageName.parse("localstack/localstack").withTag("3.1.0")) + new LocalStackContainer(DockerImageName.parse("localstack/localstack").withTag("3.3.0")) .withCopyFileToContainer( MountableFile.forHostPath("localstack/"), "/etc/localstack/init/ready.d/") diff --git a/aws-ses-project/src/test/java/com/example/awsspring/common/LocalStackConfig.java b/aws-ses-project/src/test/java/com/example/awsspring/common/LocalStackConfig.java index c881c22a..bb8e916a 100644 --- a/aws-ses-project/src/test/java/com/example/awsspring/common/LocalStackConfig.java +++ b/aws-ses-project/src/test/java/com/example/awsspring/common/LocalStackConfig.java @@ -12,7 +12,7 @@ public class LocalStackConfig { static final LocalStackContainer localStackContainer = new LocalStackContainer( - DockerImageName.parse("localstack/localstack").withTag("3.1.0")); + DockerImageName.parse("localstack/localstack").withTag("3.3.0")); static { localStackContainer.start(); diff --git a/aws-sns-project/src/test/java/com/learning/awssns/common/ContainersConfig.java b/aws-sns-project/src/test/java/com/learning/awssns/common/ContainersConfig.java index 3db2ffe5..3be0e43b 100644 --- a/aws-sns-project/src/test/java/com/learning/awssns/common/ContainersConfig.java +++ b/aws-sns-project/src/test/java/com/learning/awssns/common/ContainersConfig.java @@ -11,8 +11,8 @@ public class ContainersConfig { @Bean LocalStackContainer localstackContainer(DynamicPropertyRegistry registry) { - LocalStackContainer localStackContainer = - new LocalStackContainer(DockerImageName.parse("localstack/localstack:3.1.0")); + LocalStackContainer localStackContainer = new LocalStackContainer( + DockerImageName.parse("localstack/localstack").withTag("3.3.0")); registry.add("spring.cloud.aws.credentials.access-key", localStackContainer::getAccessKey); registry.add("spring.cloud.aws.credentials.secret-key", localStackContainer::getSecretKey); registry.add("spring.cloud.aws.region.static", localStackContainer::getRegion); diff --git a/aws-sqs-project/src/test/java/com/learning/awspring/SchemaValidationTest.java b/aws-sqs-project/src/test/java/com/learning/awspring/SchemaValidationTest.java index 77e45f59..059b8a7b 100644 --- a/aws-sqs-project/src/test/java/com/learning/awspring/SchemaValidationTest.java +++ b/aws-sqs-project/src/test/java/com/learning/awspring/SchemaValidationTest.java @@ -12,7 +12,7 @@ properties = { "spring.jpa.hibernate.ddl-auto=validate", "spring.test.database.replace=none", - "spring.datasource.url=jdbc:tc:postgresql:16.1-alpine:///db" + "spring.datasource.url=jdbc:tc:postgresql:16.2-alpine:///db" }) class SchemaValidationTest { diff --git a/aws-sqs-project/src/test/java/com/learning/awspring/config/TestcontainersConfig.java b/aws-sqs-project/src/test/java/com/learning/awspring/config/TestcontainersConfig.java index 2bae80e8..bdc464d5 100644 --- a/aws-sqs-project/src/test/java/com/learning/awspring/config/TestcontainersConfig.java +++ b/aws-sqs-project/src/test/java/com/learning/awspring/config/TestcontainersConfig.java @@ -14,13 +14,14 @@ public class TestcontainersConfig { @Bean @ServiceConnection public PostgreSQLContainer postgreSQLContainer() { - return new PostgreSQLContainer<>("postgres:16.1-alpine"); + return new PostgreSQLContainer<>("postgres:16.2-alpine"); } @Bean LocalStackContainer localstackContainer(DynamicPropertyRegistry registry) { LocalStackContainer localStackContainer = - new LocalStackContainer(DockerImageName.parse("localstack/localstack:3.1.0")) + new LocalStackContainer( + DockerImageName.parse("localstack/localstack").withTag("3.3.0")) .withReuse(true); registry.add("spring.cloud.aws.credentials.access-key", localStackContainer::getAccessKey); registry.add("spring.cloud.aws.credentials.secret-key", localStackContainer::getSecretKey);