Disables clamav config in amavis when DISABLE_CLAMAV=1. Fixes #378 (#431)

This commit is contained in:
Thomas VIAL 2016-12-25 15:41:02 +01:00 committed by GitHub
parent 49b62aa1be
commit 63cf0f9965
3 changed files with 33 additions and 0 deletions

View file

@ -292,6 +292,25 @@
[ "$status" -eq 0 ]
}
#
# clamav
#
@test "checking clamav: should be listed in amavis when enabled" {
run docker exec mail grep -i 'Found secondary av scanner ClamAV-clamscan' /var/log/mail/mail.log
[ "$status" -eq 0 ]
}
@test "checking clamav: should not be listed in amavis when disabled" {
run docker exec mail_disabled_clamav grep -i 'Found secondary av scanner ClamAV-clamscan' /var/log/mail/mail.log
[ "$status" -eq 1 ]
}
@test "checking clamav: should not be called when disabled" {
run docker exec mail_disabled_clamav grep -i 'connect to /var/run/clamav/clamd.ctl failed' /var/log/mail/mail.log
[ "$status" -eq 1 ]
}
#
# opendkim
#