From c14154e5f7c62454e8b768162f3b953d7c33185b Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Tue, 8 Nov 2022 23:51:47 -0500 Subject: [PATCH] feat: add a test for log levels --- tests/unit/haproxy.bats | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/tests/unit/haproxy.bats b/tests/unit/haproxy.bats index 440b9650e..ecf442c2a 100644 --- a/tests/unit/haproxy.bats +++ b/tests/unit/haproxy.bats @@ -30,6 +30,24 @@ teardown() { 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" { run /bin/bash -c "dokku proxy:set $TEST_APP haproxy" echo "output: $output"