You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by kl...@apache.org on 2023/09/16 21:27:36 UTC

[camel-spring-boot] branch CAMEL-19863 created (now 377ea12d743)

This is an automated email from the ASF dual-hosted git repository.

klease pushed a change to branch CAMEL-19863
in repository https://gitbox.apache.org/repos/asf/camel-spring-boot.git


      at 377ea12d743 CAMEL-19863: fix Kamelet tests using timer Add includeMetadata=true to the timer endpoint.

This branch includes the following new commits:

     new 377ea12d743 CAMEL-19863: fix Kamelet tests using timer Add includeMetadata=true to the timer endpoint.

The 1 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.



[camel-spring-boot] 01/01: CAMEL-19863: fix Kamelet tests using timer Add includeMetadata=true to the timer endpoint.

Posted by kl...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

klease pushed a commit to branch CAMEL-19863
in repository https://gitbox.apache.org/repos/asf/camel-spring-boot.git

commit 377ea12d743f50e0bd0f996f6b994e713290da48
Author: klease <kl...@cegetel.net>
AuthorDate: Sat Sep 16 23:26:06 2023 +0200

    CAMEL-19863: fix Kamelet tests using timer
    Add includeMetadata=true to the timer endpoint.
---
 .../camel/component/kamelet/springboot/KameletBasicTest.java       | 5 ++---
 .../camel/component/kamelet/springboot/KameletConsumeOnlyTest.java | 7 ++++---
 .../component/kamelet/springboot/KameletConsumerUoWIssueTest.java  | 6 +++---
 3 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/components-starter/camel-kamelet-starter/src/test/java/org/apache/camel/component/kamelet/springboot/KameletBasicTest.java b/components-starter/camel-kamelet-starter/src/test/java/org/apache/camel/component/kamelet/springboot/KameletBasicTest.java
index 09f50f8dc6a..766f971b0d8 100644
--- a/components-starter/camel-kamelet-starter/src/test/java/org/apache/camel/component/kamelet/springboot/KameletBasicTest.java
+++ b/components-starter/camel-kamelet-starter/src/test/java/org/apache/camel/component/kamelet/springboot/KameletBasicTest.java
@@ -65,7 +65,6 @@ public class KameletBasicTest {
                 fluentTemplate.toF("kamelet:setBody/test?bodyValue=%s", body).request(String.class)).isEqualTo(body);
     }
 
-    @Disabled("https://issues.apache.org/jira/browse/CAMEL-19863")
     @Test
     public void canConsumeFromKamelet() {
         assertThat(
@@ -107,7 +106,7 @@ public class KameletBasicTest {
                         .setBody().constant("{{bodyValue}}");
 
                 routeTemplate("tick")
-                        .from("timer:{{routeId}}?repeatCount=1&delay=-1")
+                        .from("timer:{{routeId}}?repeatCount=1&delay=-1&includeMetadata=true")
                         .setBody().exchangeProperty(Exchange.TIMER_COUNTER)
                         .to("kamelet:sink");
 
@@ -116,4 +115,4 @@ public class KameletBasicTest {
             }
         };
     }
-}
\ No newline at end of file
+}
diff --git a/components-starter/camel-kamelet-starter/src/test/java/org/apache/camel/component/kamelet/springboot/KameletConsumeOnlyTest.java b/components-starter/camel-kamelet-starter/src/test/java/org/apache/camel/component/kamelet/springboot/KameletConsumeOnlyTest.java
index 55859c6646c..7d413b1d178 100644
--- a/components-starter/camel-kamelet-starter/src/test/java/org/apache/camel/component/kamelet/springboot/KameletConsumeOnlyTest.java
+++ b/components-starter/camel-kamelet-starter/src/test/java/org/apache/camel/component/kamelet/springboot/KameletConsumeOnlyTest.java
@@ -41,7 +41,7 @@ import org.apache.camel.spring.boot.CamelAutoConfiguration;
         KameletConsumeOnlyTest.class,
     }
 )
-@Disabled("https://issues.apache.org/jira/browse/CAMEL-19863")
+
 public class KameletConsumeOnlyTest {
 
     @Autowired
@@ -65,10 +65,11 @@ public class KameletConsumeOnlyTest {
             @Override
             public void configure() {
                 routeTemplate("tick")
-                        .from("timer:{{routeId}}?repeatCount=1&delay=-1")
+                        .from("timer:{{routeId}}?repeatCount=1&delay=-1&includeMetadata=true")
                         .setBody().exchangeProperty(Exchange.TIMER_COUNTER)
+                        .log("Body is ${body}")
                         .to("kamelet:sink");
             }
         };
     }
-}
\ No newline at end of file
+}
diff --git a/components-starter/camel-kamelet-starter/src/test/java/org/apache/camel/component/kamelet/springboot/KameletConsumerUoWIssueTest.java b/components-starter/camel-kamelet-starter/src/test/java/org/apache/camel/component/kamelet/springboot/KameletConsumerUoWIssueTest.java
index 0bde89ba7af..d62090b508b 100644
--- a/components-starter/camel-kamelet-starter/src/test/java/org/apache/camel/component/kamelet/springboot/KameletConsumerUoWIssueTest.java
+++ b/components-starter/camel-kamelet-starter/src/test/java/org/apache/camel/component/kamelet/springboot/KameletConsumerUoWIssueTest.java
@@ -44,7 +44,7 @@ import org.apache.camel.spring.boot.CamelAutoConfiguration;
         KameletConsumerUoWIssueTest.class,
     }
 )
-@Disabled("https://issues.apache.org/jira/browse/CAMEL-19863")
+
 public class KameletConsumerUoWIssueTest {
 
     @Autowired
@@ -77,7 +77,7 @@ public class KameletConsumerUoWIssueTest {
             @Override
             public void configure() {
                 routeTemplate("tick")
-                        .from("timer:tick?repeatCount=1&delay=-1")
+                        .from("timer:tick?repeatCount=1&delay=-1&includeMetadata=true")
                         .setBody().exchangeProperty(Exchange.TIMER_COUNTER)
                         .process(new Processor() {
                             @Override
@@ -97,4 +97,4 @@ public class KameletConsumerUoWIssueTest {
             }
         };
     }
-}
\ No newline at end of file
+}