Fixed lint issue on tests
This commit is contained in:
parent
ad256682b0
commit
25dc5ddd93
@ -35,8 +35,8 @@ def test_wazuh_packages_are_installed(host):
|
|||||||
def test_wazuh_services_are_running(host):
|
def test_wazuh_services_are_running(host):
|
||||||
"""Test if the services are enabled and running.
|
"""Test if the services are enabled and running.
|
||||||
|
|
||||||
When assert commands are commented, this means that the service command has a
|
When assert commands are commented, this means that the service command has
|
||||||
wrong exit code: https://github.com/wazuh/wazuh-ansible/issues/107
|
a wrong exit code: https://github.com/wazuh/wazuh-ansible/issues/107
|
||||||
"""
|
"""
|
||||||
manager = host.service("wazuh-manager")
|
manager = host.service("wazuh-manager")
|
||||||
api = host.service("wazuh-api")
|
api = host.service("wazuh-api")
|
||||||
@ -53,6 +53,7 @@ def test_wazuh_services_are_running(host):
|
|||||||
# assert api.is_running
|
# assert api.is_running
|
||||||
assert api.is_enabled
|
assert api.is_enabled
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.parametrize("wazuh_file, wazuh_owner, wazuh_group, wazuh_mode", [
|
@pytest.mark.parametrize("wazuh_file, wazuh_owner, wazuh_group, wazuh_mode", [
|
||||||
("/var/ossec/etc/sslmanager.cert", "root", "root", 0o640),
|
("/var/ossec/etc/sslmanager.cert", "root", "root", 0o640),
|
||||||
("/var/ossec/etc/sslmanager.key", "root", "root", 0o640),
|
("/var/ossec/etc/sslmanager.key", "root", "root", 0o640),
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user