summaryrefslogtreecommitdiffstats
path: root/ansible/roles/rke/molecule/default/tests/test_etcd.py
blob: 0f4b6f12f6ac9c1e91c6e35f116cf1ace49db356 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
import os
import pytest

import testinfra.utils.ansible_runner

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


@pytest.mark.parametrize('container_name', [
  'etcd'])
def test_container_running(host, container_name):
    assert host.docker(container_name).is_running