Ansible_workstation/roles/mopidy-server/molecule/default/tests/test_default.py

11 lines
217 B
Python
Raw Permalink Normal View History

2022-01-05 10:25:33 +00:00
"""Role testing files using testinfra."""
def test_hosts_file(host):
"""Validate /etc/hosts file."""
f = host.file("/etc/hosts")
assert f.exists
assert f.user == "root"
assert f.group == "root"