From ff60564113a3798e4e2172c901866eab54fa5860 Mon Sep 17 00:00:00 2001 From: Mary Gouseti Date: Thu, 2 Feb 2023 12:39:38 +0100 Subject: [PATCH] Remove MonitoringWithWatcherRestIT.testThatLocalExporterAddsWatches We remove this test because it is flaky and the feature tested here is already tested by monitoring. --- .../MonitoringWithWatcherRestIT.java | 22 ------------------- 1 file changed, 22 deletions(-) diff --git a/x-pack/plugin/watcher/qa/with-monitoring/src/javaRestTest/java/org/elasticsearch/smoketest/MonitoringWithWatcherRestIT.java b/x-pack/plugin/watcher/qa/with-monitoring/src/javaRestTest/java/org/elasticsearch/smoketest/MonitoringWithWatcherRestIT.java index e854b524aa72c..d8ccbfd7688fa 100644 --- a/x-pack/plugin/watcher/qa/with-monitoring/src/javaRestTest/java/org/elasticsearch/smoketest/MonitoringWithWatcherRestIT.java +++ b/x-pack/plugin/watcher/qa/with-monitoring/src/javaRestTest/java/org/elasticsearch/smoketest/MonitoringWithWatcherRestIT.java @@ -44,28 +44,6 @@ public void cleanExporters() throws Exception { deleteAllWatcherData(); } - @AwaitsFix(bugUrl = "https://github.com/elastic/elasticsearch/issues/59132") - public void testThatLocalExporterAddsWatches() throws Exception { - String watchId = createMonitoringWatch(); - - Request request = new Request("PUT", "/_cluster/settings"); - request.setJsonEntity( - Strings.toString( - jsonBuilder().startObject() - .startObject("persistent") - .field("xpack.monitoring.exporters.my_local_exporter.type", "local") - .field("xpack.monitoring.exporters.my_local_exporter.cluster_alerts.management.enabled", true) - .endObject() - .endObject() - ) - ); - adminClient().performRequest(request); - - assertTotalWatchCount(WATCH_IDS.length); - - assertMonitoringWatchHasBeenOverWritten(watchId); - } - private void assertMonitoringWatchHasBeenOverWritten(String watchId) throws Exception { assertBusy(() -> { ObjectPath path = ObjectPath.createFromResponse(client().performRequest(new Request("GET", "/_watcher/watch/" + watchId)));