mirror of
https://bitbucket.org/atlassian/dc-deployments-automation.git
synced 2025-12-16 18:03:06 -06:00
17 lines
369 B
Python
17 lines
369 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',
|
|
'python-lxml'
|
|
])
|
|
def test_pkg(host, pkg):
|
|
package = host.package(pkg)
|
|
assert package.is_installed |