Robert Kaussow
5c6cf6764e
All checks were successful
continuous-integration/drone/push Build is passing
14 lines
315 B
Python
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
|