feat: add a test for log levels
This commit is contained in:
1 parent
40cb28287f
commit
c14154e5f7
1 file changed
+18
@@ -30,6 +30,24 @@ teardown() {
|
|||||||
assert_output "$help_output"
|
assert_output "$help_output"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@test "(haproxy) log-level" {
|
||||||
|
run /bin/bash -c "dokku haproxy:set --global log-level DEBUG"
|
||||||
|
echo "output: $output"
|
||||||
|
echo "status: $status"
|
||||||
|
assert_success
|
||||||
|
|
||||||
|
run /bin/bash -c "dokku haproxy:stop"
|
||||||
|
echo "output: $output"
|
||||||
|
echo "status: $status"
|
||||||
|
assert_success
|
||||||
|
|
||||||
|
run /bin/bash -c "dokku haproxy:start"
|
||||||
|
echo "output: $output"
|
||||||
|
echo "status: $status"
|
||||||
|
assert_success
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
@test "(haproxy) single domain" {
|
@test "(haproxy) single domain" {
|
||||||
run /bin/bash -c "dokku proxy:set $TEST_APP haproxy"
|
run /bin/bash -c "dokku proxy:set $TEST_APP haproxy"
|
||||||
echo "output: $output"
|
echo "output: $output"
|
||||||
|
|||||||
Reference in new issue
Block a user