@@ -49,7 +49,7 @@ def test_ldap_tls_private_key_file(host):
assert key.user == 'root'
assert key.group == 'openldap'
assert key.mode == 0o640
assert key.content == open('tests/data/x509/%s_ldap.key' % inventory_hostname).read()
assert key.content_string == open('tests/data/x509/%s_ldap.key' % inventory_hostname).read()
def test_ldap_tls_certificate_file(host):
@@ -67,7 +67,7 @@ def test_ldap_tls_certificate_file(host):
assert cert.user == 'root'
assert cert.group == 'root'
assert cert.mode == 0o644
assert cert.content == open('tests/data/x509/%s_ldap.pem' % inventory_hostname).read()
assert cert.content_string == open('tests/data/x509/%s_ldap.pem' % inventory_hostname).read()
def test_certificate_validity_check_configuration(host):
@@ -84,7 +84,7 @@ def test_certificate_validity_check_configuration(host):
assert config.user == 'root'
assert config.group == 'root'
assert config.mode == 0o644
assert config.content == "/etc/ssl/certs/%s_ldap.pem" % inventory_hostname
assert config.content_string == "/etc/ssl/certs/%s_ldap.pem" % inventory_hostname
def test_tls_configuration(host):