chore: add Citrus test for counter-source#2883
Open
oscerd wants to merge 1 commit into
Open
Conversation
counter-source carried camel.apache.org/kamelet.verified="true" but had no behaviour test. Add a Citrus test that runs the counter-source -> log-sink Pipe via Camel JBang and verifies the generated sequential number reaches the sink, registering the new "counter" package in CommonIT. Verified with: mvn verify -Dit.test=CommonIT#counter. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
davsclaus
approved these changes
Jun 25, 2026
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
counter-sourcecarries thecamel.apache.org/kamelet.verified: "true"label, but had no behaviour test undertests/camel-kamelets-itest. Per the catalog convention the verified label means "passing behaviour tests", so this adds the missing Citrus test rather than dropping the label.What it does
tests/.../resources/counter/counter-source-pipe.yaml— a Pipe runningcounter-source→log-sink(start: 777777,numbers: 1).tests/.../resources/counter/counter-source-pipe.citrus.it.yaml— runs the Pipe via Camel JBang and verifies the generated sequential number reaches the sink (logMessage: "777777").counterpackage inCommonIT.Verification
mvn verify -Dit.test=CommonIT#counter→ TEST SUCCESS (Verified Camel integration 'counter-source-pipe' ... All values OK!, ~29s).camel run: it loads, thecounterAtomicIntegerbean resolves, and it emits the sequence withContent-Type: text/plain. (Relevant to Can't load counter kamelet with a bean #2771 — the bean-backedcounter-sourceloads and runs on the current catalog version,4.21.0-SNAPSHOT.)AI-generated by Claude Code on behalf of Andrea Cosentino (@oscerd).