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

   # Description
   
   Fixes [CAMEL-27406](https://issues.apache.org/jira/browse/CAMEL-27406).
   
   ## Summary
   
   Three options of `camel-alibaba-mns` had no label, though only one side 
reads each of them. This change adds the labels, and gives the header 
`CamelAlibabaMnsPriority` the label `common`. A user notices it in the Endpoint 
DSL and in the endpoint validation of the catalog, not at runtime.
   
   - `operation` and `topicName` have the label `producer`, as only 
`MNSProducer` uses them, through `MNSUtils.createClientConfigurations`.
   - `waitSeconds` has the label `consumer`, as only `MNSConsumer.poll` reads 
it.
   - The header `CamelAlibabaMnsPriority` has the label `common`, as the 
consumer sets it and the producer reads it.
   - The Endpoint DSL has `operation` and `topicName` only in the producer 
builder now, and `waitSeconds` only in the consumer builder.
   - The upgrade guide has a section on it.
   
   ## Tests
   
   - `testValidateEndpointAlibabaMns` of `CamelCatalogTest` validates the three 
options in consumer-only and producer-only mode, and checks the group of the 
header.
   - It failed before the change, as the catalog accepted `operation` and 
`topicName` in consumer-only mode.
   - The build of `camel-alibaba-mns` ran 39 tests, and none failed.
   - On Windows, 148 of the 149 tests of `CamelCatalogTest` pass, and 
`testValidateGroovyLanguage` fails without the fix of CAMEL-27401.
   
   # Target
   
   - [x] I checked that the commit is targeting the correct branch (Camel 4 
uses the `main` branch)
   
   # Tracking
   
   - [x] If this is a large change, bug fix, or code improvement, I checked 
there is a [JIRA issue](https://issues.apache.org/jira/browse/CAMEL) filed for 
the change (usually before you start working on it).
   
   # Apache Camel coding standards and style
   
   - [x] I checked that each commit in the pull request has a meaningful 
subject line and body.
   - [x] I ran `mvn clean install -Dquickly -DskipTests` in the root folder on 
the parent commit, ac2095627dfa. Then I ran the builds of `camel-alibaba-oss`, 
`camel-alibaba-mns`, `catalog/camel-catalog` with `CamelCatalogTest`, and 
`dsl/camel-endpointdsl`, and committed all generated changes.
   
   # AI-assisted contributions
   
   - [x] If this PR includes AI-generated code, commits have proper 
co-authorship attribution (e.g., `Co-authored-by` trailers) and the PR 
description identifies the AI tool used.
   
   Claude Code (Anthropic) drafted the change and this text, and ran the builds 
and tests named above.
   
   _Claude Code on behalf of saravanakumar1987_
   
   🤖 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