Also test on the submission port if the login is succesful (#685)

Fixed location so that opendkim is happy with the correct
file location
This commit is contained in:
Johan Smits 2017-08-19 10:32:47 +02:00 committed by Thomas VIAL
parent 04904e77c4
commit 9978bccbb6
2 changed files with 4 additions and 2 deletions

View file

@ -1,2 +1,2 @@
mail._domainkey.localhost.localdomain localhost.localdomain:mail:/tmp/docker-mailserver/opendkim/keys/localhost.localdomain/mail.private mail._domainkey.localhost.localdomain localhost.localdomain:mail:/etc/opendkim/keys/localhost.localdomain/mail.private
mail._domainkey.otherdomain.tld otherdomain.tld:mail:/tmp/docker-mailserver/opendkim/keys/otherdomain.tld/mail.private mail._domainkey.otherdomain.tld otherdomain.tld:mail:/etc/opendkim/keys/otherdomain.tld/mail.private

View file

@ -1141,6 +1141,8 @@ load 'test_helper/bats-assert/load'
@test "checking saslauthd: ldap smtp authentication" { @test "checking saslauthd: ldap smtp authentication" {
run docker exec mail_with_ldap /bin/sh -c "nc -w 5 0.0.0.0 25 < /tmp/docker-mailserver-test/auth/sasl-ldap-smtp-auth.txt | grep 'Authentication successful'" run docker exec mail_with_ldap /bin/sh -c "nc -w 5 0.0.0.0 25 < /tmp/docker-mailserver-test/auth/sasl-ldap-smtp-auth.txt | grep 'Authentication successful'"
assert_success assert_success
run docker exec mail_with_ldap /bin/sh -c "openssl s_client -quiet -starttls smtp -connect 0.0.0.0:587 < /tmp/docker-mailserver-test/auth/sasl-ldap-smtp-auth.txt | grep 'Authentication successful'"
assert_success
} }