oscerd commented on PR #31261:
URL: https://github.com/apache/camel/pull/31261#issuecomment-7374299908

   Round 2 (53a0e52e9272) addresses the review:
   
   - **Null dimension value in `listMetrics`** (the one to fix): 
`determineDimensions(exchange, nullValueMatchesAny)` keeps a null value only 
for `listMetrics`, where the `DimensionFilter` is then built without a value 
and matches any value of the dimension, as the `CamelAwsCwMetricDimensions` 
description says; `putMetricData` and `describeAlarmsForMetric` still reject a 
null value, since a `Dimension` needs both parts. 
`CloudWatchClientMock.listMetrics` now records its last request, and 
`CwComponentTest.listMetricsKeepsANullDimensionValueToMatchAnyValue` sends 
`{"InstanceId": null}` and asserts the filter reaches the client with the name 
and no value.
   - **Upgrade guide**: a 4.25 entry says a `putMetricData` body with more than 
1000 items now fails with an `IllegalArgumentException` before the call instead 
of a `CloudWatchException` from the service.
   - **Supplied client never closed**: the mock has a `closed` flag and 
`CwEndpointRestartSuppliedClientTest` asserts it stays false after each 
`stop()`, so the test now detects a `close()` of the supplied client.
   - **Operations table**: left as it is in this round; moving it under `== 
Usage` and listing the `describeAlarms` headers is a docs-only change that can 
follow separately if you want it.
   
   `camel-aws2-cw` module build with tests: 34 unit tests and 1 integration 
test pass, including the new listMetrics test.
   
   _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]

Reply via email to