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

@@ -18,7 +18,11 @@ teardown() {
echo "status: $status"
assert_success
deploy_app dockerfile-app-json-formations
run deploy_app dockerfile-app-json-formations
echo "output: $output"
echo "status: $status"
assert_success
CIDS=""
for CID_FILE in $DOKKU_ROOT/$TEST_APP/CONTAINER.web.*; do
CIDS+=$(<$CID_FILE)
@@ -42,7 +46,11 @@ teardown() {
}
@test "(ps) dockerfile with procfile" {
deploy_app dockerfile-procfile
run deploy_app dockerfile-procfile
echo "output: $output"
echo "status: $status"
assert_success
run /bin/bash -c "dokku ps:stop $TEST_APP"
echo "output: $output"
echo "status: $status"
@@ -106,7 +114,11 @@ teardown() {
echo "status: $status"
assert_success
deploy_app dockerfile-procfile
run deploy_app dockerfile-procfile
echo "output: $output"
echo "status: $status"
assert_success
for PROC_TYPE in web worker; do
run /bin/bash -c "docker ps --format '{{.ID}} {{.Command}}' --no-trunc"
echo "output: $output"