Claus Ibsen created CAMEL-27520:
-----------------------------------
Summary: camel-jbang - the "start the integration" note of the
Citrus test check misses tests and gives wrong paths
Key: CAMEL-27520
URL: https://issues.apache.org/jira/browse/CAMEL-27520
Project: Camel
Issue Type: Improvement
Components: camel-jbang
Reporter: Claus Ibsen
Fix For: 4.25.0
Follow-up to CAMEL-26690. The note comes from {{startNote()}} in
{{CitrusTestChecks}} (around line 1282). Three problems:
# It fires only when the test has an http action or a camel cli verify. A test
that uses neither gets no note, even though it never starts the integration.
# It finds route files only by {{*.camel.yaml}} in the project folder. Route
files such as {{kafka-sink-route.yaml}} are missed.
# The file path it gives is relative to the test file. That is wrong for tests
loaded by packageScan, as in camel-kamelets: there the paths are relative to
the resources root, e.g. {{file: kafka/kafka-sink-route.yaml}}.
In condition B of the benchmark below, several valid tests named no route file
or had no run action.
*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)