Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP Fix failing Keystore Passphrase test for feature branch #50154

Prev Previous commit
Next Next commit
Use new tool patterns in two other os tests
  • Loading branch information
williamrandolph committed Dec 13, 2019
commit 857e3625628c90794223e3d359be770b8a031be9
Original file line number Diff line number Diff line change
@@ -90,10 +90,7 @@ public void test20CreateKeystoreManually() throws Exception {
final Installation.Executables bin = installation.executables();
verifyKeystorePermissions();

String possibleSudo = distribution().isArchive() && Platforms.LINUX
? "sudo -u " + ARCHIVE_OWNER + " "
: "";
Shell.Result r = sh.run(possibleSudo + bin.keystoreTool + " list");
Shell.Result r = bin.keystoreTool.run("list");
assertThat(r.stdout, containsString("keystore.seed"));
}

@@ -109,10 +106,7 @@ public void test30AutoCreateKeystore() throws Exception {
verifyKeystorePermissions();

final Installation.Executables bin = installation.executables();
String possibleSudo = distribution().isArchive() && Platforms.LINUX
? "sudo -u " + ARCHIVE_OWNER + " "
: "";
Shell.Result r = sh.run(possibleSudo + bin.keystoreTool + " list");
Shell.Result r = bin.keystoreTool.run("list");
assertThat(r.stdout, containsString("keystore.seed"));
}