Skip to content

Commit

Permalink
Upgrade to testcontainers-1.18.0
Browse files Browse the repository at this point in the history
* Localstack 2.0.0
  • Loading branch information
artembilan committed Apr 4, 2023
1 parent 853c410 commit 136cce6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 13 deletions.
6 changes: 3 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ ext {
springIntegrationVersion = '6.0.4'
kinesisClientVersion = '2.4.8'
kinesisProducerVersion = '0.15.5'
testcontainersVersion = '1.17.6'
testcontainersVersion = '1.18.0'

idPrefix = 'aws'

Expand Down Expand Up @@ -128,12 +128,12 @@ dependencies {

optionalApi "jakarta.servlet:jakarta.servlet-api:$servletApiVersion"

testImplementation 'software.amazon.awssdk:apache-client'

testImplementation('org.springframework.integration:spring-integration-test') {
exclude group: 'junit'
}

testImplementation "org.assertj:assertj-core:$assertjVersion"

testImplementation("org.awaitility:awaitility:$awaitilityVersion") {
exclude group: 'org.hamcrest'
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
import software.amazon.awssdk.auth.credentials.AwsCredentialsProvider;
import software.amazon.awssdk.auth.credentials.StaticCredentialsProvider;
import software.amazon.awssdk.awscore.client.builder.AwsClientBuilder;
import software.amazon.awssdk.http.urlconnection.UrlConnectionHttpClient;
import software.amazon.awssdk.http.apache.ApacheHttpClient;
import software.amazon.awssdk.regions.Region;
import software.amazon.awssdk.services.cloudwatch.CloudWatchAsyncClient;
import software.amazon.awssdk.services.dynamodb.DynamoDbAsyncClient;
Expand All @@ -48,14 +48,7 @@
public interface LocalstackContainerTest {

LocalStackContainer LOCAL_STACK_CONTAINER =
new LocalStackContainer(
DockerImageName.parse("localstack/localstack:1.4.0"))
.withServices(
LocalStackContainer.Service.DYNAMODB,
LocalStackContainer.Service.KINESIS,
LocalStackContainer.Service.CLOUDWATCH,
LocalStackContainer.Service.S3,
LocalStackContainer.Service.SQS);
new LocalStackContainer(DockerImageName.parse("localstack/localstack:2.0.0"));

@BeforeAll
static void startContainer() {
Expand All @@ -79,7 +72,7 @@ static S3AsyncClient s3AsyncClient() {
}

static S3Client s3Client() {
return applyAwsClientOptions(S3Client.builder().httpClient(UrlConnectionHttpClient.builder().build()),
return applyAwsClientOptions(S3Client.builder().httpClient(ApacheHttpClient.create()),
LocalStackContainer.Service.S3);
}

Expand Down

0 comments on commit 136cce6

Please sign in to comment.