xoxys.openvpn_client/molecule/rocky8/tests/test_default.py
Robert Kaussow d4253958b4
All checks were successful
continuous-integration/drone/push Build is passing
feat: add test for Rocky Linux 8 (#1)
Co-authored-by: Robert Kaussow <xoxys@rknet.org>
Co-committed-by: Robert Kaussow <xoxys@rknet.org>
2022-01-26 21:00:07 +01:00

15 lines
290 B
Python

import os
import testinfra.utils.ansible_runner
testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner(
os.environ["MOLECULE_INVENTORY_FILE"]
).get_hosts("all")
# TODO: add useful tests
def test_hosts_file(host):
hosts = host.file("/etc/hosts")
assert hosts.exists