xoxys.chrony/molecule/default/tests/test_default.py
Robert Kaussow bd7cc5a174
All checks were successful
ci/woodpecker/push/lint Pipeline was successful
ci/woodpecker/push/test Pipeline was successful
ci/woodpecker/push/docs Pipeline was successful
ci/woodpecker/push/notify Pipeline was successful
fix: disable chrony-wait by default
2024-02-15 16:02:51 +01: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