1
0
mirror of https://github.com/docker-mailserver/docker-mailserver.git synced 2025-08-07 23:03:10 +02:00

tests: refactor 4 more tests (#3018)

This commit is contained in:
Georg Lauterbach
2023-01-24 09:21:39 +01:00
committed by GitHub
parent d7dee5d8a4
commit 0fd7c362da
7 changed files with 117 additions and 125 deletions

View File

@ -84,3 +84,12 @@ teardown_file() {
assert_output --partial "550 5.5.1 Protocol error"
[[ ${status} -ge 0 ]]
}
@test "checking PERMIT_DOCKER=network: opendmarc/opendkim config" {
skip 'TODO: this test was taken from mail_smtponly, where it did not actually belong to'
run docker exec mail_smtponly /bin/sh -c "cat /etc/opendmarc/ignore.hosts | grep '172.16.0.0/12'"
assert_success
run docker exec mail_smtponly /bin/sh -c "cat /etc/opendkim/TrustedHosts | grep '172.16.0.0/12'"
assert_success
}