From 0cf4b9eadb9fccea13c678c246403b5fc1f2196e Mon Sep 17 00:00:00 2001 From: Thomas VIAL Date: Tue, 26 Jan 2016 17:05:07 +0100 Subject: [PATCH] Improves #55 and #56 with OpenDKIM tests --- test/test.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/test.sh b/test/test.sh index 609845be..afe9f260 100644 --- a/test/test.sh +++ b/test/test.sh @@ -9,6 +9,7 @@ assert_raises "docker exec mail ps aux --forest | grep '/usr/sbin/saslauthd'" 0 assert_raises "docker exec mail ps aux --forest | grep '/usr/sbin/clamd'" 0 assert_raises "docker exec mail ps aux --forest | grep '/usr/sbin/amavisd-new'" 0 assert_raises "docker exec mail ps aux --forest | grep '/usr/lib/courier/courier/courierpop3d'" 1 +assert_raises "docker exec mail ps aux --forest | grep '/usr/sbin/opendkim'" 0 # Testing services of pop3 container assert_raises "docker exec mail_pop3 ps aux --forest | grep '/usr/lib/courier/courier/courierpop3d'" 0 @@ -65,5 +66,8 @@ assert_raises "docker exec mail grep ': error:' /var/log/mail.log" 1 assert_raises "docker exec mail_pop3 grep 'non-null host address bits in' /var/log/mail.log" 1 assert_raises "docker exec mail_pop3 grep ': error:' /var/log/mail.log" 1 +# Testing OpenDKIM +assert "docker exec mail cat /etc/opendkim/KeyTable | wc -l | sed -e 's/^[ \t]*//'" "2" + # Ending tests assert_end