From e14ca8dff3181edf25ef7725653a8d4f6741d9c5 Mon Sep 17 00:00:00 2001 From: Jeremy Lecour Date: Sat, 11 Apr 2020 08:53:41 +0200 Subject: [PATCH] Bad firewall now returns a simple Warning --- test/checks.bats | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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" {