Tests: Log HTTP requests/response for external hipchat tests
Relates elastic/x-pack-elasticsearch#1774
Original commit: elastic/x-pack-elasticsearch@bdd86236e2d361580fca93cf626a483c29ad4027
@@ -199,6 +199,8 @@ public class HipChatServiceTests extends AbstractWatcherIntegrationTestCase {
private void assertSentMessagesAreValid(int expectedMessageSize, SentMessages messages) {
assertThat(messages.count(), is(expectedMessageSize));
for (SentMessages.SentMessage message : messages) {
+ logger.info("Request: [{}]", message.getRequest());
+ logger.info("Response: [{}]", message.getResponse());
assertThat("Expected no failures, but got [" + message.getFailureReason() + "]", message.successful(), is(true));
assertThat(message.getRequest(), notNullValue());
assertThat(message.getResponse(), notNullValue());
