From 2e3d3a5f178128c3b61f0ebb9e83f2cc8bc59ad8 Mon Sep 17 00:00:00 2001 From: CD Cabrera Date: Thu, 3 Aug 2023 12:01:34 -0400 Subject: [PATCH] DEV test updates --- public/locales/en-US.json | 3 - .../__tests__/__snapshots__/i18n.test.js.snap | 109 ------------------ .../__snapshots__/products.test.js.snap | 1 - 3 files changed, 113 deletions(-) diff --git a/public/locales/en-US.json b/public/locales/en-US.json index b52cd3bab..b1a6cd886 100644 --- a/public/locales/en-US.json +++ b/public/locales/en-US.json @@ -428,9 +428,6 @@ "title_rosa": "ROSA Hosted Control Planes", "subtitle_rosa": "Monitor your Red Hat OpenShift Service on AWS Hosted Control Planes usage for monthly pre-paid and On-Demand subscriptions. <0>Learn more about {{appName}} reporting", "description_rosa": "Monitor your Red Hat OpenShift Service on AWS Hosted Control Planes usage for monthly pre-paid and On-Demand subscriptions.", - "title_rhosak": "Red Hat OpenShift Streams for Apache Kafka", - "subtitle_rhosak": "Monitor your Apache Kafka usage for On-Demand subscriptions. <0>Learn more about {{appName}} reporting", - "description_rhosak": "Monitor your Apache Kafka usage for On-Demand subscriptions.", "title_Satellite": "Red Hat Satellite", "title_Satellite Capsule": "$t(curiosity-view.title_Satellite)", "title_Satellite Server": "$t(curiosity-view.title_Satellite)" diff --git a/src/components/i18n/__tests__/__snapshots__/i18n.test.js.snap b/src/components/i18n/__tests__/__snapshots__/i18n.test.js.snap index 1e5ab2327..e2f981bad 100644 --- a/src/components/i18n/__tests__/__snapshots__/i18n.test.js.snap +++ b/src/components/i18n/__tests__/__snapshots__/i18n.test.js.snap @@ -757,83 +757,6 @@ exports[`I18n Component should generate a predictable locale key output snapshot }, ], }, - { - "file": "src/config/product.rhosak.js", - "keys": [ - { - "key": "curiosity-graph.label_axisY", - "match": "translate('curiosity-graph.label_axisY', { context: id })", - }, - { - "key": "curiosity-graph.label_axisY", - "match": "translate('curiosity-graph.label_axisY', { context: id })", - }, - { - "key": "curiosity-graph.label_axisY", - "match": "translate('curiosity-graph.label_axisY', { context: id })", - }, - { - "key": "curiosity-graph.cardHeadingMetric", - "match": "translate('curiosity-graph.cardHeadingMetric', { context: ['dailyTotal', dataSets?.[0]?.display?.chartId], testId: 'graphDailyTotalCard-header' })", - }, - { - "key": "curiosity-graph.cardBodyMetric", - "match": "translate( 'curiosity-graph.cardBodyMetric', { context: ['total', dataSets?.[0]?.display?.dailyHasData && dataSets?.[0]?.display?.chartId], testId: 'graphDailyTotalCard-body', total: helpers .numberDisplay(dataSets?.[0]?.display?.dailyValue)", - }, - { - "key": "curiosity-graph.cardFooterMetric", - "match": "translate('curiosity-graph.cardFooterMetric', { date: moment .utc(dataSets?.[0]?.display?.dailyDate)", - }, - { - "key": "curiosity-graph.cardHeadingMetric", - "match": "translate('curiosity-graph.cardHeadingMetric', { context: ['monthlyTotal', dataSets?.[0]?.display?.chartId], testId: 'graphMonthlyTotalCard-header' })", - }, - { - "key": "curiosity-graph.cardBodyMetric", - "match": "translate( 'curiosity-graph.cardBodyMetric', { context: ['total', dataSets?.[0]?.display?.monthlyHasData && dataSets?.[0]?.display?.chartId], testId: 'graphMonthlyTotalCard-body', total: helpers .numberDisplay(dataSets?.[0]?.display?.monthlyValue)", - }, - { - "key": "curiosity-graph.cardFooterMetric", - "match": "translate('curiosity-graph.cardFooterMetric', { date: moment .utc(dataSets?.[0]?.display?.monthlyDate)", - }, - { - "key": "curiosity-graph.label_axisX", - "match": "translate('curiosity-graph.label_axisX', { context: GRANULARITY_TYPES.DAILY })", - }, - { - "key": "", - "match": "translate(\`curiosity-inventory.label_\${INVENTORY_TYPES.BILLING_PROVIDER}\`, { context: provider?.value || 'none' })", - }, - { - "key": "curiosity-inventory.header", - "match": "translate('curiosity-inventory.header', { context: ['tooltip', RHSM_API_PATH_METRIC_TYPES.TRANSFER_GIBIBYTES] })", - }, - { - "key": "curiosity-inventory.measurement", - "match": "translate('curiosity-inventory.measurement', { context: RHSM_API_PATH_METRIC_TYPES.TRANSFER_GIBIBYTES, total: helpers.numberDisplay(total?.value)", - }, - { - "key": "curiosity-inventory.header", - "match": "translate('curiosity-inventory.header', { context: ['tooltip', RHSM_API_PATH_METRIC_TYPES.STORAGE_GIBIBYTE_MONTHS] })", - }, - { - "key": "curiosity-inventory.measurement", - "match": "translate('curiosity-inventory.measurement', { context: RHSM_API_PATH_METRIC_TYPES.STORAGE_GIBIBYTE_MONTHS, total: helpers.numberDisplay(total?.value)", - }, - { - "key": "curiosity-inventory.measurement", - "match": "translate('curiosity-inventory.measurement', { context: RHSM_API_PATH_METRIC_TYPES.INSTANCE_HOURS, total: helpers.numberDisplay(total?.value)", - }, - { - "key": "curiosity-inventory.label", - "match": "translate(\`curiosity-inventory.label\`, { context: [SUBSCRIPTIONS_INVENTORY_TYPES.BILLING_PROVIDER, provider?.value || 'none'] })", - }, - { - "key": "", - "match": "translate(\`curiosity-inventory.label_\${SUBSCRIPTIONS_INVENTORY_META_TYPES.SUBSCRIPTION_TYPE}\`, { context: subscriptionType || EMPTY_CONTEXT })", - }, - ], - }, { "file": "src/config/product.rosa.js", "keys": [ @@ -1066,38 +989,6 @@ exports[`I18n Component should have locale keys that exist in the default langua "file": "src/config/product.rhods.js", "key": "curiosity-inventory.label", }, - { - "file": "src/config/product.rhosak.js", - "key": "curiosity-graph.label_axisY", - }, - { - "file": "src/config/product.rhosak.js", - "key": "curiosity-graph.label_axisY", - }, - { - "file": "src/config/product.rhosak.js", - "key": "curiosity-graph.label_axisY", - }, - { - "file": "src/config/product.rhosak.js", - "key": "curiosity-graph.label_axisX", - }, - { - "file": "src/config/product.rhosak.js", - "key": "curiosity-inventory.measurement", - }, - { - "file": "src/config/product.rhosak.js", - "key": "curiosity-inventory.measurement", - }, - { - "file": "src/config/product.rhosak.js", - "key": "curiosity-inventory.measurement", - }, - { - "file": "src/config/product.rhosak.js", - "key": "curiosity-inventory.label", - }, { "file": "src/config/product.rosa.js", "key": "curiosity-graph.label_axisX", diff --git a/src/config/__tests__/__snapshots__/products.test.js.snap b/src/config/__tests__/__snapshots__/products.test.js.snap index d915112e0..28a16a058 100644 --- a/src/config/__tests__/__snapshots__/products.test.js.snap +++ b/src/config/__tests__/__snapshots__/products.test.js.snap @@ -392,7 +392,6 @@ exports[`Product configurations should return specific methods and properties: p "rhacs", "RHEL for x86", "rhods", - "rhosak", "rosa", "Satellite Server", ],