You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ji...@apache.org on 2026/06/24 07:29:02 UTC

(camel-quarkus) branch camel-main updated: Fixed kamelet, mail test modules

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


The following commit(s) were added to refs/heads/camel-main by this push:
     new ec7ba38ebd Fixed kamelet, mail test modules
ec7ba38ebd is described below

commit ec7ba38ebd0d2be0770678a0871b497197baf493
Author: Jiri Ondrusek <on...@gmail.com>
AuthorDate: Wed Jun 24 09:27:42 2026 +0200

    Fixed kamelet, mail test modules
    
    - kamelet: Update KameletTest.pipe expected value after CAMEL-23594
      fixed URL-encoding of kamelet properties in YAML DSL
    - mail: Add explicit useHeader* options to SMTP producer routes after
      CAMEL-23747 changed defaults to false for secure-by-default
    
    Co-Authored-By: Claude Opus 4.6 <no...@anthropic.com>
---
 .../org/apache/camel/quarkus/component/kamelet/it/KameletTest.java   | 2 +-
 .../java/org/apache/camel/quarkus/component/mail/CamelRoute.java     | 5 +++--
 2 files changed, 4 insertions(+), 3 deletions(-)

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 7bdafb455b..6ca4af34c3 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
@@ -107,7 +107,7 @@ class KameletTest {
         RestAssured.get("/kamelet/pipe")
                 .then()
                 .statusCode(200)
-                .body(is("Hello+Pipe"));
+                .body(is("Hello Pipe"));
     }
 
     @Test
diff --git a/integration-tests/mail/src/main/java/org/apache/camel/quarkus/component/mail/CamelRoute.java b/integration-tests/mail/src/main/java/org/apache/camel/quarkus/component/mail/CamelRoute.java
index 3b567da063..3c63921e6e 100644
--- a/integration-tests/mail/src/main/java/org/apache/camel/quarkus/component/mail/CamelRoute.java
+++ b/integration-tests/mail/src/main/java/org/apache/camel/quarkus/component/mail/CamelRoute.java
@@ -94,10 +94,11 @@ public class CamelRoute extends RouteBuilder {
                 .handled(false);
 
         from("direct:sendMail")
-                .toF("smtp://%s:%d?username=%s&password=%s", mailHost, smtpPort, USERNAME, PASSWORD);
+                .toF("smtp://%s:%d?username=%s&password=%s&useHeaderSubject=true&useHeaderFrom=true&useHeaderRecipients=true",
+                        mailHost, smtpPort, USERNAME, PASSWORD);
 
         from("direct:sendMailSecured").toF(
-                "smtps://%s:%d?username=%s&password=%s&sslContextParameters=#sslContextParameters&additionalJavaMailProperties=#additionalProperties",
+                "smtps://%s:%d?username=%s&password=%s&sslContextParameters=#sslContextParameters&additionalJavaMailProperties=#additionalProperties&useHeaderSubject=true&useHeaderFrom=true&useHeaderRecipients=true",
                 mailHost, smtpsPort, USERNAME, PASSWORD);
 
         from("direct:mimeMultipartMarshal")