From c58ff06a06144fcc73eba12108fc6f03beb323fe Mon Sep 17 00:00:00 2001 From: Andrea Cosentino Date: Mon, 29 Jul 2024 14:49:28 +0200 Subject: [PATCH] CAMEL-21025 - Camel-AWS-Secrets-Manager: Give the ability of refreshing the context on Secrets update by using Eventbridge service instead of pure Cloudtrail - Spring Boot support Signed-off-by: Andrea Cosentino --- .../camel/spring/boot/vault/AwsVaultConfigurationTest.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/camel-spring-boot/src/test/java/org/apache/camel/spring/boot/vault/AwsVaultConfigurationTest.java b/core/camel-spring-boot/src/test/java/org/apache/camel/spring/boot/vault/AwsVaultConfigurationTest.java index 3f3d2ea64ac8..133d7016d9aa 100644 --- a/core/camel-spring-boot/src/test/java/org/apache/camel/spring/boot/vault/AwsVaultConfigurationTest.java +++ b/core/camel-spring-boot/src/test/java/org/apache/camel/spring/boot/vault/AwsVaultConfigurationTest.java @@ -32,7 +32,7 @@ "camel.vault.aws.secretKey=mySecretKey", "camel.vault.aws.region=myRegion", "camel.vault.aws.defaultCredentialsProvider=false", "camel.vault.aws.refreshPeriod=60000", "camel.vault.aws.refreshEnabled=false", "camel.vault.aws.secrets=supersecret", - "camel.vault.aws.profile-credentials-provider=true", "camel.vault.aws.profile-name=test" }) + "camel.vault.aws.profile-credentials-provider=true", "camel.vault.aws.profile-name=test", "camel.vault.aws.use-sqs-notification=true", "camel.vault.aws.sqs-queue-url=http://sqs-2" }) public class AwsVaultConfigurationTest { @Autowired @@ -49,5 +49,7 @@ public void testAwsVault() throws Exception { Assertions.assertEquals("supersecret", camelContext.getVaultConfiguration().aws().getSecrets()); Assertions.assertEquals("test", camelContext.getVaultConfiguration().aws().getProfileName()); Assertions.assertEquals(true, camelContext.getVaultConfiguration().aws().isProfileCredentialsProvider()); + Assertions.assertEquals(true, camelContext.getVaultConfiguration().aws().isUseSqsNotification()); + Assertions.assertEquals("http://sqs-2", camelContext.getVaultConfiguration().aws().getSqsQueueUrl()); } }