Skip to content

Checking remote host state for smoke test #78

Open
@int128

Description

@int128

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions