xoxys.chrony/molecule/rocky9/tests/test_default.py
Robert Kaussow 3eee5de57e
Some checks are pending
continuous-integration/drone/pr Build is running
run tests on pull requests
2023-06-05 21:57:06 +02:00

14 lines
315 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_chrony_running_and_enabled(host):
chrony = host.service("chronyd")
assert chrony.is_running
assert chrony.is_enabled