summaryrefslogtreecommitdiffstats
path: root/ansible/roles/nfs/molecule/default/tests/test_default.py
blob: 4813989868cd0b63f35d8d64b2d49171bfe995a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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', [
  'nfs-utils'
])
def test_pkg(host, pkg):
    package = host.package(pkg)

    assert package.is_installed