Skip to content

CAMEL-22986: Use official kamelets from camel-kamelets catalog JAR - #268

Merged
apupier merged 2 commits into
apache:mainfrom
tmielke:CAMEL-22986
Sep 24, 2026
Merged

apupier merged 2 commits into
apache:mainfrom
tmielke:CAMEL-22986

Conversation

@tmielke

@tmielke tmielke commented Sep 17, 2026

Copy link
Copy Markdown

Reworked the kamelet-chucknorris example to use the official chuck-norris-source kamelet from the camel-kamelets catalog JAR instead of bundling a custom kamelet YAML file locally.

  • Added camel-kamelets dependency to load official kamelets from classpath
  • Converted route definition from XML DSL to YAML DSL
  • Removed custom chuck-norris-source.kamelet.yaml
  • Added MyApplication.java for standalone Camel Main bootstrap
  • Added explicit component dependencies (timer, http, jsonpath) needed by the kamelet at runtime

Co-authored-by: Claude Opus 4.6 noreply@anthropic.com

@apupier

apupier commented Sep 21, 2026

Copy link
Copy Markdown
Contributor

please rebase on main branch. The PR check error has been fixed #270

Reworked the kamelet-chucknorris example to use the official
chuck-norris-source kamelet from the camel-kamelets catalog JAR
instead of bundling a custom kamelet YAML file locally.

- Added camel-kamelets dependency to load official kamelets from classpath
- Converted route definition from XML DSL to YAML DSL
- Removed custom chuck-norris-source.kamelet.yaml
- Added MyApplication.java for standalone Camel Main bootstrap
- Added explicit component dependencies (timer, http, jsonpath) needed
  by the kamelet at runtime

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
@apupier

apupier commented Sep 21, 2026

Copy link
Copy Markdown
Contributor

test failure on the modified example:

[ERROR] Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 20.71 s <<< FAILURE! -- in org.apache.camel.example.KameletChuckNorrisTest
[ERROR] org.apache.camel.example.KameletChuckNorrisTest.should_use_a_simple_kamelet -- Time elapsed: 20.32 s <<< FAILURE!
org.opentest4j.AssertionFailedError: 1 message should be completed ==> expected: <true> but was: <false>
	at org.junit.jupiter.api.Assertions.assertTrue(Assertions.java:232)
	at org.apache.camel.example.KameletChuckNorrisTest.should_use_a_simple_kamelet(KameletChuckNorrisTest.java:36)

[INFO] 
[INFO] Results:
[INFO] 
[ERROR] Failures: 
[ERROR]   KameletChuckNorrisTest.should_use_a_simple_kamelet:36 1 message should be completed ==> expected: <true> but was: <false>
[INFO] 
[ERROR] Tests run: 1, Failures: 1, Errors: 0, Skipped: 0

Previous commit missed to include
src/main/resources/camel/my-route.camel.yaml
@tmielke

tmielke commented Sep 21, 2026

Copy link
Copy Markdown
Author

Thanks @apupier, the PR missed to include the route definition file. My bad...
I just added it.

@apupier
apupier merged commit 391f913 into apache:main Sep 24, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants