Skip to content

Commit

Permalink
chore(dependencies): upgrade testcontainers to the latest - 1.19.6 (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
kirangodishala authored Apr 2, 2024
1 parent 3a6adac commit 277447d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@

import static org.junit.jupiter.api.Assertions.assertEquals;

import com.amazonaws.auth.AWSStaticCredentialsProvider;
import com.amazonaws.auth.BasicAWSCredentials;
import com.amazonaws.client.builder.AwsClientBuilder;
import com.amazonaws.services.secretsmanager.AWSSecretsManager;
import com.amazonaws.services.secretsmanager.AWSSecretsManagerClientBuilder;
import com.amazonaws.services.secretsmanager.model.CreateSecretRequest;
Expand Down Expand Up @@ -60,8 +63,11 @@ public void canDecryptUserSecret() {
AWSSecretsManager client =
AWSSecretsManagerClientBuilder.standard()
.withEndpointConfiguration(
container.getEndpointConfiguration(LocalStackContainer.Service.SECRETSMANAGER))
.withCredentials(container.getDefaultCredentialsProvider())
new AwsClientBuilder.EndpointConfiguration(
container.getEndpoint().toString(), container.getRegion()))
.withCredentials(
new AWSStaticCredentialsProvider(
new BasicAWSCredentials(container.getAccessKey(), container.getSecretKey())))
.build();

UserSecretMetadata metadata =
Expand Down Expand Up @@ -121,8 +127,11 @@ public SecretsManagerClientProvider localstackClientProvider(LocalStackContainer
return (params) ->
AWSSecretsManagerClientBuilder.standard()
.withEndpointConfiguration(
container.getEndpointConfiguration(LocalStackContainer.Service.SECRETSMANAGER))
.withCredentials(container.getDefaultCredentialsProvider())
new AwsClientBuilder.EndpointConfiguration(
container.getEndpoint().toString(), container.getRegion()))
.withCredentials(
new AWSStaticCredentialsProvider(
new BasicAWSCredentials(container.getAccessKey(), container.getSecretKey())))
.build();
}

Expand Down
2 changes: 1 addition & 1 deletion spinnaker-dependencies/spinnaker-dependencies.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ dependencies {
api(platform("io.strikt:strikt-bom:0.31.0"))
api(platform("org.spockframework:spock-bom:2.0-groovy-3.0"))
api(platform("com.oracle.oci.sdk:oci-java-sdk-bom:3.21.0"))
api(platform("org.testcontainers:testcontainers-bom:1.16.2"))
api(platform("org.testcontainers:testcontainers-bom:1.19.6"))
api(platform("io.arrow-kt:arrow-stack:${versions.arrow}"))

constraints {
Expand Down

0 comments on commit 277447d

Please sign in to comment.