Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#!/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