Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
3.11.0
-
None
-
Unknown
Description
Using route dump option of camel context does not print the correct route in case of using kamelet eip.
Find the reproducer here: https://github.com/valdar/camel/tree/issue/16818
run:
./mvnw clean verify -pl :camel-kamelet -Dtest=KameletRouteDumpTest
the test will pass but in the test log that you can find in components/camel-kamelet/target/camel-kamelet-test.log this is what is printed as route:
<routes xmlns="http://camel.apache.org/schema/spring"> <route customId="true" id="test"> <from uri="direct:templateEmbedded"/> <kamelet id="kamelet1" name="setBody?bodyValue=test"/> </route> <route customId="true" id="setBody-1" template="true"> <from uri="kamelet://source?routeId=setBody-1"/> <setBody id="setBody1"> <constant>{{bodyValue}}</constant> </setBody> <to id="to2" uri="kamelet://sink?routeId=setBody-1"/> </route> </routes>
but there should be a to(...) statement after <kamelet id="kamelet1" name="setBody?bodyValue=test"/> in the route with id=test.