-
Story
-
Resolution: Done
-
Major
-
None
-
5
-
False
-
-
True
-
-
To align with the Tally response add the billing_account_id search/query param ability to Capacity.
Assumptions and questions
- On the UI capacity may/should shift when selecting a billing account id.
Implementation
Add the query parameter to the API and include it in the query: DbReportCriteria
- https://github.com/RedHatInsights/rhsm-subscriptions/blob/main/api/rhsm-subscriptions-api-v1-spec.yaml#L278
- https://github.com/RedHatInsights/rhsm-subscriptions/blob/main/swatch-contracts/src/main/java/com/redhat/swatch/contract/resource/api/v1/CapacityResourceV1.java#L100
Testing
Unit test: CapacityResourceV1Test
Test the argument in the e2e test.
iqe_rhsm_subscriptions/tests/integration/swatch_subscriptions/test_capacity_e2e.py
Should it also be tested in the a filter test?
Eg: iqe_rhsm_subscriptions/tests/integration/swatch_subscriptions/test_RHEL_SLA_filters.py or test_openshift_SLA_filters.py