Bump version to 4.8.2 #3076
Merged
Bump version to 4.8.2 #3076
Wazuh CI / All In One - Centos 7 - Tests
failed
Aug 16, 2024 in 53s
Test_unattended
Below you have the stage output
Details
Centos 7 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
metadata: {'Python': '3.6.8', 'Platform': 'Linux-3.10.0-693.11.6.el7.x86_64-x86_64-with-centos-7.4.1708-Core', 'Packages': {'pytest': '6.2.5', 'py': '1.11.0', 'pluggy': '1.0.0'}, 'Plugins': {'metadata
': '1.8.0', 'html': '2.0.1'}}
rootdir: /tmp/unattended/tests/unattended/install, configfile: pytest.ini
plugins: metadata-1.8.0, html-2.0.1
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:03:20 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
=============================== warnings summary ===============================
../../../../../usr/local/lib/python3.6/site-packages/requests/__init__.py:91
/usr/local/lib/python3.6/site-packages/requests/__init__.py:91: RequestsDependencyWarning: urllib3 (1.26.6) or chardet (3.0.4) doesn't match a supported version!
RequestsDependencyWarning)
-- Docs: https://docs.pytest.org/en/stable/warnings.html
=========================== short test summary info ============================
FAILED test_unattended.py::test_check_log_errors - AssertionError: 2024/08/16...
============ 1 failed, 18 passed, 3 deselected, 1 warning in 7.35s =============
Loading