public class SSHTester<R>
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_SSH_CMD_TIMEOUT |
protected SSHTestContext |
testContext |
| Constructor and Description |
|---|
SSHTester(R returnObj,
SSHTestContext testContext,
org.pagemodel.core.testers.TestEvaluator testEvaluator) |
| Modifier and Type | Method and Description |
|---|---|
protected SSHTester<R> |
connect() |
protected SSHTester<R> |
connect(SSHAuthenticator authenticator) |
R |
disconnect() |
SSHCommandTester<R> |
exitSudo() |
protected SSHAuthenticator |
getAuthenticator() |
protected org.pagemodel.core.testers.TestEvaluator |
getEvaluator() |
protected R |
getReturnObj() |
protected SSHSession |
getSshSession() |
SSHCommandTester<R> |
runCommand(java.lang.String command) |
SSHCommandTester<R> |
runCommand(java.lang.String command,
java.lang.Integer timeoutSec) |
SSHCommandTester<R> |
sudoToRoot() |
SSHCommandTester<R> |
sudoToRoot(java.lang.String sudoOpts) |
protected R |
testConnectionFails() |
protected R |
testConnectionFails(SSHAuthenticator authenticator) |
public static final int DEFAULT_SSH_CMD_TIMEOUT
protected final SSHTestContext testContext
public SSHTester(R returnObj, SSHTestContext testContext, org.pagemodel.core.testers.TestEvaluator testEvaluator)
protected org.pagemodel.core.testers.TestEvaluator getEvaluator()
public SSHCommandTester<R> runCommand(java.lang.String command, java.lang.Integer timeoutSec)
public SSHCommandTester<R> runCommand(java.lang.String command)
public SSHCommandTester<R> sudoToRoot()
public SSHCommandTester<R> sudoToRoot(java.lang.String sudoOpts)
public SSHCommandTester<R> exitSudo()
protected SSHTester<R> connect(SSHAuthenticator authenticator)
protected R testConnectionFails()
protected R testConnectionFails(SSHAuthenticator authenticator)
public R disconnect()
protected R getReturnObj()
protected SSHSession getSshSession()
protected SSHAuthenticator getAuthenticator()