oscerd opened a new pull request, #31264: URL: https://github.com/apache/camel/pull/31264
## Problem `Lambda2Producer.listEventSourceMapping` built its request with the function name only: ```java ListEventSourceMappingsRequest.Builder builder = ListEventSourceMappingsRequest.builder(); builder.functionName(getEndpoint().getFunction()); request = builder.build(); ``` so the answer was truncated at the service default and nothing was surfaced to let a route ask for the next page. Its three paginated siblings — `listFunctions`, `listVersions`, `listAliases` — all read `CamelAwsLambdaMarker` and `CamelAwsLambdaMaxItems` into the builder and set the marker plus `CamelAwsLambdaIsTruncated` on the out message. (`listTags` returns a tag map and is not paginated by AWS, so it is correctly left alone.) The gap was also a documentation mismatch: `Lambda2Constants` already carried `label = "... listEventSourceMapping"` on all three pagination headers, so the catalog advertised paging the component did not do. ## Changes - `listEventSourceMapping` reads the marker and max-items headers and sets the next marker and the truncation flag, in exactly the shape the siblings use. - The `CamelAwsLambdaMarker` description now names `listEventSourceMapping` among the operations that set it. ## Tests `AmazonLambdaClientMock.listEventSourceMappings` returned one mapping and ignored the request, so paging was untestable. It now pages over three mappings using the marker and `maxItems` the way the service does. Entry 0 is unchanged, so the existing assertion still holds. Two tests pin the fix — both fail against unmodified code (`expected: <2> but was: <3>` for the page size, and a null `CamelAwsLambdaIsTruncated`): - the existing `lambdaListEventSourceMappingTest` now also asserts the full list and `IS_TRUNCATED=false` - `lambdaListEventSourceMappingPagesWithMarkerAndMaxItems` walks both pages and checks the entries, the marker and the flag ## Testing `mvn test` in `components/camel-aws/camel-aws2-lambda`: 94 tests, all passing. _Claude Code on behalf of oscerd_ 🤖 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]
