From 91f2362f484d2a965841607c5c1fd0d8f6088cbe Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Sat, 24 Sep 2022 16:30:28 +0200 Subject: [PATCH] add minimal test to molecule --- molecule/rocky9/tests/test_default.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/molecule/rocky9/tests/test_default.py b/molecule/rocky9/tests/test_default.py index 18236da..bcc2d55 100644 --- a/molecule/rocky9/tests/test_default.py +++ b/molecule/rocky9/tests/test_default.py @@ -5,3 +5,9 @@ import testinfra.utils.ansible_runner testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner( os.environ["MOLECULE_INVENTORY_FILE"] ).get_hosts("all") + + +def test_auditd_running_and_enabled(host): + auditd = host.service("auditd") + assert auditd.is_running + assert auditd.is_enabled