From b679c7d185933baf89b8245071e7c4b2fa4b3f0e Mon Sep 17 00:00:00 2001 From: Manuel Gutierrez <1380243+xr09@users.noreply.github.com> Date: Mon, 26 Oct 2020 19:27:03 +0100 Subject: [PATCH] Apply format --- molecule/default/tests/test_default.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/molecule/default/tests/test_default.py b/molecule/default/tests/test_default.py index 36787f1e..289e4f86 100644 --- a/molecule/default/tests/test_default.py +++ b/molecule/default/tests/test_default.py @@ -30,7 +30,9 @@ def test_wazuh_services_are_running(host): # api = host.service("wazuh-api") # assert manager.is_running # assert api.is_running - output = host.check_output('ps aux | grep ossec | tr -s " " | cut -d" " -f11') + output = host.check_output( + 'ps aux | grep ossec | tr -s " " | cut -d" " -f11' + ) assert 'ossec-authd' in output assert 'wazuh-modulesd' in output assert 'wazuh-db' in output @@ -48,7 +50,6 @@ def test_wazuh_services_are_running(host): ("/var/ossec/etc/rules/local_rules.xml", "ossec", "ossec", 0o640), ("/var/ossec/etc/lists/audit-keys", "ossec", "ossec", 0o660), ]) - def test_wazuh_files(host, wazuh_file, wazuh_owner, wazuh_group, wazuh_mode): """Test Wazuh related files exist and have proper owners and mode.""" wazuh_file_host = host.file(wazuh_file) @@ -56,6 +57,7 @@ def test_wazuh_files(host, wazuh_file, wazuh_owner, wazuh_group, wazuh_mode): assert wazuh_file_host.group == wazuh_group assert wazuh_file_host.mode == wazuh_mode + def test_filebeat_is_installed(host): """Test the elasticsearch package is installed.""" filebeat = host.package("filebeat")