summaryrefslogtreecommitdiffstats
path: root/ansible/roles/vncserver/molecule/default/tests/test_default.py
blob: 0164a3eecbed4653a77cfa1cd2664dad29021294 (plain)
1
2
3
4
5
6
7
8
9
10
import os

import testinfra.utils.ansible_runner

testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner(
    os.environ['MOLECULE_INVENTORY_FILE']).get_hosts('infrastructure')


def test_container_running(host):
    assert host.docker('vnc-server').is_running