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

   _Claude Code on behalf of Claus Ibsen_
   
   ## Problem
   
   `dns-lookup-action` fails on every message:
   
   ```
   Header CamelDnsName must be specified and not empty
   ```
   
   The `dns` component's `lookup` operation reads the name from the 
`CamelDnsName` header. The Kamelet sets `CamelDnsDomain` instead, which is the 
header of the `ip` operation (the one `dns-ip-action` uses). This looks like a 
copy from `dns-ip-action` when the Kamelet was written, and nothing tested it.
   
   ## Fix
   
   - In all three branches of the `choice` (the `domain-name` header, the 
`ce-domainname` header, and the body), set `CamelDnsName` instead of 
`CamelDnsDomain`.
   - Add a Citrus test, `dns/dns-lookup-action-route`, next to the existing 
`dns-ip-action` test. It looks up `apache.org` and checks that a record for 
`apache.org.` comes out.
   
   ## Verified
   
   - Before the fix, `camel run` with the Kamelet fails with the error above. 
After the fix, it returns the DNS records as JSON.
   - `mvn verify -Denable.integration.tests -Dit.test='CommonIT#dns'` passes 
both DNS tests on Camel 4.23.0.
   - `./mvnw clean install` from the repository root passes.
   
   The test matches `"address":"apache.org."`, not the record class or TTL, 
because the JSON field names differ between Camel 4.23 and 4.24.
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)
   


-- 
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