public Map<String, String> build() {
    Map<String, String> builder = new HashMap<>();
    configureFileSystem(builder);
    configureNetwork(builder);
    configureCluster(builder);
    configureSecurity(builder);
    configureOthers(builder);
    LOGGER.info("Elasticsearch listening on [HTTP: {}:{}, TCP: {}:{}]",
      builder.get(ES_HTTP_HOST_KEY), builder.get(ES_HTTP_PORT_KEY),
      builder.get(ES_TRANSPORT_HOST_KEY), builder.get(ES_TRANSPORT_PORT_KEY));
    return builder;
  }
@Test
  public void configureSecurity_whenHttpKeystoreNotProvided_shouldNotAddHttpProperties() throws Exception {
    Props props = minProps(true);
    File keystore = temp.newFile("keystore.p12");
    File truststore = temp.newFile("truststore.p12");
    props.set(CLUSTER_SEARCH_PASSWORD.getKey(), "qwerty");
    props.set(CLUSTER_ES_KEYSTORE.getKey(), keystore.getAbsolutePath());
    props.set(CLUSTER_ES_TRUSTSTORE.getKey(), truststore.getAbsolutePath());

    EsSettings settings = new EsSettings(props, new EsInstallation(props), system);

    Map<String, String> outputParams = settings.build();

    assertThat(outputParams)
      .doesNotContainKey("xpack.security.http.ssl.enabled")
      .doesNotContainKey("xpack.security.http.ssl.keystore.path");
  }