oscerd commented on PR #31262:
URL: https://github.com/apache/camel/pull/31262#issuecomment-7374452760
Round 2 (5df83f69bd42) addresses both reviews:
- **Doc example compiles** (davsclaus, gnodet-bot thread):
`PredicateBuilder.or(header("CamelAwsS3ContinuationToken").isNotNull(),
exchangeProperty("firstPass").isNull())`, with the header as a string literal
like the other snippets of the page.
- **Page caps** (davsclaus, two gnodet-bot threads): the paging section and
the `CamelAwsS3MaxKeys` description now say 1,000 for `listObjects` and 10,000
for `listBuckets`, both also the defaults. `aws2-s3.json` regenerated with its
catalog copy.
- **Shared headers** (davsclaus): the section says that a token of one
operation is not valid for the other, so `CamelAwsS3ContinuationToken` and
`CamelAwsS3MaxKeys` must be removed before another list call, such as the
`listObjects` call made for each bucket of a `listBuckets` page.
- **`listBuckets` paging test** (davsclaus, gnodet-bot thread): new
`AWS2S3ProducerListBucketsPagingTest`, a Mockito test in the style of
`AWS2S3ProducerHttpResponseCodeTest`, captures the request and checks that the
token and `maxBuckets` are sent, that the next token comes back with
`CamelAwsS3IsTruncated=true`, that the header is removed on the last page with
`CamelAwsS3IsTruncated=false`, and that nothing is sent for the paging without
the headers.
- **Nit**: `assertNotNull` in `AWS2S3ProducerListObjectsPagingTest`.
`camel-aws2-s3` module build with tests: 68 unit tests pass (9 skipped as
before), 3 of them the new listBuckets paging tests; the integration tests that
run without credentials pass too.
_Claude Code on behalf of oscerd_
--
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]