|
@@ -113,14 +113,14 @@ def test_ldap_tls_truststore_file(host):
|
|
|
assert tls_file.user == 'root'
|
|
|
assert tls_file.group == 'root'
|
|
|
assert tls_file.mode == 0o644
|
|
|
assert tls_file.content == open("tests/data/x509/ca.cert.pem", "r").read().rstrip()
|
|
|
assert tls_file.content_string == open("tests/data/x509/ca.cert.pem", "r").read().rstrip()
|
|
|
|
|
|
tls_file = host.file('/var/spool/postfix/etc/ssl/certs/mail_ldap_tls_truststore.pem')
|
|
|
assert tls_file.is_file
|
|
|
assert tls_file.user == 'root'
|
|
|
assert tls_file.group == 'root'
|
|
|
assert tls_file.mode == 0o644
|
|
|
assert tls_file.content == open("tests/data/x509/ca.cert.pem", "r").read().rstrip()
|
|
|
assert tls_file.content_string == open("tests/data/x509/ca.cert.pem", "r").read().rstrip()
|
|
|
|
|
|
|
|
|
def test_mailname_file(host):
|
|
@@ -243,7 +243,7 @@ def test_postfix_delivery_to_dovecot(host):
|
|
|
with host.sudo():
|
|
|
mail_log = host.file('/var/log/mail.log')
|
|
|
pattern = r"dovecot: lda\(john.doe@domain1\): msgid=<%s>: saved mail to INBOX" % message_id
|
|
|
assert re.search(pattern, mail_log.content) is not None
|
|
|
assert re.search(pattern, mail_log.content_string) is not None
|
|
|
|
|
|
|
|
|
def test_dovecot_system_authentication_is_disabled(host):
|
|
@@ -253,7 +253,7 @@ def test_dovecot_system_authentication_is_disabled(host):
|
|
|
|
|
|
config = host.file("/etc/dovecot/conf.d/10-auth.conf")
|
|
|
|
|
|
assert "!include auth-system.conf.ext" not in config.content
|
|
|
assert "!include auth-system.conf.ext" not in config.content_string
|
|
|
|
|
|
|
|
|
def test_dovecot_overrides_configuration_file(host):
|