[
https://issues.apache.org/jira/browse/CAMEL-22989?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18058087#comment-18058087
]
Claus Ibsen commented on CAMEL-22989:
-------------------------------------
Works locally
{code:java}
[DEBUG] [9] [main] o.a.c.dsl.jbang.it.RunCommandITCase.afterEach - ending
org.apache.camel.dsl.jbang.it.RunCommandITCase#runWithProperties() using data
folder
/Users/davsclaus/workspace/camel/dsl/camel-jbang/camel-jbang-it/target/data/6733b5aad82ca
[DEBUG] [9] [main] o.a.c.t.i.c.s.CliLocalContainerService.executeGenericCommand
- Executing command: camel log --follow=false
[DEBUG] [9] [main] o.a.c.t.i.c.s.CliLocalContainerService.executeGenericCommand
- result out 2026-02-12 09:42:36.812 INFO 1342 --- [ main]
org.apache.camel.main.MainSupport : Apache Camel (JBang) 4.18.0-SNAPSHOT
is starting
2026-02-12 09:42:36.912 INFO 1342 --- [ main]
org.apache.camel.main.MainSupport : Running Linux 6.12.67-linuxkit
(aarch64)
2026-02-12 09:42:36.912 INFO 1342 --- [ main]
org.apache.camel.main.MainSupport : Using Java 21.0.10 (OpenJDK 64-Bit
Server VM) with PID 1342
2026-02-12 09:42:36.912 INFO 1342 --- [ main]
org.apache.camel.main.MainSupport : Started by jbang in /home/jbang
2026-02-12 09:42:36.948 INFO 1342 --- [ main]
org.apache.camel.main.BaseMainSupport : Properties location:
file:///deployments/data/6733b5aad82ca/route-props.properties
2026-02-12 09:42:36.995 INFO 1342 --- [ main]
org.apache.camel.main.ProfileConfigurer : The application is starting with
profile: dev
2026-02-12 09:42:37.110 INFO 1342 --- [ main]
he.camel.cli.connector.LocalCliConnector : Camel JBang CLI enabled
2026-02-12 09:42:37.148 INFO 1342 --- [ main]
e.camel.impl.engine.AbstractCamelContext : Apache Camel 4.18.0-SNAPSHOT
(route-props) is starting
2026-02-12 09:42:37.195 INFO 1342 --- [ main]
org.apache.camel.main.BaseMainSupport : Property-placeholders summary
2026-02-12 09:42:37.196 INFO 1342 --- [ main]
org.apache.camel.main.BaseMainSupport : [Command Line] a
= a
2026-02-12 09:42:37.196 INFO 1342 --- [ main]
org.apache.camel.main.BaseMainSupport : [Command Line] b
= b
2026-02-12 09:42:37.196 INFO 1342 --- [ main]
org.apache.camel.main.BaseMainSupport : [route-props.properties]
my-key = my-val
2026-02-12 09:42:37.253 INFO 1342 --- [ main]
e.camel.impl.engine.AbstractCamelContext : Routes startup (total:1)
2026-02-12 09:42:37.253 INFO 1342 --- [ main]
e.camel.impl.engine.AbstractCamelContext : Started route1 (timer://yaml)
2026-02-12 09:42:37.253 INFO 1342 --- [ main]
e.camel.impl.engine.AbstractCamelContext : Apache Camel 4.18.0-SNAPSHOT
(route-props) started in 104ms (build:0ms init:0ms start:104ms boot:335ms)
2026-02-12 09:42:38.209 INFO 1342 --- [ - timer://yaml] route-props.yaml:25
: Hello Camel with properties a=a b=b my-key=my-val
2026-02-12 09:42:39.202 INFO 1342 --- [ - timer://yaml] route-props.yaml:25
: Hello Camel with properties a=a b=b my-key=my-val
2026-02-12 09:42:40.204 INFO 1342 --- [ - timer://yaml] route-props.yaml:25
: Hello Camel with properties a=a b=b my-key=my-val[DEBUG]
[9] [main] o.a.c.dsl.jbang.it.RunCommandITCase.afterEach - clean up data folder
[INFO] [9] [main] o.a.c.t.i.c.s.CliLocalContainerService.shutdown - Stopping
the camel-cli container
[INFO] [9] [main] o.a.c.t.i.c.s.CliLocalContainerService.initialize - Trying to
start the camel-cli container {code}
> Fix issue related to failing test RunCommandITCase.runWithProperties
> --------------------------------------------------------------------
>
> Key: CAMEL-22989
> URL: https://issues.apache.org/jira/browse/CAMEL-22989
> Project: Camel
> Issue Type: Test
> Components: camel-jbang, tests
> Affects Versions: 4.18.0
> Reporter: Aurélien Pupier
> Priority: Minor
> Fix For: 4.x
>
>
> the test has failed 5 times in a row
> {noformat}
> Expecting code not to raise a throwable but caught
> "org.awaitility.core.ConditionTimeoutException: Assertion condition defined
> as a Lambda expression in
> org.apache.camel.dsl.jbang.it.support.JBangTestSupport null within 5 seconds.
> at org.awaitility.core.ConditionAwaiter.await(ConditionAwaiter.java:167)
> at org.awaitility.core.AssertionCondition.await(AssertionCondition.java:119)
> at org.awaitility.core.AssertionCondition.await(AssertionCondition.java:31)
> at org.awaitility.core.ConditionFactory.until(ConditionFactory.java:1160)
> at
> org.awaitility.core.ConditionFactory.untilAsserted(ConditionFactory.java:790)
> at
> org.apache.camel.dsl.jbang.it.support.JBangTestSupport.lambda$checkLogContains$9(JBangTestSupport.java:243)
> {noformat}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)