geekoops-collectd/molecule/default/tests/test_default.py
felix.niederwanger@suse.com 16cd66fbea Add GitHub Actions
Adding GitHub Actions as CI
2021-03-25 16:22:25 +01:00

14 lines
393 B
Python
Executable file

#!/usr/bin/python3
# -*- coding: utf-8 -*-
import testinfra.utils.ansible_runner
import os
testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner(os.environ['MOLECULE_INVENTORY_FILE']).get_hosts('all')
def test_collectd(host):
# Just ensure, the collectd config file is overwritten
cmd = host.run("cat /etc/collectd.conf | grep Hostname | grep jellyfish")
assert cmd.succeeded