Refactored.

This commit is contained in:
Thomas VIAL 2016-08-15 22:14:02 +02:00
parent 7c33cfa6f5
commit 08c6792d4a
No known key found for this signature in database
GPG Key ID: 0394CEE552FAFEFC
1 changed files with 13 additions and 0 deletions

View File

@ -13,3 +13,16 @@
run docker exec mail /bin/sh -c "nc -w 1 0.0.0.0 110 < /tmp/docker-mailserver-test/auth/pop3-auth.txt"
[ "$status" -eq 0 ]
}
@test "checking pop: server is ready" {
run docker exec mail /bin/bash -c "nc -w 1 0.0.0.0 110 | grep '+OK'"
[ "$status" -eq 0 ]
}
@test "checking pop: authentication works" {
run docker exec mail /bin/sh -c "nc -w 1 0.0.0.0 110 < /tmp/docker-mailserver-test/auth/pop3-auth.txt"
[ "$status" -eq 0 ]
}