Skip to content

Commit

Permalink
feat(config): sw-1891 activate rhel for x86 rs (#1227)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sgitario authored Nov 2, 2023
1 parent 3d21ec1 commit 7fbd414
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 2 deletions.
9 changes: 9 additions & 0 deletions public/locales/en-US.json
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@
"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-x86-rs": "$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 @@ -135,6 +136,7 @@
"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-x86-rs": "$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 @@ -145,6 +147,7 @@
"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-x86-rs": "$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 @@ -161,6 +164,7 @@
"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-x86-rs": "$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 @@ -177,6 +181,7 @@
"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-x86-rs": "$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 @@ -319,6 +324,7 @@
"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-x86-rs": "RHEL for x86 Resilient Storage",
"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 @@ -428,6 +434,9 @@
"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-x86-rs": "$t(curiosity-view.title_RHEL)",
"subtitle_rhel-for-x86-rs": "$t(curiosity-view.subtitle_RHEL)",
"description_rhel-for-x86-rs": "$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 @@ -24,6 +24,7 @@ exports[`RHSM Constants should have specific properties: all exported constants
"RHEL_X86": "RHEL for x86",
"RHEL_X86_EUS": "rhel-for-x86-eus",
"RHEL_X86_HA": "rhel-for-x86-ha",
"RHEL_X86_RS": "rhel-for-x86-rs",
"RHEL_X86_SAP": "rhel-for-sap-x86",
"RHODS": "rhods",
"ROSA": "rosa",
Expand All @@ -37,6 +38,7 @@ exports[`RHSM Constants should have specific properties: all exported constants
"RHEL_X86": "RHEL for x86",
"RHEL_X86_EUS": "rhel-for-x86-eus",
"RHEL_X86_HA": "rhel-for-x86-ha",
"RHEL_X86_RS": "rhel-for-x86-rs",
"RHEL_X86_SAP": "rhel-for-sap-x86",
},
"RHSM_API_PATH_PRODUCT_VARIANT_SATELLITE_TYPES": {
Expand Down Expand Up @@ -284,6 +286,7 @@ exports[`RHSM Constants should have specific properties: all exported constants
"RHEL_X86": "RHEL for x86",
"RHEL_X86_EUS": "rhel-for-x86-eus",
"RHEL_X86_HA": "rhel-for-x86-ha",
"RHEL_X86_RS": "rhel-for-x86-rs",
"RHEL_X86_SAP": "rhel-for-sap-x86",
"RHODS": "rhods",
"ROSA": "rosa",
Expand All @@ -297,6 +300,7 @@ exports[`RHSM Constants should have specific properties: all exported constants
"RHEL_X86": "RHEL for x86",
"RHEL_X86_EUS": "rhel-for-x86-eus",
"RHEL_X86_HA": "rhel-for-x86-ha",
"RHEL_X86_RS": "rhel-for-x86-rs",
"RHEL_X86_SAP": "rhel-for-sap-x86",
},
"RHSM_API_PATH_PRODUCT_VARIANT_SATELLITE_TYPES": {
Expand Down Expand Up @@ -545,6 +549,7 @@ exports[`RHSM Constants should have specific properties: all exported constants
"RHEL_X86": "RHEL for x86",
"RHEL_X86_EUS": "rhel-for-x86-eus",
"RHEL_X86_HA": "rhel-for-x86-ha",
"RHEL_X86_RS": "rhel-for-x86-rs",
"RHEL_X86_SAP": "rhel-for-sap-x86",
"RHODS": "rhods",
"ROSA": "rosa",
Expand All @@ -558,6 +563,7 @@ exports[`RHSM Constants should have specific properties: all exported constants
"RHEL_X86": "RHEL for x86",
"RHEL_X86_EUS": "rhel-for-x86-eus",
"RHEL_X86_HA": "rhel-for-x86-ha",
"RHEL_X86_RS": "rhel-for-x86-rs",
"RHEL_X86_SAP": "rhel-for-sap-x86",
},
"RHSM_API_PATH_PRODUCT_VARIANT_SATELLITE_TYPES": {
Expand Down Expand Up @@ -810,6 +816,7 @@ exports[`RHSM Constants should have specific properties: specific constants 1`]
"RHEL_X86": "RHEL for x86",
"RHEL_X86_EUS": "rhel-for-x86-eus",
"RHEL_X86_HA": "rhel-for-x86-ha",
"RHEL_X86_RS": "rhel-for-x86-rs",
"RHEL_X86_SAP": "rhel-for-sap-x86",
"RHODS": "rhods",
"ROSA": "rosa",
Expand All @@ -823,6 +830,7 @@ exports[`RHSM Constants should have specific properties: specific constants 1`]
"RHEL_X86": "RHEL for x86",
"RHEL_X86_EUS": "rhel-for-x86-eus",
"RHEL_X86_HA": "rhel-for-x86-ha",
"RHEL_X86_RS": "rhel-for-x86-rs",
"RHEL_X86_SAP": "rhel-for-sap-x86",
},
"RHSM_API_PATH_PRODUCT_VARIANT_SATELLITE_TYPES": {
Expand Down
5 changes: 3 additions & 2 deletions src/services/rhsm/rhsmConstants.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* 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_HA: string}}
* RHEL_X86_EUS: string, RHEL_X86_HA: string, RHEL_X86_RS: string}}
*/
const RHSM_API_PATH_PRODUCT_VARIANT_RHEL_TYPES = {
RHEL_ARM: 'RHEL for ARM',
Expand All @@ -16,6 +16,7 @@ const RHSM_API_PATH_PRODUCT_VARIANT_RHEL_TYPES = {
RHEL_X86: 'RHEL for x86',
RHEL_X86_EUS: 'rhel-for-x86-eus',
RHEL_X86_HA: 'rhel-for-x86-ha',
RHEL_X86_RS: 'rhel-for-x86-rs',
RHEL_X86_SAP: 'rhel-for-sap-x86'
};

Expand Down Expand Up @@ -441,7 +442,7 @@ 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, RHEL_X86_HA: string},
* RHEL_IBM_POWER: string, RHEL_X86: string, RHEL_X86_EUS: string, RHEL_X86_HA: string, RHEL_X86_RS: 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,
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 @@ -215,6 +215,7 @@ exports[`Build distribution should have a predictable ephemeral navigation based
"RHEL for x86",
"rhel-for-x86-eus",
"rhel-for-x86-ha",
"rhel-for-x86-rs",
"rhel-for-sap-x86",
"Satellite Capsule",
"Satellite Server",
Expand All @@ -237,6 +238,7 @@ exports[`Build distribution should have a predictable ephemeral navigation based
"RHEL for x86",
"rhel-for-x86-eus",
"rhel-for-x86-ha",
"rhel-for-x86-rs",
"rhel-for-sap-x86",
"Satellite Capsule",
"Satellite Server",
Expand All @@ -259,6 +261,7 @@ exports[`Build distribution should have a predictable ephemeral navigation based
"RHEL for x86",
"rhel-for-x86-eus",
"rhel-for-x86-ha",
"rhel-for-x86-rs",
"rhel-for-sap-x86",
"Satellite Capsule",
"Satellite Server",
Expand All @@ -281,6 +284,7 @@ exports[`Build distribution should have a predictable ephemeral navigation based
"RHEL for x86",
"rhel-for-x86-eus",
"rhel-for-x86-ha",
"rhel-for-x86-rs",
"rhel-for-sap-x86",
"Satellite Capsule",
"Satellite Server",
Expand All @@ -303,6 +307,7 @@ exports[`Build distribution should have a predictable ephemeral navigation based
"RHEL for x86",
"rhel-for-x86-eus",
"rhel-for-x86-ha",
"rhel-for-x86-rs",
"rhel-for-sap-x86",
"Satellite Capsule",
"Satellite Server",
Expand All @@ -325,6 +330,7 @@ exports[`Build distribution should have a predictable ephemeral navigation based
"RHEL for x86",
"rhel-for-x86-eus",
"rhel-for-x86-ha",
"rhel-for-x86-rs",
"rhel-for-sap-x86",
"Satellite Capsule",
"Satellite Server",
Expand All @@ -347,6 +353,7 @@ exports[`Build distribution should have a predictable ephemeral navigation based
"RHEL for x86",
"rhel-for-x86-eus",
"rhel-for-x86-ha",
"rhel-for-x86-rs",
"rhel-for-sap-x86",
"Satellite Capsule",
"Satellite Server",
Expand All @@ -369,6 +376,7 @@ exports[`Build distribution should have a predictable ephemeral navigation based
"RHEL for x86",
"rhel-for-x86-eus",
"rhel-for-x86-ha",
"rhel-for-x86-rs",
"rhel-for-sap-x86",
"Satellite Capsule",
"Satellite Server",
Expand All @@ -391,6 +399,7 @@ exports[`Build distribution should have a predictable ephemeral navigation based
"RHEL for x86",
"rhel-for-x86-eus",
"rhel-for-x86-ha",
"rhel-for-x86-rs",
"rhel-for-sap-x86",
"Satellite Capsule",
"Satellite Server",
Expand All @@ -413,6 +422,7 @@ exports[`Build distribution should have a predictable ephemeral navigation based
"RHEL for x86",
"rhel-for-x86-eus",
"rhel-for-x86-ha",
"rhel-for-x86-rs",
"rhel-for-sap-x86",
"Satellite Capsule",
"Satellite Server",
Expand All @@ -435,6 +445,7 @@ exports[`Build distribution should have a predictable ephemeral navigation based
"RHEL for x86",
"rhel-for-x86-eus",
"rhel-for-x86-ha",
"rhel-for-x86-rs",
"rhel-for-sap-x86",
"Satellite Capsule",
"Satellite Server",
Expand Down Expand Up @@ -528,6 +539,7 @@ exports[`Build distribution should have a predictable ephemeral navigation based
"RHEL for x86",
"rhel-for-x86-eus",
"rhel-for-x86-ha",
"rhel-for-x86-rs",
"rhel-for-sap-x86",
"Satellite Capsule",
"Satellite Server",
Expand Down Expand Up @@ -585,6 +597,7 @@ exports[`Build distribution should have a predictable ephemeral navigation based
"RHEL for x86",
"rhel-for-x86-eus",
"rhel-for-x86-ha",
"rhel-for-x86-rs",
"rhel-for-sap-x86",
"Satellite Capsule",
"Satellite Server",
Expand Down

0 comments on commit 7fbd414

Please sign in to comment.