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 committed 2023-08-05 10:58:57 -04:00
1 parent 69e56fc976
commit 622548057c
37 files changed
+623 -144

No files matched your search

+17 -5
View File
@@ -9,13 +9,16 @@ setup() {
}
teardown() {
destroy_app 0 $TEST_APP
destroy_app
[[ -f "$DOKKU_ROOT/VHOST.bak" ]] && mv "$DOKKU_ROOT/VHOST.bak" "$DOKKU_ROOT/VHOST" && chown dokku:dokku "$DOKKU_ROOT/VHOST"
global_teardown
}
@test "(nginx-vhosts) nginx:set proxy-buffer-size" {
deploy_app
run deploy_app
echo "output: $output"
echo "status: $status"
assert_success
run /bin/bash -c "dokku nginx:set $TEST_APP proxy-buffer-size 2k"
echo "output: $output"
@@ -49,7 +52,10 @@ teardown() {
}
@test "(nginx-vhosts) nginx:set proxy-buffering" {
deploy_app
run deploy_app
echo "output: $output"
echo "status: $status"
assert_success
run /bin/bash -c "dokku nginx:set $TEST_APP proxy-buffering off"
echo "output: $output"
@@ -83,7 +89,10 @@ teardown() {
}
@test "(nginx-vhosts) nginx:set proxy-buffers" {
deploy_app
run deploy_app
echo "output: $output"
echo "status: $status"
assert_success
run /bin/bash -c "dokku nginx:set $TEST_APP proxy-buffers \"64 4k\""
echo "output: $output"
@@ -117,7 +126,10 @@ teardown() {
}
@test "(nginx-vhosts) nginx:set proxy-busy-buffers-size" {
deploy_app
run deploy_app
echo "output: $output"
echo "status: $status"
assert_success
run /bin/bash -c "dokku nginx:set $TEST_APP proxy-busy-buffers-size 10k"
echo "output: $output"