Open
Description
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
}
}