tests: add assertions to various bats tests

Missing these assertions didn't necessarily break tests but they are more correct and having them should help suss out bugs.
This commit is contained in:
Jose Diaz-Gonzalez
2023-07-31 13:08:16 -04:00
parent 69e56fc976
commit 622548057c
37 changed files with 623 additions and 144 deletions

View File

@@ -39,14 +39,21 @@ teardown() {
assert_output_contains "App fake-app-name does not exist"
assert_failure
dokku apps:create "${TEST_APP}-2"
run /bin/bash -c "dokku apps:create ${TEST_APP}-2"
echo "output: $output"
echo "status: $status"
assert_success
run /bin/bash -c "dokku report ${TEST_APP}-2 2>&1"
echo "output: $output"
echo "status: $status"
assert_output_contains "Deployed: false"
assert_success
dokku --force apps:destroy "${TEST_APP}-2"
run /bin/bash -c "dokku --force apps:destroy ${TEST_APP}-2"
echo "output: $output"
echo "status: $status"
assert_success
}
@test "(report) custom docker bin" {