This is an automated email from the ASF dual-hosted git repository. JiriOndrusek pushed a commit to branch camel-main in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git
commit 24a450110fee4f22b93445bf5e134733accebd80 Author: jiriOndrusek-agent <[email protected]> AuthorDate: Wed Nov 18 10:04:11 2026 +0000 Fix camel-main kamelet test for the YAML DSL Pipe removal CAMEL-27002 removed kind: Pipe from the YAML DSL: replace the kamelet test Pipe with an equivalent YAML route. Co-Authored-By: Claude Opus 5.5 <[email protected]> --- .../component/kamelet/it/KameletResource.java | 4 ++-- .../src/main/resources/application.properties | 4 ++-- .../greeting-route.yaml} | 21 +++++++-------------- .../quarkus/component/kamelet/it/KameletTest.java | 6 +++--- 4 files changed, 14 insertions(+), 21 deletions(-) diff --git a/integration-tests/kamelet/src/main/java/org/apache/camel/quarkus/component/kamelet/it/KameletResource.java b/integration-tests/kamelet/src/main/java/org/apache/camel/quarkus/component/kamelet/it/KameletResource.java index ab8f2c50601..c805a7092da 100644 --- a/integration-tests/kamelet/src/main/java/org/apache/camel/quarkus/component/kamelet/it/KameletResource.java +++ b/integration-tests/kamelet/src/main/java/org/apache/camel/quarkus/component/kamelet/it/KameletResource.java @@ -109,10 +109,10 @@ public class KameletResource { return consumerTemplate.receiveBody("seda:greeting", 10000, String.class); } - @Path("/pipe") + @Path("/yaml-route") @GET @Produces(MediaType.TEXT_PLAIN) - public String pipe() { + public String yamlRoute() { return consumerTemplate.receiveBody("seda:greetingFromProperty", 10000, String.class); } diff --git a/integration-tests/kamelet/src/main/resources/application.properties b/integration-tests/kamelet/src/main/resources/application.properties index f79f069ec62..b871fe8eaf6 100644 --- a/integration-tests/kamelet/src/main/resources/application.properties +++ b/integration-tests/kamelet/src/main/resources/application.properties @@ -16,11 +16,11 @@ ## --------------------------------------------------------------------------- camel.component.kamelet.location=classpath:kamelets,classpath:org/apache/camel/quarkus/custom/kamelet camel.kamelet.setBodyFromProperties.bodyValueFromProperty=Camel Quarkus Kamelet Property -camel.main.routes-include-pattern=pipes/greeting-pipe.yaml +camel.main.routes-include-pattern=routes/greeting-route.yaml # resolve-pojo-schema-action is embedded from the camel-kamelets catalog on purpose: its # #class: template bean is org.apache.camel.component.kamelet.utils.format.schema # .DelegatingSchemaResolver, which the deployment would register reflectively - the #9153 # regression guard: without the DelegatingSchemaResolver handling in KameletProcessor the # native-image analysis fails parsing it, camel-jackson being absent here quarkus.camel.kamelet.identifiers = injector,logger,greeting,greeting-from-property,custom,timer-source,file-source-test,resolve-pojo-schema-action -quarkus.native.resources.includes=kamelets-runtime/*.xml,pipes/*.yaml \ No newline at end of file +quarkus.native.resources.includes=kamelets-runtime/*.xml,routes/*.yaml \ No newline at end of file diff --git a/integration-tests/kamelet/src/main/resources/pipes/greeting-pipe.yaml b/integration-tests/kamelet/src/main/resources/routes/greeting-route.yaml similarity index 73% rename from integration-tests/kamelet/src/main/resources/pipes/greeting-pipe.yaml rename to integration-tests/kamelet/src/main/resources/routes/greeting-route.yaml index acb0cabbbc5..3642e7da92b 100644 --- a/integration-tests/kamelet/src/main/resources/pipes/greeting-pipe.yaml +++ b/integration-tests/kamelet/src/main/resources/routes/greeting-route.yaml @@ -15,17 +15,10 @@ # limitations under the License. # -apiVersion: camel.apache.org/v1 -kind: Pipe -metadata: - name: greeting-pipe -spec: - source: - ref: - kind: Kamelet - apiVersion: camel.apache.org/v1 - name: greeting-from-property - properties: - greeting: "Hello Pipe" - sink: - uri: "seda:greetingFromProperty" + +- from: + uri: "kamelet:greeting-from-property" + parameters: + greeting: "Hello YAML route" + steps: + - to: "seda:greetingFromProperty" diff --git a/integration-tests/kamelet/src/test/java/org/apache/camel/quarkus/component/kamelet/it/KameletTest.java b/integration-tests/kamelet/src/test/java/org/apache/camel/quarkus/component/kamelet/it/KameletTest.java index 04332a12a7a..64636ca240a 100644 --- a/integration-tests/kamelet/src/test/java/org/apache/camel/quarkus/component/kamelet/it/KameletTest.java +++ b/integration-tests/kamelet/src/test/java/org/apache/camel/quarkus/component/kamelet/it/KameletTest.java @@ -126,11 +126,11 @@ class KameletTest { } @Test - public void pipe() { - RestAssured.get("/kamelet/pipe") + public void kameletInYamlRoute() { + RestAssured.get("/kamelet/yaml-route") .then() .statusCode(200) - .body(is("Hello Pipe")); + .body(is("Hello YAML route")); } @Test
