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@514c4e105c1185db7903f5be264c0d8f2dbee738
@@ -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);
}
