You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2024/05/20 15:11:56 UTC

(camel-spring-boot) branch CAMEL-20775 created (now 382ae23a04d)

This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a change to branch CAMEL-20775
in repository https://gitbox.apache.org/repos/asf/camel-spring-boot.git


      at 382ae23a04d CAMEL-20775 - camel-hashicorp-vault - configure multiple engines

This branch includes the following new commits:

     new 382ae23a04d CAMEL-20775 - camel-hashicorp-vault - configure multiple engines

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



(camel-spring-boot) 01/01: CAMEL-20775 - camel-hashicorp-vault - configure multiple engines

Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch CAMEL-20775
in repository https://gitbox.apache.org/repos/asf/camel-spring-boot.git

commit 382ae23a04d5347c4e62e0b024e36ddc053617e9
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Mon May 20 17:06:16 2024 +0200

    CAMEL-20775 - camel-hashicorp-vault - configure multiple engines
    
    Signed-off-by: Andrea Cosentino <an...@gmail.com>
---
 .../camel/spring/boot/vault/HashicorpVaultAutoConfiguration.java       | 1 -
 .../camel/spring/boot/vault/HashicorpVaultConfigurationTest.java       | 3 +--
 2 files changed, 1 insertion(+), 3 deletions(-)

diff --git a/core/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/vault/HashicorpVaultAutoConfiguration.java b/core/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/vault/HashicorpVaultAutoConfiguration.java
index a5f50df3191..e3c723bb6e4 100644
--- a/core/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/vault/HashicorpVaultAutoConfiguration.java
+++ b/core/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/vault/HashicorpVaultAutoConfiguration.java
@@ -34,7 +34,6 @@ public class HashicorpVaultAutoConfiguration {
     public HashicorpVaultConfiguration hashicorpVaultConfiguration(HashicorpVaultConfigurationProperties config) {
         HashicorpVaultConfiguration answer = new HashicorpVaultConfiguration();
         answer.setToken(config.getToken());
-        answer.setEngine(config.getEngine());
         answer.setHost(config.getHost());
         answer.setPort(config.getPort());
         answer.setScheme(config.getScheme());
diff --git a/core/camel-spring-boot/src/test/java/org/apache/camel/spring/boot/vault/HashicorpVaultConfigurationTest.java b/core/camel-spring-boot/src/test/java/org/apache/camel/spring/boot/vault/HashicorpVaultConfigurationTest.java
index 4c8aedb490a..69c9cf2ca19 100644
--- a/core/camel-spring-boot/src/test/java/org/apache/camel/spring/boot/vault/HashicorpVaultConfigurationTest.java
+++ b/core/camel-spring-boot/src/test/java/org/apache/camel/spring/boot/vault/HashicorpVaultConfigurationTest.java
@@ -29,7 +29,7 @@ import org.springframework.test.annotation.DirtiesContext;
 @CamelSpringBootTest
 @EnableAutoConfiguration
 @SpringBootTest(classes = { HashicorpVaultConfigurationTest.class }, properties = {
-        "camel.vault.hashicorp.token=myToken", "camel.vault.hashicorp.engine=myEngine",
+        "camel.vault.hashicorp.token=myToken",
         "camel.vault.hashicorp.host=myHost", "camel.vault.hashicorp.port=myPort",
         "camel.vault.hashicorp.scheme=myScheme" })
 public class HashicorpVaultConfigurationTest {
@@ -40,7 +40,6 @@ public class HashicorpVaultConfigurationTest {
     @Test
     public void testAwsVault() throws Exception {
         Assertions.assertEquals("myToken", camelContext.getVaultConfiguration().hashicorp().getToken());
-        Assertions.assertEquals("myEngine", camelContext.getVaultConfiguration().hashicorp().getEngine());
         Assertions.assertEquals("myHost", camelContext.getVaultConfiguration().hashicorp().getHost());
         Assertions.assertEquals("myPort", camelContext.getVaultConfiguration().hashicorp().getPort());
         Assertions.assertEquals("myScheme", camelContext.getVaultConfiguration().hashicorp().getScheme());