1
0
mirror of https://github.com/tomav/docker-mailserver.git synced 2024-06-26 00:59:32 +02:00

Add tests for additional dovecot configs

This commit is contained in:
Josef Friedrich 2016-05-29 22:36:06 +02:00
parent 9afd46df9d
commit bcd844b568
2 changed files with 17 additions and 4 deletions

1
test/config/dovecot.cf Normal file
View File

@ -0,0 +1 @@
mail_max_userip_connections = 69

View File

@ -222,6 +222,18 @@
[ "$status" -eq 0 ]
}
#
# dovecot
#
@test "checking dovecot: config additions" {
run docker exec mail grep -q 'mail_max_userip_connections = 69' /tmp/docker-mailserver/dovecot.cf
[ "$status" -eq 0 ]
run docker exec mail /bin/sh -c "doveconf | grep 'mail_max_userip_connections = 69'"
[ "$status" -eq 0 ]
[ "$output" = 'mail_max_userip_connections = 69' ]
}
#
# spamassassin
#