This is an automated email from the ASF dual-hosted git repository. acosentino pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel-spring-boot.git
commit 393d1800179760e9455127b78998221c38813f3c Author: Andrea Cosentino <[email protected]> AuthorDate: Tue Sep 13 14:37:05 2022 +0200 CAMEL-18502 - Support Secrets Reload from Vault/Cloud Service in camel-spring-boot - Google Secret Manager Signed-off-by: Andrea Cosentino <[email protected]> --- .../apache/camel/spring/boot/vault/GcpVaultConfigurationTest.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/core/camel-spring-boot/src/test/java/org/apache/camel/spring/boot/vault/GcpVaultConfigurationTest.java b/core/camel-spring-boot/src/test/java/org/apache/camel/spring/boot/vault/GcpVaultConfigurationTest.java index 47ed0fdf841..33b4ef2a4c1 100644 --- a/core/camel-spring-boot/src/test/java/org/apache/camel/spring/boot/vault/GcpVaultConfigurationTest.java +++ b/core/camel-spring-boot/src/test/java/org/apache/camel/spring/boot/vault/GcpVaultConfigurationTest.java @@ -35,7 +35,7 @@ import org.springframework.test.annotation.DirtiesContext; "camel.vault.gcp.serviceAccountKey=file:////key.json", "camel.vault.gcp.projectId=gcp-project,", "camel.vault.gcp.subscriptionName=sub-1", - "camel.vault.gcp.refreshEnabled=true,", + "camel.vault.gcp.refreshEnabled=true", "camel.vault.gcp.refreshPeriod=300000,", "camel.vault.gcp.secrets=hello*," } @@ -49,5 +49,9 @@ public class GcpVaultConfigurationTest { public void testGcpVault() throws Exception { Assertions.assertEquals("file:////key.json", camelContext.getVaultConfiguration().gcp().getServiceAccountKey()); Assertions.assertEquals("gcp-project", camelContext.getVaultConfiguration().gcp().getProjectId()); + Assertions.assertEquals("sub-1", camelContext.getVaultConfiguration().gcp().getSubscriptionName()); + Assertions.assertEquals(true, camelContext.getVaultConfiguration().gcp().isRefreshEnabled()); + Assertions.assertEquals(300000, camelContext.getVaultConfiguration().gcp().getRefreshPeriod()); + Assertions.assertEquals("hello*", camelContext.getVaultConfiguration().gcp().getSecrets()); } }
