From e9abf1808902987c6cf0a1d13a62a25d3047dc3c Mon Sep 17 00:00:00 2001 From: Alexander Reelsen Date: Tue, 2 Jan 2018 17:38:52 +0100 Subject: [PATCH] Tests: Increase logging to see requests This test case fails on non-reproducibly on CI, so this adds request/response logging to make sure all the requests were actually successful. Relates elastic/x-pack-elasticsearch#3340 Original commit: elastic/x-pack-elasticsearch@9e6c359f8c8c87a4ce5cbd634691d2e11f9e3afb --- .../elasticsearch/smoketest/MonitoringWithWatcherRestIT.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/qa/smoke-test-monitoring-with-watcher/src/test/java/org/elasticsearch/smoketest/MonitoringWithWatcherRestIT.java b/qa/smoke-test-monitoring-with-watcher/src/test/java/org/elasticsearch/smoketest/MonitoringWithWatcherRestIT.java index 2b1b15dc150..8a373e02dc9 100644 --- a/qa/smoke-test-monitoring-with-watcher/src/test/java/org/elasticsearch/smoketest/MonitoringWithWatcherRestIT.java +++ b/qa/smoke-test-monitoring-with-watcher/src/test/java/org/elasticsearch/smoketest/MonitoringWithWatcherRestIT.java @@ -9,6 +9,7 @@ import org.apache.http.entity.ContentType; import org.apache.http.entity.StringEntity; import org.elasticsearch.client.Response; import org.elasticsearch.common.xcontent.XContentType; +import org.elasticsearch.test.junit.annotations.TestLogging; import org.elasticsearch.test.rest.ESRestTestCase; import org.elasticsearch.test.rest.yaml.ObjectPath; import org.elasticsearch.xpack.watcher.actions.ActionBuilders; @@ -25,6 +26,7 @@ import static org.elasticsearch.xpack.watcher.input.InputBuilders.simpleInput; import static org.elasticsearch.xpack.watcher.trigger.schedule.IntervalSchedule.Interval.Unit.MINUTES; import static org.hamcrest.Matchers.is; +@TestLogging("org.elasticsearch.client:TRACE") public class MonitoringWithWatcherRestIT extends ESRestTestCase { @After