housekeeping

This commit is contained in:
Georg Lauterbach 2020-11-06 14:04:23 +01:00
parent 2f840d7da5
commit ed7106b04d
No known key found for this signature in database
GPG key ID: 386D76E7AD496709
20 changed files with 184 additions and 181 deletions

View file

@ -1,4 +1,4 @@
#!/usr/bin/env bash
#! /bin/bash
# version v0.1.0 stable
# executed by TravisCI / manually
@ -190,7 +190,7 @@ function _shellcheck
fi
done < <(find test/ -maxdepth 1 -type f -iname "*.bats")
if [[ ERR -eq 1 ]]
if [[ ${ERR} -eq 1 ]]
then
__log_abort 'errors encountered'
return 101

View file

@ -63,6 +63,7 @@ function teardown_file() {
assert_success
run docker exec mail_smtponly /bin/sh -c "/etc/init.d/postfix reload"
assert_success
sleep 5
run docker exec mail_smtponly /bin/sh -c "nc 0.0.0.0 25 < /tmp/docker-mailserver-test/email-templates/smtp-only.txt"
assert_success
run docker exec mail_smtponly /bin/sh -c 'grep -cE "to=<user2\@external.tld>.*status\=sent" /var/log/mail/mail.log'