Commit 90e1237
authored
SWATCH-5116: Add workaround moto patch to support CustomerAWSAccountId (#6415)
Jira issue: SWATCH-5116
## Description
The IQE tests use Moto to validate the happy path scenarios when
submitting AWS usages.
However, moto does not support the CustomerAWSAccountId field (I
contributed to moto to support this
getmoto/moto#10133).
In the mean time, this is a workaround / hack to support
CustomerAWSAccountId and CustomerIdentifier both fields.
This is necessary to validate the CustomerAWSAccountId (AWS concurrent
agreements epic) in the IQE tests.
I also reported https://redhat.atlassian.net/browse/SWATCH-5317 to stop
using Moto (which does not guarantee the compatibility with AWS SDK) and
start using Wiremock as done in the component tests.
## Testing
IQE MR:
https://gitlab.cee.redhat.com/insights-qe/iqe-rhsm-subscriptions-plugin/-/merge_requests/1560
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
- **Bug Fixes**
- Improved AWS Marketplace metering compatibility by correctly handling
customer account identifiers during batch usage reporting.
- Enhanced local service startup reliability and validation for metering
workflows.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->1 file changed
Lines changed: 29 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
284 | 284 | | |
285 | 285 | | |
286 | 286 | | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
287 | 316 | | |
288 | 317 | | |
289 | 318 | | |
| |||
0 commit comments