11 lines
217 B
Python
11 lines
217 B
Python
|
"""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"
|