// TODO add argument to specify yaml configuration file
.setPort(Integer.valueOf(settingsMap.get("transport.tcp.port")));
- settingsMap.entrySet().stream()
- .filter(entry -> !"path.home".equals(entry.getKey()))
- .forEach(entry -> res.addEsOption("-E" + entry.getKey() + "=" + entry.getValue()));
+ settingsMap.forEach((key, value) -> res.addEsOption("-E" + key + "=" + value));
return res;
}
builder.put("path.data", dataDir.getAbsolutePath());
- String tempPath = props.value(ProcessProperties.PATH_TEMP);
- builder.put("path.home", new File(tempPath, "es").getAbsolutePath());
-
// log dir
String logPath = props.value(ProcessProperties.PATH_LOGS);
if (StringUtils.isNotEmpty(logPath)) {
assertThat(generated.get("path.data")).isNotNull();
assertThat(generated.get("path.logs")).isNotNull();
- assertThat(generated.get("path.home")).isNotNull();
+ assertThat(generated.get("path.home")).isNull();
// http is disabled for security reasons
assertThat(generated.get("http.enabled")).isEqualTo("false");
assertThat(settings.get("path.data")).isEqualTo(new File(dataDir, "es").getAbsolutePath());
assertThat(settings.get("path.logs")).isEqualTo(logDir.getAbsolutePath());
- assertThat(settings.get("path.home")).isEqualTo(new File(tempDir, "es").getAbsolutePath());
+ assertThat(settings.get("path.home")).isNull();
}
@Test