Bad firewall now returns a simple Warning
This commit is contained in:
parent
b1c45b1738
commit
e14ca8dff3
|
@ -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" {
|
||||
|
|
Loading…
Reference in a new issue