This is an automated email from the ASF dual-hosted git repository.
fmariani 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 c5c8da094010 ci: fix CmdStartStopITCase regex to handle line-wrapped
URIs
c5c8da094010 is described below
commit c5c8da094010063855527943dbbd766bd0ebd8eb
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);
}