From e775e84a7ea2db7318a2aadd9e4edac331ff86e6 Mon Sep 17 00:00:00 2001 From: jaymode Date: Thu, 18 Jan 2018 12:46:01 -0700 Subject: [PATCH] Test: add additional logging to SslMultiPortTests This commit adds some additional logging to the SslMultiPortTests to help with debugging an intermittent failure. Relates elastic/x-pack-elasticsearch#1809 Original commit: elastic/x-pack-elasticsearch@ae9c967249ec63f106f898738d439b24cc4b3ecd --- .../xpack/security/transport/ssl/SslMultiPortTests.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plugin/src/test/java/org/elasticsearch/xpack/security/transport/ssl/SslMultiPortTests.java b/plugin/src/test/java/org/elasticsearch/xpack/security/transport/ssl/SslMultiPortTests.java index 29607faa41a..bcb4773310e 100644 --- a/plugin/src/test/java/org/elasticsearch/xpack/security/transport/ssl/SslMultiPortTests.java +++ b/plugin/src/test/java/org/elasticsearch/xpack/security/transport/ssl/SslMultiPortTests.java @@ -58,7 +58,7 @@ public class SslMultiPortTests extends SecurityIntegTestCase { throw new RuntimeException(e); } - return Settings.builder() + Settings settings = Settings.builder() .put(super.nodeSettings(nodeOrdinal)) // client set up here .put("transport.profiles.client.port", randomClientPortRange) @@ -70,6 +70,8 @@ public class SslMultiPortTests extends SecurityIntegTestCase { .put("transport.profiles.no_client_auth.bind_host", "localhost") .put("transport.profiles.no_client_auth.xpack.security.ssl.client_authentication", SSLClientAuth.NONE) .build(); + logger.info("node {} settings:\n{}", nodeOrdinal, settings); + return settings; } @Override @@ -85,6 +87,7 @@ public class SslMultiPortTests extends SecurityIntegTestCase { .put("xpack.security.transport.ssl.enabled", true) .put(additionalSettings) .build(); + logger.info("transport client settings:\n{}", settings); return new TestXPackTransportClient(settings); }