ansible-acme-sh/molecule/default/tests/test_default.py
2020-04-07 04:18:17 -04:00

15 lines
346 B
Python

import os
import testinfra.utils.ansible_runner
testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner(
os.environ['MOLECULE_INVENTORY_FILE']).get_hosts('all')
def test_motd_file_exist(host):
f = host.file('/tmp/acme.sh')
assert not f.exists
# def test_motd_file_work(host):
# host.run_test('/etc/profile.d/motd.sh')