renew_consul_certificates/molecule/default/tests/test_default.py

9 lines
247 B
Python
Raw Normal View History

2023-04-27 22:04:26 +00:00
"""Role testing files using testinfra."""
def test_hosts_file(host):
"""Validate /etc/hosts file."""
etc_hosts = host.file("/etc/hosts")
assert etc_hosts.exists
assert etc_hosts.user == "root"
assert etc_hosts.group == "root"