From 25e0badb18bf49319530632180f5c7dbe5de590a Mon Sep 17 00:00:00 2001 From: Raja Kolli Date: Mon, 5 Feb 2024 16:24:29 +0000 Subject: [PATCH] Upgrade junits TC version to 3.1.0 --- .gitignore | 8 -------- .../com/example/awsspring/common/LocalStackConfig.java | 2 +- .../com/learning/aws/spring/common/LocalStackConfig.java | 2 +- .../com/learning/aws/spring/common/LocalStackConfig.java | 2 +- .../learning/awslambda/ApplicationIntegrationTest.java | 2 +- .../awsspring/common/LocalStackContainerConfig.java | 2 +- .../java/com/learning/awspring/TestS3Application.java | 2 +- .../awsspring/common/LocalStackContainerConfig.java | 2 +- .../com/example/awsspring/common/LocalStackConfig.java | 2 +- .../java/com/learning/awssns/common/ContainersConfig.java | 2 +- .../learning/awspring/config/TestcontainersConfig.java | 2 +- 11 files changed, 10 insertions(+), 18 deletions(-) diff --git a/.gitignore b/.gitignore index 0298c797..87103223 100644 --- a/.gitignore +++ b/.gitignore @@ -37,11 +37,3 @@ build/ .DS_Store .jpb/ logs/ -aws-dynamodb-project/docker/volume/ -aws-ses-project/docker/volume/ -aws-kinesis-project/consumer/docker/volume/ -aws-kinesis-project/producer/docker/volume/ -aws-parameterstore-project/docker/volume/ -aws-secretmanager-project/docker/volume/ -aws-sqs-project/docker/volume/ -aws-s3-project/docker/volume/ 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 858c5b63..12177c5c 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.0.2")) + DockerImageName.parse("localstack/localstack").withTag("3.1.0")) .withServices(CLOUDWATCH) .withExposedPorts(4566); localStackContainer.start(); 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 4365e4b4..ee14baa9 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 @@ -20,7 +20,7 @@ public class LocalStackConfig { @Container static LocalStackContainer localStackContainer = - new LocalStackContainer(DockerImageName.parse("localstack/localstack:3.0.2")); + new LocalStackContainer(DockerImageName.parse("localstack/localstack:3.1.0")); static { localStackContainer.start(); diff --git a/aws-kinesis-project/producer/src/test/java/com/learning/aws/spring/common/LocalStackConfig.java b/aws-kinesis-project/producer/src/test/java/com/learning/aws/spring/common/LocalStackConfig.java index 8fa3ed37..5b4c4da1 100644 --- a/aws-kinesis-project/producer/src/test/java/com/learning/aws/spring/common/LocalStackConfig.java +++ b/aws-kinesis-project/producer/src/test/java/com/learning/aws/spring/common/LocalStackConfig.java @@ -20,7 +20,7 @@ public class LocalStackConfig { System.setProperty("com.amazonaws.sdk.disableCbor", "true"); localStackContainer = new LocalStackContainer( - DockerImageName.parse("localstack/localstack").withTag("3.0.2")) + DockerImageName.parse("localstack/localstack").withTag("3.1.0")) .withEnv("EAGER_SERVICE_LOADING", "1") .withServices(KINESIS) .withExposedPorts(4566); 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 ab6508e8..febdfdf3 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 @@ -64,7 +64,7 @@ class ApplicationIntegrationTest { @Container static LocalStackContainer localstack = new LocalStackContainer( - DockerImageName.parse("localstack/localstack:3.0.2")) + DockerImageName.parse("localstack/localstack:3.1.0")) .withNetwork(network) .withEnv("LOCALSTACK_HOST", "localhost.localstack.cloud") .withEnv("LAMBDA_DOCKER_NETWORK", ((Network.NetworkImpl) network).getName()) 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 cc3c226c..0bec3bd8 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.0.2")) + new LocalStackContainer(DockerImageName.parse("localstack/localstack").withTag("3.1.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 da9369b0..dd41430a 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.0.2")) + DockerImageName.parse("localstack/localstack").withTag("3.1.0")) .withCopyFileToContainer( MountableFile.forHostPath(".localstack/"), "/etc/localstack/init/ready.d/") 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 30ebf113..39be4f3d 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.0.2")) + new LocalStackContainer(DockerImageName.parse("localstack/localstack").withTag("3.1.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 2f132fa8..c881c22a 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.0.2")); + DockerImageName.parse("localstack/localstack").withTag("3.1.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 7fdcff37..3db2ffe5 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 @@ -12,7 +12,7 @@ public class ContainersConfig { @Bean LocalStackContainer localstackContainer(DynamicPropertyRegistry registry) { LocalStackContainer localStackContainer = - new LocalStackContainer(DockerImageName.parse("localstack/localstack:3.0.2")); + new LocalStackContainer(DockerImageName.parse("localstack/localstack:3.1.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/config/TestcontainersConfig.java b/aws-sqs-project/src/test/java/com/learning/awspring/config/TestcontainersConfig.java index 00c4e2e9..2bae80e8 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 @@ -20,7 +20,7 @@ public PostgreSQLContainer postgreSQLContainer() { @Bean LocalStackContainer localstackContainer(DynamicPropertyRegistry registry) { LocalStackContainer localStackContainer = - new LocalStackContainer(DockerImageName.parse("localstack/localstack:3.0.2")) + new LocalStackContainer(DockerImageName.parse("localstack/localstack:3.1.0")) .withReuse(true); registry.add("spring.cloud.aws.credentials.access-key", localStackContainer::getAccessKey); registry.add("spring.cloud.aws.credentials.secret-key", localStackContainer::getSecretKey);