Skip to content

Commit

Permalink
Updated LocalStackTestConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
pasqualino.cristaudo committed Oct 26, 2023
1 parent c5e079f commit 528199a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public class LocalStackTestConfig {

static LocalStackContainer localStack =
new LocalStackContainer(DockerImageName.parse("localstack/localstack:1.0.4").asCompatibleSubstituteFor("localstack/localstack"))
.withServices(DYNAMODB, SQS)
.withServices(SQS)
.withClasspathResourceMapping("testcontainers/init.sh",
"/docker-entrypoint-initaws.d/make-storages.sh", BindMode.READ_ONLY)
.withClasspathResourceMapping("testcontainers/credentials",
Expand All @@ -37,7 +37,7 @@ public class LocalStackTestConfig {

static {
localStack.start();
System.setProperty("aws.sqs-endpoint", localStack.getEndpointOverride(DYNAMODB).toString());
System.setProperty("aws.sqs-endpoint", localStack.getEndpointOverride(SQS).toString());
try {
System.setProperty("aws.sharedCredentialsFile", new ClassPathResource("testcontainers/credentials").getFile().getAbsolutePath());
} catch (IOException e) {
Expand Down

0 comments on commit 528199a

Please sign in to comment.