From 5a952b3338cb3e64a0db68685995276a556b0308 Mon Sep 17 00:00:00 2001 From: Philip Riecks Date: Tue, 23 Jan 2024 11:38:42 +0100 Subject: [PATCH] fix project --- .../src/main/resources/application.yml | 1 + .../java/de/rieckpil/blog/SimpleMessageListenerPre23IT.java | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/spring-boot-aws-integration-tests/src/main/resources/application.yml b/spring-boot-aws-integration-tests/src/main/resources/application.yml index 7f797a98..7d32dbd6 100644 --- a/spring-boot-aws-integration-tests/src/main/resources/application.yml +++ b/spring-boot-aws-integration-tests/src/main/resources/application.yml @@ -5,5 +5,6 @@ event-processing: spring: cloud: aws: + region: static: eu-central-1 diff --git a/spring-boot-aws-integration-tests/src/test/java/de/rieckpil/blog/SimpleMessageListenerPre23IT.java b/spring-boot-aws-integration-tests/src/test/java/de/rieckpil/blog/SimpleMessageListenerPre23IT.java index 8891836f..39eda826 100644 --- a/spring-boot-aws-integration-tests/src/test/java/de/rieckpil/blog/SimpleMessageListenerPre23IT.java +++ b/spring-boot-aws-integration-tests/src/test/java/de/rieckpil/blog/SimpleMessageListenerPre23IT.java @@ -52,8 +52,9 @@ static void beforeAll() throws IOException, InterruptedException { static void overrideConfiguration(DynamicPropertyRegistry registry) { registry.add("event-processing.order-event-queue", () -> QUEUE_NAME); registry.add("event-processing.order-event-bucket", () -> BUCKET_NAME); - registry.add("cloud.aws.credentials.access-key", localStack::getAccessKey); - registry.add("cloud.aws.credentials.secret-key", localStack::getSecretKey); + registry.add("spring.cloud.aws.credentials.access-key", localStack::getAccessKey); + registry.add("spring.cloud.aws.credentials.secret-key", localStack::getSecretKey); + System.setProperty("aws.region", "eu-central-1"); } @TestConfiguration