xoxys.certbot/molecule/centos8/tests/test_default.py

15 lines
363 B
Python
Raw Permalink Normal View History

2020-04-19 21:27:41 +00:00
import os
import testinfra.utils.ansible_runner
import warnings
warnings.filterwarnings("ignore", category=DeprecationWarning)
testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner(
os.environ['MOLECULE_INVENTORY_FILE']).get_hosts('all')
def test_certbot_is_installed(host):
certbot = host.package("certbot")
assert certbot.is_installed