tests: improve _send_email (#3105)

This commit is contained in:
Georg Lauterbach 2023-02-24 10:44:18 +01:00 committed by GitHub
parent 199e3c7721
commit ae05e6a7c3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
19 changed files with 88 additions and 93 deletions

View file

@ -24,13 +24,11 @@ function teardown_file() { _default_teardown ; }
}
@test 'authentication works' {
_run_in_container_bash 'nc -w 1 0.0.0.0 110 < /tmp/docker-mailserver-test/auth/pop3-auth.txt'
assert_success
_send_email 'auth/pop3-auth' '-w 1 0.0.0.0 110'
}
@test 'added user authentication works' {
_run_in_container_bash 'nc -w 1 0.0.0.0 110 < /tmp/docker-mailserver-test/auth/added-pop3-auth.txt'
assert_success
_send_email 'auth/added-pop3-auth' '-w 1 0.0.0.0 110'
}
@test '/var/log/mail/mail.log is error-free' {