feat: add tests for all help commands

This commit is contained in:
Jose Diaz-Gonzalez
2020-02-10 01:56:50 -05:00
parent 7a1537e38e
commit 4a60497d3e
22 changed files with 295 additions and 1 deletions

View File

@@ -27,6 +27,20 @@ teardown() {
global_teardown
}
@test "(certs) certs:help" {
run /bin/bash -c "dokku certs"
echo "output: $output"
echo "status: $status"
assert_output_contains "Manage SSL (TLS) certs"
help_output="$output"
run /bin/bash -c "dokku certs:help"
echo "output: $output"
echo "status: $status"
assert_output_contains "Manage SSL (TLS) certs"
assert_output "$help_output"
}
@test "(certs) certs:add" {
run /bin/bash -c "dokku certs:add $TEST_APP $BATS_TMPDIR/tls/server.crt $BATS_TMPDIR/tls/server.key"
echo "output: $output"