@@ -334,27 +334,6 @@ public void test80RelativePathConf() throws Exception {
334334 });
335335 }
336336
337- public void test90SecurityCliPackaging () throws Exception {
338- final Installation .Executables bin = installation .executables ();
339-
340- if (distribution ().isDefault ()) {
341- assertThat (installation .lib .resolve ("tools" ).resolve ("security-cli" ), fileExists ());
342- final Platforms .PlatformAction action = () -> {
343- Result result = sh .run (bin .certutilTool + " --help" );
344- assertThat (result .stdout , containsString ("Simplifies certificate creation for use with the Elastic Stack" ));
345-
346- // Ensure that the exit code from the java command is passed back up through the shell script
347- result = sh .runIgnoreExitCode (bin .certutilTool + " invalid-command" );
348- assertThat (result .exitCode , is (not (0 )));
349- assertThat (result .stderr , containsString ("Unknown command [invalid-command]" ));
350- };
351- Platforms .onLinux (action );
352- Platforms .onWindows (action );
353- } else {
354- assertThat (installation .lib .resolve ("tools" ).resolve ("security-cli" ), fileDoesNotExist ());
355- }
356- }
357-
358337 public void test91ElasticsearchShardCliPackaging () throws Exception {
359338 final Installation .Executables bin = installation .executables ();
360339
@@ -397,28 +376,4 @@ public void test93ElasticsearchNodeCustomDataPathAndNotEsHomeWorkDir() throws Ex
397376 Result result = sh .run ("echo y | " + installation .executables ().nodeTool + " unsafe-bootstrap" );
398377 assertThat (result .stdout , containsString ("Master node was successfully bootstrapped" ));
399378 }
400-
401- public void test94ElasticsearchNodeExecuteCliNotEsHomeWorkDir () throws Exception {
402- final Installation .Executables bin = installation .executables ();
403- // Run the cli tools from the tmp dir
404- sh .setWorkingDirectory (getRootTempDir ());
405-
406- Platforms .PlatformAction action = () -> {
407- Result result = sh .run (bin .certutilTool + " -h" );
408- assertThat (result .stdout , containsString ("Simplifies certificate creation for use with the Elastic Stack" ));
409- result = sh .run (bin .syskeygenTool + " -h" );
410- assertThat (result .stdout , containsString ("system key tool" ));
411- result = sh .run (bin .setupPasswordsTool + " -h" );
412- assertThat (result .stdout , containsString ("Sets the passwords for reserved users" ));
413- result = sh .run (bin .usersTool + " -h" );
414- assertThat (result .stdout , containsString ("Manages elasticsearch file users" ));
415- };
416-
417- // TODO: this should be checked on all distributions
418- if (distribution ().isDefault ()) {
419- Platforms .onLinux (action );
420- Platforms .onWindows (action );
421- }
422- }
423-
424379}
0 commit comments