From 40ee160d881c830b7527a745f891e9cb9283cbbf Mon Sep 17 00:00:00 2001 From: CD Cabrera Date: Mon, 19 Feb 2024 11:43:44 -0500 Subject: [PATCH] feat(config): sw-2116 activate azure billing provider (#1276) --- .../toolbarFieldBillingProvider.test.js.snap | 10 ++++++++++ .../toolbarFieldSelectCategory.test.js.snap | 5 +++++ .../__tests__/__snapshots__/rhsmConstants.test.js.snap | 8 ++++++++ src/services/rhsm/rhsmConstants.js | 4 ++-- 4 files changed, 25 insertions(+), 2 deletions(-) diff --git a/src/components/toolbar/__tests__/__snapshots__/toolbarFieldBillingProvider.test.js.snap b/src/components/toolbar/__tests__/__snapshots__/toolbarFieldBillingProvider.test.js.snap index 06b0f8af9..5fa51547d 100644 --- a/src/components/toolbar/__tests__/__snapshots__/toolbarFieldBillingProvider.test.js.snap +++ b/src/components/toolbar/__tests__/__snapshots__/toolbarFieldBillingProvider.test.js.snap @@ -12,6 +12,11 @@ exports[`ToolbarFieldBillingProvider Component should export select options: too "title": "t(curiosity-toolbar.label_billing_provider, {"context":"aws"})", "value": "aws", }, + { + "selected": false, + "title": "t(curiosity-toolbar.label_billing_provider, {"context":"azure"})", + "value": "azure", + }, ] `; @@ -82,6 +87,11 @@ exports[`ToolbarFieldBillingProvider Component should render a basic component: "title": "t(curiosity-toolbar.label_billing_provider, {"context":"aws"})", "value": "aws", }, + { + "selected": false, + "title": "t(curiosity-toolbar.label_billing_provider, {"context":"azure"})", + "value": "azure", + }, ] } placeholder="t(curiosity-toolbar.placeholder_billing, {"context":"provider"})" diff --git a/src/components/toolbar/__tests__/__snapshots__/toolbarFieldSelectCategory.test.js.snap b/src/components/toolbar/__tests__/__snapshots__/toolbarFieldSelectCategory.test.js.snap index 95be958fb..24a4ab12e 100644 --- a/src/components/toolbar/__tests__/__snapshots__/toolbarFieldSelectCategory.test.js.snap +++ b/src/components/toolbar/__tests__/__snapshots__/toolbarFieldSelectCategory.test.js.snap @@ -182,6 +182,11 @@ exports[`ToolbarFieldSelectCategory Component should export select options: tool "title": "t(curiosity-toolbar.label_billing_provider, {"context":"aws"})", "value": "aws", }, + { + "selected": false, + "title": "t(curiosity-toolbar.label_billing_provider, {"context":"azure"})", + "value": "azure", + }, ], "selected": false, "title": "t(curiosity-toolbar.label_filter_billing, {"context":"provider"})", diff --git a/src/services/rhsm/__tests__/__snapshots__/rhsmConstants.test.js.snap b/src/services/rhsm/__tests__/__snapshots__/rhsmConstants.test.js.snap index c829c252a..78269996a 100644 --- a/src/services/rhsm/__tests__/__snapshots__/rhsmConstants.test.js.snap +++ b/src/services/rhsm/__tests__/__snapshots__/rhsmConstants.test.js.snap @@ -49,6 +49,7 @@ exports[`RHSM Constants should have specific properties: all exported constants }, "RHSM_API_QUERY_BILLING_PROVIDER_TYPES": { "AWS": "aws", + "AZURE": "azure", "RED_HAT": "red hat", }, "RHSM_API_QUERY_CATEGORY_TYPES": { @@ -156,6 +157,7 @@ exports[`RHSM Constants should have specific properties: all exported constants }, "RHSM_API_RESPONSE_BILLING_PROVIDER_TYPES": { "AWS": "aws", + "AZURE": "azure", "RED_HAT": "red hat", }, "RHSM_API_RESPONSE_DATA": "data", @@ -314,6 +316,7 @@ exports[`RHSM Constants should have specific properties: all exported constants }, "RHSM_API_QUERY_BILLING_PROVIDER_TYPES": { "AWS": "aws", + "AZURE": "azure", "RED_HAT": "red hat", }, "RHSM_API_QUERY_CATEGORY_TYPES": { @@ -421,6 +424,7 @@ exports[`RHSM Constants should have specific properties: all exported constants }, "RHSM_API_RESPONSE_BILLING_PROVIDER_TYPES": { "AWS": "aws", + "AZURE": "azure", "RED_HAT": "red hat", }, "RHSM_API_RESPONSE_DATA": "data", @@ -580,6 +584,7 @@ exports[`RHSM Constants should have specific properties: all exported constants }, "RHSM_API_QUERY_BILLING_PROVIDER_TYPES": { "AWS": "aws", + "AZURE": "azure", "RED_HAT": "red hat", }, "RHSM_API_QUERY_CATEGORY_TYPES": { @@ -687,6 +692,7 @@ exports[`RHSM Constants should have specific properties: all exported constants }, "RHSM_API_RESPONSE_BILLING_PROVIDER_TYPES": { "AWS": "aws", + "AZURE": "azure", "RED_HAT": "red hat", }, "RHSM_API_RESPONSE_DATA": "data", @@ -850,6 +856,7 @@ exports[`RHSM Constants should have specific properties: specific constants 1`] }, "RHSM_API_QUERY_BILLING_PROVIDER_TYPES": { "AWS": "aws", + "AZURE": "azure", "RED_HAT": "red hat", }, "RHSM_API_QUERY_CATEGORY_TYPES": { @@ -957,6 +964,7 @@ exports[`RHSM Constants should have specific properties: specific constants 1`] }, "RHSM_API_RESPONSE_BILLING_PROVIDER_TYPES": { "AWS": "aws", + "AZURE": "azure", "RED_HAT": "red hat", }, "RHSM_API_RESPONSE_DATA": "data", diff --git a/src/services/rhsm/rhsmConstants.js b/src/services/rhsm/rhsmConstants.js index ff7aa4ed6..69fdca5bc 100644 --- a/src/services/rhsm/rhsmConstants.js +++ b/src/services/rhsm/rhsmConstants.js @@ -241,9 +241,9 @@ const RHSM_API_RESPONSE_GRANULARITY_TYPES = { */ const RHSM_API_RESPONSE_BILLING_PROVIDER_TYPES = { RED_HAT: 'red hat', - AWS: 'aws' + AWS: 'aws', // GCP: 'gcp', - // AZURE: 'azure', + AZURE: 'azure' // ORACLE: 'oracle', // NONE: '' };