diff --git a/roles/bootstrap/molecule/default/tests/test_parameters_optional.py b/roles/bootstrap/molecule/default/tests/test_parameters_optional.py index d9792e7c684a7bef085bc8edd595a543b5aaa22b..041d5e687f2393cde4418cf637c5d3b251664952 100644 --- a/roles/bootstrap/molecule/default/tests/test_parameters_optional.py +++ b/roles/bootstrap/molecule/default/tests/test_parameters_optional.py @@ -18,7 +18,7 @@ def test_authorized_keys(host): authorized_keys = host.file('/home/ansible/.ssh/authorized_keys') assert authorized_keys.is_file - assert ssh_key in authorized_keys.content + assert ssh_key in authorized_keys.content_string def test_root_authorised_keys(host): @@ -30,4 +30,4 @@ def test_root_authorised_keys(host): ssh_key = open('tests/data/ansible_key.pub', 'read').read().strip() - assert ssh_key not in host.file('/root/.ssh/authorized_keys').content + assert ssh_key not in host.file('/root/.ssh/authorized_keys').content_string