Added new code for correct molecule verification

This commit is contained in:
Werner Dijkerman
2016-08-24 19:09:23 +02:00
parent 3826a37496
commit b0dfe773a7
2 changed files with 7 additions and 1 deletions

View File

@ -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

View File

@ -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")