diff --git a/public/locales/en-US.json b/public/locales/en-US.json index 3301f763e..c83d65f37 100644 --- a/public/locales/en-US.json +++ b/public/locales/en-US.json @@ -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)", @@ -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)", @@ -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", @@ -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." @@ -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)", @@ -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", @@ -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)", diff --git a/src/services/rhsm/__tests__/__snapshots__/rhsmConstants.test.js.snap b/src/services/rhsm/__tests__/__snapshots__/rhsmConstants.test.js.snap index fdc078678..06bc1a1ac 100644 --- a/src/services/rhsm/__tests__/__snapshots__/rhsmConstants.test.js.snap +++ b/src/services/rhsm/__tests__/__snapshots__/rhsmConstants.test.js.snap @@ -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", @@ -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": { @@ -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", @@ -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": { @@ -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", @@ -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": { @@ -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", @@ -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": { diff --git a/src/services/rhsm/rhsmConstants.js b/src/services/rhsm/rhsmConstants.js index bfa76d132..39280566a 100644 --- a/src/services/rhsm/rhsmConstants.js +++ b/src/services/rhsm/rhsmConstants.js @@ -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', @@ -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' }; @@ -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, diff --git a/tests/__snapshots__/dist.test.js.snap b/tests/__snapshots__/dist.test.js.snap index b2793dc30..01a795384 100644 --- a/tests/__snapshots__/dist.test.js.snap +++ b/tests/__snapshots__/dist.test.js.snap @@ -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", @@ -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", @@ -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", @@ -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", @@ -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", @@ -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", @@ -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", @@ -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", @@ -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", @@ -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", @@ -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", @@ -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", @@ -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",