davsclaus opened a new pull request, #23650:
URL: https://github.com/apache/camel/pull/23650

   ## Summary
   - Add test coverage for using `bean: ref: "{{beanName}}"` to reference local 
template beans in kamelets and route templates
   - Tests verify the scenario reported in CAMEL-23652 where `bean` EIP `ref` 
references a template-scoped bean
   - Both tests pass, confirming this works correctly in the current codebase
   
   ## Tests Added
   - **`KameletTest`** — `"kamelet (definition with local bean via bean ref)"`: 
Tests `bean: ref: "{{myCounter}}"` in a YAML `routeTemplate` with an 
`AtomicInteger` template bean
   - **`KameletLoaderTest`** — `"kamelet with local bean via bean ref"`: Tests 
the full kamelet YAML format (`apiVersion`/`kind`/`spec`) with `template.beans` 
defining an `AtomicInteger` with constructor parameter `{{start}}`, and `bean: 
ref: "{{counter}}"` referencing it — matching the exact scenario from the JIRA 
issue
   
   ## Test plan
   - [x] `mvn test -pl dsl/camel-yaml-dsl/camel-yaml-dsl 
-Dtest="KameletLoaderTest,KameletTest"` — all 23 tests pass
   
   _Claus Ibsen using 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]

Reply via email to