fix: disable molecule ansible log and add tests
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

This commit is contained in:
Robert Kaussow 2024-10-16 22:46:34 +02:00
parent 492349ada2
commit 3b7ef470a5
Signed by: xoxys
GPG Key ID: 4E692A2EAECC03C0
2 changed files with 13 additions and 1 deletions

View File

@ -12,6 +12,6 @@ platforms:
image: "rocky-9"
provisioner:
name: ansible
log: True
log: False
verifier:
name: testinfra

View File

@ -0,0 +1,12 @@
import os
import testinfra.utils.ansible_runner
testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner(
os.environ["MOLECULE_INVENTORY_FILE"]
).get_hosts("all")
def test_service_file(host):
f = host.file("/etc/systemd/system/zigbee2mqtt.service")
assert f.exists