gradle-ssh-plugin icon indicating copy to clipboard operation
gradle-ssh-plugin copied to clipboard

Checking remote host state for smoke test

Open int128 opened this issue 11 years ago • 0 comments

Providing a feature for checking remote host state such as file existence or value of settings. This helps precondition test before deploying and smoke test after deploying.

task deployPrecondition(type: SshTask) {
  session(remotes.server) {
    assert remoteFile('/etc/httpd/conf/httpd.conf').exist
  }
}
task smokeTest(type: SshTask) {
  session(remotes.server) {
    assert port(80).listen
    assert process('httpd').running
  }
}

int128 avatar Apr 10 '14 14:04 int128