Claus Ibsen created CAMEL-27522:
-----------------------------------
Summary: camel-jbang - explain Citrus test failures when a test
runs
Key: CAMEL-27522
URL: https://issues.apache.org/jira/browse/CAMEL-27522
Project: Camel
Issue Type: Improvement
Components: camel-jbang
Reporter: Claus Ibsen
Fix For: 4.25.0
# In both Kafka tests of the benchmark below, Camel received the literal value
{{$\{CITRUS_TESTCONTAINERS_REDPANDA_BOOTSTRAP_SERVERS\}}} and failed with
"Invalid url in bootstrap.servers:
$\{CITRUS_TESTCONTAINERS_REDPANDA_BOOTSTRAP_SERVERS\}". When an option value is
an unresolved Citrus-style {{$\{...\}}} variable, Camel could say so: start the
container before {{camel run}}, or pass the value through {{systemProperties}}.
# {{camel test run}} ({{TestRun}} extends the Citrus {{Run}}) has no JSON
output and no short failure line. A model loop reads about 2000 log lines to
find "Unknown operator '=='". Proposal: a one-line first failure at the end,
and {{--json}}.
*Background: the benchmark*
Qwen 3.6 (local, think=false) wrote Citrus YAML tests for 20 Kamelet itests and
got feedback from {{camel_validate_source}}. Each condition ran once per task
(k=1):
* A: one try: 0/20 pass
* B: up to 6 tries with the validator's errors: 6 valid, 0 pass
* C: B plus a YAML skeleton of the keys each error names: 16 valid, 4 pass
* D: C plus one complete example test: 19 valid, 7 pass
C beat B on 13 tasks, B beat C on 2. The validator is {{CitrusTestChecks}} in
{{dsl/camel-jbang/camel-jbang-core}} ({{commands/ai}}). On main (8d7bf426d764)
it already covers an http request and response in one client action, several
actions in one list item, and log written for echo.
_Claude Code on behalf of davsclaus_
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)