diff --git a/roles/backup_server/molecule/default/tests/test_default.py b/roles/backup_server/molecule/default/tests/test_default.py index e8b13fe049ef81e6981e00716dbc9506aa564c76..eaca91ed06efbae0b6a1e0e521f535411cceccd3 100644 --- a/roles/backup_server/molecule/default/tests/test_default.py +++ b/roles/backup_server/molecule/default/tests/test_default.py @@ -80,8 +80,6 @@ def test_backup_ssh_server_configuration(host): with host.sudo(): - ansible_facts = host.ansible("setup")["ansible_facts"] - config_file = host.file('/etc/ssh-backup/sshd_config') assert config_file.is_file @@ -98,8 +96,6 @@ def test_backup_ssh_server_configuration(host): assert "HostKey /etc/ssh-backup/ssh_host_rsa_key" in config_file.content assert "HostKey /etc/ssh-backup/ssh_host_ecdsa_key" in config_file.content assert "HostKey /etc/ssh-backup/ssh_host_ed25519_key" in config_file.content - if ansible_facts['ansible_distribution_release'] == 'jessie': - assert "HostKey /etc/ssh-backup/ssh_host_dsa_key" in config_file.content def test_backup_ssh_server_keys(host):