[GitHub] [camel] davsclaus commented on a change in pull request #7014: CAMEL-17474: camel-jta - Mark exchange transacted in JtaTransacionErr…
davsclaus commented on a change in pull request #7014: URL: https://github.com/apache/camel/pull/7014#discussion_r812625620 ## File path: components/camel-jta/src/main/java/org/apache/camel/jta/JtaTransactionErrorHandler.java ## @@ -64,4 +69,16 @@ public ErrorHandler clone(Processor output) { return answer; } +@Override +public boolean process(final Exchange exchange, final AsyncCallback callback) { +if (!exchange.isTransacted()) { +LOG.debug("mark " + exchange + " transacted"); +exchange.getUnitOfWork().beginTransactedBy("jta"); +super.process(exchange, callback); +exchange.getUnitOfWork().endTransactedBy("jta"); Review comment: I think you need to have the endTransacted in a try .. finally block to ensure it will be ended ## File path: components/camel-jta/src/main/java/org/apache/camel/jta/JtaTransactionErrorHandler.java ## @@ -64,4 +69,16 @@ public ErrorHandler clone(Processor output) { return answer; } +@Override +public boolean process(final Exchange exchange, final AsyncCallback callback) { +if (!exchange.isTransacted()) { +LOG.debug("mark " + exchange + " transacted"); +exchange.getUnitOfWork().beginTransactedBy("jta"); Review comment: Maybe use camel-jta instead of jta ## File path: components/camel-jta/src/main/java/org/apache/camel/jta/JtaTransactionErrorHandler.java ## @@ -64,4 +69,16 @@ public ErrorHandler clone(Processor output) { return answer; } +@Override +public boolean process(final Exchange exchange, final AsyncCallback callback) { +if (!exchange.isTransacted()) { +LOG.debug("mark " + exchange + " transacted"); +exchange.getUnitOfWork().beginTransactedBy("jta"); +super.process(exchange, callback); +exchange.getUnitOfWork().endTransactedBy("jta"); +} else { +super.process(exchange, callback); +} +return false; Review comment: This may be an existing "issue" as the returned value should be the output from super.process and not hardcoded to false ## File path: components/camel-jta/src/main/java/org/apache/camel/jta/JtaTransactionErrorHandler.java ## @@ -64,4 +69,16 @@ public ErrorHandler clone(Processor output) { return answer; } +@Override +public boolean process(final Exchange exchange, final AsyncCallback callback) { +if (!exchange.isTransacted()) { +LOG.debug("mark " + exchange + " transacted"); Review comment: Can you use logger placeholders: "Mark {} as transacted", exchange -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@camel.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[GitHub] [camel] jamesnetherton commented on a change in pull request #7022: CAMEL-17694: improve handling of sendToAll header
jamesnetherton commented on a change in pull request #7022: URL: https://github.com/apache/camel/pull/7022#discussion_r812615843 ## File path: components/camel-vertx/camel-vertx-websocket/src/test/java/org/apache/camel/component/vertx/websocket/VertxWebsocketTest.java ## @@ -163,6 +163,9 @@ public void testSendWithMultipleConnectionKeys() throws Exception { @Test public void testSendToAll() throws Exception { +MockEndpoint mockEndpoint = getMockEndpoint("mock:result"); +mockEndpoint.expectedMessageCount(0); Review comment: If I can find some time, I will try to dig a bit deeper into the `sendToAll` bits & compare with how some of the other Camel WS components do things. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@camel.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[GitHub] [camel] jamesnetherton commented on a change in pull request #7022: CAMEL-17694: improve handling of sendToAll header
jamesnetherton commented on a change in pull request #7022: URL: https://github.com/apache/camel/pull/7022#discussion_r812613041 ## File path: components/camel-vertx/camel-vertx-websocket/src/test/java/org/apache/camel/component/vertx/websocket/VertxWebsocketTest.java ## @@ -163,6 +163,9 @@ public void testSendWithMultipleConnectionKeys() throws Exception { @Test public void testSendToAll() throws Exception { +MockEndpoint mockEndpoint = getMockEndpoint("mock:result"); +mockEndpoint.expectedMessageCount(0); Review comment: The expected message count being 0 implies a change in behavior, because prior to this change it would be 1 - which I think is more correct. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@camel.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[camel] branch regen_bot updated (b08c5f7 -> a616f31)
This is an automated email from the ASF dual-hosted git repository. github-bot pushed a change to branch regen_bot in repository https://gitbox.apache.org/repos/asf/camel.git. from b08c5f7 CAMEL-17675: Rest DSL remove support for using inlined routes. add a616f31 Fix camel-rest-swagger not creating producer correctly. No new revisions were added by this update. Summary of changes: components/camel-rest-swagger/pom.xml | 6 ++ .../apache/camel/component/rest/swagger/RestSwaggerEndpoint.java| 2 +- .../apache/camel/component/rest/swagger/RestSwaggerProducer.java| 5 +++-- .../java/org/apache/camel/component/rest/swagger/HttpsTest.java | 3 +++ components/pom.xml | 4 ++-- 5 files changed, 15 insertions(+), 5 deletions(-)
[camel] branch regen_bot updated (e8928b0 -> b08c5f7)
This is an automated email from the ASF dual-hosted git repository. github-bot pushed a change to branch regen_bot in repository https://gitbox.apache.org/repos/asf/camel.git. from e8928b0 Fix camel-rest-openapi not creating producer correctly. add b08c5f7 CAMEL-17675: Rest DSL remove support for using inlined routes. No new revisions were added by this update. Summary of changes: .../org/apache/camel/component/servlet/rest/RestServletVerbTest.java | 1 + .../org/apache/camel/dsl/js/JavaScriptRoutesBuilderLoaderTest.java| 2 +- dsl/camel-js-dsl/src/test/resources/routes/routes-with-rest-dsl.js| 4 +++- 3 files changed, 5 insertions(+), 2 deletions(-)
[camel-quarkus] 01/02: Upgrade to Quarkus 2.8.0.CR1
This is an automated email from the ASF dual-hosted git repository. github-bot pushed a commit to branch quarkus-main in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git commit ce03cf634ab6ed7fdcc749506a1de452e8d022f4 Author: James Netherton AuthorDate: Thu Jan 20 07:52:37 2022 + Upgrade to Quarkus 2.8.0.CR1 --- docs/antora.yml| 4 +-- integration-tests/http/pom.xml | 2 +- .../kafka/oauth/it/container/KafkaContainer.java | 30 +- integration-tests/vertx-websocket/pom.xml | 2 +- pom.xml| 7 ++--- poms/build-parent/pom.xml | 9 +++ 6 files changed, 35 insertions(+), 19 deletions(-) diff --git a/docs/antora.yml b/docs/antora.yml index 1413755..1db4eff 100644 --- a/docs/antora.yml +++ b/docs/antora.yml @@ -31,8 +31,8 @@ asciidoc: target-maven-version: 3.8.4 # replace ${target-maven-version} camel-version: 3.15.0 # replace ${camel.version} camel-docs-version: 3.15.x # replace ${camel.docs.components.version} -quarkus-version: 2.7.1.Final # replace ${quarkus.version} -graalvm-version: 21.3.1 # replace ${graalvm.version} +quarkus-version: 999-SNAPSHOT # replace ${quarkus.version} +graalvm-version: 22.0.0.2 # replace ${graalvm.version} graalvm-docs-version: 21.3 # attributes used in xrefs to other Antora components cq-camel-components: 3.15.x@components # replace ${camel.docs.components.xref} diff --git a/integration-tests/http/pom.xml b/integration-tests/http/pom.xml index 0bb8a2a..793de20 100644 --- a/integration-tests/http/pom.xml +++ b/integration-tests/http/pom.xml @@ -61,7 +61,7 @@ io.quarkus -quarkus-undertow-websockets +quarkus-websockets io.quarkus diff --git a/integration-tests/kafka-oauth/src/test/java/org/apache/camel/quarkus/kafka/oauth/it/container/KafkaContainer.java b/integration-tests/kafka-oauth/src/test/java/org/apache/camel/quarkus/kafka/oauth/it/container/KafkaContainer.java index 31885bf..e95e062 100644 --- a/integration-tests/kafka-oauth/src/test/java/org/apache/camel/quarkus/kafka/oauth/it/container/KafkaContainer.java +++ b/integration-tests/kafka-oauth/src/test/java/org/apache/camel/quarkus/kafka/oauth/it/container/KafkaContainer.java @@ -16,17 +16,20 @@ */ package org.apache.camel.quarkus.kafka.oauth.it.container; -import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; -import java.io.InputStreamReader; +import java.io.StringReader; import java.nio.charset.StandardCharsets; import java.util.ArrayList; import java.util.Collections; import java.util.List; +import javax.json.Json; +import javax.json.stream.JsonParser; + import com.github.dockerjava.api.command.InspectContainerResponse; -import io.strimzi.StrimziKafkaContainer; +import io.strimzi.test.container.StrimziKafkaContainer; +import org.apache.commons.io.IOUtils; import org.jboss.logging.Logger; import org.testcontainers.containers.FixedHostPortGenericContainer; import org.testcontainers.containers.Network; @@ -45,19 +48,22 @@ public class KafkaContainer extends FixedHostPortGenericContainer supportedKafkaVersions = new ArrayList<>(3); +private static final List supportedKafkaVersions = new ArrayList<>(); static { -InputStream inputStream = StrimziKafkaContainer.class.getResourceAsStream("/kafka-versions.txt"); -InputStreamReader streamReader = new InputStreamReader(inputStream, StandardCharsets.UTF_8); - -try (BufferedReader bufferedReader = new BufferedReader(streamReader)) { -String kafkaVersion; -while ((kafkaVersion = bufferedReader.readLine()) != null) { -supportedKafkaVersions.add(kafkaVersion); +InputStream inputStream = StrimziKafkaContainer.class.getResourceAsStream("/kafka_versions.json"); +try { +String json = IOUtils.toString(inputStream, StandardCharsets.UTF_8); +try (JsonParser parser = Json.createParser(new StringReader(json))) { +parser.next(); +parser.getObject() +.get("kafkaVersions") +.asJsonObject() +.keySet() +.forEach(supportedKafkaVersions::add); } } catch (IOException e) { -LOGGER.error("Unable to load the supported Kafka versions", e); +throw new RuntimeException(e); } // sort kafka version from low to high diff --git a/integration-tests/vertx-websocket/pom.xml b/integration-tests/vertx-websocket/pom.xml index 7947fe5..abd5e2a 100644 --- a/integration-tests/vertx-websocket/pom.xml +++ b/integration-tests/vertx-websocket/pom.xml @@ -39,7 +39,7 @@ io.quarkus -quarkus-under
[camel-quarkus] 02/02: Temporary hacks to handle version misalignment of smallrye-health and smallrye-faulttolerance in Quarkus & Camel
This is an automated email from the ASF dual-hosted git repository. github-bot pushed a commit to branch quarkus-main in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git commit b2a86e4ddd5100e20951565334e06408a13b8494 Author: James Netherton AuthorDate: Fri Feb 11 10:08:03 2022 + Temporary hacks to handle version misalignment of smallrye-health and smallrye-faulttolerance in Quarkus & Camel --- .../MicroprofileFaultToleranceProcessor.java | 9 + .../microprofile-fault-tolerance/runtime/pom.xml | 2 + .../FaultToleranceConfiguration.java | 120 + .../faulttolerance/FaultToleranceConstants.java} | 21 +- .../faulttolerance/FaultToleranceProcessor.java| 536 + .../FaultToleranceProcessorFactory.java} | 28 +- .../faulttolerance/FaultToleranceReifier.java | 193 .../apache/camel/model/CircuitBreakerDefinition| 18 + .../deployment/MicroProfileHealthEnabledTest.java | 4 +- .../runtime/CamelMicroProfileHealthCheck.java | 67 +++ .../runtime/CamelMicroProfileHealthHelper.java | 63 +++ .../runtime/CamelMicroProfileHealthRecorder.java | 3 +- .../CamelMicroProfileRepositoryHealthCheck.java| 72 +++ ...amelQuarkusMicroProfileHealthCheckRegistry.java | 185 +++ .../it/CoreFaultToleranceProducers.java| 4 +- 15 files changed, 1287 insertions(+), 38 deletions(-) diff --git a/extensions/microprofile-fault-tolerance/deployment/src/main/java/org/apache/camel/quarkus/component/microprofile/fault/tolerance/deployment/MicroprofileFaultToleranceProcessor.java b/extensions/microprofile-fault-tolerance/deployment/src/main/java/org/apache/camel/quarkus/component/microprofile/fault/tolerance/deployment/MicroprofileFaultToleranceProcessor.java index 05673b1..6e8c382 100644 --- a/extensions/microprofile-fault-tolerance/deployment/src/main/java/org/apache/camel/quarkus/component/microprofile/fault/tolerance/deployment/MicroprofileFaultToleranceProcessor.java +++ b/extensions/microprofile-fault-tolerance/deployment/src/main/java/org/apache/camel/quarkus/component/microprofile/fault/tolerance/deployment/MicroprofileFaultToleranceProcessor.java @@ -16,9 +16,13 @@ */ package org.apache.camel.quarkus.component.microprofile.fault.tolerance.deployment; +import java.nio.file.Paths; + import io.quarkus.deployment.annotations.BuildStep; import io.quarkus.deployment.builditem.FeatureBuildItem; import io.quarkus.deployment.builditem.nativeimage.NativeImageResourceBuildItem; +import org.apache.camel.component.microprofile.faulttolerance.FaultToleranceProcessorFactory; +import org.apache.camel.quarkus.core.deployment.spi.CamelServiceBuildItem; class MicroprofileFaultToleranceProcessor { @@ -35,4 +39,9 @@ class MicroprofileFaultToleranceProcessor { "META-INF/services/org/apache/camel/model/CircuitBreakerDefinition"); } +@BuildStep +CamelServiceBuildItem camelCronServicePattern() { +return new CamelServiceBuildItem(Paths.get("META-INF/services/org/apache/camel/model/CircuitBreakerDefinition"), +FaultToleranceProcessorFactory.class.getName()); +} } diff --git a/extensions/microprofile-fault-tolerance/runtime/pom.xml b/extensions/microprofile-fault-tolerance/runtime/pom.xml index 3401f07..22e3962 100644 --- a/extensions/microprofile-fault-tolerance/runtime/pom.xml +++ b/extensions/microprofile-fault-tolerance/runtime/pom.xml @@ -56,10 +56,12 @@ org.apache.camel.quarkus camel-quarkus-core + diff --git a/extensions/microprofile-fault-tolerance/runtime/src/main/java/org/apache/camel/component/microprofile/faulttolerance/FaultToleranceConfiguration.java b/extensions/microprofile-fault-tolerance/runtime/src/main/java/org/apache/camel/component/microprofile/faulttolerance/FaultToleranceConfiguration.java new file mode 100644 index 000..7cb3d4d --- /dev/null +++ b/extensions/microprofile-fault-tolerance/runtime/src/main/java/org/apache/camel/component/microprofile/faulttolerance/FaultToleranceConfiguration.java @@ -0,0 +1,120 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache
[camel-quarkus] branch quarkus-main updated (c49f8bf -> b2a86e4)
This is an automated email from the ASF dual-hosted git repository. github-bot pushed a change to branch quarkus-main in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git. discard c49f8bf Temporary hacks to handle version misalignment of smallrye-health and smallrye-faulttolerance in Quarkus & Camel discard 5b12274 Upgrade to Quarkus 2.8.0.CR1 add c0a0d60 Deprecate AHC and AHC-WS extensions #3558 new ce03cf6 Upgrade to Quarkus 2.8.0.CR1 new b2a86e4 Temporary hacks to handle version misalignment of smallrye-health and smallrye-faulttolerance in Quarkus & Camel This update added new revisions after undoing existing revisions. That is to say, some revisions that were in the old version of the branch are not in the new version. This situation occurs when a user --force pushes a change and generates a repository containing something like this: * -- * -- B -- O -- O -- O (c49f8bf) \ N -- N -- N refs/heads/quarkus-main (b2a86e4) You should already have received notification emails for all of the O revisions, and so the following emails describe only the N revisions from the common base, B. Any revisions marked "omit" are not gone; other references still refer to them. Any revisions marked "discard" are gone forever. The 2 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. Summary of changes: docs/modules/ROOT/examples/components/ahc-ws.yml| 2 +- docs/modules/ROOT/examples/components/ahc.yml | 2 +- docs/modules/ROOT/pages/reference/extensions/ahc-ws.adoc| 6 +++--- docs/modules/ROOT/pages/reference/extensions/ahc.adoc | 6 +++--- extensions/ahc-ws/runtime/pom.xml | 1 + .../runtime/src/main/resources/META-INF/quarkus-extension.yaml | 1 + extensions/ahc/runtime/pom.xml | 1 + .../ahc/runtime/src/main/resources/META-INF/quarkus-extension.yaml | 1 + 8 files changed, 12 insertions(+), 8 deletions(-)
[camel-spring-boot] 01/04: CAMEL-17698 - Inconsistency in naming parts of camel-google-secrets-manager
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 12e0834ecaf157feb4925ebbb6a184fcb9b81279 Author: Andrea Cosentino AuthorDate: Wed Feb 23 06:59:56 2022 +0100 CAMEL-17698 - Inconsistency in naming parts of camel-google-secrets-manager --- .../catalog/components/google-secret-manager.json | 36 .../camel-google-secrets-manager-starter/pom.xml | 56 -- .../src/main/docs/google-secrets-manager.json | 43 - ...gleSecretManagerComponentAutoConfiguration.java | 79 .../GoogleSecretManagerComponentConfiguration.java | 75 .../src/main/resources/META-INF/LICENSE.txt| 203 - .../src/main/resources/META-INF/NOTICE.txt | 11 -- .../src/main/resources/META-INF/spring.factories | 19 -- .../src/main/resources/META-INF/spring.provides| 17 -- components-starter/pom.xml | 1 - tooling/camel-spring-boot-bom/pom.xml | 5 - tooling/camel-spring-boot-dependencies/pom.xml | 5 - 12 files changed, 550 deletions(-) diff --git a/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/google-secret-manager.json b/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/google-secret-manager.json deleted file mode 100644 index 20b7d45..000 --- a/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/google-secret-manager.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "component": { -"kind": "component", -"name": "google-secret-manager", -"title": "Google Secret Manager", -"description": "Manage Google Secret Manager Secrets", -"deprecated": false, -"firstVersion": "3.16.0", -"label": "cloud", -"javaType": "org.apache.camel.component.google.secret.manager.GoogleSecretManagerComponent", -"supportLevel": "Preview", -"groupId": "org.apache.camel.springboot", -"artifactId": "camel-google-secrets-manager-starter", -"version": "3.16.0-SNAPSHOT", -"scheme": "google-secret-manager", -"extendsScheme": "", -"syntax": "google-secret-manager:project", -"async": false, -"api": false, -"consumerOnly": false, -"producerOnly": true, -"lenientProperties": false - }, - "componentProperties": { -"lazyStartProducer": { "kind": "property", "displayName": "Lazy Start Producer", "group": "producer", "label": "producer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "Whether the producer should be started lazy (on the first message). By starting lazy you can use this to allow CamelContext and routes to startup in situations where a producer may otherwise fail during star [...] -"autowiredEnabled": { "kind": "property", "displayName": "Autowired Enabled", "group": "advanced", "label": "advanced", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": true, "description": "Whether autowiring is enabled. This is used for automatic autowiring options (the option must be marked as autowired) by looking up in the registry to find if there is a single instance of matching type, which t [...] - }, - "properties": { -"project": { "kind": "path", "displayName": "Project", "group": "common", "label": "common", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.google.secret.manager.GoogleSecretManagerConfiguration", "configurationField": "configuration", "description": "The Google Cloud Project Id name related to the Secret Manager" }, -"serviceAccountKey": { "kind": "parameter", "displayName": "Service Account Key", "group": "common", "label": "common", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.google.secret.manager.GoogleSecretManagerConfiguration", "configurationField": "configuration", "description": "Service account key to authenticate an application as a service account" }, -"lazyStartProducer": { "kind": "parameter", "displayName": "Lazy Start Producer", "group": "producer", "label": "producer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "Whether the producer should be started lazy (on the first message). By starting lazy you can use this to allow CamelContext and routes to startup in situations where a producer ma
[camel-spring-boot] 03/04: CAMEL-17698 - Inconsistency in naming parts of camel-google-secrets-manager
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 d78068d601230189a5834978f38f7213031e0fd4 Author: Andrea Cosentino AuthorDate: Wed Feb 23 07:15:29 2022 +0100 CAMEL-17698 - Inconsistency in naming parts of camel-google-secrets-manager --- tooling/camel-spring-boot-bom/pom.xml | 5 + tooling/camel-spring-boot-dependencies/pom.xml | 7 ++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/tooling/camel-spring-boot-bom/pom.xml b/tooling/camel-spring-boot-bom/pom.xml index 667eeb0..97f20de 100644 --- a/tooling/camel-spring-boot-bom/pom.xml +++ b/tooling/camel-spring-boot-bom/pom.xml @@ -650,6 +650,11 @@ org.apache.camel.springboot +camel-google-secret-manager-starter +${project.version} + + +org.apache.camel.springboot camel-google-sheets-starter ${project.version} diff --git a/tooling/camel-spring-boot-dependencies/pom.xml b/tooling/camel-spring-boot-dependencies/pom.xml index 90ecc33..b727fcc 100644 --- a/tooling/camel-spring-boot-dependencies/pom.xml +++ b/tooling/camel-spring-boot-dependencies/pom.xml @@ -844,7 +844,7 @@ org.apache.camel.springboot -camel-google-secrets-manager-starter +camel-google-secret-manager-starter ${project.version} @@ -2845,6 +2845,11 @@ org.apache.camel +camel-google-secret-manager +3.16.0-SNAPSHOT + + +org.apache.camel camel-google-sheets 3.16.0-SNAPSHOT
[camel-spring-boot] branch main updated (81213fc -> 9f0f978)
This is an automated email from the ASF dual-hosted git repository. acosentino pushed a change to branch main in repository https://gitbox.apache.org/repos/asf/camel-spring-boot.git. from 81213fc [CAMEL-17677]add tests in camel-jira-starter (#439) new 12e0834 CAMEL-17698 - Inconsistency in naming parts of camel-google-secrets-manager new a1a86df CAMEL-17698 - Inconsistency in naming parts of camel-google-secrets-manager new d78068d CAMEL-17698 - Inconsistency in naming parts of camel-google-secrets-manager new 9f0f978 CAMEL-17698 - Inconsistency in naming parts of camel-google-secrets-manager The 4 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. Summary of changes: .../catalog/components/google-secret-manager.json | 2 +- .../pom.xml| 4 +- .../src/main/docs/google-secret-manager.json} | 0 ...gleSecretManagerComponentAutoConfiguration.java | 0 .../GoogleSecretManagerComponentConfiguration.java | 0 .../src/main/resources/META-INF/LICENSE.txt| 0 .../src/main/resources/META-INF/NOTICE.txt | 0 .../src/main/resources/META-INF/spring.factories | 0 .../src/main/resources/META-INF/spring.provides| 2 +- .../src/main/resources/META-INF/LICENSE.txt| 203 - .../src/main/resources/META-INF/NOTICE.txt | 11 -- .../src/main/resources/META-INF/spring.provides| 17 -- components-starter/pom.xml | 2 +- tooling/camel-spring-boot-bom/pom.xml | 2 +- tooling/camel-spring-boot-dependencies/pom.xml | 4 +- 15 files changed, 8 insertions(+), 239 deletions(-) rename components-starter/{camel-google-secrets-manager-starter => camel-google-secret-manager-starter}/pom.xml (94%) rename components-starter/{camel-google-secrets-manager-starter/src/main/docs/google-secrets-manager.json => camel-google-secret-manager-starter/src/main/docs/google-secret-manager.json} (100%) rename components-starter/{camel-google-secrets-manager-starter => camel-google-secret-manager-starter}/src/main/java/org/apache/camel/component/google/secret/manager/springboot/GoogleSecretManagerComponentAutoConfiguration.java (100%) rename components-starter/{camel-google-secrets-manager-starter => camel-google-secret-manager-starter}/src/main/java/org/apache/camel/component/google/secret/manager/springboot/GoogleSecretManagerComponentConfiguration.java (100%) copy {dsl-starter/camel-yaml-dsl-starter => components-starter/camel-google-secret-manager-starter}/src/main/resources/META-INF/LICENSE.txt (100%) copy {dsl-starter/camel-yaml-dsl-starter => components-starter/camel-google-secret-manager-starter}/src/main/resources/META-INF/NOTICE.txt (100%) rename components-starter/{camel-google-secrets-manager-starter => camel-google-secret-manager-starter}/src/main/resources/META-INF/spring.factories (100%) copy components-starter/{camel-ahc-ws-starter => camel-google-secret-manager-starter}/src/main/resources/META-INF/spring.provides (96%) delete mode 100644 components-starter/camel-google-secrets-manager-starter/src/main/resources/META-INF/LICENSE.txt delete mode 100644 components-starter/camel-google-secrets-manager-starter/src/main/resources/META-INF/NOTICE.txt delete mode 100644 components-starter/camel-google-secrets-manager-starter/src/main/resources/META-INF/spring.provides
[camel-spring-boot] 04/04: CAMEL-17698 - Inconsistency in naming parts of camel-google-secrets-manager
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 9f0f978778a0fb62a459c2bf0a6b2bac6f69fff4 Author: Andrea Cosentino AuthorDate: Wed Feb 23 07:29:26 2022 +0100 CAMEL-17698 - Inconsistency in naming parts of camel-google-secrets-manager --- .../catalog/components/google-secret-manager.json | 36 .../camel-google-secret-manager-starter/pom.xml| 62 --- .../src/main/docs/google-secret-manager.json | 43 + ...gleSecretManagerComponentAutoConfiguration.java | 79 .../GoogleSecretManagerComponentConfiguration.java | 75 .../src/main/resources/META-INF/LICENSE.txt| 203 + .../src/main/resources/META-INF/NOTICE.txt | 11 ++ .../src/main/resources/META-INF/spring.factories | 19 ++ .../src/main/resources/META-INF/spring.provides| 17 ++ 9 files changed, 518 insertions(+), 27 deletions(-) diff --git a/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/google-secret-manager.json b/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/google-secret-manager.json new file mode 100644 index 000..7f360c0 --- /dev/null +++ b/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/google-secret-manager.json @@ -0,0 +1,36 @@ +{ + "component": { +"kind": "component", +"name": "google-secret-manager", +"title": "Google Secret Manager", +"description": "Manage Google Secret Manager Secrets", +"deprecated": false, +"firstVersion": "3.16.0", +"label": "cloud", +"javaType": "org.apache.camel.component.google.secret.manager.GoogleSecretManagerComponent", +"supportLevel": "Preview", +"groupId": "org.apache.camel.springboot", +"artifactId": "camel-google-secret-manager-starter", +"version": "3.16.0-SNAPSHOT", +"scheme": "google-secret-manager", +"extendsScheme": "", +"syntax": "google-secret-manager:project", +"async": false, +"api": false, +"consumerOnly": false, +"producerOnly": true, +"lenientProperties": false + }, + "componentProperties": { +"lazyStartProducer": { "kind": "property", "displayName": "Lazy Start Producer", "group": "producer", "label": "producer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "Whether the producer should be started lazy (on the first message). By starting lazy you can use this to allow CamelContext and routes to startup in situations where a producer may otherwise fail during star [...] +"autowiredEnabled": { "kind": "property", "displayName": "Autowired Enabled", "group": "advanced", "label": "advanced", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": true, "description": "Whether autowiring is enabled. This is used for automatic autowiring options (the option must be marked as autowired) by looking up in the registry to find if there is a single instance of matching type, which t [...] + }, + "properties": { +"project": { "kind": "path", "displayName": "Project", "group": "common", "label": "common", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.google.secret.manager.GoogleSecretManagerConfiguration", "configurationField": "configuration", "description": "The Google Cloud Project Id name related to the Secret Manager" }, +"serviceAccountKey": { "kind": "parameter", "displayName": "Service Account Key", "group": "common", "label": "common", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.google.secret.manager.GoogleSecretManagerConfiguration", "configurationField": "configuration", "description": "Service account key to authenticate an application as a service account" }, +"lazyStartProducer": { "kind": "parameter", "displayName": "Lazy Start Producer", "group": "producer", "label": "producer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "Whether the producer should be started lazy (on the first message). By starting lazy you can use this to allow CamelContext and routes to startup in situations where a producer may otherwise fail during sta [...] +"operation": { "kind": "parameter", "displayName": "Operation", "group": "producer", "label": "producer", "required": false, "t
[camel-spring-boot] 02/04: CAMEL-17698 - Inconsistency in naming parts of camel-google-secrets-manager
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 a1a86df31fd4065137606cefdd533ff62af376ce Author: Andrea Cosentino AuthorDate: Wed Feb 23 07:11:07 2022 +0100 CAMEL-17698 - Inconsistency in naming parts of camel-google-secrets-manager --- .../camel-google-secret-manager-starter/pom.xml| 48 ++ components-starter/pom.xml | 1 + 2 files changed, 49 insertions(+) diff --git a/components-starter/camel-google-secret-manager-starter/pom.xml b/components-starter/camel-google-secret-manager-starter/pom.xml new file mode 100644 index 000..eca6d804 --- /dev/null +++ b/components-starter/camel-google-secret-manager-starter/pom.xml @@ -0,0 +1,48 @@ + + +http://maven.apache.org/POM/4.0.0"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd";> +4.0.0 + +org.apache.camel.springboot +components-starter +3.16.0-SNAPSHOT + +camel-google-secret-manager-starter +jar + + + +org.springframework.boot +spring-boot-starter +${spring-boot-version} + + +org.apache.camel +camel-google-secret-manager +${camel-version} + + + +org.apache.camel.springboot +camel-spring-boot-engine-starter + + + + diff --git a/components-starter/pom.xml b/components-starter/pom.xml index 300cade..1a15bfd 100644 --- a/components-starter/pom.xml +++ b/components-starter/pom.xml @@ -232,6 +232,7 @@ camel-google-functions-starter camel-google-mail-starter camel-google-pubsub-starter +camel-google-secret-manager-starter camel-google-sheets-starter camel-google-storage-starter camel-gora-starter
[camel] 01/04: CAMEL-17698 - Inconsistency in naming parts of camel-google-secrets-manager
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 commit 3b9b8160f164916c7b9b9fdb2fa97a3589b656c6 Author: Andrea Cosentino AuthorDate: Wed Feb 23 06:46:01 2022 +0100 CAMEL-17698 - Inconsistency in naming parts of camel-google-secrets-manager --- bom/camel-bom/pom.xml | 2 +- catalog/camel-allcomponents/pom.xml | 2 +- .../pom.xml | 4 ++-- .../google/secret/manager/GoogleSecretManagerComponentConfigurer.java | 0 .../google/secret/manager/GoogleSecretManagerEndpointConfigurer.java | 0 .../google/secret/manager/GoogleSecretManagerEndpointUriFactory.java | 0 .../resources/META-INF/services/org/apache/camel/component.properties | 0 .../services/org/apache/camel/component/google-secret-manager | 0 .../org/apache/camel/configurer/google-secret-manager-component | 0 .../org/apache/camel/configurer/google-secret-manager-endpoint| 0 .../org/apache/camel/urifactory/google-secret-manager-endpoint| 0 .../camel/component/google/secret/manager/google-secret-manager.json | 0 .../src/main/docs/google-secret-manager-component.adoc| 2 +- .../google/secret/manager/GoogleSecretManagerClientFactory.java | 0 .../component/google/secret/manager/GoogleSecretManagerComponent.java | 0 .../google/secret/manager/GoogleSecretManagerConfiguration.java | 0 .../component/google/secret/manager/GoogleSecretManagerConstants.java | 0 .../component/google/secret/manager/GoogleSecretManagerEndpoint.java | 0 .../google/secret/manager/GoogleSecretManagerOperations.java | 0 .../component/google/secret/manager/GoogleSecretManagerProducer.java | 0 .../google/secret/manager/integration/GoogleSecretManagerIT.java | 0 .../secret/manager/unit/GoogleSecretManagerConfigurationTest.java | 0 .../src/test/resources/log4j2.properties | 0 components/camel-google/pom.xml | 2 +- parent/pom.xml| 2 +- .../src/main/java/org/apache/camel/maven/packaging/MojoHelper.java| 2 +- 26 files changed, 8 insertions(+), 8 deletions(-) diff --git a/bom/camel-bom/pom.xml b/bom/camel-bom/pom.xml index a55a97c..8607508 100644 --- a/bom/camel-bom/pom.xml +++ b/bom/camel-bom/pom.xml @@ -874,7 +874,7 @@ org.apache.camel -camel-google-secrets-manager +camel-google-secret-manager ${project.version} diff --git a/catalog/camel-allcomponents/pom.xml b/catalog/camel-allcomponents/pom.xml index 5a21365..29ed099 100644 --- a/catalog/camel-allcomponents/pom.xml +++ b/catalog/camel-allcomponents/pom.xml @@ -563,7 +563,7 @@ org.apache.camel - camel-google-secrets-manager + camel-google-secret-manager org.apache.camel diff --git a/components/camel-google/camel-google-secrets-manager/pom.xml b/components/camel-google/camel-google-secret-manager/pom.xml similarity index 97% rename from components/camel-google/camel-google-secrets-manager/pom.xml rename to components/camel-google/camel-google-secret-manager/pom.xml index 829eac2..2c41c40 100644 --- a/components/camel-google/camel-google-secrets-manager/pom.xml +++ b/components/camel-google/camel-google-secret-manager/pom.xml @@ -28,9 +28,9 @@ 3.16.0-SNAPSHOT -camel-google-secrets-manager +camel-google-secret-manager jar -Camel :: Google :: Secrets Manager +Camel :: Google :: Secret Manager Camel Component for Google Cloud Platform Secrets Manager diff --git a/components/camel-google/camel-google-secrets-manager/src/generated/java/org/apache/camel/component/google/secret/manager/GoogleSecretManagerComponentConfigurer.java b/components/camel-google/camel-google-secret-manager/src/generated/java/org/apache/camel/component/google/secret/manager/GoogleSecretManagerComponentConfigurer.java similarity index 100% rename from components/camel-google/camel-google-secrets-manager/src/generated/java/org/apache/camel/component/google/secret/manager/GoogleSecretManagerComponentConfigurer.java rename to components/camel-google/camel-google-secret-manager/src/generated/java/org/apache/camel/component/google/secret/manager/GoogleSecretManagerComponentConfigurer.java diff --git a/components/camel-google/camel-google-secrets-manager/src/generated/java/org/apache/camel/component/google/secret/manager/GoogleSecretManagerEndpointConfigurer.java b/components/camel-google/camel-google-secret-manager/src/generated/java/org/apache/camel/component/google/secret/manager/GoogleSecretManagerEndpointConf
[camel] 03/04: CAMEL-17698 - Inconsistency in naming parts of camel-google-secrets-manager
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 commit 9f4108adf840ca9f33867fb762e85fce48ec929c Author: Andrea Cosentino AuthorDate: Wed Feb 23 06:48:01 2022 +0100 CAMEL-17698 - Inconsistency in naming parts of camel-google-secrets-manager --- .../resources/META-INF/services/org/apache/camel/component.properties | 4 ++-- .../camel/component/google/secret/manager/google-secret-manager.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/components/camel-google/camel-google-secret-manager/src/generated/resources/META-INF/services/org/apache/camel/component.properties b/components/camel-google/camel-google-secret-manager/src/generated/resources/META-INF/services/org/apache/camel/component.properties index 61b6f74..fb92643 100644 --- a/components/camel-google/camel-google-secret-manager/src/generated/resources/META-INF/services/org/apache/camel/component.properties +++ b/components/camel-google/camel-google-secret-manager/src/generated/resources/META-INF/services/org/apache/camel/component.properties @@ -1,7 +1,7 @@ # Generated by camel build tools - do NOT edit this file! components=google-secret-manager groupId=org.apache.camel -artifactId=camel-google-secrets-manager +artifactId=camel-google-secret-manager version=3.16.0-SNAPSHOT -projectName=Camel :: Google :: Secrets Manager +projectName=Camel :: Google :: Secret Manager projectDescription=Camel Component for Google Cloud Platform Secrets Manager diff --git a/components/camel-google/camel-google-secret-manager/src/generated/resources/org/apache/camel/component/google/secret/manager/google-secret-manager.json b/components/camel-google/camel-google-secret-manager/src/generated/resources/org/apache/camel/component/google/secret/manager/google-secret-manager.json index c76b3eb..f6fa45e 100644 --- a/components/camel-google/camel-google-secret-manager/src/generated/resources/org/apache/camel/component/google/secret/manager/google-secret-manager.json +++ b/components/camel-google/camel-google-secret-manager/src/generated/resources/org/apache/camel/component/google/secret/manager/google-secret-manager.json @@ -10,7 +10,7 @@ "javaType": "org.apache.camel.component.google.secret.manager.GoogleSecretManagerComponent", "supportLevel": "Preview", "groupId": "org.apache.camel", -"artifactId": "camel-google-secrets-manager", +"artifactId": "camel-google-secret-manager", "version": "3.16.0-SNAPSHOT", "scheme": "google-secret-manager", "extendsScheme": "",
[camel] 04/04: CAMEL-17698 - Inconsistency in naming parts of camel-google-secrets-manager
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 commit bdc3bd55ea817a28e2ed1794cf738beb3e142f4e Author: Andrea Cosentino AuthorDate: Wed Feb 23 07:30:15 2022 +0100 CAMEL-17698 - Inconsistency in naming parts of camel-google-secrets-manager --- camel-dependencies/pom.xml| 2 +- .../apache/camel/catalog/components/google-secret-manager.json| 2 +- .../modules/ROOT/examples/json/google-secret-manager.json | 2 +- .../modules/ROOT/pages/google-secret-manager-component.adoc | 2 +- .../apache/camel/builder/component/ComponentsBuilderFactory.java | 4 ++-- .../component/dsl/GoogleSecretManagerComponentBuilderFactory.java | 4 ++-- dsl/camel-componentdsl/src/generated/resources/metadata.json | 2 +- .../org/apache/camel/builder/endpoint/StaticEndpointBuilders.java | 8 .../endpoint/dsl/GoogleSecretManagerEndpointBuilderFactory.java | 8 9 files changed, 17 insertions(+), 17 deletions(-) diff --git a/camel-dependencies/pom.xml b/camel-dependencies/pom.xml index dd8faa0..0b8a0ce 100644 --- a/camel-dependencies/pom.xml +++ b/camel-dependencies/pom.xml @@ -65,7 +65,7 @@ 1.11.0 1.11.0 4.1.1 -2.17.134 +2.17.135 2.6.1 1.2.14 4.20.0 diff --git a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/google-secret-manager.json b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/google-secret-manager.json index c76b3eb..f6fa45e 100644 --- a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/google-secret-manager.json +++ b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/google-secret-manager.json @@ -10,7 +10,7 @@ "javaType": "org.apache.camel.component.google.secret.manager.GoogleSecretManagerComponent", "supportLevel": "Preview", "groupId": "org.apache.camel", -"artifactId": "camel-google-secrets-manager", +"artifactId": "camel-google-secret-manager", "version": "3.16.0-SNAPSHOT", "scheme": "google-secret-manager", "extendsScheme": "", diff --git a/docs/components/modules/ROOT/examples/json/google-secret-manager.json b/docs/components/modules/ROOT/examples/json/google-secret-manager.json index 4101dfc..4e351a8 12 --- a/docs/components/modules/ROOT/examples/json/google-secret-manager.json +++ b/docs/components/modules/ROOT/examples/json/google-secret-manager.json @@ -1 +1 @@ -../../../../../../components/camel-google/camel-google-secrets-manager/src/generated/resources/org/apache/camel/component/google/secret/manager/google-secret-manager.json \ No newline at end of file +../../../../../../components/camel-google/camel-google-secret-manager/src/generated/resources/org/apache/camel/component/google/secret/manager/google-secret-manager.json \ No newline at end of file diff --git a/docs/components/modules/ROOT/pages/google-secret-manager-component.adoc b/docs/components/modules/ROOT/pages/google-secret-manager-component.adoc index 4d44547..2e75b8e 12 --- a/docs/components/modules/ROOT/pages/google-secret-manager-component.adoc +++ b/docs/components/modules/ROOT/pages/google-secret-manager-component.adoc @@ -1 +1 @@ -../../../../../components/camel-google/camel-google-secrets-manager/src/main/docs/google-secret-manager-component.adoc \ No newline at end of file +../../../../../components/camel-google/camel-google-secret-manager/src/main/docs/google-secret-manager-component.adoc \ No newline at end of file diff --git a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java index aa9ed5e..35ffab9 100644 --- a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java +++ b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java @@ -1729,12 +1729,12 @@ public interface ComponentsBuilderFactory { return org.apache.camel.builder.component.dsl.GooglePubsubComponentBuilderFactory.googlePubsub(); } /** - * Google Secret Manager (camel-google-secrets-manager) + * Google Secret Manager (camel-google-secret-manager) * Manage Google Secret Manager Secrets * * Category: cloud * Since: 3.16 - * Maven coordinates: org.apache.camel:camel-google-secrets-manager + * Maven coordinates: org.apache.camel:camel-google-secret-manager * * @return the dsl builder */ diff --git a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/GoogleSecretManagerComponentBuilderFactory.java b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/
[camel] branch main updated (a616f31 -> bdc3bd5)
This is an automated email from the ASF dual-hosted git repository. acosentino pushed a change to branch main in repository https://gitbox.apache.org/repos/asf/camel.git. from a616f31 Fix camel-rest-swagger not creating producer correctly. new 3b9b816 CAMEL-17698 - Inconsistency in naming parts of camel-google-secrets-manager new cac2d5a Upgrade AWS SDK v2 to version 2.17.135 new 9f4108a CAMEL-17698 - Inconsistency in naming parts of camel-google-secrets-manager new bdc3bd5 CAMEL-17698 - Inconsistency in naming parts of camel-google-secrets-manager The 4 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. Summary of changes: bom/camel-bom/pom.xml | 2 +- camel-dependencies/pom.xml| 2 +- catalog/camel-allcomponents/pom.xml | 2 +- .../apache/camel/catalog/components/google-secret-manager.json| 2 +- .../pom.xml | 4 ++-- .../secret/manager/GoogleSecretManagerComponentConfigurer.java| 0 .../secret/manager/GoogleSecretManagerEndpointConfigurer.java | 0 .../secret/manager/GoogleSecretManagerEndpointUriFactory.java | 0 .../META-INF/services/org/apache/camel/component.properties | 4 ++-- .../services/org/apache/camel/component/google-secret-manager | 0 .../org/apache/camel/configurer/google-secret-manager-component | 0 .../org/apache/camel/configurer/google-secret-manager-endpoint| 0 .../org/apache/camel/urifactory/google-secret-manager-endpoint| 0 .../component/google/secret/manager/google-secret-manager.json| 2 +- .../src/main/docs/google-secret-manager-component.adoc| 2 +- .../google/secret/manager/GoogleSecretManagerClientFactory.java | 0 .../google/secret/manager/GoogleSecretManagerComponent.java | 0 .../google/secret/manager/GoogleSecretManagerConfiguration.java | 0 .../google/secret/manager/GoogleSecretManagerConstants.java | 0 .../google/secret/manager/GoogleSecretManagerEndpoint.java| 0 .../google/secret/manager/GoogleSecretManagerOperations.java | 0 .../google/secret/manager/GoogleSecretManagerProducer.java| 0 .../google/secret/manager/integration/GoogleSecretManagerIT.java | 0 .../secret/manager/unit/GoogleSecretManagerConfigurationTest.java | 0 .../src/test/resources/log4j2.properties | 0 components/camel-google/pom.xml | 2 +- .../modules/ROOT/examples/json/google-secret-manager.json | 2 +- .../modules/ROOT/pages/google-secret-manager-component.adoc | 2 +- .../apache/camel/builder/component/ComponentsBuilderFactory.java | 4 ++-- .../component/dsl/GoogleSecretManagerComponentBuilderFactory.java | 4 ++-- dsl/camel-componentdsl/src/generated/resources/metadata.json | 2 +- .../org/apache/camel/builder/endpoint/StaticEndpointBuilders.java | 8 .../endpoint/dsl/GoogleSecretManagerEndpointBuilderFactory.java | 8 parent/pom.xml| 4 ++-- .../main/java/org/apache/camel/maven/packaging/MojoHelper.java| 2 +- 35 files changed, 29 insertions(+), 29 deletions(-) rename components/camel-google/{camel-google-secrets-manager => camel-google-secret-manager}/pom.xml (97%) rename components/camel-google/{camel-google-secrets-manager => camel-google-secret-manager}/src/generated/java/org/apache/camel/component/google/secret/manager/GoogleSecretManagerComponentConfigurer.java (100%) rename components/camel-google/{camel-google-secrets-manager => camel-google-secret-manager}/src/generated/java/org/apache/camel/component/google/secret/manager/GoogleSecretManagerEndpointConfigurer.java (100%) rename components/camel-google/{camel-google-secrets-manager => camel-google-secret-manager}/src/generated/java/org/apache/camel/component/google/secret/manager/GoogleSecretManagerEndpointUriFactory.java (100%) rename components/camel-google/{camel-google-secrets-manager => camel-google-secret-manager}/src/generated/resources/META-INF/services/org/apache/camel/component.properties (71%) rename components/camel-google/{camel-google-secrets-manager => camel-google-secret-manager}/src/generated/resources/META-INF/services/org/apache/camel/component/google-secret-manager (100%) rename components/camel-google/{camel-google-secrets-manager => camel-google-secret-manager}/src/generated/resources/META-INF/services/org/apache/camel/configurer/google-secret-manager-component (100%) rename components/camel-google/{camel-google-secrets-manager => camel-google-secret-manager}/src/generated/resources/META-INF/services/org/apache/camel/configurer/google-secret-manager-endpoint (100%) rena
[camel] 02/04: Upgrade AWS SDK v2 to version 2.17.135
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 commit cac2d5a0f29242ecc1abe3fb4dbe6dc47409328d Author: Andrea Cosentino AuthorDate: Wed Feb 23 06:46:42 2022 +0100 Upgrade AWS SDK v2 to version 2.17.135 --- parent/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parent/pom.xml b/parent/pom.xml index 523340e..c9bd043 100644 --- a/parent/pom.xml +++ b/parent/pom.xml @@ -82,7 +82,7 @@ 1.11.0 1.11.0 4.1.1 -2.17.134 +2.17.135 2.6.1 1.2.14 2.13.1
[camel] branch main updated: Fix camel-rest-swagger not creating producer correctly.
This is an automated email from the ASF dual-hosted git repository. davsclaus 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 a616f31 Fix camel-rest-swagger not creating producer correctly. a616f31 is described below commit a616f31895cf4804c2c7a4938021bfa765ab96d6 Author: Claus Ibsen AuthorDate: Wed Feb 23 07:21:40 2022 +0100 Fix camel-rest-swagger not creating producer correctly. --- components/camel-rest-swagger/pom.xml | 6 ++ .../apache/camel/component/rest/swagger/RestSwaggerEndpoint.java| 2 +- .../apache/camel/component/rest/swagger/RestSwaggerProducer.java| 5 +++-- .../java/org/apache/camel/component/rest/swagger/HttpsTest.java | 3 +++ components/pom.xml | 4 ++-- 5 files changed, 15 insertions(+), 5 deletions(-) diff --git a/components/camel-rest-swagger/pom.xml b/components/camel-rest-swagger/pom.xml index b06aa28..b7cfab0 100644 --- a/components/camel-rest-swagger/pom.xml +++ b/components/camel-rest-swagger/pom.xml @@ -158,6 +158,12 @@ +org.apache.camel +camel-vertx-http +test + + + org.apache.logging.log4j log4j-slf4j-impl test diff --git a/components/camel-rest-swagger/src/main/java/org/apache/camel/component/rest/swagger/RestSwaggerEndpoint.java b/components/camel-rest-swagger/src/main/java/org/apache/camel/component/rest/swagger/RestSwaggerEndpoint.java index 5d8acb9..c04b4a3 100644 --- a/components/camel-rest-swagger/src/main/java/org/apache/camel/component/rest/swagger/RestSwaggerEndpoint.java +++ b/components/camel-rest-swagger/src/main/java/org/apache/camel/component/rest/swagger/RestSwaggerEndpoint.java @@ -331,7 +331,7 @@ public final class RestSwaggerEndpoint extends DefaultEndpoint { // if there is a host then we should use this hardcoded host instead of any Header that may have an existing // Host header from some other HTTP input, and if so then lets remove it -return new RestSwaggerProducer(endpoint.createAsyncProducer(), hasHost); +return new RestSwaggerProducer(endpoint.createProducer(), hasHost); } String determineBasePath(final Swagger swagger) { diff --git a/components/camel-rest-swagger/src/main/java/org/apache/camel/component/rest/swagger/RestSwaggerProducer.java b/components/camel-rest-swagger/src/main/java/org/apache/camel/component/rest/swagger/RestSwaggerProducer.java index 90da7f3..85fed2a 100644 --- a/components/camel-rest-swagger/src/main/java/org/apache/camel/component/rest/swagger/RestSwaggerProducer.java +++ b/components/camel-rest-swagger/src/main/java/org/apache/camel/component/rest/swagger/RestSwaggerProducer.java @@ -22,14 +22,15 @@ import org.apache.camel.AsyncCallback; import org.apache.camel.AsyncProducer; import org.apache.camel.Endpoint; import org.apache.camel.Exchange; +import org.apache.camel.Producer; import org.apache.camel.support.processor.DelegateAsyncProcessor; public class RestSwaggerProducer extends DelegateAsyncProcessor implements AsyncProducer { -private final AsyncProducer delegate; +private final Producer delegate; private final boolean removeHostHeader; -public RestSwaggerProducer(AsyncProducer delegate, boolean removeHostHeader) { +public RestSwaggerProducer(Producer delegate, boolean removeHostHeader) { super(delegate); this.delegate = delegate; this.removeHostHeader = removeHostHeader; diff --git a/components/camel-rest-swagger/src/test/java/org/apache/camel/component/rest/swagger/HttpsTest.java b/components/camel-rest-swagger/src/test/java/org/apache/camel/component/rest/swagger/HttpsTest.java index ae0f6b0..26c120d 100644 --- a/components/camel-rest-swagger/src/test/java/org/apache/camel/component/rest/swagger/HttpsTest.java +++ b/components/camel-rest-swagger/src/test/java/org/apache/camel/component/rest/swagger/HttpsTest.java @@ -161,6 +161,9 @@ public abstract class HttpsTest extends CamelTestSupport { public static Iterable knownProducers() { final List producers = new ArrayList<>(Arrays.asList(RestEndpoint.DEFAULT_REST_PRODUCER_COMPONENTS)); +// skip http due security certificate testing problems +producers.remove("vertx-http"); +producers.remove("http"); return producers; } diff --git a/components/pom.xml b/components/pom.xml index eb33a2d..2af74a1 100644 --- a/components/pom.xml +++ b/components/pom.xml @@ -278,7 +278,6 @@ camel-resilience4j camel-resourceresolver-github camel-resteasy -camel-rest-swagger camel-robotframework camel-rss camel-rxjava @@ -355,8 +354,9 @@ camel-zipkin camel-zookeeper-master camel-zookeeper -
[camel] branch main updated: CAMEL-17675: Rest DSL remove support for using inlined routes.
This is an automated email from the ASF dual-hosted git repository. davsclaus 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 b08c5f7 CAMEL-17675: Rest DSL remove support for using inlined routes. b08c5f7 is described below commit b08c5f7806e8df73fb4ac9f9e580cfc8fb3c5d47 Author: Claus Ibsen AuthorDate: Wed Feb 23 07:15:32 2022 +0100 CAMEL-17675: Rest DSL remove support for using inlined routes. --- .../org/apache/camel/component/servlet/rest/RestServletVerbTest.java | 1 + .../org/apache/camel/dsl/js/JavaScriptRoutesBuilderLoaderTest.java| 2 +- dsl/camel-js-dsl/src/test/resources/routes/routes-with-rest-dsl.js| 4 +++- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/components/camel-servlet/src/test/java/org/apache/camel/component/servlet/rest/RestServletVerbTest.java b/components/camel-servlet/src/test/java/org/apache/camel/component/servlet/rest/RestServletVerbTest.java index 62efa7d..b3cd4c9 100644 --- a/components/camel-servlet/src/test/java/org/apache/camel/component/servlet/rest/RestServletVerbTest.java +++ b/components/camel-servlet/src/test/java/org/apache/camel/component/servlet/rest/RestServletVerbTest.java @@ -114,6 +114,7 @@ public class RestServletVerbTest extends ServletCamelRouterTestSupport { .get("/users").to("direct:users") .get("/users/{id}").to("direct:id") .put("/users/{id}").to("mock:update") +.post("/users").to("mock:create") .delete("/users/{id}").to("mock:delete"); from("direct:users") diff --git a/dsl/camel-js-dsl/src/test/java/org/apache/camel/dsl/js/JavaScriptRoutesBuilderLoaderTest.java b/dsl/camel-js-dsl/src/test/java/org/apache/camel/dsl/js/JavaScriptRoutesBuilderLoaderTest.java index 7dc798a..34b0afc 100644 --- a/dsl/camel-js-dsl/src/test/java/org/apache/camel/dsl/js/JavaScriptRoutesBuilderLoaderTest.java +++ b/dsl/camel-js-dsl/src/test/java/org/apache/camel/dsl/js/JavaScriptRoutesBuilderLoaderTest.java @@ -108,7 +108,7 @@ public class JavaScriptRoutesBuilderLoaderTest { context.getRoutesLoader().loadRoutes(resource); assertThat(context.getRestDefinitions()).hasSize(1); -assertThat(context.getRouteDefinitions()).hasSize(1); +assertThat(context.getRouteDefinitions()).hasSize(2); assertThat(context.getRestDefinitions()).first().satisfies(d -> { assertThat(d.getProduces()).isEqualTo("text/plain"); diff --git a/dsl/camel-js-dsl/src/test/resources/routes/routes-with-rest-dsl.js b/dsl/camel-js-dsl/src/test/resources/routes/routes-with-rest-dsl.js index 195fca6..c9ea0c6 100644 --- a/dsl/camel-js-dsl/src/test/resources/routes/routes-with-rest-dsl.js +++ b/dsl/camel-js-dsl/src/test/resources/routes/routes-with-rest-dsl.js @@ -2,6 +2,8 @@ rest('/') .produces("text/plain") .get('/say/hello') -.route() +.to('direct:hello'); + +from('direct:hello') .transform().constant("Hello World");
[GitHub] [camel-spring-boot] davsclaus merged pull request #439: [CAMEL-17677]add tests in camel-jira-starter
davsclaus merged pull request #439: URL: https://github.com/apache/camel-spring-boot/pull/439 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@camel.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[camel-spring-boot] branch main updated: [CAMEL-17677]add tests in camel-jira-starter (#439)
This is an automated email from the ASF dual-hosted git repository. davsclaus pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel-spring-boot.git The following commit(s) were added to refs/heads/main by this push: new 81213fc [CAMEL-17677]add tests in camel-jira-starter (#439) 81213fc is described below commit 81213fc5e6c8d8a25ff10d0b5039386514e0626b Author: Freeman(Yue) Fang AuthorDate: Wed Feb 23 01:09:40 2022 -0500 [CAMEL-17677]add tests in camel-jira-starter (#439) --- components-starter/camel-jira-starter/pom.xml | 23 ++ .../springboot/test/AddCommentProducerTest.java| 175 + .../springboot/test/AddIssueLinkProducerTest.java | 272 + .../jira/springboot/test/AddIssueProducerTest.java | 239 ++ .../springboot/test/AddWorkLogProducerTest.java| 251 +++ .../springboot/test/AttachFileProducerTest.java| 196 +++ .../springboot/test/DeleteIssueProducerTest.java | 163 .../springboot/test/FetchCommentsProducerTest.java | 177 ++ .../springboot/test/FetchIssueProducerTest.java| 174 + .../jira/springboot/test/JiraTestConstants.java| 28 +++ .../springboot/test/NewCommentsConsumerTest.java | 236 ++ .../springboot/test/NewIssuesConsumerTest.java | 205 .../test/TransitionIssueProducerTest.java | 173 + .../springboot/test/UpdateIssueProducerTest.java | 216 .../component/jira/springboot/test/Utils.java | 194 +++ .../springboot/test/WatchUpdatesConsumerTest.java | 220 + .../jira/springboot/test/WatcherProducerTest.java | 264 17 files changed, 3206 insertions(+) diff --git a/components-starter/camel-jira-starter/pom.xml b/components-starter/camel-jira-starter/pom.xml index 775b48d..7714147 100644 --- a/components-starter/camel-jira-starter/pom.xml +++ b/components-starter/camel-jira-starter/pom.xml @@ -47,6 +47,29 @@ + + + org.apache.camel + camel-test-spring-junit5 + + + org.apache.camel + camel-spring-xml + + + test + + + org.awaitility + awaitility + test + + + org.springframework.boot + spring-boot-starter-test + ${spring-boot-version} + test + org.apache.camel.springboot diff --git a/components-starter/camel-jira-starter/src/test/java/org/apache/camel/component/jira/springboot/test/AddCommentProducerTest.java b/components-starter/camel-jira-starter/src/test/java/org/apache/camel/component/jira/springboot/test/AddCommentProducerTest.java new file mode 100644 index 000..80b8dd8 --- /dev/null +++ b/components-starter/camel-jira-starter/src/test/java/org/apache/camel/component/jira/springboot/test/AddCommentProducerTest.java @@ -0,0 +1,175 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.camel.component.jira.springboot.test; + + +import static org.apache.camel.component.jira.JiraConstants.ISSUE_KEY; +import static org.apache.camel.component.jira.JiraConstants.JIRA_REST_CLIENT_FACTORY; +import static org.apache.camel.component.jira.springboot.test.JiraTestConstants.JIRA_CREDENTIALS; +import static org.apache.camel.component.jira.springboot.test.Utils.createIssueWithComments; +import static org.apache.camel.component.jira.springboot.test.Utils.newComment; +import static org.mockito.ArgumentMatchers.any; +import static org.mockito.Mockito.lenient; +import static org.mockito.Mockito.mock; +import static org.mockito.Mockito.when; + +import java.util.ArrayList; +import java.util.Collection; +import java.util.Date; + +import com.atlassian.jira.rest.client.api.IssueRestClient; +import com.atlassian.jira.rest.client.api.JiraRestClient; +import com.atlassian.jira.rest.client.api.JiraRestClientFactory; +import com.atlassian.jira.rest.client.api.domain.Comment; +import com.atlassian.jira.rest.client.api.domain.Issue; + +import org.apache.camel.CamelContext; +import org.apache.camel.EndpointInject; +import org.apache.camel.Produce; +import org.
[camel-quarkus] branch main updated: Updated CHANGELOG.md
This is an automated email from the ASF dual-hosted git repository. github-bot pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git The following commit(s) were added to refs/heads/main by this push: new 6fe10c5 Updated CHANGELOG.md 6fe10c5 is described below commit 6fe10c513aae5337856254c00bb98eca0a6301f3 Author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> AuthorDate: Wed Feb 23 03:10:36 2022 + Updated CHANGELOG.md --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5ee3287..406f880 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -36,6 +36,7 @@ **Merged pull requests:** - Upgrade Azurite container image to 3.15.0 [\#3563](https://github.com/apache/camel-quarkus/pull/3563) ([jamesnetherton](https://github.com/jamesnetherton)) +- Deprecate AHC and AHC-WS extensions [\#3560](https://github.com/apache/camel-quarkus/pull/3560) ([ppalaga](https://github.com/ppalaga)) - Fix \#3551 ban all non-canonical JTA specs artifacts [\#3559](https://github.com/apache/camel-quarkus/pull/3559) ([zhfeng](https://github.com/zhfeng)) - gson: complete doc and test coverage \#3556 [\#3557](https://github.com/apache/camel-quarkus/pull/3557) ([aldettinger](https://github.com/aldettinger)) - Improve available port discovery in tests [\#3555](https://github.com/apache/camel-quarkus/pull/3555) ([jamesnetherton](https://github.com/jamesnetherton))
[camel-k] branch main updated: Updated CHANGELOG.md
This is an automated email from the ASF dual-hosted git repository. github-bot pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel-k.git The following commit(s) were added to refs/heads/main by this push: new 3af940b Updated CHANGELOG.md 3af940b is described below commit 3af940be1e566bc802bd6c3849d51311167cbcd9 Author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> AuthorDate: Wed Feb 23 03:09:55 2022 + Updated CHANGELOG.md --- CHANGELOG.md | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d3ff3c8..28cf398 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,8 +4,16 @@ [Full Changelog](https://github.com/apache/camel-k/compare/v1.8.1...HEAD) +**Closed issues:** + +- Helm multiple namespace install Camel-K [\#2985](https://github.com/apache/camel-k/issues/2985) +- Documentation for `kamel local run` [\#2490](https://github.com/apache/camel-k/issues/2490) + **Merged pull requests:** +- doc\(cli\): add documentation for kamel local subcommands [\#3030](https://github.com/apache/camel-k/pull/3030) ([tadayosi](https://github.com/tadayosi)) +- chore\(cmd\): refactor kamel local commands [\#3025](https://github.com/apache/camel-k/pull/3025) ([tadayosi](https://github.com/tadayosi)) +- Adds OLM channels to bundle metadata [\#3020](https://github.com/apache/camel-k/pull/3020) ([phantomjinx](https://github.com/phantomjinx)) - chore\(ci\): revert nolint [\#3015](https://github.com/apache/camel-k/pull/3015) ([squakez](https://github.com/squakez)) - fix\(build\): incremental build [\#3008](https://github.com/apache/camel-k/pull/3008) ([squakez](https://github.com/squakez)) - Update tekton documentation [\#3000](https://github.com/apache/camel-k/pull/3000) ([livespotty](https://github.com/livespotty)) @@ -904,7 +912,6 @@ - CLI log could use some kind of feedback when waiting for pod to spin up [\#1283](https://github.com/apache/camel-k/issues/1283) - Kaniko in builder pod failed to push image to docker registry [\#1282](https://github.com/apache/camel-k/issues/1282) - Add a trait\(?\) to enable default REST DSL endpoint [\#1239](https://github.com/apache/camel-k/issues/1239) -- Multi-architecture support [\#1238](https://github.com/apache/camel-k/issues/1238) - Camel-K Doesn't Create a Service or Ingress for an Integration [\#1232](https://github.com/apache/camel-k/issues/1232) - Performance and Architectural Questions On Camel-K [\#1196](https://github.com/apache/camel-k/issues/1196) - Transactions with Camel K [\#1128](https://github.com/apache/camel-k/issues/1128)
[GitHub] [camel-quarkus] github-actions[bot] commented on issue #2927: [CI] - Camel Main Branch Build Failure
github-actions[bot] commented on issue #2927: URL: https://github.com/apache/camel-quarkus/issues/2927#issuecomment-1048404301 The [camel-main](https://github.com/apache/camel-quarkus/tree/camel-main) branch build has failed: * Build ID: 1884660883-567-981b4008-6f1c-44a5-9410-6bd5ce8e184c * Camel Quarkus Commit: 4ad3b749001de8a5dba678b0c8b91cfe13dd61df * Camel Main Commit: c0a0d600465664520ba3b77471365aa96e93cc58 * Link to build: https://github.com/apache/camel-quarkus/actions/runs/1884660883 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@camel.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[camel-karaf] branch automatic-periodic-sync updated (46ead1c -> cb2cf71)
This is an automated email from the ASF dual-hosted git repository. github-bot pushed a change to branch automatic-periodic-sync in repository https://gitbox.apache.org/repos/asf/camel-karaf.git. omit 46ead1c [create-pull-request] automated change add a2ef311 [create-pull-request] automated change add b0b0fed CAMEL-17675: camel-core - Rest DSL remove support for using inlined routes. add cb2cf71 CAMEL-17675: camel-core - Rest DSL remove support for using inlined routes. This update added new revisions after undoing existing revisions. That is to say, some revisions that were in the old version of the branch are not in the new version. This situation occurs when a user --force pushes a change and generates a repository containing something like this: * -- * -- B -- O -- O -- O (46ead1c) \ N -- N -- N refs/heads/automatic-periodic-sync (cb2cf71) You should already have received notification emails for all of the O revisions, and so the following emails describe only the N revisions from the common base, B. Any revisions marked "omit" are not gone; other references still refer to them. Any revisions marked "discard" are gone forever. No new revisions were added by this update. Summary of changes: .../blueprint/handler/CamelNamespaceHandler.java | 12 +--- .../rest/FromRestGetEmbeddedRouteTest.java | 66 -- .../component/rest/FromRestGetInterceptTest.java | 2 +- .../rest/FromRestGetEmbeddedRouteTest.xml | 56 -- .../component/rest/FromRestGetInterceptTest.xml| 35 ++-- .../component/rest/FromRestGetOnExceptionTest.xml | 57 ++- .../rest/FromRestGetRouteOnExceptionTest.xml | 49 7 files changed, 79 insertions(+), 198 deletions(-) delete mode 100644 components/camel-test-blueprint/src/test/java/org/apache/camel/test/blueprint/component/rest/FromRestGetEmbeddedRouteTest.java delete mode 100644 components/camel-test-blueprint/src/test/resources/org/apache/camel/test/blueprint/component/rest/FromRestGetEmbeddedRouteTest.xml
[camel-spring-boot] branch automatic-periodic-sync updated (50c8990 -> 0829951)
This is an automated email from the ASF dual-hosted git repository. github-bot pushed a change to branch automatic-periodic-sync in repository https://gitbox.apache.org/repos/asf/camel-spring-boot.git. omit 50c8990 [create-pull-request] automated change add 956510d [create-pull-request] automated change add fdae76f CAMEL-17693 - Create a Camel Google Secret Manager Spring Boot Starter add 22e79ab CAMEL-17693 - Create a Camel Google Secret Manager Spring Boot Starter add e1ae6e7 CAMEL-17693 - Create a Camel Google Secret Manager Spring Boot Starter add 0829951 CAMEL-17675: camel-core - Rest DSL remove support for using inlined routes. This update added new revisions after undoing existing revisions. That is to say, some revisions that were in the old version of the branch are not in the new version. This situation occurs when a user --force pushes a change and generates a repository containing something like this: * -- * -- B -- O -- O -- O (50c8990) \ N -- N -- N refs/heads/automatic-periodic-sync (0829951) You should already have received notification emails for all of the O revisions, and so the following emails describe only the N revisions from the common base, B. Any revisions marked "omit" are not gone; other references still refer to them. Any revisions marked "discard" are gone forever. No new revisions were added by this update. Summary of changes: .../camel/springboot/catalog/components.properties | 1 + ...e-functions.json => google-secret-manager.json} | 30 ++ .../pom.xml| 6 ++--- .../src/main/docs/google-secrets-manager.json} | 26 +-- ...leSecretManagerComponentAutoConfiguration.java} | 20 +++ ...GoogleSecretManagerComponentConfiguration.java} | 10 .../src/main/resources/META-INF/LICENSE.txt| 0 .../src/main/resources/META-INF/NOTICE.txt | 0 .../src/main/resources/META-INF/spring.factories | 2 +- .../src/main/resources/META-INF/spring.provides| 2 +- .../springboot/test/ServletHttpMessageTest.java| 4 ++- .../test/ServletMappingAutoConfigurationTest.java | 5 ++-- .../test/ServletMappingDisablingTest.java | 5 ++-- components-starter/pom.xml | 1 + .../camel/spring/boot/issues/RestDslPostTest.java | 7 +++-- ...Test.java => CamelGoogleSecretManagerTest.java} | 4 +-- tooling/camel-spring-boot-bom/pom.xml | 5 tooling/camel-spring-boot-dependencies/pom.xml | 5 18 files changed, 73 insertions(+), 60 deletions(-) copy catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/{google-functions.json => google-secret-manager.json} (53%) copy components-starter/{camel-google-functions-starter => camel-google-secrets-manager-starter}/pom.xml (92%) copy components-starter/{camel-tika-starter/src/main/docs/tika.json => camel-google-secrets-manager-starter/src/main/docs/google-secrets-manager.json} (59%) copy components-starter/{camel-huaweicloud-functiongraph-starter/src/main/java/org/apache/camel/springboot/FunctionGraphComponentAutoConfiguration.java => camel-google-secrets-manager-starter/src/main/java/org/apache/camel/component/google/secret/manager/springboot/GoogleSecretManagerComponentAutoConfiguration.java} (82%) copy components-starter/{camel-huaweicloud-functiongraph-starter/src/main/java/org/apache/camel/springboot/FunctionGraphComponentConfiguration.java => camel-google-secrets-manager-starter/src/main/java/org/apache/camel/component/google/secret/manager/springboot/GoogleSecretManagerComponentConfiguration.java} (90%) copy {dsl-starter/camel-yaml-dsl-starter => components-starter/camel-google-secrets-manager-starter}/src/main/resources/META-INF/LICENSE.txt (100%) copy {dsl-starter/camel-yaml-dsl-starter => components-starter/camel-google-secrets-manager-starter}/src/main/resources/META-INF/NOTICE.txt (100%) copy components-starter/{camel-avro-starter => camel-google-secrets-manager-starter}/src/main/resources/META-INF/spring.factories (90%) copy components-starter/{camel-ahc-ws-starter => camel-google-secrets-manager-starter}/src/main/resources/META-INF/spring.provides (96%) copy tests/camel-itest-spring-boot/src/test/java/org/apache/camel/itest/springboot/{CamelAtmosphereWebsocketTest.java => CamelGoogleSecretManagerTest.java} (92%)
[GitHub] [camel-k] github-actions[bot] closed pull request #2739: fix route_test on OCP with serverless - specify openshift profile
github-actions[bot] closed pull request #2739: URL: https://github.com/apache/camel-k/pull/2739 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@camel.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[GitHub] [camel-k] github-actions[bot] closed pull request #2741: fix route_test on OCP with serverless - specify openshift profile
github-actions[bot] closed pull request #2741: URL: https://github.com/apache/camel-k/pull/2741 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@camel.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[camel] branch regen_bot updated (c36edf0 -> e8928b0)
This is an automated email from the ASF dual-hosted git repository. github-bot pushed a change to branch regen_bot in repository https://gitbox.apache.org/repos/asf/camel.git. from c36edf0 Improve documentation for OpenTelemetry component (#7019) add e8928b0 Fix camel-rest-openapi not creating producer correctly. No new revisions were added by this update. Summary of changes: components/camel-rest-openapi/pom.xml | 6 ++ .../rest/openapi/RestOpenApiEndpoint.java | 2 +- .../rest/openapi/RestOpenApiProducer.java | 5 +- .../camel/component/rest/openapi/HttpsTest.java| 3 +- .../camel/component/rest/openapi/HttpsV3Test.java | 1 + components/camel-vertx/camel-vertx-http/pom.xml| 10 --- .../vertx/http/VertxHttpRestProducerTest.java | 78 -- components/pom.xml | 3 +- 8 files changed, 14 insertions(+), 94 deletions(-) delete mode 100644 components/camel-vertx/camel-vertx-http/src/test/java/org/apache/camel/component/vertx/http/VertxHttpRestProducerTest.java
[GitHub] [camel] prtnv opened a new pull request #7022: CAMEL-17694: improve handling of sendToAll header
prtnv opened a new pull request #7022: URL: https://github.com/apache/camel/pull/7022 - [x] Make sure there is a [JIRA issue](https://issues.apache.org/jira/browse/CAMEL) filed for the change (usually before you start working on it). Trivial changes like typos do not require a JIRA issue. Your pull request should address just this issue, without pulling in other changes. - [x] Each commit in the pull request should have a meaningful subject line and body. - [x] If you're unsure, you can format the pull request title like `[CAMEL-XXX] Fixes bug in camel-file component`, where you replace `CAMEL-XXX` with the appropriate JIRA issue. - [x] Write a pull request description that is detailed enough to understand what the pull request does, how, and why. - [x] Run `mvn clean install -Psourcecheck` in your module with source check enabled to make sure basic checks pass and there are no checkstyle violations. A more thorough check will be performed on your pull request automatically. Below are the contribution guidelines: https://github.com/apache/camel/blob/main/CONTRIBUTING.md -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@camel.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[camel] branch regen_bot updated (5c6d0a3 -> c36edf0)
This is an automated email from the ASF dual-hosted git repository. github-bot pushed a change to branch regen_bot in repository https://gitbox.apache.org/repos/asf/camel.git. from 5c6d0a3 Regen for commit d805f5315cbe737139e34761fbace1a7b95d8c05 (#7021) add c36edf0 Improve documentation for OpenTelemetry component (#7019) No new revisions were added by this update. Summary of changes: .../src/main/docs/opentelemetry.adoc | 29 ++ 1 file changed, 29 insertions(+)
[camel] branch regen_bot updated (4e0b25d -> 5c6d0a3)
This is an automated email from the ASF dual-hosted git repository. github-bot pushed a change to branch regen_bot in repository https://gitbox.apache.org/repos/asf/camel.git. omit 4e0b25d Regen for commit d805f5315cbe737139e34761fbace1a7b95d8c05 add 5c6d0a3 Regen for commit d805f5315cbe737139e34761fbace1a7b95d8c05 (#7021) This update added new revisions after undoing existing revisions. That is to say, some revisions that were in the old version of the branch are not in the new version. This situation occurs when a user --force pushes a change and generates a repository containing something like this: * -- * -- B -- O -- O -- O (4e0b25d) \ N -- N -- N refs/heads/regen_bot (5c6d0a3) You should already have received notification emails for all of the O revisions, and so the following emails describe only the N revisions from the common base, B. Any revisions marked "omit" are not gone; other references still refer to them. Any revisions marked "discard" are gone forever. No new revisions were added by this update. Summary of changes:
[GitHub] [camel-karavan] mgubaidullin closed issue #54: YAML REST DSL support
mgubaidullin closed issue #54: URL: https://github.com/apache/camel-karavan/issues/54 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@camel.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[GitHub] [camel-karavan] mgubaidullin merged pull request #200: Rest DSL
mgubaidullin merged pull request #200: URL: https://github.com/apache/camel-karavan/pull/200 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@camel.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[camel] branch main updated: Fix camel-rest-openapi not creating producer correctly.
This is an automated email from the ASF dual-hosted git repository. davsclaus 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 e8928b0 Fix camel-rest-openapi not creating producer correctly. e8928b0 is described below commit e8928b040c9a2868759824f7b91f65e4aade8860 Author: Claus Ibsen AuthorDate: Tue Feb 22 19:36:08 2022 +0100 Fix camel-rest-openapi not creating producer correctly. --- components/camel-rest-openapi/pom.xml | 6 ++ .../rest/openapi/RestOpenApiEndpoint.java | 2 +- .../rest/openapi/RestOpenApiProducer.java | 5 +- .../camel/component/rest/openapi/HttpsTest.java| 3 +- .../camel/component/rest/openapi/HttpsV3Test.java | 1 + components/camel-vertx/camel-vertx-http/pom.xml| 10 --- .../vertx/http/VertxHttpRestProducerTest.java | 78 -- components/pom.xml | 3 +- 8 files changed, 14 insertions(+), 94 deletions(-) diff --git a/components/camel-rest-openapi/pom.xml b/components/camel-rest-openapi/pom.xml index 9da7c1c..7eed843 100644 --- a/components/camel-rest-openapi/pom.xml +++ b/components/camel-rest-openapi/pom.xml @@ -143,6 +143,12 @@ +org.apache.camel +camel-vertx-http +test + + + org.apache.logging.log4j log4j-slf4j-impl test diff --git a/components/camel-rest-openapi/src/main/java/org/apache/camel/component/rest/openapi/RestOpenApiEndpoint.java b/components/camel-rest-openapi/src/main/java/org/apache/camel/component/rest/openapi/RestOpenApiEndpoint.java index 6836bde..96dd026 100644 --- a/components/camel-rest-openapi/src/main/java/org/apache/camel/component/rest/openapi/RestOpenApiEndpoint.java +++ b/components/camel-rest-openapi/src/main/java/org/apache/camel/component/rest/openapi/RestOpenApiEndpoint.java @@ -358,7 +358,7 @@ public final class RestOpenApiEndpoint extends DefaultEndpoint { // if there is a host then we should use this hardcoded host instead of any Header that may have an existing // Host header from some other HTTP input, and if so then lets remove it -return new RestOpenApiProducer(endpoint.createAsyncProducer(), hasHost); +return new RestOpenApiProducer(endpoint.createProducer(), hasHost); } String determineBasePath(final Document openapi) { diff --git a/components/camel-rest-openapi/src/main/java/org/apache/camel/component/rest/openapi/RestOpenApiProducer.java b/components/camel-rest-openapi/src/main/java/org/apache/camel/component/rest/openapi/RestOpenApiProducer.java index 25dcf07..4cac066 100644 --- a/components/camel-rest-openapi/src/main/java/org/apache/camel/component/rest/openapi/RestOpenApiProducer.java +++ b/components/camel-rest-openapi/src/main/java/org/apache/camel/component/rest/openapi/RestOpenApiProducer.java @@ -22,14 +22,15 @@ import org.apache.camel.AsyncCallback; import org.apache.camel.AsyncProducer; import org.apache.camel.Endpoint; import org.apache.camel.Exchange; +import org.apache.camel.Producer; import org.apache.camel.support.processor.DelegateAsyncProcessor; public class RestOpenApiProducer extends DelegateAsyncProcessor implements AsyncProducer { -private final AsyncProducer delegate; +private final Producer delegate; private final boolean removeHostHeader; -public RestOpenApiProducer(AsyncProducer delegate, boolean removeHostHeader) { +public RestOpenApiProducer(Producer delegate, boolean removeHostHeader) { super(delegate); this.delegate = delegate; this.removeHostHeader = removeHostHeader; diff --git a/components/camel-rest-openapi/src/test/java/org/apache/camel/component/rest/openapi/HttpsTest.java b/components/camel-rest-openapi/src/test/java/org/apache/camel/component/rest/openapi/HttpsTest.java index c97be88..a82242d 100644 --- a/components/camel-rest-openapi/src/test/java/org/apache/camel/component/rest/openapi/HttpsTest.java +++ b/components/camel-rest-openapi/src/test/java/org/apache/camel/component/rest/openapi/HttpsTest.java @@ -143,10 +143,9 @@ public abstract class HttpsTest extends CamelTestSupport { public static Iterable knownProducers() { final List producers = new ArrayList<>(Arrays.asList(RestEndpoint.DEFAULT_REST_PRODUCER_COMPONENTS)); - // skip http due security certificate testing problems +producers.remove("vertx-http"); producers.remove("http"); - return producers; } diff --git a/components/camel-rest-openapi/src/test/java/org/apache/camel/component/rest/openapi/HttpsV3Test.java b/components/camel-rest-openapi/src/test/java/org/apache/camel/component/rest/openapi/HttpsV3Test.java index 1b37fa4..9170e6d 100644 --- a/components/camel-rest-openapi/src/test/java/org/apache/camel/componen
[GitHub] [camel-quarkus] jamesnetherton merged pull request #3560: Deprecate AHC and AHC-WS extensions
jamesnetherton merged pull request #3560: URL: https://github.com/apache/camel-quarkus/pull/3560 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@camel.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[camel-quarkus] branch main updated: Deprecate AHC and AHC-WS extensions #3558
This is an automated email from the ASF dual-hosted git repository. jamesnetherton pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git The following commit(s) were added to refs/heads/main by this push: new c0a0d60 Deprecate AHC and AHC-WS extensions #3558 c0a0d60 is described below commit c0a0d600465664520ba3b77471365aa96e93cc58 Author: Peter Palaga AuthorDate: Thu Feb 17 10:06:59 2022 +0100 Deprecate AHC and AHC-WS extensions #3558 --- docs/modules/ROOT/examples/components/ahc-ws.yml| 2 +- docs/modules/ROOT/examples/components/ahc.yml | 2 +- docs/modules/ROOT/pages/reference/extensions/ahc-ws.adoc| 6 +++--- docs/modules/ROOT/pages/reference/extensions/ahc.adoc | 6 +++--- extensions/ahc-ws/runtime/pom.xml | 1 + .../runtime/src/main/resources/META-INF/quarkus-extension.yaml | 1 + extensions/ahc/runtime/pom.xml | 1 + .../ahc/runtime/src/main/resources/META-INF/quarkus-extension.yaml | 1 + 8 files changed, 12 insertions(+), 8 deletions(-) diff --git a/docs/modules/ROOT/examples/components/ahc-ws.yml b/docs/modules/ROOT/examples/components/ahc-ws.yml index 703b295..24924da 100644 --- a/docs/modules/ROOT/examples/components/ahc-ws.yml +++ b/docs/modules/ROOT/examples/components/ahc-ws.yml @@ -4,7 +4,7 @@ cqArtifactId: camel-quarkus-ahc-ws cqArtifactIdBase: ahc-ws cqNativeSupported: true cqStatus: Stable -cqDeprecated: false +cqDeprecated: true cqJvmSince: 1.0.0 cqNativeSince: 1.0.0 cqCamelPartName: ahc-ws diff --git a/docs/modules/ROOT/examples/components/ahc.yml b/docs/modules/ROOT/examples/components/ahc.yml index 22f0abf..5ed2f96 100644 --- a/docs/modules/ROOT/examples/components/ahc.yml +++ b/docs/modules/ROOT/examples/components/ahc.yml @@ -4,7 +4,7 @@ cqArtifactId: camel-quarkus-ahc cqArtifactIdBase: ahc cqNativeSupported: true cqStatus: Stable -cqDeprecated: false +cqDeprecated: true cqJvmSince: 1.0.0 cqNativeSince: 1.0.0 cqCamelPartName: ahc diff --git a/docs/modules/ROOT/pages/reference/extensions/ahc-ws.adoc b/docs/modules/ROOT/pages/reference/extensions/ahc-ws.adoc index 000fe04..5a774cb 100644 --- a/docs/modules/ROOT/pages/reference/extensions/ahc-ws.adoc +++ b/docs/modules/ROOT/pages/reference/extensions/ahc-ws.adoc @@ -6,14 +6,14 @@ :cq-artifact-id: camel-quarkus-ahc-ws :cq-native-supported: true :cq-status: Stable -:cq-status-deprecation: Stable +:cq-status-deprecation: Stable Deprecated :cq-description: Exchange data with external Websocket servers using Async Http Client. -:cq-deprecated: false +:cq-deprecated: true :cq-jvm-since: 1.0.0 :cq-native-since: 1.0.0 [.badges] -[.badge-key]##JVM since##[.badge-supported]##1.0.0## [.badge-key]##Native since##[.badge-supported]##1.0.0## +[.badge-key]##JVM since##[.badge-supported]##1.0.0## [.badge-key]##Native since##[.badge-supported]##1.0.0## [.badge-key]##⚠️##[.badge-unsupported]##Deprecated## Exchange data with external Websocket servers using Async Http Client. diff --git a/docs/modules/ROOT/pages/reference/extensions/ahc.adoc b/docs/modules/ROOT/pages/reference/extensions/ahc.adoc index 2d291dd..c3eba52 100644 --- a/docs/modules/ROOT/pages/reference/extensions/ahc.adoc +++ b/docs/modules/ROOT/pages/reference/extensions/ahc.adoc @@ -6,14 +6,14 @@ :cq-artifact-id: camel-quarkus-ahc :cq-native-supported: true :cq-status: Stable -:cq-status-deprecation: Stable +:cq-status-deprecation: Stable Deprecated :cq-description: Call external HTTP services using Async Http Client. -:cq-deprecated: false +:cq-deprecated: true :cq-jvm-since: 1.0.0 :cq-native-since: 1.0.0 [.badges] -[.badge-key]##JVM since##[.badge-supported]##1.0.0## [.badge-key]##Native since##[.badge-supported]##1.0.0## +[.badge-key]##JVM since##[.badge-supported]##1.0.0## [.badge-key]##Native since##[.badge-supported]##1.0.0## [.badge-key]##⚠️##[.badge-unsupported]##Deprecated## Call external HTTP services using Async Http Client. diff --git a/extensions/ahc-ws/runtime/pom.xml b/extensions/ahc-ws/runtime/pom.xml index f7ac2e1..e338e2f 100644 --- a/extensions/ahc-ws/runtime/pom.xml +++ b/extensions/ahc-ws/runtime/pom.xml @@ -32,6 +32,7 @@ 1.0.0 1.0.0 +true diff --git a/extensions/ahc-ws/runtime/src/main/resources/META-INF/quarkus-extension.yaml b/extensions/ahc-ws/runtime/src/main/resources/META-INF/quarkus-extension.yaml index 9381edb..9fff719 100644 --- a/extensions/ahc-ws/runtime/src/main/resources/META-INF/quarkus-extension.yaml +++ b/extensions/ahc-ws/runtime/src/main/resources/META-INF/quarkus-extension.yaml @@ -29,3 +29,4 @@ metadata: - "integration" status: - "stable" + - "deprecated" \ No newline at end of file diff --git a/extensions/ahc/runtime/pom.xml b/extensions/ahc/runtime/pom.xml index 4ce2f4a..f4b2de1 100644 --- a/extensions/ahc/runtime/pom.xml +++ b/ex
[camel] branch main updated: Improve documentation for OpenTelemetry component (#7019)
This is an automated email from the ASF dual-hosted git repository. davsclaus 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 c36edf0 Improve documentation for OpenTelemetry component (#7019) c36edf0 is described below commit c36edf05ef38a38dec9050f3493c264a6d33c18c Author: stn1slv AuthorDate: Tue Feb 22 20:57:33 2022 +0300 Improve documentation for OpenTelemetry component (#7019) * Add Spring Boot and java agent details Added required step for Spring Boot and how to use OpenTelemetry agent * Change section name to Configuration --- .../src/main/docs/opentelemetry.adoc | 29 ++ 1 file changed, 29 insertions(+) diff --git a/components/camel-opentelemetry/src/main/docs/opentelemetry.adoc b/components/camel-opentelemetry/src/main/docs/opentelemetry.adoc index 16d3e1b..a4a332b3 100644 --- a/components/camel-opentelemetry/src/main/docs/opentelemetry.adoc +++ b/components/camel-opentelemetry/src/main/docs/opentelemetry.adoc @@ -51,6 +51,35 @@ otelTracer.setTracer(...); otelTracer.init(camelContext); -- +== Spring Boot + +If you are using Spring Boot then you can add +the `camel-opentelemetry-starter` dependency, and turn on OpenTracing by annotating +the main class with `@CamelOpenTelemetry`. + +The `OpenTelemetryTracer` will be implicitly obtained from the camel context's `Registry`, unless +a `OpenTelemetryTracer` bean has been defined by the application. + +== Java Agent +Download the https://github.com/open-telemetry/opentelemetry-java-instrumentation/releases/[latest version]. + +This package includes the instrumentation agent as well as instrumentations for all supported libraries and all available data exporters. +The package provides a completely automatic, out-of-the-box experience. + +Enable the instrumentation agent using the `-javaagent` flag to the JVM. +``` +java -javaagent:path/to/opentelemetry-javaagent.jar \ + -jar myapp.jar +``` +By default, the OpenTelemetry Java agent uses https://github.com/open-telemetry/opentelemetry-java/tree/main/exporters/otlp[OTLP exporter] configured to send data to https://github.com/open-telemetry/opentelemetry-collector/blob/main/receiver/otlpreceiver/README.md[OpenTelemetry collector] at `http://localhost:4317`. + +Configuration parameters are passed as Java system properties (`-D` flags) or as environment variables. See https://github.com/open-telemetry/opentelemetry-java-instrumentation/blob/main/docs/agent-config.md[the configuration documentation] for the full list of configuration items. For example: +``` +java -javaagent:path/to/opentelemetry-javaagent.jar \ + -Dotel.service.name=your-service-name \ + -Dotel.traces.exporter=jaeger \ + -jar myapp.jar +``` include::spring-boot:partial$starter.adoc[]
[GitHub] [camel-quarkus] aldettinger commented on a change in pull request #3568: Increase azure-storage-blob extension test coverage
aldettinger commented on a change in pull request #3568: URL: https://github.com/apache/camel-quarkus/pull/3568#discussion_r812203544 ## File path: integration-test-groups/azure/azure-storage-blob/src/test/java/org/apache/camel/quarkus/component/azure/storage/blob/it/AzureStorageBlobTest.java ## @@ -63,47 +87,443 @@ private static BlobContainerClient blobContainer() { .credential(credentials) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BODY_AND_HEADERS).setPrettyPrintBody(true)) .buildClient(); -BlobContainerClient blobContainer = client - .getBlobContainerClient(config.getValue("azure.blob.container.name", String.class)); -return blobContainer; + +String containerName = config.getValue("azure.blob.container.name", String.class); +return client.getBlobContainerClient(containerName); } @Test public void crud() { -String blobContent = "Hello Camel Quarkus Azure Blob"; - -// Create -RestAssured.given() -.contentType(ContentType.TEXT) -.body(blobContent) -.post("/azure-storage-blob/blob/create") -.then() -.statusCode(201); - -// Read -RestAssured.get("/azure-storage-blob/blob/read") -.then() -.statusCode(200) -.body(is(blobContent)); - -// Update -String updatedContent = blobContent + " updated"; -RestAssured.given() -.contentType(ContentType.TEXT) -.body(updatedContent) -.patch("/azure-storage-blob/blob/update") -.then() -.statusCode(200); - -RestAssured.get("/azure-storage-blob/blob/read") -.then() -.statusCode(200) -.body(is(updatedContent)); - -// Delete -RestAssured.delete("/azure-storage-blob/blob/delete") -.then() -.statusCode(204); +try { +// Create +RestAssured.given() +.contentType(ContentType.TEXT) +.body(BLOB_CONTENT) +.post("/azure-storage-blob/blob/create") +.then() +.statusCode(201); + +// Read +RestAssured.get("/azure-storage-blob/blob/read") +.then() +.statusCode(200) +.body(is(BLOB_CONTENT)); + +// List +RestAssured.get("/azure-storage-blob/blob/list") +.then() +.statusCode(200) +.body("blobs[0].name", is(AzureStorageBlobRoutes.BLOB_NAME)); + +// Update +String updatedContent = BLOB_CONTENT + " updated"; +RestAssured.given() +.contentType(ContentType.TEXT) +.body(updatedContent) +.patch("/azure-storage-blob/blob/update") +.then() +.statusCode(200); + +RestAssured.get("/azure-storage-blob/blob/read") +.then() +.statusCode(200) +.body(is(updatedContent)); +} finally { +// Delete +RestAssured.delete("/azure-storage-blob/blob/delete") +.then() +.statusCode(204); +} +} + +@Test +public void download() throws IOException { +Path path = null; +try { +// Create +RestAssured.given() +.contentType(ContentType.TEXT) +.body(BLOB_CONTENT) +.post("/azure-storage-blob/blob/create") +.then() +.statusCode(201); + +// Download file +String downloadPath = RestAssured.get("/azure-storage-blob/blob/download") +.then() +.statusCode(200) +.body(endsWith("target/test")) Review comment: Could this statement break tests on windows ? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@camel.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[GitHub] [camel] davsclaus merged pull request #7019: Improve documentation for OpenTelemetry component
davsclaus merged pull request #7019: URL: https://github.com/apache/camel/pull/7019 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@camel.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[camel] branch main updated (d805f53 -> 5c6d0a3)
This is an automated email from the ASF dual-hosted git repository. davsclaus pushed a change to branch main in repository https://gitbox.apache.org/repos/asf/camel.git. from d805f53 Regen for commit 213a696b16c720e583d832a70fea78ddb08bb14e add 5c6d0a3 Regen for commit d805f5315cbe737139e34761fbace1a7b95d8c05 (#7021) No new revisions were added by this update. Summary of changes: .../src/generated/resources/org/apache/camel/catalog/others.properties | 1 + .../generated/resources/org/apache/camel/catalog/others}/console.json| 0 2 files changed, 1 insertion(+) copy {core/camel-console/src/generated/resources => catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/others}/console.json (100%)
[GitHub] [camel-quarkus] jamesnetherton commented on a change in pull request #3568: Increase azure-storage-blob extension test coverage
jamesnetherton commented on a change in pull request #3568: URL: https://github.com/apache/camel-quarkus/pull/3568#discussion_r812214874 ## File path: integration-test-groups/azure/azure-storage-blob/src/test/java/org/apache/camel/quarkus/component/azure/storage/blob/it/AzureStorageBlobTest.java ## @@ -63,47 +87,443 @@ private static BlobContainerClient blobContainer() { .credential(credentials) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BODY_AND_HEADERS).setPrettyPrintBody(true)) .buildClient(); -BlobContainerClient blobContainer = client - .getBlobContainerClient(config.getValue("azure.blob.container.name", String.class)); -return blobContainer; + +String containerName = config.getValue("azure.blob.container.name", String.class); +return client.getBlobContainerClient(containerName); } @Test public void crud() { -String blobContent = "Hello Camel Quarkus Azure Blob"; - -// Create -RestAssured.given() -.contentType(ContentType.TEXT) -.body(blobContent) -.post("/azure-storage-blob/blob/create") -.then() -.statusCode(201); - -// Read -RestAssured.get("/azure-storage-blob/blob/read") -.then() -.statusCode(200) -.body(is(blobContent)); - -// Update -String updatedContent = blobContent + " updated"; -RestAssured.given() -.contentType(ContentType.TEXT) -.body(updatedContent) -.patch("/azure-storage-blob/blob/update") -.then() -.statusCode(200); - -RestAssured.get("/azure-storage-blob/blob/read") -.then() -.statusCode(200) -.body(is(updatedContent)); - -// Delete -RestAssured.delete("/azure-storage-blob/blob/delete") -.then() -.statusCode(204); +try { +// Create +RestAssured.given() +.contentType(ContentType.TEXT) +.body(BLOB_CONTENT) +.post("/azure-storage-blob/blob/create") +.then() +.statusCode(201); + +// Read +RestAssured.get("/azure-storage-blob/blob/read") +.then() +.statusCode(200) +.body(is(BLOB_CONTENT)); + +// List +RestAssured.get("/azure-storage-blob/blob/list") +.then() +.statusCode(200) +.body("blobs[0].name", is(AzureStorageBlobRoutes.BLOB_NAME)); + +// Update +String updatedContent = BLOB_CONTENT + " updated"; +RestAssured.given() +.contentType(ContentType.TEXT) +.body(updatedContent) +.patch("/azure-storage-blob/blob/update") +.then() +.statusCode(200); + +RestAssured.get("/azure-storage-blob/blob/read") +.then() +.statusCode(200) +.body(is(updatedContent)); +} finally { +// Delete +RestAssured.delete("/azure-storage-blob/blob/delete") +.then() +.statusCode(204); +} +} + +@Test +public void download() throws IOException { +Path path = null; +try { +// Create +RestAssured.given() +.contentType(ContentType.TEXT) +.body(BLOB_CONTENT) +.post("/azure-storage-blob/blob/create") +.then() +.statusCode(201); + +// Download file +String downloadPath = RestAssured.get("/azure-storage-blob/blob/download") +.then() +.statusCode(200) +.body(endsWith("target/test")) Review comment: Yeah, good spot. It would fail because the REST endpoint returns the absolute file path, which on Windows will naturally have different separators. So it'll need 'nixifying' before being returned and the test assertion can remain as-is. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@camel.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[GitHub] [camel] davsclaus merged pull request #7021: Generated sources regen
davsclaus merged pull request #7021: URL: https://github.com/apache/camel/pull/7021 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@camel.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[GitHub] [camel-quarkus] jamesnetherton commented on a change in pull request #3568: Increase azure-storage-blob extension test coverage
jamesnetherton commented on a change in pull request #3568: URL: https://github.com/apache/camel-quarkus/pull/3568#discussion_r812214479 ## File path: integration-test-groups/azure/azure-resources.sh ## @@ -69,6 +70,14 @@ function deleteResources() { az group delete --name ${RESOURCE_GROUP} --yes } +if ! which az > /dev/null; then Review comment: I'll do that so that all output is dumped to `/dev/null`. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@camel.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[GitHub] [camel-quarkus] aldettinger commented on a change in pull request #3568: Increase azure-storage-blob extension test coverage
aldettinger commented on a change in pull request #3568: URL: https://github.com/apache/camel-quarkus/pull/3568#discussion_r812203544 ## File path: integration-test-groups/azure/azure-storage-blob/src/test/java/org/apache/camel/quarkus/component/azure/storage/blob/it/AzureStorageBlobTest.java ## @@ -63,47 +87,443 @@ private static BlobContainerClient blobContainer() { .credential(credentials) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BODY_AND_HEADERS).setPrettyPrintBody(true)) .buildClient(); -BlobContainerClient blobContainer = client - .getBlobContainerClient(config.getValue("azure.blob.container.name", String.class)); -return blobContainer; + +String containerName = config.getValue("azure.blob.container.name", String.class); +return client.getBlobContainerClient(containerName); } @Test public void crud() { -String blobContent = "Hello Camel Quarkus Azure Blob"; - -// Create -RestAssured.given() -.contentType(ContentType.TEXT) -.body(blobContent) -.post("/azure-storage-blob/blob/create") -.then() -.statusCode(201); - -// Read -RestAssured.get("/azure-storage-blob/blob/read") -.then() -.statusCode(200) -.body(is(blobContent)); - -// Update -String updatedContent = blobContent + " updated"; -RestAssured.given() -.contentType(ContentType.TEXT) -.body(updatedContent) -.patch("/azure-storage-blob/blob/update") -.then() -.statusCode(200); - -RestAssured.get("/azure-storage-blob/blob/read") -.then() -.statusCode(200) -.body(is(updatedContent)); - -// Delete -RestAssured.delete("/azure-storage-blob/blob/delete") -.then() -.statusCode(204); +try { +// Create +RestAssured.given() +.contentType(ContentType.TEXT) +.body(BLOB_CONTENT) +.post("/azure-storage-blob/blob/create") +.then() +.statusCode(201); + +// Read +RestAssured.get("/azure-storage-blob/blob/read") +.then() +.statusCode(200) +.body(is(BLOB_CONTENT)); + +// List +RestAssured.get("/azure-storage-blob/blob/list") +.then() +.statusCode(200) +.body("blobs[0].name", is(AzureStorageBlobRoutes.BLOB_NAME)); + +// Update +String updatedContent = BLOB_CONTENT + " updated"; +RestAssured.given() +.contentType(ContentType.TEXT) +.body(updatedContent) +.patch("/azure-storage-blob/blob/update") +.then() +.statusCode(200); + +RestAssured.get("/azure-storage-blob/blob/read") +.then() +.statusCode(200) +.body(is(updatedContent)); +} finally { +// Delete +RestAssured.delete("/azure-storage-blob/blob/delete") +.then() +.statusCode(204); +} +} + +@Test +public void download() throws IOException { +Path path = null; +try { +// Create +RestAssured.given() +.contentType(ContentType.TEXT) +.body(BLOB_CONTENT) +.post("/azure-storage-blob/blob/create") +.then() +.statusCode(201); + +// Download file +String downloadPath = RestAssured.get("/azure-storage-blob/blob/download") +.then() +.statusCode(200) +.body(endsWith("target/test")) Review comment: Could this statement break windows build ? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@camel.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[GitHub] [camel-quarkus] aldettinger commented on a change in pull request #3568: Increase azure-storage-blob extension test coverage
aldettinger commented on a change in pull request #3568: URL: https://github.com/apache/camel-quarkus/pull/3568#discussion_r812187865 ## File path: integration-test-groups/azure/azure-resources.sh ## @@ -69,6 +70,14 @@ function deleteResources() { az group delete --name ${RESOURCE_GROUP} --yes } +if ! which az > /dev/null; then Review comment: Great idea to check. Does which output on stderr in this case ? Maybe "2>" could be tried. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@camel.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[camel] branch regen_bot updated (af2241a -> 4e0b25d)
This is an automated email from the ASF dual-hosted git repository. github-bot pushed a change to branch regen_bot in repository https://gitbox.apache.org/repos/asf/camel.git. omit af2241a Regen for commit 213a696b16c720e583d832a70fea78ddb08bb14e add 24122ce Rest to (#7018) add d805f53 Regen for commit 213a696b16c720e583d832a70fea78ddb08bb14e add 4e0b25d Regen for commit d805f5315cbe737139e34761fbace1a7b95d8c05 This update added new revisions after undoing existing revisions. That is to say, some revisions that were in the old version of the branch are not in the new version. This situation occurs when a user --force pushes a change and generates a repository containing something like this: * -- * -- B -- O -- O -- O (af2241a) \ N -- N -- N refs/heads/regen_bot (4e0b25d) You should already have received notification emails for all of the O revisions, and so the following emails describe only the N revisions from the common base, B. Any revisions marked "omit" are not gone; other references still refer to them. Any revisions marked "discard" are gone forever. No new revisions were added by this update. Summary of changes: .../org/apache/camel/catalog/models/delete.json| 2 +- .../org/apache/camel/catalog/models/get.json | 2 +- .../org/apache/camel/catalog/models/head.json | 2 +- .../org/apache/camel/catalog/models/patch.json | 2 +- .../org/apache/camel/catalog/models/post.json | 2 +- .../org/apache/camel/catalog/models/put.json | 2 +- .../org/apache/camel/catalog/others.properties | 1 + .../org/apache/camel/catalog/others}/console.json | 0 .../apache/camel/catalog/schemas/camel-spring.xsd | 6 +- .../helper/CamelJavaRestDslParserHelper.java | 14 +- .../parser/helper/CamelXmlRestDslParserHelper.java | 9 +- .../apache/camel/parser/model/RestVerbDetails.java | 17 +-- .../camel/parser/java/MyRestDslRouteBuilder.java | 2 +- .../camel/parser/java/RoasterJavaRestDslTest.java | 6 +- .../apache/camel/parser/xml/XmlRestDslTest.java| 6 +- .../org/apache/camel/parser/xml/myrest.xml | 4 +- .../java/org/apache/camel/coap/CoAPCORSTest.java | 3 +- .../apache/camel/coap/CoAPRestContextPathTest.java | 3 +- .../org/apache/camel/coap/CoAPRestVerbTest.java| 15 ++- .../component/jetty/rest/RestJettyAcceptTest.java | 3 +- .../RestJettyBindingModeJsonWithContractTest.java | 4 +- .../RestJettyBindingModeOffWithContractTest.java | 6 +- .../jetty/rest/RestJettyContentTypeTest.java | 15 ++- .../jetty/rest/RestJettyDefaultValueTest.java | 4 +- .../component/jetty/rest/RestJettyGetCorsTest.java | 3 +- .../rest/RestJettyGetCustomHttpBindingTest.java| 3 +- .../component/jetty/rest/RestJettyGetTest.java | 3 +- .../component/jetty/rest/RestJettyGetToDTest.java | 4 +- .../jetty/rest/RestJettyGetWildcardsTest.java | 11 +- ...ettyInvalidJSonClientRequestValidationTest.java | 3 +- .../jetty/rest/RestJettyMethodNotAllowedTest.java | 3 +- .../jetty/rest/RestJettyPojoInOutTest.java | 3 +- .../rest/RestJettyRemoveAddRestAndRouteTest.java | 18 ++- .../jetty/rest/RestJettyRequiredBodyTest.java | 3 +- .../rest/RestJettyRequiredHttpHeaderTest.java | 6 +- .../rest/RestJettyRequiredQueryParameterTest.java | 4 +- .../component/jetty/rest/RestJettyVerbTest.java| 16 ++- .../rest/producer/HttpRestProducerGetTest.java | 3 +- .../rest/producer/JettyRestProducerApiDocTest.java | 3 +- .../rest/producer/JettyRestProducerGetTest.java| 3 +- .../JettyRestProducerGetUriParameterTest.java | 4 +- .../producer/JettyRestProducerPojoInOutTest.java | 3 +- ...JettyRestProducerThrowExceptionOnErrorTest.java | 4 +- .../JettyRestProducerVerbUpperCaseTest.java| 3 +- .../jetty/rest/RestJettyBasicAuthTest.xml | 13 +- .../apache/camel/service/lra/LRASagaRoutes.java| 9 +- .../http/rest/RestNettyCircuitBreakerLeakTest.java | 8 +- ...stNettyHttpBindingModeJsonWithContractTest.java | 4 +- ...estNettyHttpBindingModeOffWithContractTest.java | 6 +- .../RestNettyHttpContextPathConfigurationTest.java | 12 +- .../rest/RestNettyHttpContextPathMatchGetTest.java | 13 +- .../netty/http/rest/RestNettyHttpGetCorsTest.java | 5 +- .../netty/http/rest/RestNettyHttpGetTest.java | 5 +- .../http/rest/RestNettyHttpGetWildcardsTest.java | 14 +- .../http/rest/RestNettyHttpPojoInOutTest.java | 4 +- .../netty/http/rest/RestNettyHttpVerbTest.java | 11 +- .../http/rest/RestNettyMethodNotAllowedTest.java | 5 +- .../netty/http/rest/RestNettyProducerGetTest.java | 5 +- .../rest/RestNettyProducerGetUriParameterTest.java | 5 +- .../RestNettyProducerThrowExceptionErrorTest.java | 5 +- .../rest/RestNettyProducerVerbUpperCaseTest.java | 5 +- .../http/rest/RestProducerOutTypeBindingTest.java | 9 +- .../org/apac
[GitHub] [camel] github-actions[bot] opened a new pull request #7021: Generated sources regen
github-actions[bot] opened a new pull request #7021: URL: https://github.com/apache/camel/pull/7021 Regen bot :robot: found some uncommited changes after running build on :camel: main. Please do not delete `regen_bot` branch after merge/rebase. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@camel.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[GitHub] [camel-quarkus] albert0815 opened a new issue #3569: Update dependency org.reflections:reflections in dependencyManagement of quarkus-camel-bom
albert0815 opened a new issue #3569: URL: https://github.com/apache/camel-quarkus/issues/3569 In quarkus-camel-bom currently version 0.9.12 of org.reflections:reflections is being used. This has a known issue which I am suffering now (https://github.com/ronmamo/reflections/issues/273). Are you planning for updating this in the dependency management of quarkus-camel-bom at some point in time? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@camel.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[camel-spring-boot-examples] branch main updated: CAMEL-17675: camel-core - Rest DSL remove support for using inlined routes.
This is an automated email from the ASF dual-hosted git repository. davsclaus pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel-spring-boot-examples.git The following commit(s) were added to refs/heads/main by this push: new 1fd6c2e CAMEL-17675: camel-core - Rest DSL remove support for using inlined routes. 1fd6c2e is described below commit 1fd6c2e2d4c17489ddaa2815551a24fecff56427 Author: Claus Ibsen AuthorDate: Tue Feb 22 17:37:26 2022 +0100 CAMEL-17675: camel-core - Rest DSL remove support for using inlined routes. --- .../springboot/geocoder/CamelGeocoderRoute.java| 3 ++ .../example/reactive/streams/RestExample.java | 5 +-- .../example/spring/boot/rest/jpa/Application.java | 40 -- 3 files changed, 27 insertions(+), 21 deletions(-) diff --git a/geocoder/src/main/java/org/apache/camel/example/springboot/geocoder/CamelGeocoderRoute.java b/geocoder/src/main/java/org/apache/camel/example/springboot/geocoder/CamelGeocoderRoute.java index 1dd354b..d9d5992 100644 --- a/geocoder/src/main/java/org/apache/camel/example/springboot/geocoder/CamelGeocoderRoute.java +++ b/geocoder/src/main/java/org/apache/camel/example/springboot/geocoder/CamelGeocoderRoute.java @@ -40,6 +40,9 @@ public class CamelGeocoderRoute extends RouteBuilder { .param().name("address").type(query).description("The address to lookup").dataType("string").endParam() .responseMessage().code(200).message("Geocoder successful").endResponseMessage() // call the geocoder to lookup details from the provided address +.to("direct:geo"); + +from("direct:geo") .toD("geocoder:address:${header.address})"); } diff --git a/reactive-streams/src/main/java/org/apache/camel/example/reactive/streams/RestExample.java b/reactive-streams/src/main/java/org/apache/camel/example/reactive/streams/RestExample.java index 76e984a..4f6dc0c 100644 --- a/reactive-streams/src/main/java/org/apache/camel/example/reactive/streams/RestExample.java +++ b/reactive-streams/src/main/java/org/apache/camel/example/reactive/streams/RestExample.java @@ -67,13 +67,14 @@ public class RestExample { // The full path should be eg.: http://localhost:8080/camel/sum/23/31 rest().get("/sum/{num1}/{num2}") .produces("text/plain") -.route() +.to("direct:sum"); + +from("direct:sum") .setHeader("num1").simple("headerAs(num1,Long)") .setHeader("num2").simple("headerAs(num2,Long)") .bean("calculator", "sum") .process(new UnwrapStreamProcessor()) .setBody().simple("The result is: ${body}"); - } } diff --git a/rest-jpa/src/main/java/org/apache/camel/example/spring/boot/rest/jpa/Application.java b/rest-jpa/src/main/java/org/apache/camel/example/spring/boot/rest/jpa/Application.java index 8ed8fc7..3adb580 100644 --- a/rest-jpa/src/main/java/org/apache/camel/example/spring/boot/rest/jpa/Application.java +++ b/rest-jpa/src/main/java/org/apache/camel/example/spring/boot/rest/jpa/Application.java @@ -34,29 +34,31 @@ public class Application extends SpringBootServletInitializer { public static void main(String[] args) { SpringApplication.run(Application.class, args); } - + @Component class RestApi extends RouteBuilder { @Override public void configure() { restConfiguration() -.component("servlet") -.contextPath("/camel-rest-jpa").apiContextPath("/api-doc") +.component("servlet") +.contextPath("/camel-rest-jpa").apiContextPath("/api-doc") .apiProperty("api.title", "Camel REST API") .apiProperty("api.version", "1.0") .apiProperty("cors", "true") .apiContextRouteId("doc-api") .port(env.getProperty("server.port", "8080")) -.bindingMode(RestBindingMode.json); +.bindingMode(RestBindingMode.json); rest("/books").description("Books REST service") -.get("/").description("The list of all the books") -.route().routeId("books-api") -.bean(Database.class, "findBooks") -.endRest() -.get("order/{id}").description("Details of an order by id") -.route().routeId("order-api") +.get("/").description("The list of all the books").to("direct:books") +.get("order/{id}").description("Details of an order by id").to("direct:order"); + + +from("direct:books").routeId("books-api") +.bean(Database.class, "findBooks"); + +from("direct:ord
[camel-spring-boot] branch main updated: CAMEL-17675: camel-core - Rest DSL remove support for using inlined routes.
This is an automated email from the ASF dual-hosted git repository. davsclaus pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel-spring-boot.git The following commit(s) were added to refs/heads/main by this push: new 0829951 CAMEL-17675: camel-core - Rest DSL remove support for using inlined routes. 0829951 is described below commit 0829951932ff900a3294a689a9af8e5772cca84b Author: Claus Ibsen AuthorDate: Tue Feb 22 17:33:24 2022 +0100 CAMEL-17675: camel-core - Rest DSL remove support for using inlined routes. --- .../component/servlet/springboot/test/ServletHttpMessageTest.java | 4 +++- .../springboot/test/ServletMappingAutoConfigurationTest.java | 5 +++-- .../servlet/springboot/test/ServletMappingDisablingTest.java | 5 +++-- .../java/org/apache/camel/spring/boot/issues/RestDslPostTest.java | 7 +++ 4 files changed, 12 insertions(+), 9 deletions(-) diff --git a/components-starter/camel-servlet-starter/src/test/java/org/apache/camel/component/servlet/springboot/test/ServletHttpMessageTest.java b/components-starter/camel-servlet-starter/src/test/java/org/apache/camel/component/servlet/springboot/test/ServletHttpMessageTest.java index 77c9c3d..3fe8720 100644 --- a/components-starter/camel-servlet-starter/src/test/java/org/apache/camel/component/servlet/springboot/test/ServletHttpMessageTest.java +++ b/components-starter/camel-servlet-starter/src/test/java/org/apache/camel/component/servlet/springboot/test/ServletHttpMessageTest.java @@ -53,7 +53,9 @@ public class ServletHttpMessageTest { rest().get("/outMessageNullBody") .produces("text/plain") -.route() +.to("direct:nullbody"); + +from("direct:nullbody") // read body at least once .log("${body}") // simulate endpoints that may put null to out message body diff --git a/components-starter/camel-servlet-starter/src/test/java/org/apache/camel/component/servlet/springboot/test/ServletMappingAutoConfigurationTest.java b/components-starter/camel-servlet-starter/src/test/java/org/apache/camel/component/servlet/springboot/test/ServletMappingAutoConfigurationTest.java index df5c67b..ace399e 100644 --- a/components-starter/camel-servlet-starter/src/test/java/org/apache/camel/component/servlet/springboot/test/ServletMappingAutoConfigurationTest.java +++ b/components-starter/camel-servlet-starter/src/test/java/org/apache/camel/component/servlet/springboot/test/ServletMappingAutoConfigurationTest.java @@ -52,8 +52,9 @@ public class ServletMappingAutoConfigurationTest { public void configure() throws Exception { rest().get("/thepath") -.produces("text/plain") -.route() +.produces("text/plain").to("direct:hello"); + +from("direct:hello") .transform().constant("Hello"); } }); diff --git a/components-starter/camel-servlet-starter/src/test/java/org/apache/camel/component/servlet/springboot/test/ServletMappingDisablingTest.java b/components-starter/camel-servlet-starter/src/test/java/org/apache/camel/component/servlet/springboot/test/ServletMappingDisablingTest.java index 857c45d..3fdebe0 100644 --- a/components-starter/camel-servlet-starter/src/test/java/org/apache/camel/component/servlet/springboot/test/ServletMappingDisablingTest.java +++ b/components-starter/camel-servlet-starter/src/test/java/org/apache/camel/component/servlet/springboot/test/ServletMappingDisablingTest.java @@ -54,8 +54,9 @@ public class ServletMappingDisablingTest { public void configure() throws Exception { rest().get("/thepath") -.produces("text/plain") -.route() +.produces("text/plain").to("direct:hello"); + +from("direct:hello") .transform().constant("Hello"); } }); diff --git a/core/camel-spring-boot/src/test/java/org/apache/camel/spring/boot/issues/RestDslPostTest.java b/core/camel-spring-boot/src/test/java/org/apache/camel/spring/boot/issues/RestDslPostTest.java index 5ba786a..18e3799 100644 --- a/core/camel-spring-boot/src/test/java/org/apache/camel/spring/boot/issues/RestDslPostTest.java +++ b/core/camel-spring-boot/src/test/java/org/apache/camel/spring/boot/issues/RestDslPostTest.java @@ -79,7 +79,6 @@ public class RestDslPostTest { resultEndpointCountry.assertIsSatisfied(); resultEndpointUser.assertIsSatisfied(); - } @Configuration @@ -90,9 +89,9 @@ public class RestDslPostTest { public void configure() { restConfiguration().host("localhost").port(PORT).bindingMode(RestBindingMode.json); - rest("/").
[camel-karaf] branch main updated: CAMEL-17675: camel-core - Rest DSL remove support for using inlined routes.
This is an automated email from the ASF dual-hosted git repository. davsclaus pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel-karaf.git The following commit(s) were added to refs/heads/main by this push: new cb2cf71 CAMEL-17675: camel-core - Rest DSL remove support for using inlined routes. cb2cf71 is described below commit cb2cf7104b03190c4e8ea5866c1e249ca8ed6331 Author: Claus Ibsen AuthorDate: Tue Feb 22 17:22:57 2022 +0100 CAMEL-17675: camel-core - Rest DSL remove support for using inlined routes. --- .../component/rest/FromRestGetInterceptTest.java | 2 +- .../component/rest/FromRestGetInterceptTest.xml| 35 +++-- .../component/rest/FromRestGetOnExceptionTest.xml | 57 -- .../rest/FromRestGetRouteOnExceptionTest.xml | 49 ++- 4 files changed, 76 insertions(+), 67 deletions(-) diff --git a/components/camel-test-blueprint/src/test/java/org/apache/camel/test/blueprint/component/rest/FromRestGetInterceptTest.java b/components/camel-test-blueprint/src/test/java/org/apache/camel/test/blueprint/component/rest/FromRestGetInterceptTest.java index 2b5948d..11fba72 100644 --- a/components/camel-test-blueprint/src/test/java/org/apache/camel/test/blueprint/component/rest/FromRestGetInterceptTest.java +++ b/components/camel-test-blueprint/src/test/java/org/apache/camel/test/blueprint/component/rest/FromRestGetInterceptTest.java @@ -30,7 +30,7 @@ public class FromRestGetInterceptTest extends CamelBlueprintTestSupport { public void testFromRestModel() throws Exception { getMockEndpoint("mock:hello").expectedMessageCount(1); getMockEndpoint("mock:bar").expectedMessageCount(1); -getMockEndpoint("mock:intercept").expectedMessageCount(3); +getMockEndpoint("mock:intercept").expectedMessageCount(4); String out = template.requestBody("seda:get-say-hello", "I was here", String.class); assertEquals("Bye World", out); diff --git a/components/camel-test-blueprint/src/test/resources/org/apache/camel/test/blueprint/component/rest/FromRestGetInterceptTest.xml b/components/camel-test-blueprint/src/test/resources/org/apache/camel/test/blueprint/component/rest/FromRestGetInterceptTest.xml index 9d54413..71441f4 100644 --- a/components/camel-test-blueprint/src/test/resources/org/apache/camel/test/blueprint/component/rest/FromRestGetInterceptTest.xml +++ b/components/camel-test-blueprint/src/test/resources/org/apache/camel/test/blueprint/component/rest/FromRestGetInterceptTest.xml @@ -22,27 +22,30 @@ xsi:schemaLocation=" http://www.osgi.org/xmlns/blueprint/v1.0.0 https://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd";> - - + + - http://camel.apache.org/schema/blueprint";> +http://camel.apache.org/schema/blueprint";> - - - + + + + + + + + + - - - - - -Bye World - + + + + +Bye World + - - - + \ No newline at end of file diff --git a/components/camel-test-blueprint/src/test/resources/org/apache/camel/test/blueprint/component/rest/FromRestGetOnExceptionTest.xml b/components/camel-test-blueprint/src/test/resources/org/apache/camel/test/blueprint/component/rest/FromRestGetOnExceptionTest.xml index 2c9b363..e12930f 100644 --- a/components/camel-test-blueprint/src/test/resources/org/apache/camel/test/blueprint/component/rest/FromRestGetOnExceptionTest.xml +++ b/components/camel-test-blueprint/src/test/resources/org/apache/camel/test/blueprint/component/rest/FromRestGetOnExceptionTest.xml @@ -22,35 +22,38 @@ xsi:schemaLocation=" http://www.osgi.org/xmlns/blueprint/v1.0.0 https://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd";> - - - - - - - - http://camel.apache.org/schema/blueprint";> - - - java.lang.IllegalArgumentException - -true - - -Handled the error - - - - - + + + + + + + +http://camel.apache.org/schema/blueprint";> + + +java.lang.IllegalArgumentException + +true + + +Handled the error + + + + + + + + + - - - + + + + - - - + \ No newline at end of file diff --git a/components/camel-test-blueprint/src/test/resources/org/apache/camel/test/blueprint/component/rest/FromRestGetRouteOnExceptionTest.xml b/components/camel-test-blueprint/src/test/resources/org/apache/camel/test/blueprint/component/rest/FromRestGet
[GitHub] [camel-quarkus] JiriOndrusek commented on pull request #3564: Test for Debezium mysql - passing additionalProperties may fail.
JiriOndrusek commented on pull request #3564: URL: https://github.com/apache/camel-quarkus/pull/3564#issuecomment-1047963555 Thanks for the change! -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@camel.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[GitHub] [camel-quarkus] jamesnetherton commented on pull request #3564: Test for Debezium mysql - passing additionalProperties may fail.
jamesnetherton commented on pull request #3564: URL: https://github.com/apache/camel-quarkus/pull/3564#issuecomment-1047952879 I merged this manually with a minor change. If you try to refer to a JSON key like `.body("database.connectionTimeZone", is("CET"))`, then you need to wrap it in single quotes like `.body("'database.connectionTimeZone'", is("CET"))`. Otherwise RestEasy interprets it as you want to access the object `database` with key `connectionTimeZone`. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@camel.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[camel-quarkus] 03/03: Temporary hacks to handle version misalignment of smallrye-health and smallrye-faulttolerance in Quarkus & Camel
This is an automated email from the ASF dual-hosted git repository. jamesnetherton pushed a commit to branch camel-main in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git commit 9146be825f3f65a2ed9767443411446d0be17eb3 Author: James Netherton AuthorDate: Fri Feb 11 10:08:03 2022 + Temporary hacks to handle version misalignment of smallrye-health and smallrye-faulttolerance in Quarkus & Camel --- .../MicroprofileFaultToleranceProcessor.java | 9 + .../microprofile-fault-tolerance/runtime/pom.xml | 2 + .../FaultToleranceConfiguration.java | 120 + .../faulttolerance/FaultToleranceConstants.java} | 21 +- .../faulttolerance/FaultToleranceProcessor.java| 536 + .../FaultToleranceProcessorFactory.java} | 28 +- .../faulttolerance/FaultToleranceReifier.java | 193 .../apache/camel/model/CircuitBreakerDefinition| 18 + .../runtime/CamelMicroProfileHealthRecorder.java | 3 +- ...amelQuarkusMicroProfileHealthCheckRegistry.java | 62 +++ 10 files changed, 958 insertions(+), 34 deletions(-) diff --git a/extensions/microprofile-fault-tolerance/deployment/src/main/java/org/apache/camel/quarkus/component/microprofile/fault/tolerance/deployment/MicroprofileFaultToleranceProcessor.java b/extensions/microprofile-fault-tolerance/deployment/src/main/java/org/apache/camel/quarkus/component/microprofile/fault/tolerance/deployment/MicroprofileFaultToleranceProcessor.java index 05673b1..6e8c382 100644 --- a/extensions/microprofile-fault-tolerance/deployment/src/main/java/org/apache/camel/quarkus/component/microprofile/fault/tolerance/deployment/MicroprofileFaultToleranceProcessor.java +++ b/extensions/microprofile-fault-tolerance/deployment/src/main/java/org/apache/camel/quarkus/component/microprofile/fault/tolerance/deployment/MicroprofileFaultToleranceProcessor.java @@ -16,9 +16,13 @@ */ package org.apache.camel.quarkus.component.microprofile.fault.tolerance.deployment; +import java.nio.file.Paths; + import io.quarkus.deployment.annotations.BuildStep; import io.quarkus.deployment.builditem.FeatureBuildItem; import io.quarkus.deployment.builditem.nativeimage.NativeImageResourceBuildItem; +import org.apache.camel.component.microprofile.faulttolerance.FaultToleranceProcessorFactory; +import org.apache.camel.quarkus.core.deployment.spi.CamelServiceBuildItem; class MicroprofileFaultToleranceProcessor { @@ -35,4 +39,9 @@ class MicroprofileFaultToleranceProcessor { "META-INF/services/org/apache/camel/model/CircuitBreakerDefinition"); } +@BuildStep +CamelServiceBuildItem camelCronServicePattern() { +return new CamelServiceBuildItem(Paths.get("META-INF/services/org/apache/camel/model/CircuitBreakerDefinition"), +FaultToleranceProcessorFactory.class.getName()); +} } diff --git a/extensions/microprofile-fault-tolerance/runtime/pom.xml b/extensions/microprofile-fault-tolerance/runtime/pom.xml index 3401f07..22e3962 100644 --- a/extensions/microprofile-fault-tolerance/runtime/pom.xml +++ b/extensions/microprofile-fault-tolerance/runtime/pom.xml @@ -56,10 +56,12 @@ org.apache.camel.quarkus camel-quarkus-core + diff --git a/extensions/microprofile-fault-tolerance/runtime/src/main/java/org/apache/camel/component/microprofile/faulttolerance/FaultToleranceConfiguration.java b/extensions/microprofile-fault-tolerance/runtime/src/main/java/org/apache/camel/component/microprofile/faulttolerance/FaultToleranceConfiguration.java new file mode 100644 index 000..7cb3d4d --- /dev/null +++ b/extensions/microprofile-fault-tolerance/runtime/src/main/java/org/apache/camel/component/microprofile/faulttolerance/FaultToleranceConfiguration.java @@ -0,0 +1,120 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.camel.component.microprofile.faulttolerance; + +public class FaultToleranceConfiguration { + +private long delay; +private int successThreshold; +private int requestVolumeThreshold; +private float failureRatio; +private boolean timeoutEnabled; +private long timeoutDuration; +privat
[GitHub] [camel-quarkus] jamesnetherton closed pull request #3564: Test for Debezium mysql - passing additionalProperties may fail.
jamesnetherton closed pull request #3564: URL: https://github.com/apache/camel-quarkus/pull/3564 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@camel.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[camel-quarkus] 02/03: Test for Debezium mysql - passing additionalProperties results in wrong properties beeing passed #3488
This is an automated email from the ASF dual-hosted git repository. jamesnetherton pushed a commit to branch camel-main in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git commit aea007bf427711b1afbd36a0b0b67dd768b1fbcd Author: JiriOndrusek AuthorDate: Mon Feb 21 15:51:05 2022 +0100 Test for Debezium mysql - passing additionalProperties results in wrong properties beeing passed #3488 --- .../common/it/AbstractDebeziumResource.java| 29 +- .../common/it/postgres/DebeziumPostgresTest.java | 15 +++ 2 files changed, 43 insertions(+), 1 deletion(-) diff --git a/integration-tests/debezium/src/main/java/org/apache/camel/quarkus/component/debezium/common/it/AbstractDebeziumResource.java b/integration-tests/debezium/src/main/java/org/apache/camel/quarkus/component/debezium/common/it/AbstractDebeziumResource.java index ff49301..0e74a9b 100644 --- a/integration-tests/debezium/src/main/java/org/apache/camel/quarkus/component/debezium/common/it/AbstractDebeziumResource.java +++ b/integration-tests/debezium/src/main/java/org/apache/camel/quarkus/component/debezium/common/it/AbstractDebeziumResource.java @@ -16,11 +16,20 @@ */ package org.apache.camel.quarkus.component.debezium.common.it; +import java.util.Map; +import java.util.stream.Collectors; + import javax.inject.Inject; +import javax.ws.rs.GET; +import javax.ws.rs.Path; +import javax.ws.rs.Produces; +import javax.ws.rs.core.MediaType; +import org.apache.camel.CamelContext; import org.apache.camel.ConsumerTemplate; import org.apache.camel.Exchange; import org.apache.camel.component.debezium.DebeziumConstants; +import org.apache.camel.component.debezium.DebeziumEndpoint; import org.eclipse.microprofile.config.Config; import org.eclipse.microprofile.config.inject.ConfigProperty; @@ -41,10 +50,23 @@ public abstract class AbstractDebeziumResource { @Inject Config config; +@Inject +CamelContext camelContext; + public AbstractDebeziumResource(Type type) { this.type = type; } +@Path("/getAdditionalProperties") +@GET +@Produces(MediaType.APPLICATION_JSON) +public Map getAdditionalProperties() { +DebeziumEndpoint endpoint = (DebeziumEndpoint) camelContext.getEndpoint(getEndpointUrl() ++ "&additionalProperties.database.connectionTimeZone=CET"); +return endpoint.getConfiguration().getAdditionalProperties().entrySet().stream() +.collect(Collectors.toMap(Map.Entry::getKey, e -> (String) e.getValue())); +} + String getEndpoinUrl(String hostname, String port, String username, String password, String databaseServerName, String offsetStorageFileName) { return type.getComponent() + ":localhost?" @@ -90,6 +112,11 @@ public abstract class AbstractDebeziumResource { } private Exchange receiveAsExchange() { +String endpoint = getEndpointUrl(); +return consumerTemplate.receive(endpoint, TIMEOUT); +} + +protected String getEndpointUrl() { String endpoint = getEndpoinUrl( config.getValue(type.getPropertyHostname(), String.class), config.getValue(type.getPropertyPort(), String.class), @@ -97,6 +124,6 @@ public abstract class AbstractDebeziumResource { config.getValue(type.getPropertyPassword(), String.class), "qa", config.getValue(type.getPropertyOffsetFileName(), String.class)); -return consumerTemplate.receive(endpoint, TIMEOUT); +return endpoint; } } diff --git a/integration-tests/debezium/src/test/java/org/apache/camel/quarkus/component/debezium/common/it/postgres/DebeziumPostgresTest.java b/integration-tests/debezium/src/test/java/org/apache/camel/quarkus/component/debezium/common/it/postgres/DebeziumPostgresTest.java index c610735..4a7148a 100644 --- a/integration-tests/debezium/src/test/java/org/apache/camel/quarkus/component/debezium/common/it/postgres/DebeziumPostgresTest.java +++ b/integration-tests/debezium/src/test/java/org/apache/camel/quarkus/component/debezium/common/it/postgres/DebeziumPostgresTest.java @@ -22,6 +22,7 @@ import java.sql.SQLException; import io.quarkus.test.common.QuarkusTestResource; import io.quarkus.test.junit.QuarkusTest; +import io.restassured.RestAssured; import org.apache.camel.quarkus.component.debezium.common.it.AbstractDebeziumTest; import org.apache.camel.quarkus.component.debezium.common.it.Type; import org.eclipse.microprofile.config.Config; @@ -30,8 +31,12 @@ import org.jboss.logging.Logger; import org.junit.jupiter.api.AfterAll; import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.MethodOrderer; +import org.junit.jupiter.api.Order; +import org.junit.jupiter.api.Test; import org.junit.jupiter.api.TestMethodOrder; +import static org.hamcrest.Matchers.is; + @QuarkusTest @QuarkusTestResource(DebeziumPostgresTestResource.class) @TestMethodO
[camel-quarkus] branch camel-main updated (49a85bf -> 9146be8)
This is an automated email from the ASF dual-hosted git repository. jamesnetherton pushed a change to branch camel-main in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git. omit 49a85bf Fixed check style omit c3401c6 Temporary hacks to handle version misalignment of smallrye-health and smallrye-faulttolerance in Quarkus & Camel omit 5eca097 Upgrade Camel to 3.16.0 add bf18e48 Updated CHANGELOG.md add 2896547 Fix #3551 ban all non-canonical JTA specs artifacts add d6c9452 Upgrade Azurite container image to 3.15.0 add 1ab5c18 Updated CHANGELOG.md new 325a5f2 Upgrade Camel to 3.16.0 new aea007b Test for Debezium mysql - passing additionalProperties results in wrong properties beeing passed #3488 new 9146be8 Temporary hacks to handle version misalignment of smallrye-health and smallrye-faulttolerance in Quarkus & Camel This update added new revisions after undoing existing revisions. That is to say, some revisions that were in the old version of the branch are not in the new version. This situation occurs when a user --force pushes a change and generates a repository containing something like this: * -- * -- B -- O -- O -- O (49a85bf) \ N -- N -- N refs/heads/camel-main (9146be8) You should already have received notification emails for all of the O revisions, and so the following emails describe only the N revisions from the common base, B. Any revisions marked "omit" are not gone; other references still refer to them. Any revisions marked "discard" are gone forever. The 3 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. Summary of changes: CHANGELOG.md | 9 +++ extensions-jvm/bonita/runtime/pom.xml | 8 ++ extensions-jvm/spark/runtime/pom.xml | 8 ++ extensions-jvm/wordpress/runtime/pom.xml | 8 ++ extensions/servicenow/runtime/pom.xml | 8 ++ .../support/azure/AzureStorageTestResource.java| 2 +- .../common/it/AbstractDebeziumResource.java| 29 +- .../common/it/postgres/DebeziumPostgresTest.java | 15 +++ pom.xml| 8 ++ 9 files changed, 93 insertions(+), 2 deletions(-)
[camel-quarkus] 01/03: Upgrade Camel to 3.16.0
This is an automated email from the ASF dual-hosted git repository. jamesnetherton pushed a commit to branch camel-main in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git commit 325a5f2988f2e4c21a8f180565f93361529ed248 Author: James Netherton AuthorDate: Wed Feb 9 11:13:37 2022 + Upgrade Camel to 3.16.0 --- docs/antora.yml| 6 +- .../ROOT/pages/reference/extensions/yaml-dsl.adoc | 6 -- .../it/health/CustomHealthCheckRepository.java | 17 -- .../microprofile/it/health/FailingHealthCheck.java | 2 +- .../it/health/FailureThresholdHealthCheck.java | 51 .../it/health/MicroProfileHealthResource.java | 17 +- .../src/main/resources/application.properties | 7 +-- .../it/health/MicroProfileHealthTest.java | 67 -- pom.xml| 6 +- 9 files changed, 9 insertions(+), 170 deletions(-) diff --git a/docs/antora.yml b/docs/antora.yml index 1413755..0d85853 100644 --- a/docs/antora.yml +++ b/docs/antora.yml @@ -29,11 +29,11 @@ asciidoc: min-maven-version: 3.8.1 # replace ${min-maven-version} target-maven-version: 3.8.4 # replace ${target-maven-version} -camel-version: 3.15.0 # replace ${camel.version} -camel-docs-version: 3.15.x # replace ${camel.docs.components.version} +camel-version: 3.16.0-SNAPSHOT # replace ${camel.version} +camel-docs-version: 3.16.x # replace ${camel.docs.components.version} quarkus-version: 2.7.1.Final # replace ${quarkus.version} graalvm-version: 21.3.1 # replace ${graalvm.version} graalvm-docs-version: 21.3 # attributes used in xrefs to other Antora components -cq-camel-components: 3.15.x@components # replace ${camel.docs.components.xref} +cq-camel-components: 3.16.x@components # replace ${camel.docs.components.xref} quarkus-examples-version: latest diff --git a/docs/modules/ROOT/pages/reference/extensions/yaml-dsl.adoc b/docs/modules/ROOT/pages/reference/extensions/yaml-dsl.adoc index bdde5d3..26484a9 100644 --- a/docs/modules/ROOT/pages/reference/extensions/yaml-dsl.adoc +++ b/docs/modules/ROOT/pages/reference/extensions/yaml-dsl.adoc @@ -16,12 +16,6 @@ An YAML stack for parsing YAML route definitions -== What's inside - -* xref:{cq-camel-components}:others:yaml-dsl.adoc[YAML DSL] - -Please refer to the above link for usage and configuration details. - == Maven coordinates https://code.quarkus.io/?extension-search=camel-quarkus-yaml-dsl[Create a new project with this extension on code.quarkus.io, window="_blank"] diff --git a/integration-tests/microprofile/src/main/java/org/apache/camel/quarkus/component/microprofile/it/health/CustomHealthCheckRepository.java b/integration-tests/microprofile/src/main/java/org/apache/camel/quarkus/component/microprofile/it/health/CustomHealthCheckRepository.java index c54665d..2d31330 100644 --- a/integration-tests/microprofile/src/main/java/org/apache/camel/quarkus/component/microprofile/it/health/CustomHealthCheckRepository.java +++ b/integration-tests/microprofile/src/main/java/org/apache/camel/quarkus/component/microprofile/it/health/CustomHealthCheckRepository.java @@ -16,12 +16,10 @@ */ package org.apache.camel.quarkus.component.microprofile.it.health; -import java.util.Collections; import java.util.Map; import java.util.stream.Stream; import org.apache.camel.health.HealthCheck; -import org.apache.camel.health.HealthCheckConfiguration; import org.apache.camel.health.HealthCheckRepository; import org.apache.camel.health.HealthCheckResultBuilder; import org.apache.camel.impl.health.AbstractHealthCheck; @@ -44,21 +42,6 @@ public class CustomHealthCheckRepository implements HealthCheckRepository { } @Override -public void setConfigurations(Map configurations) { -// Noop -} - -@Override -public Map getConfigurations() { -return Collections.emptyMap(); -} - -@Override -public void addConfiguration(String id, HealthCheckConfiguration configuration) { -// Noop -} - -@Override public Stream stream() { return Stream.of(check); } diff --git a/integration-tests/microprofile/src/main/java/org/apache/camel/quarkus/component/microprofile/it/health/FailingHealthCheck.java b/integration-tests/microprofile/src/main/java/org/apache/camel/quarkus/component/microprofile/it/health/FailingHealthCheck.java index 2d56d54..b278052 100644 --- a/integration-tests/microprofile/src/main/java/org/apache/camel/quarkus/component/microprofile/it/health/FailingHealthCheck.java +++ b/integration-tests/microprofile/src/main/java/org/apache/camel/quarkus/component/microprofile/it/health/FailingHealthCheck.java @@ -25,7 +25,7 @@ public class FailingHealthCheck extends AbstractHealthCheck { public FailingHealthCheck() { super("failing-check"); -getConfiguration().setEnabled(false); +setEna
[camel] branch main updated: Regen for commit 213a696b16c720e583d832a70fea78ddb08bb14e
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 d805f53 Regen for commit 213a696b16c720e583d832a70fea78ddb08bb14e d805f53 is described below commit d805f5315cbe737139e34761fbace1a7b95d8c05 Author: davsclaus AuthorDate: Tue Feb 22 16:01:19 2022 + Regen for commit 213a696b16c720e583d832a70fea78ddb08bb14e Signed-off-by: GitHub --- .../resources/org/apache/camel/catalog/others.properties | 1 - .../org/apache/camel/catalog/others/console.json | 15 --- 2 files changed, 16 deletions(-) diff --git a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/others.properties b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/others.properties index 5f99325..2ecc8b0 100644 --- a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/others.properties +++ b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/others.properties @@ -8,7 +8,6 @@ cloud cloudevents cluster componentdsl -console csimple-joor cxf-transport debug diff --git a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/others/console.json b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/others/console.json deleted file mode 100644 index b1048bd..000 --- a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/others/console.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "other": { -"kind": "other", -"name": "console", -"title": "Console", -"description": "Camel Developer Console", -"deprecated": false, -"firstVersion": "3.15.0", -"label": "core", -"supportLevel": "Preview", -"groupId": "org.apache.camel", -"artifactId": "camel-console", -"version": "3.16.0-SNAPSHOT" - } -}
[GitHub] [camel] oscerd merged pull request #7020: Generated sources regen
oscerd merged pull request #7020: URL: https://github.com/apache/camel/pull/7020 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@camel.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[camel] branch regen_bot updated (b716549 -> af2241a)
This is an automated email from the ASF dual-hosted git repository. github-bot pushed a change to branch regen_bot in repository https://gitbox.apache.org/repos/asf/camel.git. from b716549 CAMEL-17691 - Camel Google Secret Manager: Add more operations - docs add 213a696 (chores) components: removed unused code (#7016) add af2241a Regen for commit 213a696b16c720e583d832a70fea78ddb08bb14e No new revisions were added by this update. Summary of changes: .../org/apache/camel/catalog/others.properties| 1 - .../org/apache/camel/catalog/others/console.json | 15 --- .../component/activemq/converter/ConsumerBean.java| 12 .../camel/component/arangodb/ArangoDbProducer.java| 3 --- .../camel/component/as2/api/AS2ServerManager.java | 4 .../component/as2/api/io/AS2SessionInputBuffer.java | 6 +++--- .../camel/component/as2/api/protocol/ResponseMDN.java | 5 ++--- .../org/apache/camel/component/as2/AS2Endpoint.java | 4 ++-- .../websocket/WebsocketRouteWithInitParamTest.java| 10 +- .../atomix/client/AbstractAtomixClientProducer.java | 4 .../aws2/ddb/localstack/AWS2DeleteItemRuleIT.java | 2 -- .../aws2/ddb/localstack/AWS2GetItemRuleIT.java| 2 -- .../aws2/ddb/localstack/AWS2PutItemRuleIT.java| 2 -- .../aws2/ddb/localstack/AWS2UpdateItemRuleIT.java | 2 -- .../camel/component/aws2/s3/AWS2S3Producer.java | 4 ++-- .../component/aws2/ses/SesComponentSpringTest.java| 4 .../component/azure/storage/blob/BlobComponent.java | 5 - .../blob/operations/BlobOperationResponse.java| 4 .../storage/blob/integration/BlobOperationsIT.java| 3 --- .../azure/storage/datalake/DataLakeComponent.java | 4 .../azure/storage/datalake/DataLakeProducer.java | 9 ++--- .../datalake/client/DataLakeClientFactory.java| 4 .../client/DataLakeFileSystemClientWrapper.java | 3 --- .../datalake/operations/DataLakeFileOperations.java | 3 --- .../datalake/component/DataLakeComponentTest.java | 4 .../datalake/integration/DataLakeConsumerIT.java | 3 --- .../datalake/integration/DataLakeProducerIT.java | 4 .../queue/operations/QueueOperationResponse.java | 8 .../dataformat/barcode/BarcodeUnmarshalTest.java | 4 .../org/apache/camel/component/bean/BeanInfo.java | 8 .../org/apache/camel/component/bean/RegistryBean.java | 4 ++-- .../org/apache/camel/component/box/BoxEndpoint.java | 4 ++-- .../component/box/internal/BoxConnectionHelper.java | 4 .../cassandra/CassandraAggregationRepository.java | 2 +- .../aggregate/cassandra/CassandraCamelCodec.java | 2 +- .../file/watch/FileWatchComponentTestBase.java| 6 -- .../sftp/integration/SftpKeyPairRSAConsumeIT.java | 19 --- .../camel/component/hdfs/HdfsNormalFileHandler.java | 8 .../apache/camel/component/hdfs/HdfsTestSupport.java | 2 -- .../component/jms/JmsDefaultTaskExecutorTypeTest.java | 4 ++-- ...sTransactedOnExceptionRollbackOnExceptionTest.java | 2 ++ .../producer/support/KeyValueHolderIterator.java | 8 .../apache/camel/component/metrics/TimerProducer.java | 4 ++-- .../camel/component/metrics/TimerProducerTest.java| 4 ++-- .../camel/component/rabbitmq/RabbitMQProducer.java| 6 +++--- .../component/rabbitmq/RabbitMQComponentTest.java | 1 - .../test/infra/services/RabbitMQServiceFactory.java | 4 .../jdbc/ClusteredJdbcAggregationRepository.java | 2 +- .../aggregate/jdbc/JdbcAggregationRepository.java | 5 ++--- .../processor/aggregate/jdbc/JdbcCamelCodec.java | 6 +++--- .../AbstractClusteredJdbcAggregationTestSupport.java | 4 .../service/TelegramServiceRestBotAPIAdapter.java | 1 - .../group/internal/ZooKeeperMultiGroup.java | 3 --- .../integration/ZooKeeperServiceCallRouteIT.java | 1 - .../zookeeper/integration/ZooKeeperITSupport.java | 2 +- .../operations/integration/CreateOperationIT.java | 2 +- 56 files changed, 49 insertions(+), 207 deletions(-) delete mode 100644 catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/others/console.json
[GitHub] [camel] github-actions[bot] opened a new pull request #7020: Generated sources regen
github-actions[bot] opened a new pull request #7020: URL: https://github.com/apache/camel/pull/7020 Regen bot :robot: found some uncommited changes after running build on :camel: main. Please do not delete `regen_bot` branch after merge/rebase. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@camel.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[GitHub] [camel-karavan] mgubaidullin closed issue #192: Pressing Enter in "Create New Integration" dialog cancels, not confirms
mgubaidullin closed issue #192: URL: https://github.com/apache/camel-karavan/issues/192 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@camel.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[GitHub] [camel-karavan] mgubaidullin merged pull request #199: Issue #192
mgubaidullin merged pull request #199: URL: https://github.com/apache/camel-karavan/pull/199 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@camel.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[GitHub] [camel-karavan] mgubaidullin commented on pull request #199: Issue #192
mgubaidullin commented on pull request #199: URL: https://github.com/apache/camel-karavan/pull/199#issuecomment-1047946238 Thanks @rafamqrs -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@camel.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[camel-karavan] branch main updated: Fixed when pressing enter in Create new Integration dialog cancels - Issue #192 (#199)
This is an automated email from the ASF dual-hosted git repository. marat pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel-karavan.git The following commit(s) were added to refs/heads/main by this push: new 54186d8 Fixed when pressing enter in Create new Integration dialog cancels - Issue #192 (#199) 54186d8 is described below commit 54186d80598f253ede40df1e9d4b945b63837b65 Author: Rafael Marques AuthorDate: Tue Feb 22 13:00:51 2022 -0300 Fixed when pressing enter in Create new Integration dialog cancels - Issue #192 (#199) --- karavan-app/src/main/webapp/src/integrations/IntegrationPage.tsx | 8 1 file changed, 8 insertions(+) diff --git a/karavan-app/src/main/webapp/src/integrations/IntegrationPage.tsx b/karavan-app/src/main/webapp/src/integrations/IntegrationPage.tsx index abc6998..83d72b7 100644 --- a/karavan-app/src/main/webapp/src/integrations/IntegrationPage.tsx +++ b/karavan-app/src/main/webapp/src/integrations/IntegrationPage.tsx @@ -77,6 +77,13 @@ export class IntegrationPage extends React.Component { this.setState({isModalOpen:false, newName:""}); } +onKeyDown = (event: React.KeyboardEvent): void => { +if (event.key === 'Enter' && this.state.newName !== undefined) { + this.saveAndCloseModal(); +} +} + + render() { return ( @@ -97,6 +104,7 @@ export class IntegrationPage extends React.Component { variant={ModalVariant.small} isOpen={this.state.isModalOpen} onClose={this.closeModal} +onKeyDown={this.onKeyDown} actions={[ Save, Cancel
[GitHub] [camel] stn1slv commented on a change in pull request #7019: Improve documentation for OpenTelemetry component
stn1slv commented on a change in pull request #7019: URL: https://github.com/apache/camel/pull/7019#discussion_r812096798 ## File path: components/camel-opentelemetry/src/main/docs/opentelemetry.adoc ## @@ -33,7 +33,7 @@ Dashes need for instances to be encoded for JMS property keys. |=== -=== Configuration +=== Explicit Review comment: Thanks. I have changed it to Configuration in https://github.com/apache/camel/pull/7019/commits/be9f710fec4653ddd9b95bbf6869d80f518d0f89 commit. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@camel.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[GitHub] [camel] oscerd commented on a change in pull request #7019: Improve documentation for OpenTelemetry component
oscerd commented on a change in pull request #7019: URL: https://github.com/apache/camel/pull/7019#discussion_r812080338 ## File path: components/camel-opentelemetry/src/main/docs/opentelemetry.adoc ## @@ -33,7 +33,7 @@ Dashes need for instances to be encoded for JMS property keys. |=== -=== Configuration +=== Explicit Review comment: I don't think this should be explicit. It's configuration. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@camel.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[GitHub] [camel] stn1slv opened a new pull request #7019: Improve documentation for OpenTelemetry component
stn1slv opened a new pull request #7019: URL: https://github.com/apache/camel/pull/7019 Added required step for Spring Boot and how to use OpenTelemetry agent -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@camel.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[camel-karaf] branch main updated: CAMEL-17675: camel-core - Rest DSL remove support for using inlined routes.
This is an automated email from the ASF dual-hosted git repository. davsclaus pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel-karaf.git The following commit(s) were added to refs/heads/main by this push: new b0b0fed CAMEL-17675: camel-core - Rest DSL remove support for using inlined routes. b0b0fed is described below commit b0b0fed65d0b05636ee73f8f4fd9666e52e1bbc2 Author: Claus Ibsen AuthorDate: Tue Feb 22 16:35:20 2022 +0100 CAMEL-17675: camel-core - Rest DSL remove support for using inlined routes. --- .../blueprint/handler/CamelNamespaceHandler.java | 12 +--- .../rest/FromRestGetEmbeddedRouteTest.java | 66 -- .../rest/FromRestGetEmbeddedRouteTest.xml | 56 -- 3 files changed, 3 insertions(+), 131 deletions(-) diff --git a/components/camel-blueprint/src/main/java/org/apache/camel/blueprint/handler/CamelNamespaceHandler.java b/components/camel-blueprint/src/main/java/org/apache/camel/blueprint/handler/CamelNamespaceHandler.java index e7899c6..a84d087 100644 --- a/components/camel-blueprint/src/main/java/org/apache/camel/blueprint/handler/CamelNamespaceHandler.java +++ b/components/camel-blueprint/src/main/java/org/apache/camel/blueprint/handler/CamelNamespaceHandler.java @@ -1126,15 +1126,9 @@ public class CamelNamespaceHandler implements NamespaceHandler { // rest services can have embedded routes or a singular to for (RestDefinition rd : camelContext.getExtension(Model.class).getRestDefinitions()) { for (VerbDefinition vd : rd.getVerbs()) { -Object o = vd.getToOrRoute(); -if (o instanceof RouteDefinition) { -RouteDefinition route = (RouteDefinition) o; -findInputComponents(route.getInput(), components, languages, dataformats); -findOutputComponents(route.getOutputs(), components, languages, dataformats); -} else if (o instanceof ToDefinition) { -findUriComponent(((ToDefinition) o).getUri(), components); -} else if (o instanceof ToDynamicDefinition) { -findUriComponent(((ToDynamicDefinition) o).getUri(), components); +ToDefinition to = vd.getTo(); +if (to != null) { +findUriComponent(to.getUri(), components); } } } diff --git a/components/camel-test-blueprint/src/test/java/org/apache/camel/test/blueprint/component/rest/FromRestGetEmbeddedRouteTest.java b/components/camel-test-blueprint/src/test/java/org/apache/camel/test/blueprint/component/rest/FromRestGetEmbeddedRouteTest.java deleted file mode 100644 index f03a5c0..000 --- a/components/camel-test-blueprint/src/test/java/org/apache/camel/test/blueprint/component/rest/FromRestGetEmbeddedRouteTest.java +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.apache.camel.test.blueprint.component.rest; - -import org.apache.camel.model.ToDefinition; -import org.apache.camel.model.rest.RestDefinition; -import org.apache.camel.test.blueprint.CamelBlueprintTestSupport; -import org.junit.Test; - -public class FromRestGetEmbeddedRouteTest extends CamelBlueprintTestSupport { - -@Override -protected String getBlueprintDescriptor() { -return "org/apache/camel/test/blueprint/component/rest/FromRestGetEmbeddedRouteTest.xml"; -} - -protected int getExpectedNumberOfRoutes() { -return 3; -} - -@Test -public void testFromRestModel() throws Exception { -assertEquals(getExpectedNumberOfRoutes(), context.getRoutes().size()); - -assertEquals(2, context.getRestDefinitions().size()); -RestDefinition rest = context.getRestDefinitions().get(0); -assertNotNull(rest); -assertEquals("/say/hello", rest.getPath()); -assertEquals(1, rest.getVerbs().size()); -ToDefinition to = assertIsInstanceOf(ToDefinition.class, rest.getVerbs().get(0).getRoute().getOutputs().get(0)); -assertEquals("mock:hello", to.get
[GitHub] [camel] davsclaus merged pull request #7018: Rest to
davsclaus merged pull request #7018: URL: https://github.com/apache/camel/pull/7018 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@camel.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[camel] branch main updated: (chores) components: removed unused code (#7016)
This is an automated email from the ASF dual-hosted git repository. davsclaus 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 213a696 (chores) components: removed unused code (#7016) 213a696 is described below commit 213a696b16c720e583d832a70fea78ddb08bb14e Author: Otavio Rodolfo Piske AuthorDate: Tue Feb 22 16:08:23 2022 +0100 (chores) components: removed unused code (#7016) --- .../component/activemq/converter/ConsumerBean.java| 12 .../camel/component/arangodb/ArangoDbProducer.java| 3 --- .../camel/component/as2/api/AS2ServerManager.java | 4 .../component/as2/api/io/AS2SessionInputBuffer.java | 6 +++--- .../camel/component/as2/api/protocol/ResponseMDN.java | 5 ++--- .../org/apache/camel/component/as2/AS2Endpoint.java | 4 ++-- .../websocket/WebsocketRouteWithInitParamTest.java| 10 +- .../atomix/client/AbstractAtomixClientProducer.java | 4 .../aws2/ddb/localstack/AWS2DeleteItemRuleIT.java | 2 -- .../aws2/ddb/localstack/AWS2GetItemRuleIT.java| 2 -- .../aws2/ddb/localstack/AWS2PutItemRuleIT.java| 2 -- .../aws2/ddb/localstack/AWS2UpdateItemRuleIT.java | 2 -- .../camel/component/aws2/s3/AWS2S3Producer.java | 4 ++-- .../component/aws2/ses/SesComponentSpringTest.java| 4 .../component/azure/storage/blob/BlobComponent.java | 5 - .../blob/operations/BlobOperationResponse.java| 4 .../storage/blob/integration/BlobOperationsIT.java| 3 --- .../azure/storage/datalake/DataLakeComponent.java | 4 .../azure/storage/datalake/DataLakeProducer.java | 9 ++--- .../datalake/client/DataLakeClientFactory.java| 4 .../client/DataLakeFileSystemClientWrapper.java | 3 --- .../datalake/operations/DataLakeFileOperations.java | 3 --- .../datalake/component/DataLakeComponentTest.java | 4 .../datalake/integration/DataLakeConsumerIT.java | 3 --- .../datalake/integration/DataLakeProducerIT.java | 4 .../queue/operations/QueueOperationResponse.java | 8 .../dataformat/barcode/BarcodeUnmarshalTest.java | 4 .../org/apache/camel/component/bean/BeanInfo.java | 8 .../org/apache/camel/component/bean/RegistryBean.java | 4 ++-- .../org/apache/camel/component/box/BoxEndpoint.java | 4 ++-- .../component/box/internal/BoxConnectionHelper.java | 4 .../cassandra/CassandraAggregationRepository.java | 2 +- .../aggregate/cassandra/CassandraCamelCodec.java | 2 +- .../file/watch/FileWatchComponentTestBase.java| 6 -- .../sftp/integration/SftpKeyPairRSAConsumeIT.java | 19 --- .../camel/component/hdfs/HdfsNormalFileHandler.java | 8 .../apache/camel/component/hdfs/HdfsTestSupport.java | 2 -- .../component/jms/JmsDefaultTaskExecutorTypeTest.java | 4 ++-- ...sTransactedOnExceptionRollbackOnExceptionTest.java | 2 ++ .../producer/support/KeyValueHolderIterator.java | 8 .../apache/camel/component/metrics/TimerProducer.java | 4 ++-- .../camel/component/metrics/TimerProducerTest.java| 4 ++-- .../camel/component/rabbitmq/RabbitMQProducer.java| 6 +++--- .../component/rabbitmq/RabbitMQComponentTest.java | 1 - .../test/infra/services/RabbitMQServiceFactory.java | 4 .../jdbc/ClusteredJdbcAggregationRepository.java | 2 +- .../aggregate/jdbc/JdbcAggregationRepository.java | 5 ++--- .../processor/aggregate/jdbc/JdbcCamelCodec.java | 6 +++--- .../AbstractClusteredJdbcAggregationTestSupport.java | 4 .../service/TelegramServiceRestBotAPIAdapter.java | 1 - .../group/internal/ZooKeeperMultiGroup.java | 3 --- .../integration/ZooKeeperServiceCallRouteIT.java | 1 - .../zookeeper/integration/ZooKeeperITSupport.java | 2 +- .../operations/integration/CreateOperationIT.java | 2 +- 54 files changed, 49 insertions(+), 191 deletions(-) diff --git a/components/camel-activemq/src/test/java/org/apache/camel/component/activemq/converter/ConsumerBean.java b/components/camel-activemq/src/test/java/org/apache/camel/component/activemq/converter/ConsumerBean.java index 329178d..24df76e 100644 --- a/components/camel-activemq/src/test/java/org/apache/camel/component/activemq/converter/ConsumerBean.java +++ b/components/camel-activemq/src/test/java/org/apache/camel/component/activemq/converter/ConsumerBean.java @@ -94,22 +94,10 @@ public class ConsumerBean implements MessageListener { } } -public boolean isVerbose() { -return this.verbose; -} - -public void setVerbose(boolean verbose) { -this.verbose = verbose; -} - public List getMessages() { return this.messages; } -protected boolean hasReceivedMessage() { -return this.messages.isEmpty(); -
[GitHub] [camel] davsclaus opened a new pull request #7018: Rest to
davsclaus opened a new pull request #7018: URL: https://github.com/apache/camel/pull/7018 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@camel.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[GitHub] [camel] davsclaus merged pull request #7016: (chores) components: removed unused code
davsclaus merged pull request #7016: URL: https://github.com/apache/camel/pull/7016 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@camel.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[GitHub] [camel-quarkus] JiriOndrusek opened a new issue #3567: Improve camel-quarkus-bean-validator test coverage
JiriOndrusek opened a new issue #3567: URL: https://github.com/apache/camel-quarkus/issues/3567 Add tests for: - validation based on xml configuration - groups - tests using various configuration options to detect possible native configuration requirements: - ConstraintValidatorFactory - MessageInterpolator - TraversableResolver - ValidationProviderResolver - validationFactory -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@camel.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[camel-examples] branch main updated: Regen
This is an automated email from the ASF dual-hosted git repository. davsclaus pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel-examples.git The following commit(s) were added to refs/heads/main by this push: new c385ceb Regen c385ceb is described below commit c385ceb83b8c41460bf575f53855c3f1d167e7c6 Author: Claus Ibsen AuthorDate: Tue Feb 22 16:03:21 2022 +0100 Regen --- examples/README.adoc | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/examples/README.adoc b/examples/README.adoc index 35a2a9a..a35c815 100644 --- a/examples/README.adoc +++ b/examples/README.adoc @@ -11,7 +11,7 @@ View the individual example READMEs for details. == Examples // examples: START -Number of Examples: 84 (0 deprecated) +Number of Examples: 85 (0 deprecated) [width="100%",cols="4,2,4",options="header"] |=== @@ -51,6 +51,8 @@ Number of Examples: 84 (0 deprecated) | link:kamelet-main/README.adoc[Kamelet Main] (kamelet-main) | Beginner | How to easily run Kamelets +| link:kamelet-sql/README.adoc[Kamelet Sql] (kamelet-sql) | Beginner | Consume from PostgreSQL database connected through an AWS Secrets Manager Secret + | link:main/README.adoc[Main] (main) | Beginner | An example for showing standalone Camel | link:main-endpointdsl/README.adoc[Main Endpointdsl] (main-endpointdsl) | Beginner | An example for showing standalone Camel with Endpoint DSL @@ -86,7 +88,7 @@ Number of Examples: 84 (0 deprecated) | link:routetemplate/README.adoc[Routetemplate] (routetemplate) | Beginner | How to use route templates (parameterized routes) -| link:routetemplate-xml/README.adoc[Routetemplate XML] (routetemplate-xml) | Beginner | How to use route templates (parameterized routes) in XML +| link:routetemplate-xml/README.adoc[Routetemplate Xml] (routetemplate-xml) | Beginner | How to use route templates (parameterized routes) in XML | link:servlet-tomcat/README.adoc[Servlet Tomcat] (servlet-tomcat) | Beginner | An example using Camel Servlet with Apache Tomcat
[camel] branch rest-to updated: CAMEL-17675: camel-core - Rest DSL remove support for using inlined routes.
This is an automated email from the ASF dual-hosted git repository. davsclaus pushed a commit to branch rest-to in repository https://gitbox.apache.org/repos/asf/camel.git The following commit(s) were added to refs/heads/rest-to by this push: new a066cc8 CAMEL-17675: camel-core - Rest DSL remove support for using inlined routes. a066cc8 is described below commit a066cc8b77a0bfd99aa900f302c2374086ab7868 Author: Claus Ibsen AuthorDate: Tue Feb 22 15:59:16 2022 +0100 CAMEL-17675: camel-core - Rest DSL remove support for using inlined routes. --- .../camel/component/jetty/rest/RestJettyGetToDTest.java | 2 +- .../camel/component/jetty/rest/RestJettyBasicAuthTest.xml | 13 - .../netty/http/rest/RestProducerOutTypeBindingTest.java | 2 +- .../undertow/rest/RestUndertowHttpPojoTypeTest.java | 4 ++-- 4 files changed, 12 insertions(+), 9 deletions(-) diff --git a/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/rest/RestJettyGetToDTest.java b/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/rest/RestJettyGetToDTest.java index 2659b0c..684db45 100644 --- a/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/rest/RestJettyGetToDTest.java +++ b/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/rest/RestJettyGetToDTest.java @@ -48,7 +48,7 @@ public class RestJettyGetToDTest extends BaseJettyTest { // use the rest DSL to define the rest services rest("/users/").get("{id}/basic").to("direct:basic"); -from("direct:basic").to("seda:${header.id}"); +from("direct:basic").toD("seda:${header.id}"); from("seda:123").to("mock:input").process(new Processor() { public void process(Exchange exchange) throws Exception { String id = exchange.getIn().getHeader("id", String.class); diff --git a/components/camel-jetty/src/test/resources/org/apache/camel/component/jetty/rest/RestJettyBasicAuthTest.xml b/components/camel-jetty/src/test/resources/org/apache/camel/component/jetty/rest/RestJettyBasicAuthTest.xml index 012f30c..8bad9ac 100644 --- a/components/camel-jetty/src/test/resources/org/apache/camel/component/jetty/rest/RestJettyBasicAuthTest.xml +++ b/components/camel-jetty/src/test/resources/org/apache/camel/component/jetty/rest/RestJettyBasicAuthTest.xml @@ -67,13 +67,16 @@ - - -pong - - + + + + +pong + + + diff --git a/components/camel-netty-http/src/test/java/org/apache/camel/component/netty/http/rest/RestProducerOutTypeBindingTest.java b/components/camel-netty-http/src/test/java/org/apache/camel/component/netty/http/rest/RestProducerOutTypeBindingTest.java index 2ad190a..c781bf7 100644 --- a/components/camel-netty-http/src/test/java/org/apache/camel/component/netty/http/rest/RestProducerOutTypeBindingTest.java +++ b/components/camel-netty-http/src/test/java/org/apache/camel/component/netty/http/rest/RestProducerOutTypeBindingTest.java @@ -93,7 +93,7 @@ public class RestProducerOutTypeBindingTest extends BaseNettyTest { from("direct:r1") .log("Got req1") .setBody(constant(new Resp1("1"))); -from("direct:r1") +from("direct:r2") .log("Got req2") .setBody(constant(new Resp2(null, "2"))) .end(); diff --git a/components/camel-undertow/src/test/java/org/apache/camel/component/undertow/rest/RestUndertowHttpPojoTypeTest.java b/components/camel-undertow/src/test/java/org/apache/camel/component/undertow/rest/RestUndertowHttpPojoTypeTest.java index dee8d36..5ebf326 100644 --- a/components/camel-undertow/src/test/java/org/apache/camel/component/undertow/rest/RestUndertowHttpPojoTypeTest.java +++ b/components/camel-undertow/src/test/java/org/apache/camel/component/undertow/rest/RestUndertowHttpPojoTypeTest.java @@ -264,8 +264,8 @@ public class RestUndertowHttpPojoTypeTest extends BaseUndertowTest { // use the rest DSL to define the rest services rest() - .get("/users").outType(UserPojo[].class).to("direct:users") - .get("/users/list").outType(UserPojo[].class).to("direct:list") + .get("/users").id("getUsers").outType(UserPojo[].class).to("direct:users") + .get("/users/list").id("getUsersList").outType(UserPojo[].class).to("direct:list") .get("/users/{id}").id("getUser").outType(UserPojo.class).to("direct:id") .put("/users/{id}").id("putUser").type(UserPojo.class).to("mock:putUser") .put("/users").id("putUsers").type(UserPojo[].class).to("mock:putUsers")
[GitHub] [camel-examples] orpiske commented on pull request #80: Use camel-test-infra instead of testcontainers directly
orpiske commented on pull request #80: URL: https://github.com/apache/camel-examples/pull/80#issuecomment-1047876528 > @orpiske FYI while working on this PR, I've noticed [a potential small typo in CassandraLocalContainerService](https://github.com/apache/camel/blob/main/test-infra/camel-test-infra-cassandra/src/test/java/org/apache/camel/test/infra/cassandra/services/CassandraLocalContainerService.java#L39), indeed the name of the image is hard coded while I guess it is not what is expected Nice catch. That's a bug. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@camel.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[GitHub] [camel-examples] essobedo commented on pull request #80: Use camel-test-infra instead of testcontainers directly
essobedo commented on pull request #80: URL: https://github.com/apache/camel-examples/pull/80#issuecomment-1047875065 @orpiske FYI while working on this PR, I've noticed [a potential small typo in CassandraLocalContainerService](https://github.com/apache/camel/blob/main/test-infra/camel-test-infra-cassandra/src/test/java/org/apache/camel/test/infra/cassandra/services/CassandraLocalContainerService.java#L39), indeed the name of the image is hard coded while I guess it is not what is expected -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@camel.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[GitHub] [camel-k] astefanutti opened a new issue #1238: Multi-architecture support
astefanutti opened a new issue #1238: URL: https://github.com/apache/camel-k/issues/1238 At the moment, Camel K binaries and images are available for amd64 architecture only. Following up on #1215, it would be useful to publish multi-architecture images, so that Camel K can be used on a wider range of architectures. Based on a recent PoC, I've identify the following tasks: - Camel K: - [ ] Use a multi-architecture default Java base image - [ ] Build and publish multi-architecture images: BuildKit could be a good candidate to ease the task of building images for all target architectures, as it automatically picks the right base image and creates the multi-architecture manifest - [ ] The https://github.com/scylladb/go-set dependency doesn't compile on 32 bits architectures - Kaniko: - [ ] Multi-architecture based image support: GoogleContainerTools/kaniko#646, GoogleContainerTools/kaniko#980 - [ ] Multi-architecture _warmer_ and _executor_ images -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@camel.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[camel-kamelets] branch regen_bot updated (4e250cb -> 8e82428)
This is an automated email from the ASF dual-hosted git repository. github-bot pushed a change to branch regen_bot in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git. omit 4e250cb Regen for commit 68bfcc001650eeb02788b3d247d100e050c9976e add 8e82428 Regen for commit 68bfcc001650eeb02788b3d247d100e050c9976e This update added new revisions after undoing existing revisions. That is to say, some revisions that were in the old version of the branch are not in the new version. This situation occurs when a user --force pushes a change and generates a repository containing something like this: * -- * -- B -- O -- O -- O (4e250cb) \ N -- N -- N refs/heads/regen_bot (8e82428) You should already have received notification emails for all of the O revisions, and so the following emails describe only the N revisions from the common base, B. Any revisions marked "omit" are not gone; other references still refer to them. Any revisions marked "discard" are gone forever. No new revisions were added by this update. Summary of changes:
[GitHub] [camel-kamelets] oscerd merged pull request #788: Generated sources regen
oscerd merged pull request #788: URL: https://github.com/apache/camel-kamelets/pull/788 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@camel.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[GitHub] [camel-kamelets] github-actions[bot] opened a new pull request #788: Generated sources regen
github-actions[bot] opened a new pull request #788: URL: https://github.com/apache/camel-kamelets/pull/788 Regen bot :robot: found some uncommited changes after running build on :camel: kamelets main. Please do not delete `regen_bot` branch after merge/rebase. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@camel.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[camel-kamelets] branch main updated: Regen for commit 68bfcc001650eeb02788b3d247d100e050c9976e
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-kamelets.git The following commit(s) were added to refs/heads/main by this push: new 8e82428 Regen for commit 68bfcc001650eeb02788b3d247d100e050c9976e 8e82428 is described below commit 8e8242819f720329a1422d0fbed4e1b8ba4eb245 Author: oscerd AuthorDate: Tue Feb 22 14:29:11 2022 + Regen for commit 68bfcc001650eeb02788b3d247d100e050c9976e Signed-off-by: GitHub --- .../src/main/resources/kamelets/salesforce-source.kamelet.yaml | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/library/camel-kamelets/src/main/resources/kamelets/salesforce-source.kamelet.yaml b/library/camel-kamelets/src/main/resources/kamelets/salesforce-source.kamelet.yaml index e4b37ee..3d20d4c 100644 --- a/library/camel-kamelets/src/main/resources/kamelets/salesforce-source.kamelet.yaml +++ b/library/camel-kamelets/src/main/resources/kamelets/salesforce-source.kamelet.yaml @@ -99,13 +99,14 @@ spec: beans: - name: local-salesforce type: "#class:org.apache.camel.component.salesforce.SalesforceComponent" +parameters: + clientId: "{{clientId}}" + clientSecret: "{{clientSecret}}" + userName: "{{userName}}" + password: "{{password}}" from: uri: "{{local-salesforce}}:{{topicName}}" parameters: -clientId: "{{clientId}}" -clientSecret: "{{clientSecret}}" -userName: "{{userName}}" -password: "{{password}}" notifyForFields: "{{notifyForFields}}" updateTopic: "true" notifyForOperationCreate: "true"
[camel-kamelets] branch regen_bot updated (04e2487 -> 4e250cb)
This is an automated email from the ASF dual-hosted git repository. github-bot pushed a change to branch regen_bot in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git. from 04e2487 Oracle Database Kamelets: Docs add 68bfcc0 salesforce: move credentials to SalesforceComponent bean add 4e250cb Regen for commit 68bfcc001650eeb02788b3d247d100e050c9976e No new revisions were added by this update. Summary of changes: kamelets/salesforce-source.kamelet.yaml | 9 + .../src/main/resources/kamelets/salesforce-source.kamelet.yaml | 9 + 2 files changed, 10 insertions(+), 8 deletions(-)
[GitHub] [camel-kamelets] oscerd merged pull request #787: salesforce: move credentials to SalesforceComponent bean
oscerd merged pull request #787: URL: https://github.com/apache/camel-kamelets/pull/787 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@camel.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[camel-kamelets] branch main updated: salesforce: move credentials to SalesforceComponent bean
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-kamelets.git The following commit(s) were added to refs/heads/main by this push: new 68bfcc0 salesforce: move credentials to SalesforceComponent bean 68bfcc0 is described below commit 68bfcc001650eeb02788b3d247d100e050c9976e Author: Luca Burgazzoli AuthorDate: Tue Feb 22 14:30:53 2022 +0100 salesforce: move credentials to SalesforceComponent bean --- kamelets/salesforce-source.kamelet.yaml | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/kamelets/salesforce-source.kamelet.yaml b/kamelets/salesforce-source.kamelet.yaml index e4b37ee..3d20d4c 100644 --- a/kamelets/salesforce-source.kamelet.yaml +++ b/kamelets/salesforce-source.kamelet.yaml @@ -99,13 +99,14 @@ spec: beans: - name: local-salesforce type: "#class:org.apache.camel.component.salesforce.SalesforceComponent" +parameters: + clientId: "{{clientId}}" + clientSecret: "{{clientSecret}}" + userName: "{{userName}}" + password: "{{password}}" from: uri: "{{local-salesforce}}:{{topicName}}" parameters: -clientId: "{{clientId}}" -clientSecret: "{{clientSecret}}" -userName: "{{userName}}" -password: "{{password}}" notifyForFields: "{{notifyForFields}}" updateTopic: "true" notifyForOperationCreate: "true"
[camel] branch regen_bot updated (2276c4b -> b716549)
This is an automated email from the ASF dual-hosted git repository. github-bot pushed a change to branch regen_bot in repository https://gitbox.apache.org/repos/asf/camel.git. from 2276c4b Regen for commit 13e5d1ec69e13372fb12c4da9a61bc51244546ef add 8c6d013 CAMEL-17691 - Camel Google Secret Manager: Add more operations - docs add bdaf651 CAMEL-17691 - Camel Google Secret Manager: Add more operations - docs add b716549 CAMEL-17691 - Camel Google Secret Manager: Add more operations - docs No new revisions were added by this update. Summary of changes: .../main/docs/google-secret-manager-component.adoc | 46 ++ 1 file changed, 46 insertions(+)
[GitHub] [camel-k] oscerd opened a new issue #3031: Camel Pluggable Properties Source Feature: How to provide credentials for different cloud providers
oscerd opened a new issue #3031: URL: https://github.com/apache/camel-k/issues/3031 In Camel 3.16.0, we'll bring the ability of retrieving secrets directly from cloud providers secret manager/vault services (AWS Secrets Manager/GCP Secrets Manager/Azure Key Vault and Hashicorp Vault). As reported by @astefanutti _In the case where AWS Secrets Manager in used in EKS, which I assume would be most of the cases for Camel K (is it really?), it seems there is a mechanism to auto-inject the credentials into Pods using AWS Secrets and Configuration Provider (ASCP): https://docs.aws.amazon.com/secretsmanager/latest/userguide/integrating_csi_driver.html Generally, it seems that for any of the supported vault providers, the solution would be based on the Secrets Store CSI driver: https://secrets-store-csi-driver.sigs.k8s.io/_ This issue is a placeholder, to discuss how to provide the credentials and what would be the best strategy. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@camel.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[GitHub] [camel-k] astefanutti edited a comment on issue #3027: Expose Camel-related metrics (Prometheus)
astefanutti edited a comment on issue #3027: URL: https://github.com/apache/camel-k/issues/3027#issuecomment-1047801601 @k0pper I don't think the `prometheus-community/prometheus` Helm chart installs the Prometheus operator. It only installs a Prometheus server. Camel K documentation assumes the Prometheus operator is installed, as it's responsible to update the Prometheus scrapping configuration based on the `PodMonitor` resource that's created for the integration. It may be possible to monitor Integrations without the Prometheus operator, but in that case, you have to upgrade the Prometheus configuration manually. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@camel.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[GitHub] [camel-k] astefanutti commented on issue #3027: Expose Camel-related metrics (Prometheus)
astefanutti commented on issue #3027: URL: https://github.com/apache/camel-k/issues/3027#issuecomment-1047801601 @k0pper I don't think the `prometheus-community/prometheus` installs the operator. It only installs a Prometheus server. Camel K documentation assumes the Prometheus operator is installed, as it's responsible to update the Prometheus scrapping configuration based on the `PodMonitor` resource that's created for the integration. It may be possible to monitor Integrations without the Prometheus operator, but in that case, you have to upgrade the Prometheus configuration manually. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@camel.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[GitHub] [camel-quarkus] oscerd opened a new issue #3566: Create Camel Google Secret Manager Extension
oscerd opened a new issue #3566: URL: https://github.com/apache/camel-quarkus/issues/3566 This will be available in 3.16.0 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@camel.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[camel] 03/03: CAMEL-17691 - Camel Google Secret Manager: Add more operations - docs
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 commit b716549c5cff407064c3b40502535c0b648d46c4 Author: Andrea Cosentino AuthorDate: Tue Feb 22 14:17:47 2022 +0100 CAMEL-17691 - Camel Google Secret Manager: Add more operations - docs --- .../main/docs/google-secret-manager-component.adoc | 31 +- 1 file changed, 30 insertions(+), 1 deletion(-) diff --git a/components/camel-google/camel-google-secrets-manager/src/main/docs/google-secret-manager-component.adoc b/components/camel-google/camel-google-secrets-manager/src/main/docs/google-secret-manager-component.adoc index 2af2a08..73dbc05 100644 --- a/components/camel-google/camel-google-secrets-manager/src/main/docs/google-secret-manager-component.adoc +++ b/components/camel-google/camel-google-secrets-manager/src/main/docs/google-secret-manager-component.adoc @@ -109,6 +109,35 @@ from("direct:start") .log("body:${body}") -This will create a secret named "test" with a value of "hello". +- getSecretVersion: This operation will retrieve a secret value with latest version in the Secret Manager service + +[source,java] + +from("direct:start") +.setHeader("GoogleSecretManagerConstants.SECRET_ID, constant("test")) + .to("google-functions://myProject?serviceAccountKey=/home/user/Downloads/my-key.json&operation=getSecretVersion") +.log("body:${body}") + + +This will log the value of the secret "test". + +- deleteSecret: This operation will delete a secret + +[source,java] + +from("direct:start") +.setHeader("GoogleSecretManagerConstants.SECRET_ID, constant("test")) + .to("google-functions://myProject?serviceAccountKey=/home/user/Downloads/my-key.json&operation=deleteSecret") + + +- listSecrets: This operation will return the secrets list for the project myProject + +[source,java] + +from("direct:start") +.setHeader("GoogleSecretManagerConstants.SECRET_ID, constant("test")) + .to("google-functions://myProject?serviceAccountKey=/home/user/Downloads/my-key.json&operation=listSecrets") + + include::spring-boot:partial$starter.adoc[]
[camel] 02/03: CAMEL-17691 - Camel Google Secret Manager: Add more operations - docs
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 commit bdaf651672ff72cb4a02012855e0d26fb6bcb7eb Author: Andrea Cosentino AuthorDate: Tue Feb 22 14:13:32 2022 +0100 CAMEL-17691 - Camel Google Secret Manager: Add more operations - docs --- .../src/main/docs/google-secret-manager-component.adoc | 14 ++ 1 file changed, 14 insertions(+) diff --git a/components/camel-google/camel-google-secrets-manager/src/main/docs/google-secret-manager-component.adoc b/components/camel-google/camel-google-secrets-manager/src/main/docs/google-secret-manager-component.adoc index 27b2747..2af2a08 100644 --- a/components/camel-google/camel-google-secrets-manager/src/main/docs/google-secret-manager-component.adoc +++ b/components/camel-google/camel-google-secrets-manager/src/main/docs/google-secret-manager-component.adoc @@ -96,5 +96,19 @@ Google Functions component provides the following operation on the producer side If you don't specify an operation by default the producer will use the `createSecret` operation. +=== Google Secret Manager Producer Operation examples + +- createSecret: This operation will create a secret in the Secret Manager service + +[source,java] + +from("direct:start") +.setHeader("GoogleSecretManagerConstants.SECRET_ID, constant("test")) +.setBody(constant("hello")) + .to("google-functions://myProject?serviceAccountKey=/home/user/Downloads/my-key.json&operation=createSecret") +.log("body:${body}") + + +This will create a secret named "test" with a value of "hello". include::spring-boot:partial$starter.adoc[]
[camel] 01/03: CAMEL-17691 - Camel Google Secret Manager: Add more operations - docs
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 commit 8c6d013eb12b88126e24f6254afc278cee352658 Author: Andrea Cosentino AuthorDate: Tue Feb 22 12:32:12 2022 +0100 CAMEL-17691 - Camel Google Secret Manager: Add more operations - docs --- .../src/main/docs/google-secret-manager-component.adoc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/components/camel-google/camel-google-secrets-manager/src/main/docs/google-secret-manager-component.adoc b/components/camel-google/camel-google-secrets-manager/src/main/docs/google-secret-manager-component.adoc index ba6c91e..27b2747 100644 --- a/components/camel-google/camel-google-secrets-manager/src/main/docs/google-secret-manager-component.adoc +++ b/components/camel-google/camel-google-secrets-manager/src/main/docs/google-secret-manager-component.adoc @@ -90,6 +90,9 @@ include::partial$component-endpoint-options.adoc[] Google Functions component provides the following operation on the producer side: - createSecret +- getSecretVersion +- deleteSecret +- listSecrets If you don't specify an operation by default the producer will use the `createSecret` operation.
[camel] branch main updated (2276c4b -> b716549)
This is an automated email from the ASF dual-hosted git repository. acosentino pushed a change to branch main in repository https://gitbox.apache.org/repos/asf/camel.git. from 2276c4b Regen for commit 13e5d1ec69e13372fb12c4da9a61bc51244546ef new 8c6d013 CAMEL-17691 - Camel Google Secret Manager: Add more operations - docs new bdaf651 CAMEL-17691 - Camel Google Secret Manager: Add more operations - docs new b716549 CAMEL-17691 - Camel Google Secret Manager: Add more operations - docs The 3 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. Summary of changes: .../main/docs/google-secret-manager-component.adoc | 46 ++ 1 file changed, 46 insertions(+)
[GitHub] [camel-k] oscerd commented on pull request #3020: Adds OLM channels to bundle metadata
oscerd commented on pull request #3020: URL: https://github.com/apache/camel-k/pull/3020#issuecomment-1047784807 I'm getting old. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@camel.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[GitHub] [camel-k] astefanutti commented on pull request #3020: Adds OLM channels to bundle metadata
astefanutti commented on pull request #3020: URL: https://github.com/apache/camel-k/pull/3020#issuecomment-1047784053 > LGTM. Sorry for not being faster as Antonin Can't believe that happened :) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@camel.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org