Skip to content

Commit

Permalink
feat(config): sw-1890 activate rhel for x86 ha (#1225)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sgitario authored and cdcabrera committed Nov 2, 2023
1 parent 294c330 commit 1631c77
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 6 deletions.
9 changes: 9 additions & 0 deletions public/locales/en-US.json
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@
"legendTooltip_Sockets_hypervisor_RHEL for IBM z": "$t(curiosity-graph.legendTooltip_Sockets_hypervisor_RHEL)",
"legendTooltip_Sockets_hypervisor_RHEL for x86": "$t(curiosity-graph.legendTooltip_Sockets_hypervisor_RHEL)",
"legendTooltip_Sockets_hypervisor_rhel-for-x86-eus": "$t(curiosity-graph.legendTooltip_Sockets_hypervisor_RHEL)",
"legendTooltip_Sockets_hypervisor_rhel-for-x86-ha": "$t(curiosity-graph.legendTooltip_Sockets_hypervisor_RHEL)",
"legendTooltip_Sockets_hypervisor_rhel-for-sap-x86": "$t(curiosity-graph.legendTooltip_Sockets_hypervisor_RHEL)",
"legendTooltip_Sockets_physical": "{{product}} CPU socket usage, per socket pair.",
"legendTooltip_Sockets_physical_rhel": "$t(curiosity-graph.legendTooltip_Sockets_physical_RHEL)",
Expand All @@ -133,6 +134,7 @@
"legendTooltip_Sockets_physical_RHEL for IBM z": "$t(curiosity-graph.legendTooltip_Sockets_physical_RHEL)",
"legendTooltip_Sockets_physical_RHEL for x86": "$t(curiosity-graph.legendTooltip_Sockets_physical_RHEL)",
"legendTooltip_Sockets_physical_rhel-for-x86-eus": "$t(curiosity-graph.legendTooltip_Sockets_physical_RHEL)",
"legendTooltip_Sockets_physical_rhel-for-x86-ha": "$t(curiosity-graph.legendTooltip_Sockets_physical_RHEL)",
"legendTooltip_Sockets_physical_rhel-for-sap-x86": "$t(curiosity-graph.legendTooltip_Sockets_physical_RHEL)",
"legendTooltip_Sockets_virtual": "{{product}} CPU socket usage, per socket pair.",
"legendTooltip_Sockets_virtual_rhel": "$t(curiosity-graph.legendTooltip_Sockets_virtual_RHEL)",
Expand All @@ -142,6 +144,7 @@
"legendTooltip_Sockets_virtual_RHEL for IBM z": "$t(curiosity-graph.legendTooltip_Sockets_virtual_RHEL)",
"legendTooltip_Sockets_virtual_RHEL for x86": "$t(curiosity-graph.legendTooltip_Sockets_virtual_RHEL)",
"legendTooltip_Sockets_virtual_rhel-for-x86-eus": "$t(curiosity-graph.legendTooltip_Sockets_virtual_RHEL)",
"legendTooltip_Sockets_virtual_rhel-for-x86-ha": "$t(curiosity-graph.legendTooltip_Sockets_virtual_RHEL)",
"legendTooltip_Sockets_virtual_rhel-for-sap-x86": "$t(curiosity-graph.legendTooltip_Sockets_virtual_RHEL)",
"legendTooltip_Storage-gibibytes": "Data storage usage",
"legendTooltip_Storage-gibibyte-months": "Data storage usage",
Expand All @@ -157,6 +160,7 @@
"legendTooltip_threshold_Sockets_RHEL for IBM z": "$t(curiosity-graph.legendTooltip_threshold_Sockets_RHEL)",
"legendTooltip_threshold_Sockets_RHEL for x86": "$t(curiosity-graph.legendTooltip_threshold_Sockets_RHEL)",
"legendTooltip_threshold_Sockets_rhel-for-x86-eus": "$t(curiosity-graph.legendTooltip_threshold_Sockets_RHEL)",
"legendTooltip_threshold_Sockets_rhel-for-x86-ha": "$t(curiosity-graph.legendTooltip_threshold_Sockets_RHEL)",
"legendTooltip_threshold_Sockets_rhel-for-sap-x86": "$t(curiosity-graph.legendTooltip_threshold_Sockets_RHEL)",
"legendTooltip_Transfer-gibibytes": "Data transfer usage",
"tooltipSummary": "Your subscription data facets. With one level of column and row headers."
Expand All @@ -172,6 +176,7 @@
"tabInstances_RHEL for IBM z": "$t(curiosity-inventory.tabInstances_RHEL)",
"tabInstances_RHEL for x86": "$t(curiosity-inventory.tabInstances_RHEL)",
"tabInstances_rhel-for-x86-eus": "$t(curiosity-inventory.tabInstances_RHEL)",
"tabInstances_rhel-for-x86-ha": "$t(curiosity-inventory.tabInstances_RHEL)",
"tabInstances_rhel-for-sap-x86": "$t(curiosity-inventory.tabInstances_RHEL)",
"tabInstances_OpenShift Container Platform": "$t(curiosity-inventory.tabInstances_RHEL)",
"tabInstances_Satellite": "$t(curiosity-inventory.tabInstances_RHEL)",
Expand Down Expand Up @@ -313,6 +318,7 @@
"label_groupVariant_RHEL for IBM z": "RHEL for IBM z",
"label_groupVariant_RHEL for x86": "RHEL for x86",
"label_groupVariant_rhel-for-x86-eus": "RHEL for x86 EUS",
"label_groupVariant_rhel-for-x86-ha": "RHEL for x86 HA",
"label_groupVariant_rhel-for-sap-x86": "RHEL for SAP x86",
"label_groupVariant_rosa": "ROSA Hosted Control Planes",
"label_groupVariant_Satellite Capsule": "Satellite Capsule",
Expand Down Expand Up @@ -419,6 +425,9 @@
"title_rhel-for-x86-eus": "$t(curiosity-view.title_RHEL)",
"subtitle_rhel-for-x86-eus": "$t(curiosity-view.title_RHEL)",
"description_rhel-for-x86-eus": "$t(curiosity-view.description_RHEL)",
"title_rhel-for-x86-ha": "$t(curiosity-view.title_RHEL)",
"subtitle_rhel-for-x86-ha": "$t(curiosity-view.title_RHEL)",
"description_rhel-for-x86-ha": "$t(curiosity-view.description_RHEL)",
"title_rhel-for-sap-x86": "$t(curiosity-view.title_RHEL)",
"subtitle_rhel-for-sap-x86": "$t(curiosity-view.title_RHEL)",
"description_rhel-for-sap-x86": "$t(curiosity-view.description_RHEL)",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ exports[`RHSM Constants should have specific properties: all exported constants
"RHEL_WORKSTATION": "RHEL Workstation",
"RHEL_X86": "RHEL for x86",
"RHEL_X86_EUS": "rhel-for-x86-eus",
"RHEL_X86_HA": "rhel-for-x86-ha",
"RHEL_X86_SAP": "rhel-for-sap-x86",
"RHODS": "rhods",
"ROSA": "rosa",
Expand All @@ -35,6 +36,7 @@ exports[`RHSM Constants should have specific properties: all exported constants
"RHEL_IBM_Z": "RHEL for IBM z",
"RHEL_X86": "RHEL for x86",
"RHEL_X86_EUS": "rhel-for-x86-eus",
"RHEL_X86_HA": "rhel-for-x86-ha",
"RHEL_X86_SAP": "rhel-for-sap-x86",
},
"RHSM_API_PATH_PRODUCT_VARIANT_SATELLITE_TYPES": {
Expand Down Expand Up @@ -281,6 +283,7 @@ exports[`RHSM Constants should have specific properties: all exported constants
"RHEL_WORKSTATION": "RHEL Workstation",
"RHEL_X86": "RHEL for x86",
"RHEL_X86_EUS": "rhel-for-x86-eus",
"RHEL_X86_HA": "rhel-for-x86-ha",
"RHEL_X86_SAP": "rhel-for-sap-x86",
"RHODS": "rhods",
"ROSA": "rosa",
Expand All @@ -293,6 +296,7 @@ exports[`RHSM Constants should have specific properties: all exported constants
"RHEL_IBM_Z": "RHEL for IBM z",
"RHEL_X86": "RHEL for x86",
"RHEL_X86_EUS": "rhel-for-x86-eus",
"RHEL_X86_HA": "rhel-for-x86-ha",
"RHEL_X86_SAP": "rhel-for-sap-x86",
},
"RHSM_API_PATH_PRODUCT_VARIANT_SATELLITE_TYPES": {
Expand Down Expand Up @@ -540,6 +544,7 @@ exports[`RHSM Constants should have specific properties: all exported constants
"RHEL_WORKSTATION": "RHEL Workstation",
"RHEL_X86": "RHEL for x86",
"RHEL_X86_EUS": "rhel-for-x86-eus",
"RHEL_X86_HA": "rhel-for-x86-ha",
"RHEL_X86_SAP": "rhel-for-sap-x86",
"RHODS": "rhods",
"ROSA": "rosa",
Expand All @@ -552,6 +557,7 @@ exports[`RHSM Constants should have specific properties: all exported constants
"RHEL_IBM_Z": "RHEL for IBM z",
"RHEL_X86": "RHEL for x86",
"RHEL_X86_EUS": "rhel-for-x86-eus",
"RHEL_X86_HA": "rhel-for-x86-ha",
"RHEL_X86_SAP": "rhel-for-sap-x86",
},
"RHSM_API_PATH_PRODUCT_VARIANT_SATELLITE_TYPES": {
Expand Down Expand Up @@ -803,6 +809,7 @@ exports[`RHSM Constants should have specific properties: specific constants 1`]
"RHEL_WORKSTATION": "RHEL Workstation",
"RHEL_X86": "RHEL for x86",
"RHEL_X86_EUS": "rhel-for-x86-eus",
"RHEL_X86_HA": "rhel-for-x86-ha",
"RHEL_X86_SAP": "rhel-for-sap-x86",
"RHODS": "rhods",
"ROSA": "rosa",
Expand All @@ -815,6 +822,7 @@ exports[`RHSM Constants should have specific properties: specific constants 1`]
"RHEL_IBM_Z": "RHEL for IBM z",
"RHEL_X86": "RHEL for x86",
"RHEL_X86_EUS": "rhel-for-x86-eus",
"RHEL_X86_HA": "rhel-for-x86-ha",
"RHEL_X86_SAP": "rhel-for-sap-x86",
},
"RHSM_API_PATH_PRODUCT_VARIANT_SATELLITE_TYPES": {
Expand Down
13 changes: 7 additions & 6 deletions src/services/rhsm/rhsmConstants.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,15 @@
* RHSM path IDs for product RHEL variants.
*
* @type {{RHEL_ARM: string, RHEL_X86_SAP: string, RHEL_IBM_Z: string, RHEL_IBM_POWER: string, RHEL_X86: string,
* RHEL_X86_EUS: string}}
* RHEL_X86_EUS: string, RHEL_X86_HA: string}}
*/
const RHSM_API_PATH_PRODUCT_VARIANT_RHEL_TYPES = {
RHEL_ARM: 'RHEL for ARM',
RHEL_IBM_POWER: 'RHEL for IBM Power',
RHEL_IBM_Z: 'RHEL for IBM z',
RHEL_X86: 'RHEL for x86',
RHEL_X86_EUS: 'rhel-for-x86-eus',
RHEL_X86_HA: 'rhel-for-x86-ha',
RHEL_X86_SAP: 'rhel-for-sap-x86'
};

Expand Down Expand Up @@ -440,11 +441,11 @@ const RHSM_INTERNAL_PRODUCT_DISPLAY_TYPES = {
* {GENERIC: string, OPTIN: string}, RHSM_API_QUERY_GRANULARITY_TYPES: {WEEKLY: string, QUARTERLY: string, DAILY:
* string, MONTHLY: string}, RHSM_API_RESPONSE_UOM_TYPES: {CORES: string, SOCKETS: string},
* RHSM_API_PATH_PRODUCT_VARIANT_RHEL_TYPES: {RHEL_ARM: string, RHEL_X86_SAP: string, RHEL_IBM_Z: string,
* RHEL_IBM_POWER: string, RHEL_X86: string, RHEL_X86_EUS: string}, RHSM_API_RESPONSE_SUBSCRIPTIONS_DATA_TYPES:
* {BILLING_ACCOUNT_ID: string, QUANTITY: string, SUBSCRIPTION_MANAGER_ID: string, INVENTORY_ID: string,
* NUMBER_OF_GUESTS: string, HAS_INFINITE_QUANTITY: string, TOTAL_CAPACITY: string, PRODUCT_NAME: string,
* SERVICE_LEVEL: string, DISPLAY_NAME: string, MEASUREMENTS: string, UOM: string, CATEGORY: string,
* NEXT_EVENT_DATE: string, BILLING_PROVIDER: string, LAST_SEEN: string},
* RHEL_IBM_POWER: string, RHEL_X86: string, RHEL_X86_EUS: string, RHEL_X86_HA: string},
* RHSM_API_RESPONSE_SUBSCRIPTIONS_DATA_TYPES: {BILLING_ACCOUNT_ID: string, QUANTITY: string,
* SUBSCRIPTION_MANAGER_ID: string, INVENTORY_ID: string, NUMBER_OF_GUESTS: string, HAS_INFINITE_QUANTITY: string,
* TOTAL_CAPACITY: string, PRODUCT_NAME: string, SERVICE_LEVEL: string, DISPLAY_NAME: string, MEASUREMENTS: string,
* UOM: string, CATEGORY: string, NEXT_EVENT_DATE: string, BILLING_PROVIDER: string, LAST_SEEN: string},
* RHSM_API_QUERY_INVENTORY_SORT_DIRECTION_TYPES: {ASCENDING: string, DESCENDING: string},
* RHSM_API_RESPONSE_SUBSCRIPTION_TYPES: {ANNUAL: string, ON_DEMAND: string}, RHSM_API_QUERY_INVENTORY_SORT_TYPES:
* {CORES: string, STORAGE_GIBIBYTES: string, CATEGORY: string, SOCKETS: string, INSTANCE_HOURS: string,
Expand Down
13 changes: 13 additions & 0 deletions tests/__snapshots__/dist.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,7 @@ exports[`Build distribution should have a predictable ephemeral navigation based
"RHEL for IBM z",
"RHEL for x86",
"rhel-for-x86-eus",
"rhel-for-x86-ha",
"rhel-for-sap-x86",
"Satellite Capsule",
"Satellite Server",
Expand All @@ -235,6 +236,7 @@ exports[`Build distribution should have a predictable ephemeral navigation based
"RHEL for IBM z",
"RHEL for x86",
"rhel-for-x86-eus",
"rhel-for-x86-ha",
"rhel-for-sap-x86",
"Satellite Capsule",
"Satellite Server",
Expand All @@ -256,6 +258,7 @@ exports[`Build distribution should have a predictable ephemeral navigation based
"RHEL for IBM z",
"RHEL for x86",
"rhel-for-x86-eus",
"rhel-for-x86-ha",
"rhel-for-sap-x86",
"Satellite Capsule",
"Satellite Server",
Expand All @@ -277,6 +280,7 @@ exports[`Build distribution should have a predictable ephemeral navigation based
"RHEL for IBM z",
"RHEL for x86",
"rhel-for-x86-eus",
"rhel-for-x86-ha",
"rhel-for-sap-x86",
"Satellite Capsule",
"Satellite Server",
Expand All @@ -298,6 +302,7 @@ exports[`Build distribution should have a predictable ephemeral navigation based
"RHEL for IBM z",
"RHEL for x86",
"rhel-for-x86-eus",
"rhel-for-x86-ha",
"rhel-for-sap-x86",
"Satellite Capsule",
"Satellite Server",
Expand All @@ -319,6 +324,7 @@ exports[`Build distribution should have a predictable ephemeral navigation based
"RHEL for IBM z",
"RHEL for x86",
"rhel-for-x86-eus",
"rhel-for-x86-ha",
"rhel-for-sap-x86",
"Satellite Capsule",
"Satellite Server",
Expand All @@ -340,6 +346,7 @@ exports[`Build distribution should have a predictable ephemeral navigation based
"RHEL for IBM z",
"RHEL for x86",
"rhel-for-x86-eus",
"rhel-for-x86-ha",
"rhel-for-sap-x86",
"Satellite Capsule",
"Satellite Server",
Expand All @@ -361,6 +368,7 @@ exports[`Build distribution should have a predictable ephemeral navigation based
"RHEL for IBM z",
"RHEL for x86",
"rhel-for-x86-eus",
"rhel-for-x86-ha",
"rhel-for-sap-x86",
"Satellite Capsule",
"Satellite Server",
Expand All @@ -382,6 +390,7 @@ exports[`Build distribution should have a predictable ephemeral navigation based
"RHEL for IBM z",
"RHEL for x86",
"rhel-for-x86-eus",
"rhel-for-x86-ha",
"rhel-for-sap-x86",
"Satellite Capsule",
"Satellite Server",
Expand All @@ -403,6 +412,7 @@ exports[`Build distribution should have a predictable ephemeral navigation based
"RHEL for IBM z",
"RHEL for x86",
"rhel-for-x86-eus",
"rhel-for-x86-ha",
"rhel-for-sap-x86",
"Satellite Capsule",
"Satellite Server",
Expand All @@ -424,6 +434,7 @@ exports[`Build distribution should have a predictable ephemeral navigation based
"RHEL for IBM z",
"RHEL for x86",
"rhel-for-x86-eus",
"rhel-for-x86-ha",
"rhel-for-sap-x86",
"Satellite Capsule",
"Satellite Server",
Expand Down Expand Up @@ -516,6 +527,7 @@ exports[`Build distribution should have a predictable ephemeral navigation based
"RHEL for IBM z",
"RHEL for x86",
"rhel-for-x86-eus",
"rhel-for-x86-ha",
"rhel-for-sap-x86",
"Satellite Capsule",
"Satellite Server",
Expand Down Expand Up @@ -572,6 +584,7 @@ exports[`Build distribution should have a predictable ephemeral navigation based
"RHEL for IBM z",
"RHEL for x86",
"rhel-for-x86-eus",
"rhel-for-x86-ha",
"rhel-for-sap-x86",
"Satellite Capsule",
"Satellite Server",
Expand Down

0 comments on commit 1631c77

Please sign in to comment.