Created
March 14, 2013 21:17
-
-
Save ChrisLundquist/5165368 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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