xoxys.swap/molecule/default/tests/test_default.py
Robert Kaussow f874fa89e0
All checks were successful
ci/woodpecker/push/lint Pipeline was successful
ci/woodpecker/push/notify Pipeline was successful
ci/woodpecker/push/test Pipeline was successful
ci/woodpecker/push/docs Pipeline was successful
first commit
2024-04-15 16:39:29 +02:00

13 lines
260 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_swap_file(host):
file = host.file("/swapfile")
assert file.exists