Search in sources :

Example 11 with SshSlaveLauncher

use of org.jenkinsci.test.acceptance.plugins.ssh_slaves.SshSlaveLauncher in project acceptance-test-harness by jenkinsci.

the class SshSlavesPluginTest method configureSSHSlaveLauncher.

private SshSlaveLauncher configureSSHSlaveLauncher(String host, int port) {
    SshSlaveLauncher launcher = slave.setLauncher(SshSlaveLauncher.class);
    launcher.host.set(host);
    launcher.port(port);
    launcher.setSshHostKeyVerificationStrategy(SshSlaveLauncher.NonVerifyingKeyVerificationStrategy.class);
    return launcher;
}
Also used : SshSlaveLauncher(org.jenkinsci.test.acceptance.plugins.ssh_slaves.SshSlaveLauncher)

Aggregations

SshSlaveLauncher (org.jenkinsci.test.acceptance.plugins.ssh_slaves.SshSlaveLauncher)11 AbstractJUnitTest (org.jenkinsci.test.acceptance.junit.AbstractJUnitTest)8 Test (org.junit.Test)8 DumbSlave (org.jenkinsci.test.acceptance.po.DumbSlave)7 Matchers.containsString (org.hamcrest.Matchers.containsString)6 DockerTest (org.jenkinsci.test.acceptance.junit.DockerTest)6 SshPrivateKeyCredential (org.jenkinsci.test.acceptance.plugins.ssh_credentials.SshPrivateKeyCredential)4 Since (org.jenkinsci.test.acceptance.junit.Since)2 WithPlugins (org.jenkinsci.test.acceptance.junit.WithPlugins)2 CredentialsPage (org.jenkinsci.test.acceptance.plugins.credentials.CredentialsPage)2 ManagedCredentials (org.jenkinsci.test.acceptance.plugins.credentials.ManagedCredentials)2 SshCredentialDialog (org.jenkinsci.test.acceptance.plugins.ssh_credentials.SshCredentialDialog)2 NoSuchElementException (org.openqa.selenium.NoSuchElementException)2 VersionNumber (hudson.util.VersionNumber)1 DockerAgentContainer (org.jenkinsci.test.acceptance.docker.fixtures.DockerAgentContainer)1 GitContainer (org.jenkinsci.test.acceptance.docker.fixtures.GitContainer)1 JavaGitContainer (org.jenkinsci.test.acceptance.docker.fixtures.JavaGitContainer)1 WithCredentials (org.jenkinsci.test.acceptance.junit.WithCredentials)1 WithDocker (org.jenkinsci.test.acceptance.junit.WithDocker)1 GitRepo (org.jenkinsci.test.acceptance.plugins.git.GitRepo)1