Add molecule test for bootstrap-os (#5845)

This commit is contained in:
Maxime Guyot
2020-04-01 16:25:28 +02:00
committed by GitHub
parent be9414fabe
commit ded58d3b66
8 changed files with 94 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
import os
import testinfra.utils.ansible_runner
testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner(
os.environ['MOLECULE_INVENTORY_FILE']
).get_hosts('all')
def test_python(host):
assert host.exists('python3') or host.exists('python')