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

fmariani pushed a commit to branch ci-fix/jbang-start-stop-regex
in repository https://gitbox.apache.org/repos/asf/camel.git

commit 82370d06eaf8f70ce5f91cb0bcbaf57f622df030
Author: Croway <[email protected]>
AuthorDate: Tue Apr 7 10:09:14 2026 +0200

    ci: fix CmdStartStopITCase regex to handle line-wrapped URIs
---
 .../org/apache/camel/dsl/jbang/it/CmdStartStopITCase.java    | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git 
a/dsl/camel-jbang/camel-jbang-it/src/test/java/org/apache/camel/dsl/jbang/it/CmdStartStopITCase.java
 
b/dsl/camel-jbang/camel-jbang-it/src/test/java/org/apache/camel/dsl/jbang/it/CmdStartStopITCase.java
index 55c8e85b3843..a4ab26bc9758 100644
--- 
a/dsl/camel-jbang/camel-jbang-it/src/test/java/org/apache/camel/dsl/jbang/it/CmdStartStopITCase.java
+++ 
b/dsl/camel-jbang/camel-jbang-it/src/test/java/org/apache/camel/dsl/jbang/it/CmdStartStopITCase.java
@@ -37,7 +37,7 @@ public class CmdStartStopITCase extends JBangTestSupport {
         checkLogContains("Hello world!");
         execute("cmd stop-route --id=route1");
         checkCommandOutputsPattern("get route --wide-uri",
-                
"route1\\s+timer:\\/\\/(yaml|java)\\?period=1000\\s+Stopped.*\\n.*route2\\s+timer:\\/\\/(yaml|java)\\?period=1000\\s+Started",
+                "(?s)route1\\s+timer.*?Stopped.*?route2\\s+timer.*?Started",
                 ASSERTION_WAIT_SECONDS);
     }
 
@@ -50,7 +50,7 @@ public class CmdStartStopITCase extends JBangTestSupport {
         checkLogContains("Hello world!");
         execute("cmd stop-route " + process);
         checkCommandOutputsPattern("get route --wide-uri",
-                
"route1\\s+timer:\\/\\/(yaml|java)\\?period=1000\\s+Stopped.*\\n.*route2.*timer:\\/\\/(yaml|java)\\?period=1000\\s+Started",
+                "(?s)route1\\s+timer.*?Stopped.*?route2.*?timer.*?Started",
                 ASSERTION_WAIT_SECONDS);
     }
 
@@ -62,7 +62,7 @@ public class CmdStartStopITCase extends JBangTestSupport {
         checkLogContains("Hello world!");
         execute("cmd stop-route");
         checkCommandOutputsPattern("get route --wide-uri",
-                
"route1\\s+timer:\\/\\/(yaml|java)\\?period=1000\\s+Stopped.*\\n.*route2\\s+timer:\\/\\/(yaml|java)\\?period=1000\\s+Stopped",
+                "(?s)route1\\s+timer.*?Stopped.*?route2\\s+timer.*?Stopped",
                 ASSERTION_WAIT_SECONDS);
     }
 
@@ -75,7 +75,7 @@ public class CmdStartStopITCase extends JBangTestSupport {
         execute("cmd stop-route");
         execute("cmd start-route --id=route1");
         checkCommandOutputsPattern("get route --wide-uri",
-                
"route1\\s+timer:\\/\\/(yaml|java)\\?period=1000\\s+Started.*\\n.*route2\\s+timer:\\/\\/(yaml|java)\\?period=1000\\s+Stopped",
+                "(?s)route1\\s+timer.*?Started.*?route2\\s+timer.*?Stopped",
                 ASSERTION_WAIT_SECONDS);
     }
 
@@ -89,7 +89,7 @@ public class CmdStartStopITCase extends JBangTestSupport {
         execute("cmd stop-route");
         execute("cmd start-route " + process);
         checkCommandOutputsPattern("get route --wide-uri",
-                
"route1\\s+timer:\\/\\/(yaml|java)\\?period=1000\\s+Started.*\\n.*route2.*timer:\\/\\/(yaml|java)\\?period=1000\\s+Stopped",
+                "(?s)route1\\s+timer.*?Started.*?route2.*?timer.*?Stopped",
                 ASSERTION_WAIT_SECONDS);
     }
 
@@ -102,7 +102,7 @@ public class CmdStartStopITCase extends JBangTestSupport {
         execute("cmd stop-route");
         execute("cmd start-route");
         checkCommandOutputsPattern("get route --wide-uri",
-                
"route1\\s+timer:\\/\\/(yaml|java)\\?period=1000\\s+Started.*\\n.*route2\\s+timer:\\/\\/(yaml|java)\\?period=1000\\s+Started",
+                "(?s)route1\\s+timer.*?Started.*?route2\\s+timer.*?Started",
                 ASSERTION_WAIT_SECONDS);
     }
 

Reply via email to