From d39b862b7558104b4f71780925050324c08fdeb7 Mon Sep 17 00:00:00 2001 From: GGP1 Date: Wed, 8 May 2024 13:08:01 -0300 Subject: [PATCH] Update API script file name --- rpms/SPECS/wazuh-manager.spec | 2 +- tests/unattended/install/test_unattended.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/rpms/SPECS/wazuh-manager.spec b/rpms/SPECS/wazuh-manager.spec index b51a2cddbf..6a55064853 100644 --- a/rpms/SPECS/wazuh-manager.spec +++ b/rpms/SPECS/wazuh-manager.spec @@ -625,7 +625,7 @@ rm -fr %{buildroot} %dir %attr(770, root, wazuh) %{_localstatedir}/api/configuration/security %dir %attr(770, root, wazuh) %{_localstatedir}/api/configuration/ssl %dir %attr(750, root, wazuh) %{_localstatedir}/api/scripts -%attr(640, root, wazuh) %{_localstatedir}/api/scripts/wazuh-apid.py +%attr(640, root, wazuh) %{_localstatedir}/api/scripts/*.py %dir %attr(750, root, wazuh) %{_localstatedir}/backup %dir %attr(750, wazuh, wazuh) %{_localstatedir}/backup/db %dir %attr(750, wazuh, wazuh) %{_localstatedir}/backup/agents diff --git a/tests/unattended/install/test_unattended.py b/tests/unattended/install/test_unattended.py index 80e9c4e3e5..54094a8180 100644 --- a/tests/unattended/install/test_unattended.py +++ b/tests/unattended/install/test_unattended.py @@ -171,7 +171,7 @@ def test_check_wazuh_manager_modulesd(): @pytest.mark.wazuh def test_check_wazuh_manager_apid(): - assert check_call("ps -xa | grep wazuh-apid | grep -v grep", shell=True) != "" + assert check_call("ps -xa | grep wazuh_apid | grep -v grep", shell=True) != "" @pytest.mark.wazuh_cluster def test_check_wazuh_manager_clusterd():