diff options
Diffstat (limited to 'ansible/roles/rke/molecule/default/tests/test_etcd.py')
-rw-r--r-- | ansible/roles/rke/molecule/default/tests/test_etcd.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/ansible/roles/rke/molecule/default/tests/test_etcd.py b/ansible/roles/rke/molecule/default/tests/test_etcd.py new file mode 100644 index 00000000..0f4b6f12 --- /dev/null +++ b/ansible/roles/rke/molecule/default/tests/test_etcd.py @@ -0,0 +1,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 |