Federico Mariani created CAMEL-27110:
----------------------------------------

             Summary: camel-jbang - BindTest fails on camel-4.22.x and 
camel-4.18.x: the set-body-action Kamelet now has an example value
                 Key: CAMEL-27110
                 URL: https://issues.apache.org/jira/browse/CAMEL-27110
             Project: Camel
          Issue Type: Test
          Components: camel-jbang
            Reporter: Federico Mariani
             Fix For: 4.22.3, 4.18.6


{{BindTest.shouldBindWithSteps}} and {{BindTest.shouldBindWithUriSteps}} 
(camel-jbang-core) fail on camel-4.22.x and camel-4.18.x, so every pull request 
on these branches whose build reaches camel-jbang-core fails.

{{camel bind}} reads each Kamelet from the main branch of camel-kamelets 
({{github:apache:camel-kamelets:main:kamelets/<name>.kamelet.yaml}} in 
{{PipeProvider}}) and fills a step's required properties with the example value 
of the Kamelet. The {{set-body-action}} Kamelet on camel-kamelets main now has 
an example ({{"Order $\{header.orderId} received"}}), so the generated Pipe has 
that value where the tests expect the fallback {{"value"}}:

{code}
expected: ... properties:
      value: "value"
but was:  ... properties:
      value: "Order ${header.orderId} received"
{code}

The two tests now expect the example of the Kamelet. {{camel bind}} is removed 
on main (CAMEL-27002), so main is not affected.

_Claude Code on behalf of Federico Mariani_



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to