xoxys.firewalld/molecule/rocky8/tests/test_default.py
Robert Kaussow f6a2053355
All checks were successful
continuous-integration/drone/push Build is passing
fix configuration templates
2022-06-13 22:18:21 +02:00

19 lines
446 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_firewalld_is_installed(host):
firewalld = host.package("firewalld")
assert firewalld.is_installed
def test_firewalld_running_and_enabled(host):
firewalld = host.service("firewalld")
assert firewalld.is_running
assert firewalld.is_enabled