tests: update tests to account for off being the value used elsewhere

This commit is contained in:
Jose Diaz-Gonzalez
2024-02-27 13:51:28 -05:00
parent f20d08e49e
commit 4b0aec26b6

View File

@@ -60,7 +60,7 @@ teardown() {
run /bin/bash -c "dokku nginx:show-config $TEST_APP"
echo "output: $output"
echo "status: $status"
assert_output_contains "off;"
assert_output_contains "access_log off;"
run /bin/bash -c "dokku nginx:set $TEST_APP access-log-path"
echo "output: $output"
@@ -75,7 +75,7 @@ teardown() {
run /bin/bash -c "dokku nginx:show-config $TEST_APP"
echo "output: $output"
echo "status: $status"
assert_output_contains "off;" 0
assert_output_contains "access_log off;" 0
run /bin/bash -c "dokku nginx:set $TEST_APP error-log-path off"
echo "output: $output"
@@ -90,7 +90,7 @@ teardown() {
run /bin/bash -c "dokku nginx:show-config $TEST_APP"
echo "output: $output"
echo "status: $status"
assert_output_contains "off;"
assert_output_contains "error_log off;"
run /bin/bash -c "dokku nginx:set $TEST_APP error-log-path"
echo "output: $output"
@@ -105,7 +105,7 @@ teardown() {
run /bin/bash -c "dokku nginx:show-config $TEST_APP"
echo "output: $output"
echo "status: $status"
assert_output_contains "off;" 0
assert_output_contains "error_log off;" 0
}
@test "(nginx-vhosts) access-log-format" {