Files @ 64823e04bd4b
Branch filter:

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

branko
MAR-28: Fixed minor issues in the mail_server tasks:

- Ensure command handler is excluded from linting checks.
- Fixed modes to use leading zero.
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'