Add ability to override fail2ban.conf with fail2ban.local values. (#769)

* Add ability to override fail2ban.conf with fail2ban.local values.
This commit is contained in:
Marek Walczak 2017-12-07 19:27:31 +01:00 committed by Johan Smits
parent 835939d856
commit d62ea049e6
6 changed files with 47 additions and 2 deletions

View file

@ -611,7 +611,7 @@ load 'test_helper/bats-assert/load'
assert_output 4
}
@test "checking opendkim: generator creates keys, tables and TrustedHosts using domain name" {
@test "checking opendkim: generator creates keys, tables and TrustedHosts using domain name" {
rm -rf "$(pwd)/test/config/with-domain" && mkdir -p "$(pwd)/test/config/with-domain"
run docker run --rm \
-v "$(pwd)/test/config/with-domain/":/tmp/docker-mailserver/ \
@ -732,6 +732,11 @@ load 'test_helper/bats-assert/load'
assert_success
}
@test "checking fail2ban: fail2ban-fail2ban.cf overrides" {
run docker exec mail_fail2ban /bin/sh -c "fail2ban-client get loglevel | grep DEBUG"
assert_success
}
@test "checking fail2ban: fail2ban-jail.cf overrides" {
FILTERS=(sshd postfix dovecot postfix-sasl)
@ -1385,4 +1390,3 @@ load 'test_helper/bats-assert/load'
run docker exec mail_with_ldap /bin/bash -c "pkill saslauthd && sleep 10 && ps aux --forest | grep -v grep | grep '/usr/sbin/saslauthd'"
assert_success
}