From 19c146399bac099ca6ca6e2e25de162b883a1b1b Mon Sep 17 00:00:00 2001
From: AWSHurneyt
Date: Fri, 2 Feb 2024 00:35:52 -0800
Subject: [PATCH 1/2] Updated snapshots.
Signed-off-by: AWSHurneyt
---
.../AddAlertingMonitor.test.js.snap | 2 ++
...lertsDashboardFlyoutComponent.test.js.snap | 18 +++++++++++++++
.../QueryPerformance.test.js.snap | 22 +------------------
.../AnomalyDetector.test.js.snap | 12 ++++++++++
.../__snapshots__/CreateMonitor.test.js.snap | 2 ++
.../formikToMonitor.test.js.snap | 2 ++
.../__snapshots__/DataSource.test.js.snap | 4 +---
.../__snapshots__/DefineMonitor.test.js.snap | 2 ++
.../__snapshots__/MonitorIndex.test.js.snap | 13 +++++++++++
.../AcknowledgeAlertsModal.test.js.snap | 2 ++
.../MonitorOverview.test.js.snap | 14 ++++++++++++
.../__snapshots__/Triggers.test.js.snap | 10 ++++++++-
12 files changed, 78 insertions(+), 25 deletions(-)
diff --git a/public/components/FeatureAnywhereContextMenu/AddAlertingMonitor/__snapshots__/AddAlertingMonitor.test.js.snap b/public/components/FeatureAnywhereContextMenu/AddAlertingMonitor/__snapshots__/AddAlertingMonitor.test.js.snap
index 4d1dfa1b6..3c2c05e33 100644
--- a/public/components/FeatureAnywhereContextMenu/AddAlertingMonitor/__snapshots__/AddAlertingMonitor.test.js.snap
+++ b/public/components/FeatureAnywhereContextMenu/AddAlertingMonitor/__snapshots__/AddAlertingMonitor.test.js.snap
@@ -19,6 +19,7 @@ exports[`AddAlertingMonitor renders 1`] = `
"associatedMonitorsList": Array [],
"bucketUnitOfTime": "h",
"bucketValue": 1,
+ "clusterNames": Array [],
"cronExpression": "0 */1 * * *",
"daily": 0,
"description": "",
@@ -60,6 +61,7 @@ exports[`AddAlertingMonitor renders 1`] = `
"timezone": Array [],
"uri": Object {
"api_type": "",
+ "clusters": Array [],
"path": "",
"path_params": "",
"url": "",
diff --git a/public/components/Flyout/flyouts/components/__snapshots__/AlertsDashboardFlyoutComponent.test.js.snap b/public/components/Flyout/flyouts/components/__snapshots__/AlertsDashboardFlyoutComponent.test.js.snap
index a0549545e..0b87d9708 100644
--- a/public/components/Flyout/flyouts/components/__snapshots__/AlertsDashboardFlyoutComponent.test.js.snap
+++ b/public/components/Flyout/flyouts/components/__snapshots__/AlertsDashboardFlyoutComponent.test.js.snap
@@ -76,6 +76,24 @@ exports[`AlertsDashboardFlyoutComponent renders 1`] = `
+
+
+
+ Monitor data sources
+
+
+ -
+
+
+
-
- Check the performance of your query and make sure to follow best practices.
-
- Learn more
-
- EuiIconMock
-
-
- (opens in a new tab or window)
-
-
-
-
+ />
-
+
`;
diff --git a/public/pages/CreateMonitor/containers/DefineMonitor/__snapshots__/DefineMonitor.test.js.snap b/public/pages/CreateMonitor/containers/DefineMonitor/__snapshots__/DefineMonitor.test.js.snap
index d887a6adb..874ed716a 100644
--- a/public/pages/CreateMonitor/containers/DefineMonitor/__snapshots__/DefineMonitor.test.js.snap
+++ b/public/pages/CreateMonitor/containers/DefineMonitor/__snapshots__/DefineMonitor.test.js.snap
@@ -21,6 +21,7 @@ exports[`DefineMonitor renders 1`] = `
"associatedMonitorsList": Array [],
"bucketUnitOfTime": "h",
"bucketValue": 1,
+ "clusterNames": Array [],
"cronExpression": "0 */1 * * *",
"daily": 0,
"description": "",
@@ -62,6 +63,7 @@ exports[`DefineMonitor renders 1`] = `
"timezone": Array [],
"uri": Object {
"api_type": "",
+ "clusters": Array [],
"path": "",
"path_params": "",
"url": "",
diff --git a/public/pages/CreateMonitor/containers/MonitorIndex/__snapshots__/MonitorIndex.test.js.snap b/public/pages/CreateMonitor/containers/MonitorIndex/__snapshots__/MonitorIndex.test.js.snap
index 2c0d6ed4f..5c818aa44 100644
--- a/public/pages/CreateMonitor/containers/MonitorIndex/__snapshots__/MonitorIndex.test.js.snap
+++ b/public/pages/CreateMonitor/containers/MonitorIndex/__snapshots__/MonitorIndex.test.js.snap
@@ -15,6 +15,7 @@ exports[`MonitorIndex renders 1`] = `
"associatedMonitorsList": Array [],
"bucketUnitOfTime": "h",
"bucketValue": 1,
+ "clusterNames": Array [],
"cronExpression": "0 */1 * * *",
"daily": 0,
"description": "",
@@ -56,6 +57,7 @@ exports[`MonitorIndex renders 1`] = `
"timezone": Array [],
"uri": Object {
"api_type": "",
+ "clusters": Array [],
"path": "",
"path_params": "",
"url": "",
@@ -86,6 +88,7 @@ exports[`MonitorIndex renders 1`] = `
Object {
"async": true,
"data-test-subj": "indicesComboBox",
+ "delimiter": ",",
"isClearable": true,
"isLoading": true,
"onBlur": [Function],
@@ -160,6 +163,7 @@ exports[`MonitorIndex renders 1`] = `
"associatedMonitorsList": Array [],
"bucketUnitOfTime": "h",
"bucketValue": 1,
+ "clusterNames": Array [],
"cronExpression": "0 */1 * * *",
"daily": 0,
"description": "",
@@ -201,6 +205,7 @@ exports[`MonitorIndex renders 1`] = `
"timezone": Array [],
"uri": Object {
"api_type": "",
+ "clusters": Array [],
"path": "",
"path_params": "",
"url": "",
@@ -251,6 +256,7 @@ exports[`MonitorIndex renders 1`] = `
"associatedMonitorsList": Array [],
"bucketUnitOfTime": "h",
"bucketValue": 1,
+ "clusterNames": Array [],
"cronExpression": "0 */1 * * *",
"daily": 0,
"description": "",
@@ -292,6 +298,7 @@ exports[`MonitorIndex renders 1`] = `
"timezone": Array [],
"uri": Object {
"api_type": "",
+ "clusters": Array [],
"path": "",
"path_params": "",
"url": "",
@@ -406,6 +413,7 @@ exports[`MonitorIndex renders 1`] = `
"associatedMonitorsList": Array [],
"bucketUnitOfTime": "h",
"bucketValue": 1,
+ "clusterNames": Array [],
"cronExpression": "0 */1 * * *",
"daily": 0,
"description": "",
@@ -447,6 +455,7 @@ exports[`MonitorIndex renders 1`] = `
"timezone": Array [],
"uri": Object {
"api_type": "",
+ "clusters": Array [],
"path": "",
"path_params": "",
"url": "",
@@ -497,6 +506,7 @@ exports[`MonitorIndex renders 1`] = `
"associatedMonitorsList": Array [],
"bucketUnitOfTime": "h",
"bucketValue": 1,
+ "clusterNames": Array [],
"cronExpression": "0 */1 * * *",
"daily": 0,
"description": "",
@@ -538,6 +548,7 @@ exports[`MonitorIndex renders 1`] = `
"timezone": Array [],
"uri": Object {
"api_type": "",
+ "clusters": Array [],
"path": "",
"path_params": "",
"url": "",
@@ -559,6 +570,7 @@ exports[`MonitorIndex renders 1`] = `
Object {
"async": true,
"data-test-subj": "indicesComboBox",
+ "delimiter": ",",
"isClearable": true,
"isLoading": true,
"onBlur": [Function],
@@ -588,6 +600,7 @@ exports[`MonitorIndex renders 1`] = `
async={true}
compressed={false}
data-test-subj="indicesComboBox"
+ delimiter=","
fullWidth={false}
id="index"
isClearable={true}
diff --git a/public/pages/Dashboard/components/AcknowledgeAlertsModal/__snapshots__/AcknowledgeAlertsModal.test.js.snap b/public/pages/Dashboard/components/AcknowledgeAlertsModal/__snapshots__/AcknowledgeAlertsModal.test.js.snap
index 0b146e70c..040b38d27 100644
--- a/public/pages/Dashboard/components/AcknowledgeAlertsModal/__snapshots__/AcknowledgeAlertsModal.test.js.snap
+++ b/public/pages/Dashboard/components/AcknowledgeAlertsModal/__snapshots__/AcknowledgeAlertsModal.test.js.snap
@@ -44,6 +44,7 @@ exports[`AcknowledgeAlertsModal renders 1`] = `
"associatedMonitorsList": Array [],
"bucketUnitOfTime": "h",
"bucketValue": 1,
+ "clusterNames": Array [],
"cronExpression": "0 */1 * * *",
"daily": 0,
"description": "",
@@ -85,6 +86,7 @@ exports[`AcknowledgeAlertsModal renders 1`] = `
"timezone": Array [],
"uri": Object {
"api_type": "",
+ "clusters": Array [],
"path": "",
"path_params": "",
"url": "",
diff --git a/public/pages/MonitorDetails/components/MonitorOverview/__snapshots__/MonitorOverview.test.js.snap b/public/pages/MonitorDetails/components/MonitorOverview/__snapshots__/MonitorOverview.test.js.snap
index 69cc25cf8..c68b27eb4 100644
--- a/public/pages/MonitorDetails/components/MonitorOverview/__snapshots__/MonitorOverview.test.js.snap
+++ b/public/pages/MonitorDetails/components/MonitorOverview/__snapshots__/MonitorOverview.test.js.snap
@@ -75,6 +75,20 @@ exports[`MonitorOverview renders 1`] = `
+
+
+
diff --git a/public/pages/MonitorDetails/containers/Triggers/__snapshots__/Triggers.test.js.snap b/public/pages/MonitorDetails/containers/Triggers/__snapshots__/Triggers.test.js.snap
index cb7cc4c55..a73f0d641 100644
--- a/public/pages/MonitorDetails/containers/Triggers/__snapshots__/Triggers.test.js.snap
+++ b/public/pages/MonitorDetails/containers/Triggers/__snapshots__/Triggers.test.js.snap
@@ -40,7 +40,15 @@ exports[`Triggers renders 1`] = `
itemId="id"
items={
Array [
- undefined,
+ Object {
+ "actions": Array [
+ Object {
+ "name": "Random Action",
+ },
+ ],
+ "name": "Random Trigger",
+ "severity": 1,
+ },
]
}
key="0"
From bda7e3eaebea59b0997deb2b0727b14d4e19af6c Mon Sep 17 00:00:00 2001
From: AWSHurneyt
Date: Mon, 5 Feb 2024 02:44:19 -0800
Subject: [PATCH 2/2] Added data-test-subj.
---
.../containers/CrossClusterConfiguration.js | 2 ++
1 file changed, 2 insertions(+)
diff --git a/public/pages/CreateMonitor/components/CrossClusterConfigurations/containers/CrossClusterConfiguration.js b/public/pages/CreateMonitor/components/CrossClusterConfigurations/containers/CrossClusterConfiguration.js
index d846bf796..48832190c 100644
--- a/public/pages/CreateMonitor/components/CrossClusterConfigurations/containers/CrossClusterConfiguration.js
+++ b/public/pages/CreateMonitor/components/CrossClusterConfigurations/containers/CrossClusterConfiguration.js
@@ -349,6 +349,7 @@ export class CrossClusterConfiguration extends Component {
renderOption: this.renderClusterOption,
onChange: this.onClustersChange,
selectedOptions: selectedClusters,
+ 'data-test-subj': 'clustersComboBox',
}}
/>
@@ -382,6 +383,7 @@ export class CrossClusterConfiguration extends Component {
onChange: this.onIndexesChange,
onCreateOption: this.onCreateOption,
selectedOptions: selectedIndexes,
+ 'data-test-subj': 'indicesComboBox',
}}
/>
)}