diff --git a/.travis.yml b/.travis.yml index 59c718e..de135d7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,7 +9,7 @@ before_install: - sudo apt-get install -o Dpkg::Options::="--force-confold" --force-yes -y docker-engine install: -- pip install molecule +- pip install molecule ansible script: - molecule test diff --git a/tests/test_docker.py b/tests/test_docker.py index 3398c91..b142c24 100644 --- a/tests/test_docker.py +++ b/tests/test_docker.py @@ -1,3 +1,9 @@ +from testinfra.utils.ansible_runner import AnsibleRunner +import pytest +import requests + +testinfra_hosts = AnsibleRunner('.molecule/ansible_inventory').get_hosts('all') + def test_telegraf_running_and_enabled(Service, SystemInfo): telegraf = Service("telegraf")