xoxys.lego/molecule/default/tests/test_default.py
Robert Kaussow 2fd883d291
Some checks failed
ci/woodpecker/push/lint Pipeline was successful
ci/woodpecker/push/test Pipeline failed
ci/woodpecker/push/docs unknown status
ci/woodpecker/push/notify Pipeline was successful
initial commit
2024-09-27 20:40:51 +02:00

14 lines
265 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_lego_bin(host):
cmd = host.run("lego --version")
assert cmd.succeeded