Bump version to 4.8.2 #3076
Merged
Bump version to 4.8.2 #3076
Wazuh CI / All In One - Centos 8 - Tests
failed
Aug 16, 2024 in 46s
Test_unattended
Below you have the stage output
Details
Centos 8 log
--------------------------------
============================= test session starts ==============================
platform linux -- Python 3.6.8, pytest-6.2.5, py-1.11.0, pluggy-1.0.0 -- /bin/python3
cachedir: .pytest_cache
rootdir: /tmp/unattended/tests/unattended/install, configfile: pytest.ini
collecting ... collected 22 items / 3 deselected / 19 selected
test_unattended.py::test_check_wazuh_manager_authd PASSED [ 5%]
test_unattended.py::test_check_wazuh_manager_db PASSED [ 10%]
test_unattended.py::test_check_wazuh_manager_execd PASSED [ 15%]
test_unattended.py::test_check_wazuh_manager_analysisd PASSED [ 21%]
test_unattended.py::test_check_wazuh_manager_syscheckd PASSED [ 26%]
test_unattended.py::test_check_wazuh_manager_remoted PASSED [ 31%]
test_unattended.py::test_check_wazuh_manager_logcollec PASSED [ 36%]
test_unattended.py::test_check_wazuh_manager_monitord PASSED [ 42%]
test_unattended.py::test_check_wazuh_manager_modulesd PASSED [ 47%]
test_unattended.py::test_check_wazuh_manager_apid PASSED [ 52%]
test_unattended.py::test_check_filebeat_process PASSED [ 57%]
test_unattended.py::test_check_indexer_process PASSED [ 63%]
test_unattended.py::test_check_dashboard_process PASSED [ 68%]
test_unattended.py::test_check_indexer_cluster_status_not_red PASSED [ 73%]
test_unattended.py::test_check_dashboard_status PASSED [ 78%]
test_unattended.py::test_check_wazuh_api_status PASSED [ 84%]
test_unattended.py::test_check_log_errors FAILED [ 89%]
test_unattended.py::test_check_cluster_log_errors PASSED [ 94%]
test_unattended.py::test_check_alerts PASSED [100%]
=================================== FAILURES ===================================
____________________________ test_check_log_errors _____________________________
@pytest.mark.wazuh
def test_check_log_errors():
found_error = False
exceptions = [
'WARNING: Cluster error detected',
'agent-upgrade: ERROR: (8123): There has been an error executing the request in the tasks manager.',
"ERROR: Could not send message through the cluster after '10' attempts"
]
with open('/var/ossec/logs/ossec.log', 'r') as f:
for line in f.readlines():
if 'ERROR' in line:
if not any(exception in line for exception in exceptions):
found_error = True
break
> assert found_error == False, line
E AssertionError: 2024/08/16 08:05:43 wazuh-modulesd:content-updater: ERROR: Action for 'vulnerability_feed_manager' failed: Orchestration run failed: Error 429 from server: HTTP response code s
aid error
E
E assert True == False
E +True
E -False
test_unattended.py:224: AssertionError
=========================== short test summary info ============================
FAILED test_unattended.py::test_check_log_errors - AssertionError: 2024/08/16...
================== 1 failed, 18 passed, 3 deselected in 6.72s ==================
Loading