tests: update tests to account for off being the value used elsewhere
This commit is contained in:
@@ -60,7 +60,7 @@ teardown() {
|
|||||||
run /bin/bash -c "dokku nginx:show-config $TEST_APP"
|
run /bin/bash -c "dokku nginx:show-config $TEST_APP"
|
||||||
echo "output: $output"
|
echo "output: $output"
|
||||||
echo "status: $status"
|
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"
|
run /bin/bash -c "dokku nginx:set $TEST_APP access-log-path"
|
||||||
echo "output: $output"
|
echo "output: $output"
|
||||||
@@ -75,7 +75,7 @@ teardown() {
|
|||||||
run /bin/bash -c "dokku nginx:show-config $TEST_APP"
|
run /bin/bash -c "dokku nginx:show-config $TEST_APP"
|
||||||
echo "output: $output"
|
echo "output: $output"
|
||||||
echo "status: $status"
|
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"
|
run /bin/bash -c "dokku nginx:set $TEST_APP error-log-path off"
|
||||||
echo "output: $output"
|
echo "output: $output"
|
||||||
@@ -90,7 +90,7 @@ teardown() {
|
|||||||
run /bin/bash -c "dokku nginx:show-config $TEST_APP"
|
run /bin/bash -c "dokku nginx:show-config $TEST_APP"
|
||||||
echo "output: $output"
|
echo "output: $output"
|
||||||
echo "status: $status"
|
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"
|
run /bin/bash -c "dokku nginx:set $TEST_APP error-log-path"
|
||||||
echo "output: $output"
|
echo "output: $output"
|
||||||
@@ -105,7 +105,7 @@ teardown() {
|
|||||||
run /bin/bash -c "dokku nginx:show-config $TEST_APP"
|
run /bin/bash -c "dokku nginx:show-config $TEST_APP"
|
||||||
echo "output: $output"
|
echo "output: $output"
|
||||||
echo "status: $status"
|
echo "status: $status"
|
||||||
assert_output_contains "off;" 0
|
assert_output_contains "error_log off;" 0
|
||||||
}
|
}
|
||||||
|
|
||||||
@test "(nginx-vhosts) access-log-format" {
|
@test "(nginx-vhosts) access-log-format" {
|
||||||
|
|||||||
Reference in New Issue
Block a user