mirror of
https://github.com/dj-wasabi/ansible-telegraf.git
synced 2025-07-17 08:46:37 +00:00
Added new code for correct molecule verification
This commit is contained in:
@ -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
|
||||
|
@ -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")
|
||||
|
Reference in New Issue
Block a user