diff --git a/test/checks.bats b/test/checks.bats index 7388d55..079d1d7 100644 --- a/test/checks.bats +++ b/test/checks.bats @@ -136,7 +136,7 @@ OUT assert_equal "2" "$status" } -@test "Check CRITICAL if firewall rules are not sourced" { +@test "Check WARNING if firewall rules are not sourced" { firewall_rules_file="/etc/firewall.rc.jails" set_variable "/etc/default/bkctld" "FIREWALL_RULES" "${firewall_rules_file}" echo "" > "${firewall_rules_file}" @@ -145,7 +145,7 @@ OUT echo "" > "/etc/default/minifirewall" # … the check should be "critical" run /usr/lib/bkctld/bkctld-check - assert_equal "2" "$status" + assert_equal "1" "$status" } @test "Check OK if firewall rules are sourced" {