Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Checking remote host state for smoke test #78

Open
int128 opened this issue Apr 10, 2014 · 0 comments
Open

Checking remote host state for smoke test #78

int128 opened this issue Apr 10, 2014 · 0 comments
Labels

Comments

@int128
Copy link
Owner

int128 commented Apr 10, 2014

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 int128 changed the title Assertion of remote host precondition Checking remote host state for smoke test May 8, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant