chore: Add Citrus integration tests for 10 self-contained kamelets#2915
Merged
Conversation
Add Citrus integration tests for kamelets that require no external services or containers, using the existing CommonIT HTTP mock and log verification infrastructure: - cron-source (log-verify: emits scheduled message) - set-body-action (http-mock: replaces body) - delay-action (http-mock: message passes through after delay) - throttle-action (http-mock: message flows through rate limiter) - simple-filter-action (http-mock: non-matching message passes) - xj-identity-action (http-mock: JSON-to-XML transform) - dns-ip-action (log-verify: localhost resolves to 127.0.0.1) - regex-router-action (log-verify: Kafka topic regex replacement) - timestamp-router-action (log-verify: topic gets timestamp prefix) - topic-name-matches-filter-action (log-verify: matching topic passes) All tests use Camel route YAML format per issue #2873. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> Signed-off-by: Andrea Cosentino <ancosen@gmail.com>
The Citrus HTTP sendResponse requires a nested `response:` element with `status` and `reasonPhrase` properties, not a flat `status` property directly under `sendResponse`. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> Signed-off-by: Andrea Cosentino <ancosen@gmail.com>
1 task
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds Citrus integration tests for 10 kamelets that require no external services or containers. All tests use Camel route YAML format (per #2873) and leverage the existing
CommonITHTTP mock server and log verification infrastructure.New tests
cron-sourceset-body-actiondelay-actionthrottle-actionsimple-filter-actionxj-identity-actiondns-ip-actionlocalhostresolves to127.0.0.1regex-router-actiontimestamp-router-actiontopic-name-matches-filter-actionFiles
CommonIT.java— added 7 new@CitrusTestFactorymethodsTest plan
mvn compile test-compile -pl :camel-kamelets-itestpassesmvn verify -pl :camel-kamelets-itest -Denable.integration.tests— all tests passClaude Code on behalf of Andrea Cosentino
🤖 Generated with Claude Code