Skip to content

Instantly share code, notes, and snippets.

@ChrisLundquist
Created March 14, 2013 21:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ChrisLundquist/5165368 to your computer and use it in GitHub Desktop.
Save ChrisLundquist/5165368 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bats
@test "the log dir (<%= node.example.log_dir %>) should be owned by our user (<%= node.example.user %>)" {
[ "$(stat -c %U | grep <%= node.example.user %>)" ]
}
@test "should create the log dir (<%= node.example.log_dir %>)" {
[ -d <%= node.example.log_dir %> ]
}
@test "the configuration file should have the right password" {
[ "$(grep '<%= node.example.password %>' /tmp/example.conf )" ]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment