=================================== FAILURES ===================================
____________________________ test_check_log_errors _____________________________
@pytest.mark.wazuh
def test_check_log_errors():
found_error = False
with open('/var/ossec/logs/ossec.log', 'r') as f:
for line in f.readlines():
if 'ERROR' in line:
if 'ERROR: Cluster error detected' not in line and 'agent-upgrade: ERROR: (8123): There has been an error executing the request in the tasks manager.' not in line:
found_error = True
break
> assert found_error == False, line
E AssertionError: 2023/12/21 13:22:50 wazuh-modulesd:syscollector: ERROR: Can't load syscollector.
E
E assert True == False
E +True
E -False
test_unattended.py:217: AssertionError
=========================== short test summary info ============================
FAILED test_unattended.py::test_check_log_errors - AssertionError: 2023/12/21...
================== 1 failed, 18 passed, 3 deselected in 7.14s ==================
Traceback (most recent call last):
File "/usr/lib/cnf-update-db", line 3, in
import apt_pkg
ModuleNotFoundError: No module named 'apt_pkg'
Reading package lists...
W: http://ppa.launchpad.net/deadsnakes/ppa/ubuntu/dists/jammy/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
E: Problem executing scripts APT::Update::Post-Invoke-Success 'if /usr/bin/test -w /var/lib/command-not-found/ -a -e /usr/lib/cnf-update-db; then /usr/lib/cnf-update-db > /dev/null; fi'
E: Sub-process returned an error code
Get:7 https://packages.wazuh.com/4.x/apt stable/main amd64 Packages [38.4 kB]
Traceback (most recent call last):
File "/usr/lib/cnf-update-db", line 3, in
import apt_pkg
ModuleNotFoundError: No module named 'apt_pkg'
Fetched 55.7 kB in 1s (91.0 kB/s)
Reading package lists...
W: http://ppa.launchpad.net/deadsnakes/ppa/ubuntu/dists/jammy/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
E: Problem executing scripts APT::Update::Post-Invoke-Success 'if /usr/bin/test -w /var/lib/command-not-found/ -a -e /usr/lib/cnf-update-db; then /usr/lib/cnf-update-db > /dev/null; fi'
E: Sub-process returned an error code
### ubuntu_focal_master log
- Missing testing log file: /home/ec2-user/workspace/Test_unattended_distributed_cases/artifacts/Test_unattended_distributed_cases_B2077_ubuntu_focal_master.log. Check Jenkins Build for extra info if
required.
### centos_7_unattended_master log
- Missing testing log file: /home/ec2-user/workspace/Test_unattended_distributed_cases@2/artifacts/Test_unattended_distributed_cases_B2078_centos_7_unattended_master.log. Check Jenkins Build for extra
info if required.
### centos_7_unattended log
- Missing testing log file: /home/ec2-user/workspace/Test_unattended_distributed_cases@2/artifacts/Test_unattended_distributed_cases_B2078_centos_7_unattended.log. Check Jenkins Build for extra info i
f required.
Description
In the PR #2715 some checks are failing. Here are some more details:
Wazuh CI / All In One - Ubuntu xenial - Tests https://github.com/wazuh/wazuh-packages/pull/2715/checks?check_run_id=19861910827
Wazuh CI / All In One - Ubuntu xenial installation https://github.com/wazuh/wazuh-packages/pull/2715/checks?check_run_id=19881960271
Wazuh CI / Distributed - Wazuh indexer installation https://github.com/wazuh/wazuh-packages/pull/2715/checks?check_run_id=19882089307
Wazuh CI / Distributed - Wazuh server installation https://github.com/wazuh/wazuh-packages/pull/2715/checks?check_run_id=19860549242
Wazuh CI / Distributed Cases - manager_indexer - ubuntu - Wazuh indexer installation https://github.com/wazuh/wazuh-packages/pull/2715/checks?check_run_id=19881991505
Wazuh CI / Distributed Cases - manager_indexer - centos - Tests https://github.com/wazuh/wazuh-packages/pull/2715/checks?check_run_id=19882175680
Wazuh CI / Distributed Cases - manager_indexer - ubuntu - Tests https://github.com/wazuh/wazuh-packages/pull/2715/checks?check_run_id=19859190596
DoD