diff --git a/src/confluent/azext_confluent/manual/custom.py b/src/confluent/azext_confluent/manual/custom.py index e995331fd26..a491060af4c 100644 --- a/src/confluent/azext_confluent/manual/custom.py +++ b/src/confluent/azext_confluent/manual/custom.py @@ -113,7 +113,10 @@ def confluent_offer_detail_show(cmd, publisher_id=None, offer_id=None): 'offerId': offer_id, 'publisherId': publisher_id, 'termUnits':[{ - 'price': item['price'], + 'price': { + 'currencyCode': item['price']['currencyCode'], + 'listPrice': item['price']['listPrice'] + }, 'termDescription': item['termDescription'], 'termUnits': item['termUnits'] } for a in plan['availabilities'] for item in a['terms']] diff --git a/src/confluent/azext_confluent/tests/latest/test_confluent_scenario.py b/src/confluent/azext_confluent/tests/latest/test_confluent_scenario.py index f855240a37a..24650b54a0f 100644 --- a/src/confluent/azext_confluent/tests/latest/test_confluent_scenario.py +++ b/src/confluent/azext_confluent/tests/latest/test_confluent_scenario.py @@ -47,6 +47,8 @@ def step_offer_detail_show(test, rg, checks=None): if term_unit.get('termUnits', None): assert term_unit['termUnits'] in ['P1M', 'P1Y'] assert term_unit.get('price', None) is not None + assert term_unit['price'].get('isPIRequired', None) is None + assert term_unit['price'].get('msrp', None) is None assert term_unit.get('termDescription', None) is not None diff --git a/src/confluent/azext_confluent/tests/latest/test_confluent_scenario_coverage.md b/src/confluent/azext_confluent/tests/latest/test_confluent_scenario_coverage.md index 789db8ad7d9..338b827661b 100644 --- a/src/confluent/azext_confluent/tests/latest/test_confluent_scenario_coverage.md +++ b/src/confluent/azext_confluent/tests/latest/test_confluent_scenario_coverage.md @@ -1,8 +1,8 @@ |Scenario|Result|ErrorMessage|ErrorStack|ErrorNormalized|StartDt|EndDt| -|step_terms_list|successed||||2021-06-21 02:44:44.694501|2021-06-21 02:44:44.946485| -|step_organization_show|successed||||2021-06-21 02:44:45.356491|2021-06-21 02:44:45.449457| -|step_organization_list|successed||||2021-06-21 02:44:45.449457|2021-06-21 02:44:45.571478| -|step_organization_list2|successed||||2021-06-21 02:44:45.572449|2021-06-21 02:44:45.670480| -|step_organization_update|successed||||2021-06-21 02:44:45.671479|2021-06-21 02:44:45.766477| -|step_organization_delete|successed||||2021-06-21 02:44:45.767451|2021-06-21 02:44:45.991454| +|step_terms_list|successed||||2021-07-01 10:18:02.406899|2021-07-01 10:18:02.587908| +|step_organization_show|successed||||2021-07-01 10:18:02.902892|2021-07-01 10:18:02.999867| +|step_organization_list|successed||||2021-07-01 10:18:02.999867|2021-07-01 10:18:03.094902| +|step_organization_list2|successed||||2021-07-01 10:18:03.094902|2021-07-01 10:18:03.190902| +|step_organization_update|successed||||2021-07-01 10:18:03.190902|2021-07-01 10:18:03.287868| +|step_organization_delete|successed||||2021-07-01 10:18:03.287868|2021-07-01 10:18:03.506873| Coverage: 6/6