public static Statement fromURL(URI url) { return new FromURL(url); }
public static Statement fromOpenJDK() { return new FromOpenJDK(); }
public void testInstallJDKUNIX() throws IOException { assertEquals(InstallJDK.fromOpenJDK().render(OsFamily.UNIX), "setupPublicCurl || return 1\ninstallOpenJDK || return 1\n"); }
public void testInstallJDKUNIXWithURL() throws IOException { assertEquals(InstallJDK.fromURL(URI.create("http://foo")).render(OsFamily.UNIX), "setupPublicCurl || return 1\ninstallJDKFromURL http://foo || return 1\n"); }
public void testInstallJDKUNIX() throws IOException { assertEquals(InstallJDK.fromOpenJDK().render(OsFamily.UNIX), "setupPublicCurl || return 1\ninstallOpenJDK || return 1\n"); }
public static Statement fromURL(URI url) { return new FromURL(url); }
public static Statement fromOpenJDK() { return new FromOpenJDK(); }
public void testInstallJDKUNIXWithURL() throws IOException { assertEquals(InstallJDK.fromURL(URI.create("http://foo")).render(OsFamily.UNIX), "setupPublicCurl || return 1\ninstallJDKFromURL http://foo || return 1\n"); }
@Test(enabled = true, expectedExceptions = NoSuchElementException.class) public void testCorrectExceptionRunningNodesNotFound() throws Exception { client.runScriptOnNodesMatching(runningInGroup("zebras-are-awesome"), InstallJDK.fromOpenJDK()); }
public static Statement fromURL(URI url) { return new FromURL(url); }
public static Statement fromOpenJDK() { return new FromOpenJDK(); }
@Test(enabled = true, expectedExceptions = NoSuchElementException.class) public void testCorrectExceptionRunningNodesNotFound() throws Exception { client.runScriptOnNodesMatching(runningInGroup("zebras-are-awesome"), InstallJDK.fromOpenJDK()); }
public static Statement fromURL(URI url) { return new FromURL(url); }
public static Statement fromOpenJDK() { return new FromOpenJDK(); }
protected Map<? extends NodeMetadata, ExecResponse> runScriptWithCreds(final String group, OperatingSystem os, LoginCredentials creds) throws RunScriptOnNodesException { return client.runScriptOnNodesMatching(runningInGroup(group), InstallJDK.fromOpenJDK(), overrideLoginCredentials(creds).nameTask("runScriptWithCreds")); }
public static Statement fromURL(URI url) { return new FromURL(url); }
public static Statement fromOpenJDK() { return new FromOpenJDK(); }
protected static Template addRunScriptToTemplate(Template template) { template.getOptions().runScript(Statements.newStatementList(AdminAccess.standard(), InstallJDK.fromOpenJDK())); return template; }
public static Statement fromURL(URI url) { return new FromURL(url); }
public static Statement fromOpenJDK() { return new FromOpenJDK(); }