Skip to content

Commit

Permalink
CAMEL-20775 - camel-hashicorp-vault - configure multiple engines
Browse files Browse the repository at this point in the history
Signed-off-by: Andrea Cosentino <ancosen@gmail.com>
  • Loading branch information
oscerd committed May 20, 2024
1 parent 5605c0c commit 382ae23
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
@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 {
Expand All @@ -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());
Expand Down

0 comments on commit 382ae23

Please sign in to comment.