@@ -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_authorized_keys(host):
@@ -30,4 +30,4 @@ def test_root_authorized_keys(host):
ssh_key = open(os.path.expanduser('~/.ssh/id_rsa.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