Files @ f4962ad6a0ec
Branch filter:

Location: majic-ansible-roles/roles/backup_client/tests/test_default.py

branko
MAR-108: Small fixes for backup_client role:

- Make sure that the /etc/duply/main/include file exists even if no backup
patterns (via backup role) have been provided).
- Fixed issue with backup_server_port not being used in the Duply configuration
file.
import testinfra.utils.ansible_runner

testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner(
    '.molecule/ansible_inventory').get_hosts('all')


def test_hosts_file(File):
    f = File('/etc/hosts')

    assert f.exists
    assert f.user == 'root'
    assert f.group == 'root'