diff --git a/roles/web_server/molecule/default/tests/test_mandatory.py b/roles/web_server/molecule/default/tests/test_mandatory.py index 0b5ae7aff90a952b35cadea0f0c1c7ef40e60f13..6dd360378612801db81d5bf5edaf035d433b8c58 100644 --- a/roles/web_server/molecule/default/tests/test_mandatory.py +++ b/roles/web_server/molecule/default/tests/test_mandatory.py @@ -21,14 +21,14 @@ def test_nginx_tls_files(host): assert tls_file.user == 'root' assert tls_file.group == 'root' assert tls_file.mode == 0o640 - assert tls_file.content == open("tests/data/x509/%s_https.key" % hostname, "r").read().rstrip() + assert tls_file.content_string == open("tests/data/x509/%s_https.key" % hostname, "r").read().rstrip() tls_file = host.file('/etc/ssl/certs/%s_https.pem' % hostname) 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/%s_https.pem" % hostname, "r").read().rstrip() + assert tls_file.content_string == open("tests/data/x509/%s_https.pem" % hostname, "r").read().rstrip() def test_certificate_validity_check_configuration(host): @@ -44,7 +44,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_https.pem" % hostname + assert config.content_string == "/etc/ssl/certs/%s_https.pem" % hostname def test_tls_configuration(host):