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

   ## Description
   
   Fixes the regression of `CatalogLookupsTest` introduced by 8e2e12160c23 
(#31217, "declare the message headers of AI, Spring, Azure, salesforce and more 
components").
   
   That commit made `camel-ibm-watsonx-ai` declare the `CamelAwsS3Key` header 
in the catalog (`WatsonxAiConstants#AWS_S3_KEY`): the text extraction and 
classification upload operations take the document name from it. 
`camel_catalog_find` and `camel_catalog_doc` list every component that has a 
header, so `CamelAwsS3Key` is now a header of `aws2-s3` and `ibm-watsonx-ai`, 
while the tests expected `aws2-s3` only:
   
   ```
   Expecting actual: ["aws2-s3", "ibm-watsonx-ai"]
   to contain exactly (and in same order): ["aws2-s3"]
   at 
CatalogLookupsTest.findFindsAHeaderByItsNameOrConstant(CatalogLookupsTest.java:108)
   ```
   
   The lookup behaves correctly; only the test expectations are updated:
   - `findFindsAHeaderByItsNameOrConstant`: `contains("aws2-s3")` instead of 
`containsExactly("aws2-s3")`.
   - `aFilterThatMatchesNothingSaysWhereAnOptionOfThatNameIs`: the "elsewhere" 
message now reads `message header of aws2-s3 and ibm-watsonx-ai:`, so the check 
is `startsWith("... message header of aws2-s3")`.
   
   ## Target
   
   - [x] I checked that the commit is targeting the correct branch (Camel 4 
uses the `main` branch)
   
   ## Tracking
   
   Test-only fix of a regression, no JIRA ticket.
   
   ## 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 have run `mvn clean install -DskipTests` locally from root folder 
and I have committed all auto-generated changes. (Only a test changed; 
`CatalogLookupsTest` was run and passes.)
   
   ---
   _Bob (AI) on behalf of @apupier_


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