@@ -35,7 +35,7 @@ def test_default_tls_configuration_removed(host):
configuration file.
"""
assert 'ssl_protocols' not in host.file('/etc/nginx/nginx.conf').content
assert 'ssl_protocols' not in host.file('/etc/nginx/nginx.conf').content_string
def test_nginx_configuration_verification_script(host):
@@ -187,7 +187,7 @@ def test_socket_directories(host, application_type, tmpfiles_d_path):
assert config.user == 'root'
assert config.group == 'root'
assert config.mode == 0o644
assert config.content == tmpfiles_d_content
assert config.content_string == tmpfiles_d_content
def test_php_fpm_service_overrides(host, php_info):
@@ -213,7 +213,7 @@ def test_php_timezone_configuration(host, php_info):
Tests if PHP timezone configuration has been set correctly.
server_timezone = host.file("/etc/timezone").content.strip()
server_timezone = host.file("/etc/timezone").content_string.strip()
config = host.file('%s/cli/conf.d/30-timezone.ini' % php_info.base_config_dir)
assert config.is_file