Fixed env propagation for datanodes opensearch (#15458)

This commit is contained in:
Tomas Dvorak
2023-05-09 14:54:56 +02:00
committed by GitHub
parent 429054f1a5
commit 2d59457315
2 changed files with 3 additions and 2 deletions

View File

@@ -29,6 +29,7 @@ class EnvironmentTest {
void testFiltering() {
final Environment env = new Environment(Map.of("USER", "test", "JAVA_HOME", "/path/to/jre"));
Assertions.assertThat(env.getEnv())
.doesNotContainKey("JAVA_HOME");
.doesNotContainKey("JAVA_HOME")
.containsKey("USER");
}
}