davsclaus opened a new pull request, #29456: URL: https://github.com/apache/camel/pull/29456
## What [CAMEL-26761](https://issues.apache.org/jira/browse/CAMEL-26761): chaos scenarios move from `chaos/<name>.chaos` to `test/chaos/<name>.chaos`. ## Why `test/` is already the folder the Camel CLI leaves alone, and `chaos/` was not: - `camel run --dev --source-dir` reloads from the source dir recursively with the pattern `*,!test/**` (`RunPipeline.sourceDirReloadPattern`). A scenario saved with `s` in the TUI landed in a watched folder. With [CAMEL-26760](https://issues.apache.org/jira/browse/CAMEL-26760) ("let there be chaos"), an agent also writes the feed messages of a scenario (`test/chaos/<name>/001.json`, ...) and reports there, and a feed message in `.yaml` or `.xml` could be read as a route. - The Citrus tests live in `test/`, and a scenario is a test too: a CI gate with the verdict as the exit code. - `camel export` copies only the Citrus tests from `test/`, so scenarios stay out of an exported project, as before. 4.24 is not released, so no upgrade guide entry. ## Changes - TUI: `s` offers `test/chaos/<name>.chaos` (`ChaosScenarioFile`), and the AI test of a rule (`t`) writes `test/chaos/<id>-test.chaos` (`ChaosAiPrompt`). - `RunFiles.citrusTestsOnly` ignores a `chaos` subfolder, so `camel run test/` still says it holds only Citrus tests when `test/chaos/` is there. - Docs, help texts and javadoc use `test/chaos`, and the chaos doc says why. Regenerated: `main.adoc`, the main and jbang commands metadata, the jbang command pages, the catalog copies, and the golden `cli-help.txt` (the `chaos-load` footer rewrapped). - Left as they are: test values in `ChaosConfigurationPropertiesTest` and `SecurityUtilsTest` (any path does), and `classpath:chaos/outage.chaos` (a classpath resource of a Maven test). The chaos example (apache/camel-jbang-examples#134) and the blog draft (apache/camel-website#1852) are updated to match. ## Tests - `RunFilesTest.aFolderOfOnlyCitrusTests`: a `test/chaos` folder with a scenario and its feed does not count. - Updated: `ChaosControlTest`, `ChaosAiPromptTest`, `RunTest`. - Local runs, all passing: camel-jbang-run `RunFilesTest` + `ProjectRunnerTest` (40), camel-jbang-core `CliHelpGoldenTest` + `RunTest` + `CamelChaos*Test`, TUI `Chaos*Test`. _Claude Code on behalf of Claus Ibsen_ -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
