Merge pull request #7 from dj-wasabi/new_molecule_setup

Added new code for correct molecule verification
This commit is contained in:
Werner Dijkerman
2016-08-24 19:17:20 +02:00
committed by GitHub
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 - sudo apt-get install -o Dpkg::Options::="--force-confold" --force-yes -y docker-engine
install: install:
- pip install molecule - pip install molecule ansible
script: script:
- molecule test - 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): def test_telegraf_running_and_enabled(Service, SystemInfo):
telegraf = Service("telegraf") telegraf = Service("telegraf")