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 5dee4029dfa Regen for commit 0ed6c56517bd21078c815fc7db23e8050f0472a0 5dee4029dfa is described below commit 5dee4029dfa9e593418445c15220f94d0d7fcf50 Author: oscerd <osc...@users.noreply.github.com> AuthorDate: Wed Jun 8 13:42:57 2022 +0000 Regen for commit 0ed6c56517bd21078c815fc7db23e8050f0472a0 Signed-off-by: GitHub <nore...@github.com> --- .../camel/component/hashicorp/vault/HashicorpVaultEndpoint.java | 6 ++++-- .../camel/component/hashicorp/vault/HashicorpVaultProducer.java | 7 +++++-- .../integration/operations/HashicorpProducerCreateSecretIT.java | 5 ++--- .../operations/HashicorpProducerCreateSecretPOJOIT.java | 5 ----- 4 files changed, 11 insertions(+), 12 deletions(-) diff --git a/components/camel-hashicorp-vault/src/main/java/org/apache/camel/component/hashicorp/vault/HashicorpVaultEndpoint.java b/components/camel-hashicorp-vault/src/main/java/org/apache/camel/component/hashicorp/vault/HashicorpVaultEndpoint.java index 6e10a2ceb9a..707ffe1c8e0 100644 --- a/components/camel-hashicorp-vault/src/main/java/org/apache/camel/component/hashicorp/vault/HashicorpVaultEndpoint.java +++ b/components/camel-hashicorp-vault/src/main/java/org/apache/camel/component/hashicorp/vault/HashicorpVaultEndpoint.java @@ -43,7 +43,8 @@ public class HashicorpVaultEndpoint extends DefaultEndpoint { @UriParam private HashicorpVaultConfiguration configuration; - public HashicorpVaultEndpoint(final String uri, final Component component, final HashicorpVaultConfiguration configuration) { + public HashicorpVaultEndpoint(final String uri, final Component component, + final HashicorpVaultConfiguration configuration) { super(uri, component); this.configuration = configuration; } @@ -63,7 +64,8 @@ public class HashicorpVaultEndpoint extends DefaultEndpoint { vaultEndpoint.setPort(Integer.parseInt(configuration.getPort())); vaultEndpoint.setScheme(configuration.getScheme()); - vaultTemplate = new VaultTemplate(vaultEndpoint, + vaultTemplate = new VaultTemplate( + vaultEndpoint, new TokenAuthentication(configuration.getToken())); return vaultTemplate; 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 ca27872fc6c..e6e5582840b 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 @@ -57,7 +57,9 @@ public class HashicorpVaultProducer extends DefaultProducer { } private void createSecret(Exchange exchange) throws InvalidPayloadException { - VaultKeyValueOperations keyValue = getEndpoint().getVaultTemplate().opsForKeyValue(getEndpoint().getConfiguration().getSecretsEngine(), VaultKeyValueOperationsSupport.KeyValueBackend.versioned()); + VaultKeyValueOperations keyValue + = getEndpoint().getVaultTemplate().opsForKeyValue(getEndpoint().getConfiguration().getSecretsEngine(), + VaultKeyValueOperationsSupport.KeyValueBackend.versioned()); keyValue.put(getEndpoint().getConfiguration().getSecretPath(), exchange.getMessage().getBody()); } @@ -75,7 +77,8 @@ public class HashicorpVaultProducer extends DefaultProducer { } private HashicorpVaultOperation determineOperation(Exchange exchange) { - HashicorpVaultOperation operation = exchange.getIn().getHeader(HashicorpVaultConstants.OPERATION, HashicorpVaultOperation.class); + HashicorpVaultOperation operation + = exchange.getIn().getHeader(HashicorpVaultConstants.OPERATION, HashicorpVaultOperation.class); if (operation == null) { operation = getConfiguration().getOperation(); } diff --git a/components/camel-hashicorp-vault/src/test/java/org/apache/camel/component/hashicorp/vault/integration/operations/HashicorpProducerCreateSecretIT.java b/components/camel-hashicorp-vault/src/test/java/org/apache/camel/component/hashicorp/vault/integration/operations/HashicorpProducerCreateSecretIT.java index cfa5f9e6664..fa35d0b1a26 100644 --- a/components/camel-hashicorp-vault/src/test/java/org/apache/camel/component/hashicorp/vault/integration/operations/HashicorpProducerCreateSecretIT.java +++ b/components/camel-hashicorp-vault/src/test/java/org/apache/camel/component/hashicorp/vault/integration/operations/HashicorpProducerCreateSecretIT.java @@ -1,5 +1,7 @@ package org.apache.camel.component.hashicorp.vault.integration.operations; +import java.util.HashMap; + import org.apache.camel.EndpointInject; import org.apache.camel.Exchange; import org.apache.camel.Processor; @@ -9,8 +11,6 @@ import org.apache.camel.test.junit5.CamelTestSupport; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; -import java.util.HashMap; - @Disabled("Disabled until we'll have a Camel-Hashicorp-vault test-infra module") public class HashicorpProducerCreateSecretIT extends CamelTestSupport { @@ -30,7 +30,6 @@ public class HashicorpProducerCreateSecretIT extends CamelTestSupport { } }); - } @Override diff --git a/components/camel-hashicorp-vault/src/test/java/org/apache/camel/component/hashicorp/vault/integration/operations/HashicorpProducerCreateSecretPOJOIT.java b/components/camel-hashicorp-vault/src/test/java/org/apache/camel/component/hashicorp/vault/integration/operations/HashicorpProducerCreateSecretPOJOIT.java index a6ed25304ef..6e64a35736b 100644 --- a/components/camel-hashicorp-vault/src/test/java/org/apache/camel/component/hashicorp/vault/integration/operations/HashicorpProducerCreateSecretPOJOIT.java +++ b/components/camel-hashicorp-vault/src/test/java/org/apache/camel/component/hashicorp/vault/integration/operations/HashicorpProducerCreateSecretPOJOIT.java @@ -8,11 +8,6 @@ import org.apache.camel.component.mock.MockEndpoint; import org.apache.camel.test.junit5.CamelTestSupport; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; -import org.springframework.vault.support.VaultResponse; - -import java.util.HashMap; - -import static org.junit.jupiter.api.Assertions.assertNotNull; @Disabled("Disabled until we'll have a Camel-Hashicorp-vault test-infra module") public class HashicorpProducerCreateSecretPOJOIT extends CamelTestSupport {