From 74f3596621e3692ca8e5be15ba12ce41e23b408b Mon Sep 17 00:00:00 2001 From: Martijn van Groningen Date: Tue, 26 Jan 2021 10:00:38 +0100 Subject: [PATCH] Unmute and enable test logging Relates to #66586 --- .../TransportMonitoringMigrateAlertsActionTests.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/x-pack/plugin/monitoring/src/test/java/org/elasticsearch/xpack/monitoring/action/TransportMonitoringMigrateAlertsActionTests.java b/x-pack/plugin/monitoring/src/test/java/org/elasticsearch/xpack/monitoring/action/TransportMonitoringMigrateAlertsActionTests.java index b086060d36047..d8832751a3682 100644 --- a/x-pack/plugin/monitoring/src/test/java/org/elasticsearch/xpack/monitoring/action/TransportMonitoringMigrateAlertsActionTests.java +++ b/x-pack/plugin/monitoring/src/test/java/org/elasticsearch/xpack/monitoring/action/TransportMonitoringMigrateAlertsActionTests.java @@ -32,6 +32,7 @@ import org.elasticsearch.test.http.MockRequest; import org.elasticsearch.test.http.MockResponse; import org.elasticsearch.test.http.MockWebServer; +import org.elasticsearch.test.junit.annotations.TestLogging; import org.elasticsearch.xpack.core.XPackSettings; import org.elasticsearch.xpack.core.monitoring.action.MonitoringMigrateAlertsAction; import org.elasticsearch.xpack.core.monitoring.action.MonitoringMigrateAlertsRequest; @@ -107,7 +108,9 @@ private void stopMonitoring() { )); } - @AwaitsFix(bugUrl = "https://github.com/elastic/elasticsearch/issues/66586") + @TestLogging( + value = "org.elasticsearch.xpack.monitoring.exporter.local:trace", + reason = "to ensure we log local exporter on trace level") public void testLocalAlertsRemoval() throws Exception { try { // start monitoring service @@ -142,7 +145,9 @@ public void testLocalAlertsRemoval() throws Exception { } } - @AwaitsFix(bugUrl = "https://github.com/elastic/elasticsearch/issues/66586") + @TestLogging( + value = "org.elasticsearch.xpack.monitoring.exporter.local:trace", + reason = "to ensure we log local exporter on trace level") public void testRepeatedLocalAlertsRemoval() throws Exception { try { // start monitoring service