mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2025-08-05 10:35:41 +02:00
tests: improve _send_email
(#3105)
This commit is contained in:
parent
199e3c7721
commit
ae05e6a7c3
19 changed files with 88 additions and 93 deletions
|
@ -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' {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue