Files
dc-deployments-automation/roles/az_common/molecule/default/tests/test_default.py
2020-05-19 11:13:11 +01:00

16 lines
352 B
Python

import os
import pytest
import testinfra.utils.ansible_runner
testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner(
os.environ['MOLECULE_INVENTORY_FILE']).get_hosts('all')
@pytest.mark.parametrize('pkg', [
'netcat',
'rsync',
'cifs-utils'
])
def test_pkg(host, pkg):
package = host.package(pkg)
assert package.is_installed