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 2022/06/09 11:25:48 UTC

[camel] branch main updated: Regen for commit 4ebbef5371fe8754d7c909fc1a7453d9854a00b9

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.git


The following commit(s) were added to refs/heads/main by this push:
     new 44c228d1542 Regen for commit 4ebbef5371fe8754d7c909fc1a7453d9854a00b9
44c228d1542 is described below

commit 44c228d154248fae603fb49900a59a5f612735cc
Author: davsclaus <da...@users.noreply.github.com>
AuthorDate: Thu Jun 9 11:22:42 2022 +0000

    Regen for commit 4ebbef5371fe8754d7c909fc1a7453d9854a00b9
    
    Signed-off-by: GitHub <no...@github.com>
---
 .../camel/component/hashicorp/vault/HashicorpVaultConstants.java    | 3 ++-
 .../camel/component/hashicorp/vault/HashicorpVaultProducer.java     | 2 +-
 .../vault/integration/operations/HashicorpProducerReadSecretIT.java | 6 +++---
 3 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/components/camel-hashicorp-vault/src/main/java/org/apache/camel/component/hashicorp/vault/HashicorpVaultConstants.java b/components/camel-hashicorp-vault/src/main/java/org/apache/camel/component/hashicorp/vault/HashicorpVaultConstants.java
index 3f3cb0d6e6e..941e5224f59 100644
--- a/components/camel-hashicorp-vault/src/main/java/org/apache/camel/component/hashicorp/vault/HashicorpVaultConstants.java
+++ b/components/camel-hashicorp-vault/src/main/java/org/apache/camel/component/hashicorp/vault/HashicorpVaultConstants.java
@@ -28,8 +28,9 @@ public final class HashicorpVaultConstants {
 
     // headers set by the producer only
     @Metadata(label = "producer", description = "Set the desired secret path as header.",
-            javaType = "String")
+              javaType = "String")
     public static final String SECRET_PATH = HEADER_PREFIX + "SecretPath";
+
     private HashicorpVaultConstants() {
     }
 }
diff --git a/components/camel-hashicorp-vault/src/main/java/org/apache/camel/component/hashicorp/vault/HashicorpVaultProducer.java b/components/camel-hashicorp-vault/src/main/java/org/apache/camel/component/hashicorp/vault/HashicorpVaultProducer.java
index 7855be2bce1..684774f653b 100644
--- a/components/camel-hashicorp-vault/src/main/java/org/apache/camel/component/hashicorp/vault/HashicorpVaultProducer.java
+++ b/components/camel-hashicorp-vault/src/main/java/org/apache/camel/component/hashicorp/vault/HashicorpVaultProducer.java
@@ -73,7 +73,7 @@ public class HashicorpVaultProducer extends DefaultProducer {
         if (ObjectHelper.isNotEmpty(exchange.getMessage().getHeader(HashicorpVaultConstants.SECRET_PATH))) {
             secretPath = exchange.getMessage().getHeader(HashicorpVaultConstants.SECRET_PATH, String.class);
         } else {
-        throw new IllegalArgumentException("Secret Path must be specified");
+            throw new IllegalArgumentException("Secret Path must be specified");
         }
         String completePath = getEndpoint().getConfiguration().getSecretsEngine() + "/" + "data" + "/" + secretPath;
         VaultResponse rawSecret = getEndpoint().getVaultTemplate().read(completePath);
diff --git a/components/camel-hashicorp-vault/src/test/java/org/apache/camel/component/hashicorp/vault/integration/operations/HashicorpProducerReadSecretIT.java b/components/camel-hashicorp-vault/src/test/java/org/apache/camel/component/hashicorp/vault/integration/operations/HashicorpProducerReadSecretIT.java
index 045092a9070..1f26837be85 100644
--- a/components/camel-hashicorp-vault/src/test/java/org/apache/camel/component/hashicorp/vault/integration/operations/HashicorpProducerReadSecretIT.java
+++ b/components/camel-hashicorp-vault/src/test/java/org/apache/camel/component/hashicorp/vault/integration/operations/HashicorpProducerReadSecretIT.java
@@ -1,5 +1,7 @@
 package org.apache.camel.component.hashicorp.vault.integration.operations;
 
+import java.util.Map;
+
 import org.apache.camel.EndpointInject;
 import org.apache.camel.Exchange;
 import org.apache.camel.Processor;
@@ -10,8 +12,6 @@ import org.apache.camel.test.junit5.CamelTestSupport;
 import org.junit.jupiter.api.Disabled;
 import org.junit.jupiter.api.Test;
 
-import java.util.Map;
-
 import static org.junit.jupiter.api.Assertions.assertEquals;
 import static org.junit.jupiter.api.Assertions.assertNotNull;
 
@@ -35,7 +35,7 @@ public class HashicorpProducerReadSecretIT extends CamelTestSupport {
         assertMockEndpointsSatisfied();
         Exchange ret = mock.getExchanges().get(0);
         assertNotNull(ret);
-        assertEquals(((Map)ret.getMessage().getBody(Map.class).get("data")).get("id"), "12");
+        assertEquals(((Map) ret.getMessage().getBody(Map.class).get("data")).get("id"), "12");
     }
 
     @Override