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 8f52472f740 camel-jbang-it: update it (#14715)
8f52472f740 is described below

commit 8f52472f74085988b63eb6bfa6ef73bb57045405
Author: Marco Carletti <mcarl...@redhat.com>
AuthorDate: Wed Jul 3 19:35:04 2024 +0200

    camel-jbang-it: update it (#14715)
---
 .../test/java/org/apache/camel/dsl/jbang/it/DevModeITCase.java    | 2 ++
 .../test/java/org/apache/camel/dsl/jbang/it/RunCommandITCase.java | 8 ++++++--
 2 files changed, 8 insertions(+), 2 deletions(-)

diff --git 
a/dsl/camel-jbang/camel-jbang-it/src/test/java/org/apache/camel/dsl/jbang/it/DevModeITCase.java
 
b/dsl/camel-jbang/camel-jbang-it/src/test/java/org/apache/camel/dsl/jbang/it/DevModeITCase.java
index 4bb852efc2e..b33d5d84244 100644
--- 
a/dsl/camel-jbang/camel-jbang-it/src/test/java/org/apache/camel/dsl/jbang/it/DevModeITCase.java
+++ 
b/dsl/camel-jbang/camel-jbang-it/src/test/java/org/apache/camel/dsl/jbang/it/DevModeITCase.java
@@ -28,6 +28,7 @@ import java.time.Duration;
 import java.util.stream.Collectors;
 
 import org.apache.camel.dsl.jbang.it.support.JBangTestSupport;
+import org.apache.camel.dsl.jbang.it.support.JiraIssue;
 import org.assertj.core.api.Assertions;
 import org.assertj.core.api.SoftAssertions;
 import org.junit.jupiter.api.Test;
@@ -74,6 +75,7 @@ public class DevModeITCase extends JBangTestSupport {
     }
 
     @Test
+    @JiraIssue("CAMEL-20939")
     public void runUsingProfileTest() throws IOException {
         copyResourceInDataFolder(TestResources.HELLO_NAME);
         copyResourceInDataFolder(TestResources.TEST_PROFILE_PROP);
diff --git 
a/dsl/camel-jbang/camel-jbang-it/src/test/java/org/apache/camel/dsl/jbang/it/RunCommandITCase.java
 
b/dsl/camel-jbang/camel-jbang-it/src/test/java/org/apache/camel/dsl/jbang/it/RunCommandITCase.java
index 54253f344a1..4c786e7527c 100644
--- 
a/dsl/camel-jbang/camel-jbang-it/src/test/java/org/apache/camel/dsl/jbang/it/RunCommandITCase.java
+++ 
b/dsl/camel-jbang/camel-jbang-it/src/test/java/org/apache/camel/dsl/jbang/it/RunCommandITCase.java
@@ -83,6 +83,7 @@ public class RunCommandITCase extends JBangTestSupport {
     public void runRouteFromInputParameterTest() {
         executeBackground("run 
--code='from(\"kamelet:beer-source\").to(\"log:beer\")'");
         checkLogContains("Started route1 (kamelet://beer-source)");
+        checkLogContains("[ - timer://beer] beer");
     }
 
     @Test
@@ -104,7 +105,8 @@ public class RunCommandITCase extends JBangTestSupport {
         executeBackground("run 
https://github.com/apache/camel-kamelets-examples/tree/main/jbang/languages/*.groovy";);
         checkLogContains("Hello Camel K from groovy");
         execute("stop simple");
-        executeBackground("run 
https://github.com/apache/camel-kamelets-examples/tree/main/jbang/languages/rou*";);
+        execute("init 
https://github.com/apache/camel-kamelets-examples/tree/main/jbang/languages/rou*";);
+        executeBackground("run *");
         checkLogContains("Hello Camel K from kotlin");
         checkLogContains("HELLO YAML !!!");
     }
@@ -130,7 +132,9 @@ public class RunCommandITCase extends JBangTestSupport {
     public void runDownloadedInDirectoryFromGithubTest() {
         execute("init 
https://github.com/apache/camel-kamelets-examples/tree/main/jbang/dependency-injection
 --directory="
                 + mountPoint());
-        Assertions.assertThat(Paths.get(getDataFolder()).toFile().listFiles())
+        Assertions
+                .assertThat(Paths.get(getDataFolder()).toFile().listFiles())
+                .as("custom route directory")
                 .extracting("name")
                 .containsExactlyInAnyOrder("Echo.java", "Hello.java", 
"README.adoc", "application.properties");
         executeBackground(String.format("run %s/*", mountPoint()));

Reply via email to