Claus Ibsen created CAMEL-26725:
-----------------------------------
Summary: camel-jbang - make a test of a chaos rule with AI, so a
finding runs again with the same faults
Key: CAMEL-26725
URL: https://issues.apache.org/jira/browse/CAMEL-26725
Project: Camel
Issue Type: New Feature
Components: camel-jbang
Reporter: Claus Ibsen
Fix For: 4.24.0
W-4 of the stage 2 decisions on CAMEL-26607, on top of W-3 (CAMEL-26724,
ChaosAssertions).
On the chaos screen of the Camel TUI, {{t}} on a rule asks the AI panel to make
a test of it, with the rule, the seed, its expectation and what it did (the
routes it hit, the recent faults):
* a Maven project ({{pom.xml}}): a JUnit test with chaos switched on
({{camel.chaos.enabled}}, the seed, the rule) and {{ChaosAssertions}}
({{assertFired}}, {{assertExpectationMet}}, {{assertVerdict}});
* a {{camel run}} folder: a scenario with an expectation, and the {{camel run
--chaos=<file> --max-seconds=...}} command whose exit code is the verdict
(CAMEL-26722).
The AI adds an expectation when the rule has none, and writes the file with the
file tools of the panel, which ask first.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)