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@ae9c967249
This commit is contained in:
jaymode 2018-01-18 12:46:01 -07:00
parent 40d315b244
commit e775e84a7e
1 changed files with 4 additions and 1 deletions

View File

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