fix: disable molecule ansible log and add tests
This commit is contained in:
parent
492349ada2
commit
3b7ef470a5
@ -12,6 +12,6 @@ platforms:
|
||||
image: "rocky-9"
|
||||
provisioner:
|
||||
name: ansible
|
||||
log: True
|
||||
log: False
|
||||
verifier:
|
||||
name: testinfra
|
||||
|
12
molecule/default/tests/test_default.py
Normal file
12
molecule/default/tests/test_default.py
Normal 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
|
Loading…
Reference in New Issue
Block a user