Skip to content

Commit

Permalink
chore(dependencies): Autobump korkVersion (#6182)
Browse files Browse the repository at this point in the history
* chore(dependencies): Autobump korkVersion

* fix(tests): fixes test setup after upgrading testcontainers

---------

Co-authored-by: root <root@9bcdea888557>
Co-authored-by: kirangodishala <[email protected]>
  • Loading branch information
3 people committed Apr 2, 2024
1 parent f532734 commit 2ac17cf
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@
import static org.mockito.Mockito.verify;
import static org.testcontainers.containers.localstack.LocalStackContainer.Service.S3;

import com.amazonaws.auth.AWSStaticCredentialsProvider;
import com.amazonaws.auth.BasicAWSCredentials;
import com.amazonaws.client.builder.AwsClientBuilder;
import com.amazonaws.services.s3.AmazonS3;
import com.amazonaws.services.s3.AmazonS3ClientBuilder;
import com.amazonaws.services.s3.model.AmazonS3Exception;
Expand Down Expand Up @@ -98,8 +101,12 @@ private static void setupOnce() {
localstack.start();
amazonS3 =
AmazonS3ClientBuilder.standard()
.withEndpointConfiguration(localstack.getEndpointConfiguration(S3))
.withCredentials(localstack.getDefaultCredentialsProvider())
.withEndpointConfiguration(
new AwsClientBuilder.EndpointConfiguration(
localstack.getEndpoint().toString(), localstack.getRegion()))
.withCredentials(
new AWSStaticCredentialsProvider(
new BasicAWSCredentials(localstack.getAccessKey(), localstack.getSecretKey())))
.withRequestHandlers(
new S3ArtifactCredentials.S3ArtifactRequestHandler(account.getName()))
.build();
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
fiatVersion=1.45.0
korkVersion=7.222.0
korkVersion=7.223.0
org.gradle.parallel=true
spinnakerGradleVersion=8.32.1
targetJava11=true
Expand Down

0 comments on commit 2ac17cf

Please sign in to comment.