xoxys.ntp/molecule/rocky8/tests/test_default.py
Robert Kaussow 995865b8cf
Some checks failed
continuous-integration/drone/pr Build is failing
feat: add test for Rocky Linux 8
2021-10-03 16:32:48 +02:00

13 lines
268 B
Python

import os
import testinfra.utils.ansible_runner
testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner(
os.environ["MOLECULE_INVENTORY_FILE"]
).get_hosts("all")
def test_ntp_is_installed(host):
ntp = host.package("ntp")
assert ntp.is_installed