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

   Backport of #31053 to `camel-4.18.x`. It replaces the bot backport #31055, 
which does not compile on 4.18.x.
   
   The first commit is the cherry-pick as the backport bot resolved it. The 
second commit ports it to 4.18.x:
   
   - **No camel-azure-common on 4.18.x.** eventgrid, eventhubs and servicebus 
each have their own `CredentialType`, so the new tests import those.
   - **camel-test-junit5.** The modules test with `camel-test-junit5`, not 
junit6.
   - **`secret = true`.** `@UriParam` has no `security` attribute on 4.18.x, so 
`tokenCredential` in `EventGridConfiguration` keeps `secret = true`.
   - **No eventgrid catalog JSON or DSL classes.** `camel-azure-eventgrid` is 
not registered in `MojoHelper` on 4.18.x, so it has no catalog JSON and no DSL 
builders. The three files the cherry-pick added (copied from main) are removed. 
The eventhubs and servicebus copies are regenerated, so they keep their own 
`CredentialType` classes.
   - **Credential type detection.** On 4.18.x, servicebus and eventhubs always 
choose the credential type from `tokenCredential`: `AZURE_IDENTITY` for a 
`DefaultAzureCredential`, otherwise `TOKEN_CREDENTIAL`. The `credentialType` 
description says that. Both types now use the `tokenCredential` instance, so 
the fix works the same way as on main.
   
   Tested locally on 4.18.x: `EventGridTokenCredentialTest`, 
`EventGridComponentTest`, `EventHubsClientFactoryCredentialTest`, 
`EventHubsComponentTest` and `ServiceBusClientFactoryCredentialTest`, 18 tests, 
all pass.
   
   This is not a straight cherry-pick, so it needs a review.
   
   _Claude Code on behalf of Claus Ibsen_
   
   🤖 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