results.html

Report generated on 17-Mar-2023 at 15:04:57 by pytest-html v3.1.1

Environment

Packages {"pluggy": "0.13.1", "pytest": "6.2.2"}
Platform Linux-5.4.0-110-generic-x86_64-with-glibc2.29
Plugins {"html": "3.1.1", "metadata": "2.0.4", "testinfra": "5.0.0"}
Python 3.8.10

Summary

62 tests ran in 137.13 seconds.

61 passed, 13 skipped, 0 failed, 0 errors, 1 expected failures, 0 unexpected passes
Tests Failed Success XFail Error
test_enrollment/test_agent_auth_enrollment.py 0 25 0 0
test_enrollment/test_agentd_enrollment.py 0 29 1 0
test_enrollment/test_agentd_server_address_configuration.py 0 7 0 0

Results

Result Time Test Description Duration Markers Links Tier
XFailed 2023-03-17 15:04:57.509124 test_enrollment/test_agentd_enrollment.py::test_agentd_enrollment[agentd_enrollment-Invalid Agent address] description:. "Check that different configuration generates the adequate enrollment message or the corresponding error. log. The configuration, keys, and password files will be written with the different scenarios described. in the test cases. After this, Agentd is started to wait for the expected result." 21.08 linux, win32, agent 0
configure_environment = None, override_wazuh_conf = None
get_current_test_case = {'configuration': {'agent_address': '192.168.0.1000'}, 'description': 'Check an invalid agent_address in auto enrollme...{'os': 'any', 'reason': 'Known Issue: Invalid adress is not checked. https://github.com/wazuh/wazuh/issues/4965'}, ...}
create_certificates = None, set_keys = None, set_password = None
file_monitoring = None, configure_socket_listener = None, restart_agentd = None
request = <FixtureRequest for <Function test_agentd_enrollment[agentd_enrollment-Invalid Agent address]>>

def test_agentd_enrollment(configure_environment, override_wazuh_conf, get_current_test_case, create_certificates,
set_keys, set_password, file_monitoring, configure_socket_listener, restart_agentd, request):
"""
description:
"Check that different configuration generates the adequate enrollment message or the corresponding error
log. The configuration, keys, and password files will be written with the different scenarios described
in the test cases. After this, Agentd is started to wait for the expected result."

wazuh_min_version: 4.2.0

tier: 0

parameters:
- configure_environment:
type: fixture
brief: Configure a custom environment for testing.
- override_wazuh_conf:
type: fixture
brief: Write a particular Wazuh configuration for the test case.
- get_current_test_case:
type: fixture
brief: Get the current test case.
- create_certificates:
type: fixture
brief: Write the certificate files used for SSL communication.
- set_keys:
type: fixture
brief: Write pre-existent keys into client.keys.
- set_password:
type: fixture
brief: Write the password file.
- file_monitoring:
type: fixture
brief: Handle the monitoring of a specified file.
- restart_agentd:
type: fixture
brief: Restart Agentd and control if it is expected to fail or not.
- request:
type: fixture
brief: Provide information of the requesting test function.

assertions:
- The enrollment message is sent when the configuration is valid
- The enrollment message is generated as expected when the configuration is valid.
- The error log is generated as expected when the configuration is invalid.

input_description:
Different test cases are contained in an external YAML file (wazuh_enrollment_tests.yaml) which includes the
different available enrollment-related configurations.

expected_output:
- Enrollment request message on Authd socket
- Error logs related to the wrong configuration block
"""

if 'expected_error' in get_current_test_case:
log_monitor = request.module.log_monitor
expected_error_dict = get_current_test_case['expected_error']
expected_error = expected_error_dict['agent-enrollment'] if 'agent-enrollment' in expected_error_dict else \
expected_error_dict
try:
> log_monitor.start(timeout=AGENTD_ENROLLMENT_REQUEST_TIMEOUT,
callback=make_callback(expected_error, prefix='.*',
escape=True),
error_message='Expected error log does not occured.')

test_enrollment/test_agentd_enrollment.py:164:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <wazuh_testing.tools.monitoring.FileMonitor object at 0x7f8a9c80f3d0>
timeout = 20
callback = <function make_callback.<locals>.<lambda> at 0x7f8a9c809550>
accum_results = 1, update_position = True, timeout_extra = 0
error_message = 'Expected error log does not occured.', encoding = None

def start(self, timeout=-1, callback=_callback_default, accum_results=1, update_position=True, timeout_extra=0,
error_message='', encoding=None):
"""Start the file monitoring until the stop method is called."""
try:
tailer = self.tailer if update_position else copy(self.tailer)

if encoding is not None:
tailer.encoding = encoding
tailer.start()

monitor = QueueMonitor(tailer.queue, time_step=self._time_step)
> self._result = monitor.start(timeout=timeout, callback=callback, accum_results=accum_results,
update_position=True, timeout_extra=timeout_extra,
error_message=error_message).result()

/usr/local/lib/python3.8/dist-packages/wazuh_testing/tools/monitoring.py:202:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <wazuh_testing.tools.monitoring.QueueMonitor object at 0x7f8a9c80ffa0>
timeout = 20
callback = <function make_callback.<locals>.<lambda> at 0x7f8a9c809550>
accum_results = 1, update_position = True, timeout_extra = 0
error_message = 'Expected error log does not occured.'

def start(self, timeout=-1, callback=_callback_default, accum_results=1, update_position=True, timeout_extra=0,
error_message=''):
"""Start the queue monitoring until the stop method is called."""
if not self._continue:
self._continue = True
self._abort = False
result = None

while self._continue:
if self._abort:
self.stop()
if error_message:
logger.error(error_message)
logger.error(f"Results accumulated: "
f"{len(result) if isinstance(result, list) else 0}")
logger.error(f"Results expected: {accum_results}")
> raise TimeoutError(error_message)
E TimeoutError: Expected error log does not occured.

/usr/local/lib/python3.8/dist-packages/wazuh_testing/tools/monitoring.py:470: TimeoutError

During handling of the above exception, another exception occurred:

configure_environment = None, override_wazuh_conf = None
get_current_test_case = {'configuration': {'agent_address': '192.168.0.1000'}, 'description': 'Check an invalid agent_address in auto enrollme...{'os': 'any', 'reason': 'Known Issue: Invalid adress is not checked. https://github.com/wazuh/wazuh/issues/4965'}, ...}
create_certificates = None, set_keys = None, set_password = None
file_monitoring = None, configure_socket_listener = None, restart_agentd = None
request = <FixtureRequest for <Function test_agentd_enrollment[agentd_enrollment-Invalid Agent address]>>

def test_agentd_enrollment(configure_environment, override_wazuh_conf, get_current_test_case, create_certificates,
set_keys, set_password, file_monitoring, configure_socket_listener, restart_agentd, request):
"""
description:
"Check that different configuration generates the adequate enrollment message or the corresponding error
log. The configuration, keys, and password files will be written with the different scenarios described
in the test cases. After this, Agentd is started to wait for the expected result."

wazuh_min_version: 4.2.0

tier: 0

parameters:
- configure_environment:
type: fixture
brief: Configure a custom environment for testing.
- override_wazuh_conf:
type: fixture
brief: Write a particular Wazuh configuration for the test case.
- get_current_test_case:
type: fixture
brief: Get the current test case.
- create_certificates:
type: fixture
brief: Write the certificate files used for SSL communication.
- set_keys:
type: fixture
brief: Write pre-existent keys into client.keys.
- set_password:
type: fixture
brief: Write the password file.
- file_monitoring:
type: fixture
brief: Handle the monitoring of a specified file.
- restart_agentd:
type: fixture
brief: Restart Agentd and control if it is expected to fail or not.
- request:
type: fixture
brief: Provide information of the requesting test function.

assertions:
- The enrollment message is sent when the configuration is valid
- The enrollment message is generated as expected when the configuration is valid.
- The error log is generated as expected when the configuration is invalid.

input_description:
Different test cases are contained in an external YAML file (wazuh_enrollment_tests.yaml) which includes the
different available enrollment-related configurations.

expected_output:
- Enrollment request message on Authd socket
- Error logs related to the wrong configuration block
"""

if 'expected_error' in get_current_test_case:
log_monitor = request.module.log_monitor
expected_error_dict = get_current_test_case['expected_error']
expected_error = expected_error_dict['agent-enrollment'] if 'agent-enrollment' in expected_error_dict else \
expected_error_dict
try:
log_monitor.start(timeout=AGENTD_ENROLLMENT_REQUEST_TIMEOUT,
callback=make_callback(expected_error, prefix='.*',
escape=True),
error_message='Expected error log does not occured.')
except Exception as error:
expected_fail = get_current_test_case.get('expected_fail')
if expected_fail and (expected_fail['os'] == "any" or expected_fail['os'] == sys.platform):
is_xfail = True
xfail_reason = expected_fail.get('reason')
else:
is_xfail = False

if is_xfail:
> pytest.xfail(f"Xfailing due to {xfail_reason}")
E _pytest.outcomes.XFailed: Xfailing due to Known Issue: Invalid adress is not checked. https://github.com/wazuh/wazuh/issues/4965

test_enrollment/test_agentd_enrollment.py:177: XFailed
-----------------------------Captured stderr setup------------------------------
2023-03-17 15:03:16,379 - wazuh_testing - DEBUG - Initializing file to monitor to /var/ossec/logs/ossec.log 2023/03/17 15:03:16 wazuh-agentd[333743] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/03/17 15:03:16 wazuh-agentd[333743] main.c:139 at main(): DEBUG: Wazuh home directory: /var/ossec 2023/03/17 15:03:16 wazuh-agentd[333743] main.c:141 at main(): DEBUG: Started (pid: 333743). 2023/03/17 15:03:16 wazuh-agentd[333743] client-config.c:492 at Read_Client_Enrollment(): ERROR: (4104): Invalid hostname: '192.168.0.1000'. 2023/03/17 15:03:16 wazuh-agentd[333743] config.c:332 at ReadConfig(): ERROR: (1202): Configuration error at 'etc/ossec.conf'. 2023/03/17 15:03:16 wazuh-agentd[333743] main.c:145 at main(): CRITICAL: (1215): No client configured. Exiting.
-------------------------------Captured log setup-------------------------------
DEBUG wazuh_testing:conftest.py:994 Initializing file to monitor to /var/ossec/logs/ossec.log
------------------------------Captured stderr call------------------------------
2023-03-17 15:03:36,814 - wazuh_testing - ERROR - Expected error log does not occured. 2023-03-17 15:03:36,814 - wazuh_testing - ERROR - Results accumulated: 0 2023-03-17 15:03:36,814 - wazuh_testing - ERROR - Results expected: 1
-------------------------------Captured log call--------------------------------
ERROR wazuh_testing:monitoring.py:466 Expected error log does not occured. ERROR wazuh_testing:monitoring.py:467 Results accumulated: 0 ERROR wazuh_testing:monitoring.py:469 Results expected: 1
----------------------------Captured stderr teardown----------------------------
2023-03-17 15:03:37,627 - wazuh_testing - DEBUG - Trucanted /var/ossec/logs/ossec.log
-----------------------------Captured log teardown------------------------------
DEBUG wazuh_testing:conftest.py:1002 Trucanted /var/ossec/logs/ossec.log
Skipped 2023-03-17 15:04:57.503957 test_enrollment/test_agent_auth_enrollment.py::test_agent_auth_enrollment[agent_auth_enrollment-Invalid Agent address CIDR0] description:. "Check that different configuration generates the adequate enrollment message or the corresponding. error log. Agent-auth will be executed using the different parameters and with different keys and password. files scenarios as described in the test cases." 0.53 linux, win32, agent 0
('/automation/tests/integration/test_enrollment/test_agent_auth_enrollment.py', 146, 'Skipped: This test does not apply to agent-auth')
-----------------------------Captured stderr setup------------------------------
2023-03-17 15:02:43,911 - wazuh_testing - DEBUG - Initializing file to monitor to /var/ossec/logs/ossec.log
-------------------------------Captured log setup-------------------------------
DEBUG wazuh_testing:conftest.py:994 Initializing file to monitor to /var/ossec/logs/ossec.log
----------------------------Captured stderr teardown----------------------------
2023-03-17 15:02:44,442 - wazuh_testing - DEBUG - Trucanted /var/ossec/logs/ossec.log
-----------------------------Captured log teardown------------------------------
DEBUG wazuh_testing:conftest.py:1002 Trucanted /var/ossec/logs/ossec.log
Skipped 2023-03-17 15:04:57.504241 test_enrollment/test_agent_auth_enrollment.py::test_agent_auth_enrollment[agent_auth_enrollment-Valid manager address] description:. "Check that different configuration generates the adequate enrollment message or the corresponding. error log. Agent-auth will be executed using the different parameters and with different keys and password. files scenarios as described in the test cases." 0.70 linux, win32, agent 0
('/automation/tests/integration/test_enrollment/test_agent_auth_enrollment.py', 146, 'Skipped: This test does not apply to agent-auth')
-----------------------------Captured stderr setup------------------------------
2023-03-17 15:02:46,593 - wazuh_testing - DEBUG - Initializing file to monitor to /var/ossec/logs/ossec.log
-------------------------------Captured log setup-------------------------------
DEBUG wazuh_testing:conftest.py:994 Initializing file to monitor to /var/ossec/logs/ossec.log
----------------------------Captured stderr teardown----------------------------
2023-03-17 15:02:47,297 - wazuh_testing - DEBUG - Trucanted /var/ossec/logs/ossec.log
-----------------------------Captured log teardown------------------------------
DEBUG wazuh_testing:conftest.py:1002 Trucanted /var/ossec/logs/ossec.log
Skipped 2023-03-17 15:04:57.504613 test_enrollment/test_agent_auth_enrollment.py::test_agent_auth_enrollment[agent_auth_enrollment-Invalid enabled] description:. "Check that different configuration generates the adequate enrollment message or the corresponding. error log. Agent-auth will be executed using the different parameters and with different keys and password. files scenarios as described in the test cases." 0.50 linux, win32, agent 0
('/automation/tests/integration/test_enrollment/test_agent_auth_enrollment.py', 146, 'Skipped: This test does not apply to agent-auth')
-----------------------------Captured stderr setup------------------------------
2023-03-17 15:02:48,913 - wazuh_testing - DEBUG - Initializing file to monitor to /var/ossec/logs/ossec.log
-------------------------------Captured log setup-------------------------------
DEBUG wazuh_testing:conftest.py:994 Initializing file to monitor to /var/ossec/logs/ossec.log
----------------------------Captured stderr teardown----------------------------
2023-03-17 15:02:49,417 - wazuh_testing - DEBUG - Trucanted /var/ossec/logs/ossec.log
-----------------------------Captured log teardown------------------------------
DEBUG wazuh_testing:conftest.py:1002 Trucanted /var/ossec/logs/ossec.log
Skipped 2023-03-17 15:04:57.505354 test_enrollment/test_agent_auth_enrollment.py::test_agent_auth_enrollment[agent_auth_enrollment-Incompatible - Use source IP1] description:. "Check that different configuration generates the adequate enrollment message or the corresponding. error log. Agent-auth will be executed using the different parameters and with different keys and password. files scenarios as described in the test cases." 0.51 linux, win32, agent 0
('/automation/tests/integration/test_enrollment/test_agent_auth_enrollment.py', 146, 'Skipped: This test does not apply to agent-auth')
-----------------------------Captured stderr setup------------------------------
2023-03-17 15:02:57,338 - wazuh_testing - DEBUG - Initializing file to monitor to /var/ossec/logs/ossec.log
-------------------------------Captured log setup-------------------------------
DEBUG wazuh_testing:conftest.py:994 Initializing file to monitor to /var/ossec/logs/ossec.log
----------------------------Captured stderr teardown----------------------------
2023-03-17 15:02:57,854 - wazuh_testing - DEBUG - Trucanted /var/ossec/logs/ossec.log
-----------------------------Captured log teardown------------------------------
DEBUG wazuh_testing:conftest.py:1002 Trucanted /var/ossec/logs/ossec.log
Skipped 2023-03-17 15:04:57.505629 test_enrollment/test_agent_auth_enrollment.py::test_agent_auth_enrollment[agent_auth_enrollment-Password from file - Agentd] description:. "Check that different configuration generates the adequate enrollment message or the corresponding. error log. Agent-auth will be executed using the different parameters and with different keys and password. files scenarios as described in the test cases." 0.51 linux, win32, agent 0
('/automation/tests/integration/test_enrollment/test_agent_auth_enrollment.py', 146, 'Skipped: This test does not apply to agent-auth')
-----------------------------Captured stderr setup------------------------------
2023-03-17 15:02:59,263 - wazuh_testing - DEBUG - Initializing file to monitor to /var/ossec/logs/ossec.log
-------------------------------Captured log setup-------------------------------
DEBUG wazuh_testing:conftest.py:994 Initializing file to monitor to /var/ossec/logs/ossec.log
----------------------------Captured stderr teardown----------------------------
2023-03-17 15:02:59,777 - wazuh_testing - DEBUG - Trucanted /var/ossec/logs/ossec.log
-----------------------------Captured log teardown------------------------------
DEBUG wazuh_testing:conftest.py:1002 Trucanted /var/ossec/logs/ossec.log
Skipped 2023-03-17 15:04:57.505723 test_enrollment/test_agent_auth_enrollment.py::test_agent_auth_enrollment[agent_auth_enrollment-Valid port] description:. "Check that different configuration generates the adequate enrollment message or the corresponding. error log. Agent-auth will be executed using the different parameters and with different keys and password. files scenarios as described in the test cases." 0.52 linux, win32, agent 0
('/automation/tests/integration/test_enrollment/test_agent_auth_enrollment.py', 146, 'Skipped: This test does not apply to agent-auth')
-----------------------------Captured stderr setup------------------------------
2023-03-17 15:02:59,782 - wazuh_testing - DEBUG - Initializing file to monitor to /var/ossec/logs/ossec.log
-------------------------------Captured log setup-------------------------------
DEBUG wazuh_testing:conftest.py:994 Initializing file to monitor to /var/ossec/logs/ossec.log
----------------------------Captured stderr teardown----------------------------
2023-03-17 15:03:00,304 - wazuh_testing - DEBUG - Trucanted /var/ossec/logs/ossec.log
-----------------------------Captured log teardown------------------------------
DEBUG wazuh_testing:conftest.py:1002 Trucanted /var/ossec/logs/ossec.log
Skipped 2023-03-17 15:04:57.505813 test_enrollment/test_agent_auth_enrollment.py::test_agent_auth_enrollment[agent_auth_enrollment-Invalid port 65536] description:. "Check that different configuration generates the adequate enrollment message or the corresponding. error log. Agent-auth will be executed using the different parameters and with different keys and password. files scenarios as described in the test cases." 0.53 linux, win32, agent 0
('/automation/tests/integration/test_enrollment/test_agent_auth_enrollment.py', 146, 'Skipped: This test does not apply to agent-auth')
-----------------------------Captured stderr setup------------------------------
2023-03-17 15:03:00,308 - wazuh_testing - DEBUG - Initializing file to monitor to /var/ossec/logs/ossec.log
-------------------------------Captured log setup-------------------------------
DEBUG wazuh_testing:conftest.py:994 Initializing file to monitor to /var/ossec/logs/ossec.log
----------------------------Captured stderr teardown----------------------------
2023-03-17 15:03:00,840 - wazuh_testing - DEBUG - Trucanted /var/ossec/logs/ossec.log
-----------------------------Captured log teardown------------------------------
DEBUG wazuh_testing:conftest.py:1002 Trucanted /var/ossec/logs/ossec.log
Skipped 2023-03-17 15:04:57.505905 test_enrollment/test_agent_auth_enrollment.py::test_agent_auth_enrollment[agent_auth_enrollment-Invalid port 0] description:. "Check that different configuration generates the adequate enrollment message or the corresponding. error log. Agent-auth will be executed using the different parameters and with different keys and password. files scenarios as described in the test cases." 0.59 linux, win32, agent 0
('/automation/tests/integration/test_enrollment/test_agent_auth_enrollment.py', 146, 'Skipped: This test does not apply to agent-auth')
-----------------------------Captured stderr setup------------------------------
2023-03-17 15:03:00,843 - wazuh_testing - DEBUG - Initializing file to monitor to /var/ossec/logs/ossec.log
-------------------------------Captured log setup-------------------------------
DEBUG wazuh_testing:conftest.py:994 Initializing file to monitor to /var/ossec/logs/ossec.log
----------------------------Captured stderr teardown----------------------------
2023-03-17 15:03:01,442 - wazuh_testing - DEBUG - Trucanted /var/ossec/logs/ossec.log
-----------------------------Captured log teardown------------------------------
DEBUG wazuh_testing:conftest.py:1002 Trucanted /var/ossec/logs/ossec.log
Skipped 2023-03-17 15:04:57.505995 test_enrollment/test_agent_auth_enrollment.py::test_agent_auth_enrollment[agent_auth_enrollment-Invalid port -1515] description:. "Check that different configuration generates the adequate enrollment message or the corresponding. error log. Agent-auth will be executed using the different parameters and with different keys and password. files scenarios as described in the test cases." 0.50 linux, win32, agent 0
('/automation/tests/integration/test_enrollment/test_agent_auth_enrollment.py', 146, 'Skipped: This test does not apply to agent-auth')
-----------------------------Captured stderr setup------------------------------
2023-03-17 15:03:01,447 - wazuh_testing - DEBUG - Initializing file to monitor to /var/ossec/logs/ossec.log
-------------------------------Captured log setup-------------------------------
DEBUG wazuh_testing:conftest.py:994 Initializing file to monitor to /var/ossec/logs/ossec.log
----------------------------Captured stderr teardown----------------------------
2023-03-17 15:03:01,950 - wazuh_testing - DEBUG - Trucanted /var/ossec/logs/ossec.log
-----------------------------Captured log teardown------------------------------
DEBUG wazuh_testing:conftest.py:1002 Trucanted /var/ossec/logs/ossec.log
Skipped 2023-03-17 15:04:57.507295 test_enrollment/test_agentd_enrollment.py::test_agentd_enrollment[agentd_enrollment-Invalid Agent address CIDR1] description:. "Check that different configuration generates the adequate enrollment message or the corresponding error. log. The configuration, keys, and password files will be written with the different scenarios described. in the test cases. After this, Agentd is started to wait for the expected result." 0.54 linux, win32, agent 0
('/automation/tests/integration/test_enrollment/test_agentd_enrollment.py', 92, 'Skipped: This test does not apply to agentd')
-----------------------------Captured stderr setup------------------------------
2023-03-17 15:03:15,837 - wazuh_testing - DEBUG - Initializing file to monitor to /var/ossec/logs/ossec.log
-------------------------------Captured log setup-------------------------------
DEBUG wazuh_testing:conftest.py:994 Initializing file to monitor to /var/ossec/logs/ossec.log
----------------------------Captured stderr teardown----------------------------
2023-03-17 15:03:16,359 - wazuh_testing - DEBUG - Trucanted /var/ossec/logs/ossec.log
-----------------------------Captured log teardown------------------------------
DEBUG wazuh_testing:conftest.py:1002 Trucanted /var/ossec/logs/ossec.log
Skipped 2023-03-17 15:04:57.666919 test_enrollment/test_agentd_enrollment.py::test_agentd_enrollment[agentd_enrollment-Incompatible - Use source IP0] description:. "Check that different configuration generates the adequate enrollment message or the corresponding error. log. The configuration, keys, and password files will be written with the different scenarios described. in the test cases. After this, Agentd is started to wait for the expected result." 0.52 linux, win32, agent 0
('/automation/tests/integration/test_enrollment/test_agentd_enrollment.py', 92, 'Skipped: This test does not apply to agentd')
-----------------------------Captured stderr setup------------------------------
2023-03-17 15:03:50,844 - wazuh_testing - DEBUG - Initializing file to monitor to /var/ossec/logs/ossec.log
-------------------------------Captured log setup-------------------------------
DEBUG wazuh_testing:conftest.py:994 Initializing file to monitor to /var/ossec/logs/ossec.log
----------------------------Captured stderr teardown----------------------------
2023-03-17 15:03:51,350 - wazuh_testing - DEBUG - Trucanted /var/ossec/logs/ossec.log
-----------------------------Captured log teardown------------------------------
DEBUG wazuh_testing:conftest.py:1002 Trucanted /var/ossec/logs/ossec.log
Skipped 2023-03-17 15:04:57.667071 test_enrollment/test_agentd_enrollment.py::test_agentd_enrollment[agentd_enrollment-Password from string - Agent-Auth] description:. "Check that different configuration generates the adequate enrollment message or the corresponding error. log. The configuration, keys, and password files will be written with the different scenarios described. in the test cases. After this, Agentd is started to wait for the expected result." 0.59 linux, win32, agent 0
('/automation/tests/integration/test_enrollment/test_agentd_enrollment.py', 92, 'Skipped: This test does not apply to agentd')
-----------------------------Captured stderr setup------------------------------
2023-03-17 15:03:52,924 - wazuh_testing - DEBUG - Initializing file to monitor to /var/ossec/logs/ossec.log
-------------------------------Captured log setup-------------------------------
DEBUG wazuh_testing:conftest.py:994 Initializing file to monitor to /var/ossec/logs/ossec.log
----------------------------Captured stderr teardown----------------------------
2023-03-17 15:03:53,508 - wazuh_testing - DEBUG - Trucanted /var/ossec/logs/ossec.log
-----------------------------Captured log teardown------------------------------
DEBUG wazuh_testing:conftest.py:1002 Trucanted /var/ossec/logs/ossec.log
Skipped 2023-03-17 15:04:57.667149 test_enrollment/test_agentd_enrollment.py::test_agentd_enrollment[agentd_enrollment-Password from file - Agent-Auth] description:. "Check that different configuration generates the adequate enrollment message or the corresponding error. log. The configuration, keys, and password files will be written with the different scenarios described. in the test cases. After this, Agentd is started to wait for the expected result." 0.54 linux, win32, agent 0
('/automation/tests/integration/test_enrollment/test_agentd_enrollment.py', 92, 'Skipped: This test does not apply to agentd')
-----------------------------Captured stderr setup------------------------------
2023-03-17 15:03:53,535 - wazuh_testing - DEBUG - Initializing file to monitor to /var/ossec/logs/ossec.log
-------------------------------Captured log setup-------------------------------
DEBUG wazuh_testing:conftest.py:994 Initializing file to monitor to /var/ossec/logs/ossec.log
----------------------------Captured stderr teardown----------------------------
2023-03-17 15:03:54,056 - wazuh_testing - DEBUG - Trucanted /var/ossec/logs/ossec.log
-----------------------------Captured log teardown------------------------------
DEBUG wazuh_testing:conftest.py:1002 Trucanted /var/ossec/logs/ossec.log
Passed 2023-03-17 15:04:57.503556 test_enrollment/test_agent_auth_enrollment.py::test_agent_auth_enrollment[agent_auth_enrollment-Default Name] description:. "Check that different configuration generates the adequate enrollment message or the corresponding. error log. Agent-auth will be executed using the different parameters and with different keys and password. files scenarios as described in the test cases." 1.44 linux, win32, agent 0
-----------------------------Captured stderr setup------------------------------
2023-03-17 15:02:41,783 - wazuh_testing - DEBUG - Initializing file to monitor to /var/ossec/logs/ossec.log
-------------------------------Captured log setup-------------------------------
DEBUG wazuh_testing:conftest.py:994 Initializing file to monitor to /var/ossec/logs/ossec.log
------------------------------Captured stderr call------------------------------
2023/03/17 15:02:41 agent-auth: INFO: Started (pid: 333302). 2023/03/17 15:02:41 agent-auth: INFO: Requesting a key from server: 127.0.0.1 2023/03/17 15:02:41 agent-auth: INFO: Using password specified on file: etc/authd.pass 2023/03/17 15:02:41 agent-auth: INFO: No authentication password provided 2023/03/17 15:02:41 agent-auth: INFO: Using agent name as: vagrant 2023/03/17 15:02:41 agent-auth: INFO: Waiting for server reply 2023/03/17 15:02:41 agent-auth: INFO: Valid key received
----------------------------Captured stderr teardown----------------------------
2023-03-17 15:02:42,460 - wazuh_testing - DEBUG - Trucanted /var/ossec/logs/ossec.log
-----------------------------Captured log teardown------------------------------
DEBUG wazuh_testing:conftest.py:1002 Trucanted /var/ossec/logs/ossec.log
Passed 2023-03-17 15:04:57.503728 test_enrollment/test_agent_auth_enrollment.py::test_agent_auth_enrollment[agent_auth_enrollment-Valid agent address] description:. "Check that different configuration generates the adequate enrollment message or the corresponding. error log. Agent-auth will be executed using the different parameters and with different keys and password. files scenarios as described in the test cases." 0.53 linux, win32, agent 0
-----------------------------Captured stderr setup------------------------------
2023-03-17 15:02:42,463 - wazuh_testing - DEBUG - Initializing file to monitor to /var/ossec/logs/ossec.log
-------------------------------Captured log setup-------------------------------
DEBUG wazuh_testing:conftest.py:994 Initializing file to monitor to /var/ossec/logs/ossec.log
------------------------------Captured stderr call------------------------------
2023/03/17 15:02:42 agent-auth: INFO: Started (pid: 333320). 2023/03/17 15:02:42 agent-auth: INFO: Requesting a key from server: 127.0.0.1 2023/03/17 15:02:42 agent-auth: INFO: Using password specified on file: etc/authd.pass 2023/03/17 15:02:42 agent-auth: INFO: No authentication password provided 2023/03/17 15:02:42 agent-auth: INFO: Using agent name as: vagrant 2023/03/17 15:02:42 agent-auth: INFO: Waiting for server reply 2023/03/17 15:02:42 agent-auth: INFO: Valid key received
----------------------------Captured stderr teardown----------------------------
2023-03-17 15:02:43,003 - wazuh_testing - DEBUG - Trucanted /var/ossec/logs/ossec.log
-----------------------------Captured log teardown------------------------------
DEBUG wazuh_testing:conftest.py:1002 Trucanted /var/ossec/logs/ossec.log
Passed 2023-03-17 15:04:57.503825 test_enrollment/test_agent_auth_enrollment.py::test_agent_auth_enrollment[agent_auth_enrollment-Valid agent address CIDR] description:. "Check that different configuration generates the adequate enrollment message or the corresponding. error log. Agent-auth will be executed using the different parameters and with different keys and password. files scenarios as described in the test cases." 0.89 linux, win32, agent 0
-----------------------------Captured stderr setup------------------------------
2023-03-17 15:02:43,005 - wazuh_testing - DEBUG - Initializing file to monitor to /var/ossec/logs/ossec.log
-------------------------------Captured log setup-------------------------------
DEBUG wazuh_testing:conftest.py:994 Initializing file to monitor to /var/ossec/logs/ossec.log
------------------------------Captured stderr call------------------------------
2023/03/17 15:02:43 agent-auth: INFO: Started (pid: 333338). 2023/03/17 15:02:43 agent-auth: INFO: Requesting a key from server: 127.0.0.1 2023/03/17 15:02:43 agent-auth: INFO: Using password specified on file: etc/authd.pass 2023/03/17 15:02:43 agent-auth: INFO: No authentication password provided 2023/03/17 15:02:43 agent-auth: INFO: Using agent name as: vagrant 2023/03/17 15:02:43 agent-auth: INFO: Waiting for server reply 2023/03/17 15:02:43 agent-auth: INFO: Valid key received
----------------------------Captured stderr teardown----------------------------
2023-03-17 15:02:43,907 - wazuh_testing - DEBUG - Trucanted /var/ossec/logs/ossec.log
-----------------------------Captured log teardown------------------------------
DEBUG wazuh_testing:conftest.py:1002 Trucanted /var/ossec/logs/ossec.log
Passed 2023-03-17 15:04:57.504052 test_enrollment/test_agent_auth_enrollment.py::test_agent_auth_enrollment[agent_auth_enrollment-Invalid Agent address CIDR1] description:. "Check that different configuration generates the adequate enrollment message or the corresponding. error log. Agent-auth will be executed using the different parameters and with different keys and password. files scenarios as described in the test cases." 1.11 linux, win32, agent 0
-----------------------------Captured stderr setup------------------------------
2023-03-17 15:02:44,446 - wazuh_testing - DEBUG - Initializing file to monitor to /var/ossec/logs/ossec.log
-------------------------------Captured log setup-------------------------------
DEBUG wazuh_testing:conftest.py:994 Initializing file to monitor to /var/ossec/logs/ossec.log
------------------------------Captured stderr call------------------------------
2023/03/17 15:02:44 agent-auth: INFO: Started (pid: 333350). 2023/03/17 15:02:44 agent-auth: INFO: Requesting a key from server: 127.0.0.1 2023/03/17 15:02:44 agent-auth: INFO: Using password specified on file: etc/authd.pass 2023/03/17 15:02:44 agent-auth: INFO: No authentication password provided 2023/03/17 15:02:44 agent-auth: INFO: Using agent name as: vagrant 2023/03/17 15:02:44 agent-auth: ERROR: Invalid IP address provided for sender IP. ---------------------------------------- Exception happened during processing of request from ('127.0.0.1', 46562) Traceback (most recent call last): File "/usr/lib/python3.8/socketserver.py", line 683, in process_request_thread self.finish_request(request, client_address) File "/usr/lib/python3.8/socketserver.py", line 360, in finish_request self.RequestHandlerClass(request, client_address, self) File "/usr/lib/python3.8/socketserver.py", line 747, in __init__ self.handle() File "/usr/local/lib/python3.8/dist-packages/wazuh_testing/tools/monitoring.py", line 708, in handle self.request.sendall(response) File "/usr/lib/python3.8/ssl.py", line 1204, in sendall v = self.send(byte_view[count:]) File "/usr/lib/python3.8/ssl.py", line 1173, in send return self._sslobj.write(data) BrokenPipeError: [Errno 32] Broken pipe ----------------------------------------
----------------------------Captured stderr teardown----------------------------
2023-03-17 15:02:45,561 - wazuh_testing - DEBUG - Trucanted /var/ossec/logs/ossec.log
-----------------------------Captured log teardown------------------------------
DEBUG wazuh_testing:conftest.py:1002 Trucanted /var/ossec/logs/ossec.log
Passed 2023-03-17 15:04:57.504140 test_enrollment/test_agent_auth_enrollment.py::test_agent_auth_enrollment[agent_auth_enrollment-Invalid Agent address] description:. "Check that different configuration generates the adequate enrollment message or the corresponding. error log. Agent-auth will be executed using the different parameters and with different keys and password. files scenarios as described in the test cases." 1.02 linux, win32, agent 0
-----------------------------Captured stderr setup------------------------------
2023-03-17 15:02:45,562 - wazuh_testing - DEBUG - Initializing file to monitor to /var/ossec/logs/ossec.log
-------------------------------Captured log setup-------------------------------
DEBUG wazuh_testing:conftest.py:994 Initializing file to monitor to /var/ossec/logs/ossec.log
------------------------------Captured stderr call------------------------------
2023/03/17 15:02:45 agent-auth: INFO: Started (pid: 333355). 2023/03/17 15:02:45 agent-auth: INFO: Requesting a key from server: 127.0.0.1 2023/03/17 15:02:45 agent-auth: INFO: Using password specified on file: etc/authd.pass 2023/03/17 15:02:45 agent-auth: INFO: No authentication password provided 2023/03/17 15:02:45 agent-auth: INFO: Using agent name as: vagrant 2023/03/17 15:02:45 agent-auth: ERROR: Invalid IP address provided for sender IP. ---------------------------------------- Exception happened during processing of request from ('127.0.0.1', 46564) Traceback (most recent call last): File "/usr/lib/python3.8/socketserver.py", line 683, in process_request_thread self.finish_request(request, client_address) File "/usr/lib/python3.8/socketserver.py", line 360, in finish_request self.RequestHandlerClass(request, client_address, self) File "/usr/lib/python3.8/socketserver.py", line 747, in __init__ self.handle() File "/usr/local/lib/python3.8/dist-packages/wazuh_testing/tools/monitoring.py", line 708, in handle self.request.sendall(response) File "/usr/lib/python3.8/ssl.py", line 1204, in sendall v = self.send(byte_view[count:]) File "/usr/lib/python3.8/ssl.py", line 1173, in send return self._sslobj.write(data) BrokenPipeError: [Errno 32] Broken pipe ----------------------------------------
----------------------------Captured stderr teardown----------------------------
2023-03-17 15:02:46,589 - wazuh_testing - DEBUG - Trucanted /var/ossec/logs/ossec.log
-----------------------------Captured log teardown------------------------------
DEBUG wazuh_testing:conftest.py:1002 Trucanted /var/ossec/logs/ossec.log
Passed 2023-03-17 15:04:57.504426 test_enrollment/test_agent_auth_enrollment.py::test_agent_auth_enrollment[agent_auth_enrollment-Groups] description:. "Check that different configuration generates the adequate enrollment message or the corresponding. error log. Agent-auth will be executed using the different parameters and with different keys and password. files scenarios as described in the test cases." 0.73 linux, win32, agent 0
-----------------------------Captured stderr setup------------------------------
2023-03-17 15:02:47,300 - wazuh_testing - DEBUG - Initializing file to monitor to /var/ossec/logs/ossec.log
-------------------------------Captured log setup-------------------------------
DEBUG wazuh_testing:conftest.py:994 Initializing file to monitor to /var/ossec/logs/ossec.log
------------------------------Captured stderr call------------------------------
2023/03/17 15:02:47 agent-auth: INFO: Started (pid: 333375). 2023/03/17 15:02:47 agent-auth: INFO: Requesting a key from server: 127.0.0.1 2023/03/17 15:02:47 agent-auth: INFO: Using password specified on file: etc/authd.pass 2023/03/17 15:02:47 agent-auth: INFO: No authentication password provided 2023/03/17 15:02:47 agent-auth: INFO: Using agent name as: vagrant 2023/03/17 15:02:47 agent-auth: INFO: Waiting for server reply 2023/03/17 15:02:47 agent-auth: INFO: Valid key received
----------------------------Captured stderr teardown----------------------------
2023-03-17 15:02:48,036 - wazuh_testing - DEBUG - Trucanted /var/ossec/logs/ossec.log
-----------------------------Captured log teardown------------------------------
DEBUG wazuh_testing:conftest.py:1002 Trucanted /var/ossec/logs/ossec.log
Passed 2023-03-17 15:04:57.504515 test_enrollment/test_agent_auth_enrollment.py::test_agent_auth_enrollment[agent_auth_enrollment-Multi Groups] description:. "Check that different configuration generates the adequate enrollment message or the corresponding. error log. Agent-auth will be executed using the different parameters and with different keys and password. files scenarios as described in the test cases." 0.86 linux, win32, agent 0
-----------------------------Captured stderr setup------------------------------
2023-03-17 15:02:48,039 - wazuh_testing - DEBUG - Initializing file to monitor to /var/ossec/logs/ossec.log
-------------------------------Captured log setup-------------------------------
DEBUG wazuh_testing:conftest.py:994 Initializing file to monitor to /var/ossec/logs/ossec.log
------------------------------Captured stderr call------------------------------
2023/03/17 15:02:48 agent-auth: INFO: Started (pid: 333393). 2023/03/17 15:02:48 agent-auth: INFO: Requesting a key from server: 127.0.0.1 2023/03/17 15:02:48 agent-auth: INFO: Using password specified on file: etc/authd.pass 2023/03/17 15:02:48 agent-auth: INFO: No authentication password provided 2023/03/17 15:02:48 agent-auth: INFO: Using agent name as: vagrant 2023/03/17 15:02:48 agent-auth: INFO: Waiting for server reply 2023/03/17 15:02:48 agent-auth: INFO: Valid key received
----------------------------Captured stderr teardown----------------------------
2023-03-17 15:02:48,910 - wazuh_testing - DEBUG - Trucanted /var/ossec/logs/ossec.log
-----------------------------Captured log teardown------------------------------
DEBUG wazuh_testing:conftest.py:1002 Trucanted /var/ossec/logs/ossec.log
Passed 2023-03-17 15:04:57.504703 test_enrollment/test_agent_auth_enrollment.py::test_agent_auth_enrollment[agent_auth_enrollment-Valid agent name config] description:. "Check that different configuration generates the adequate enrollment message or the corresponding. error log. Agent-auth will be executed using the different parameters and with different keys and password. files scenarios as described in the test cases." 0.87 linux, win32, agent 0
-----------------------------Captured stderr setup------------------------------
2023-03-17 15:02:49,421 - wazuh_testing - DEBUG - Initializing file to monitor to /var/ossec/logs/ossec.log
-------------------------------Captured log setup-------------------------------
DEBUG wazuh_testing:conftest.py:994 Initializing file to monitor to /var/ossec/logs/ossec.log
------------------------------Captured stderr call------------------------------
2023/03/17 15:02:49 agent-auth: INFO: Started (pid: 333412). 2023/03/17 15:02:49 agent-auth: INFO: Requesting a key from server: 127.0.0.1 2023/03/17 15:02:49 agent-auth: INFO: Using password specified on file: etc/authd.pass 2023/03/17 15:02:49 agent-auth: INFO: No authentication password provided 2023/03/17 15:02:49 agent-auth: INFO: Using agent name as: test_agent 2023/03/17 15:02:49 agent-auth: INFO: Waiting for server reply 2023/03/17 15:02:49 agent-auth: INFO: Valid key received
----------------------------Captured stderr teardown----------------------------
2023-03-17 15:02:50,301 - wazuh_testing - DEBUG - Trucanted /var/ossec/logs/ossec.log
-----------------------------Captured log teardown------------------------------
DEBUG wazuh_testing:conftest.py:1002 Trucanted /var/ossec/logs/ossec.log
Passed 2023-03-17 15:04:57.504823 test_enrollment/test_agent_auth_enrollment.py::test_agent_auth_enrollment[agent_auth_enrollment-Valid agent name config max length] description:. "Check that different configuration generates the adequate enrollment message or the corresponding. error log. Agent-auth will be executed using the different parameters and with different keys and password. files scenarios as described in the test cases." 0.64 linux, win32, agent 0
-----------------------------Captured stderr setup------------------------------
2023-03-17 15:02:50,303 - wazuh_testing - DEBUG - Initializing file to monitor to /var/ossec/logs/ossec.log
-------------------------------Captured log setup-------------------------------
DEBUG wazuh_testing:conftest.py:994 Initializing file to monitor to /var/ossec/logs/ossec.log
------------------------------Captured stderr call------------------------------
2023/03/17 15:02:50 agent-auth: INFO: Started (pid: 333430). 2023/03/17 15:02:50 agent-auth: INFO: Requesting a key from server: 127.0.0.1 2023/03/17 15:02:50 agent-auth: INFO: Using password specified on file: etc/authd.pass 2023/03/17 15:02:50 agent-auth: INFO: No authentication password provided 2023/03/17 15:02:50 agent-auth: INFO: Using agent name as: nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn 2023/03/17 15:02:50 agent-auth: INFO: Waiting for server reply 2023/03/17 15:02:50 agent-auth: INFO: Valid key received
----------------------------Captured stderr teardown----------------------------
2023-03-17 15:02:50,949 - wazuh_testing - DEBUG - Trucanted /var/ossec/logs/ossec.log
-----------------------------Captured log teardown------------------------------
DEBUG wazuh_testing:conftest.py:1002 Trucanted /var/ossec/logs/ossec.log
Passed 2023-03-17 15:04:57.504903 test_enrollment/test_agent_auth_enrollment.py::test_agent_auth_enrollment[agent_auth_enrollment-Invalid agent name config] description:. "Check that different configuration generates the adequate enrollment message or the corresponding. error log. Agent-auth will be executed using the different parameters and with different keys and password. files scenarios as described in the test cases." 1.04 linux, win32, agent 0
-----------------------------Captured stderr setup------------------------------
2023-03-17 15:02:50,952 - wazuh_testing - DEBUG - Initializing file to monitor to /var/ossec/logs/ossec.log
-------------------------------Captured log setup-------------------------------
DEBUG wazuh_testing:conftest.py:994 Initializing file to monitor to /var/ossec/logs/ossec.log
------------------------------Captured stderr call------------------------------
2023/03/17 15:02:50 agent-auth: INFO: Started (pid: 333441). 2023/03/17 15:02:50 agent-auth: INFO: Requesting a key from server: 127.0.0.1 2023/03/17 15:02:50 agent-auth: INFO: Using password specified on file: etc/authd.pass 2023/03/17 15:02:50 agent-auth: INFO: No authentication password provided 2023/03/17 15:02:50 agent-auth: ERROR: Invalid agent name "test_agent/+bad". Please pick a valid name.
----------------------------Captured stderr teardown----------------------------
2023-03-17 15:02:51,999 - wazuh_testing - DEBUG - Trucanted /var/ossec/logs/ossec.log
-----------------------------Captured log teardown------------------------------
DEBUG wazuh_testing:conftest.py:1002 Trucanted /var/ossec/logs/ossec.log
Passed 2023-03-17 15:04:57.504987 test_enrollment/test_agent_auth_enrollment.py::test_agent_auth_enrollment[agent_auth_enrollment-Invalid agent name config - too short] description:. "Check that different configuration generates the adequate enrollment message or the corresponding. error log. Agent-auth will be executed using the different parameters and with different keys and password. files scenarios as described in the test cases." 2.69 linux, win32, agent 0
-----------------------------Captured stderr setup------------------------------
2023-03-17 15:02:52,002 - wazuh_testing - DEBUG - Initializing file to monitor to /var/ossec/logs/ossec.log
-------------------------------Captured log setup-------------------------------
DEBUG wazuh_testing:conftest.py:994 Initializing file to monitor to /var/ossec/logs/ossec.log
------------------------------Captured stderr call------------------------------
2023/03/17 15:02:52 agent-auth: INFO: Started (pid: 333446). 2023/03/17 15:02:52 agent-auth: INFO: Requesting a key from server: 127.0.0.1 2023/03/17 15:02:52 agent-auth: INFO: Using password specified on file: etc/authd.pass 2023/03/17 15:02:52 agent-auth: INFO: No authentication password provided 2023/03/17 15:02:52 agent-auth: ERROR: Invalid agent name "n". Please pick a valid name.
----------------------------Captured stderr teardown----------------------------
2023-03-17 15:02:54,702 - wazuh_testing - DEBUG - Trucanted /var/ossec/logs/ossec.log
-----------------------------Captured log teardown------------------------------
DEBUG wazuh_testing:conftest.py:1002 Trucanted /var/ossec/logs/ossec.log
Passed 2023-03-17 15:04:57.505093 test_enrollment/test_agent_auth_enrollment.py::test_agent_auth_enrollment[agent_auth_enrollment-Invalid agent name config - too long] description:. "Check that different configuration generates the adequate enrollment message or the corresponding. error log. Agent-auth will be executed using the different parameters and with different keys and password. files scenarios as described in the test cases." 1.04 linux, win32, agent 0
-----------------------------Captured stderr setup------------------------------
2023-03-17 15:02:54,705 - wazuh_testing - DEBUG - Initializing file to monitor to /var/ossec/logs/ossec.log
-------------------------------Captured log setup-------------------------------
DEBUG wazuh_testing:conftest.py:994 Initializing file to monitor to /var/ossec/logs/ossec.log
------------------------------Captured stderr call------------------------------
2023/03/17 15:02:54 agent-auth: INFO: Started (pid: 333451). 2023/03/17 15:02:54 agent-auth: INFO: Requesting a key from server: 127.0.0.1 2023/03/17 15:02:54 agent-auth: INFO: Using password specified on file: etc/authd.pass 2023/03/17 15:02:54 agent-auth: INFO: No authentication password provided 2023/03/17 15:02:54 agent-auth: ERROR: Invalid agent name "nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn". Please pick a valid name.
----------------------------Captured stderr teardown----------------------------
2023-03-17 15:02:55,755 - wazuh_testing - DEBUG - Trucanted /var/ossec/logs/ossec.log
-----------------------------Captured log teardown------------------------------
DEBUG wazuh_testing:conftest.py:1002 Trucanted /var/ossec/logs/ossec.log
Passed 2023-03-17 15:04:57.505181 test_enrollment/test_agent_auth_enrollment.py::test_agent_auth_enrollment[agent_auth_enrollment-Use source IP] description:. "Check that different configuration generates the adequate enrollment message or the corresponding. error log. Agent-auth will be executed using the different parameters and with different keys and password. files scenarios as described in the test cases." 0.53 linux, win32, agent 0
-----------------------------Captured stderr setup------------------------------
2023-03-17 15:02:55,758 - wazuh_testing - DEBUG - Initializing file to monitor to /var/ossec/logs/ossec.log
-------------------------------Captured log setup-------------------------------
DEBUG wazuh_testing:conftest.py:994 Initializing file to monitor to /var/ossec/logs/ossec.log
------------------------------Captured stderr call------------------------------
2023/03/17 15:02:55 agent-auth: INFO: Started (pid: 333463). 2023/03/17 15:02:55 agent-auth: INFO: Requesting a key from server: 127.0.0.1 2023/03/17 15:02:55 agent-auth: INFO: Using password specified on file: etc/authd.pass 2023/03/17 15:02:55 agent-auth: INFO: No authentication password provided 2023/03/17 15:02:55 agent-auth: INFO: Using agent name as: vagrant 2023/03/17 15:02:55 agent-auth: INFO: Waiting for server reply 2023/03/17 15:02:55 agent-auth: INFO: Valid key received
----------------------------Captured stderr teardown----------------------------
2023-03-17 15:02:56,294 - wazuh_testing - DEBUG - Trucanted /var/ossec/logs/ossec.log
-----------------------------Captured log teardown------------------------------
DEBUG wazuh_testing:conftest.py:1002 Trucanted /var/ossec/logs/ossec.log
Passed 2023-03-17 15:04:57.505261 test_enrollment/test_agent_auth_enrollment.py::test_agent_auth_enrollment[agent_auth_enrollment-Incompatible - Use source IP0] description:. "Check that different configuration generates the adequate enrollment message or the corresponding. error log. Agent-auth will be executed using the different parameters and with different keys and password. files scenarios as described in the test cases." 1.03 linux, win32, agent 0
-----------------------------Captured stderr setup------------------------------
2023-03-17 15:02:56,297 - wazuh_testing - DEBUG - Initializing file to monitor to /var/ossec/logs/ossec.log
-------------------------------Captured log setup-------------------------------
DEBUG wazuh_testing:conftest.py:994 Initializing file to monitor to /var/ossec/logs/ossec.log
------------------------------Captured stderr call------------------------------
2023/03/17 15:02:56 agent-auth: ERROR: Options '-I' and '-i' are uncompatible.
----------------------------Captured stderr teardown----------------------------
2023-03-17 15:02:57,334 - wazuh_testing - DEBUG - Trucanted /var/ossec/logs/ossec.log
-----------------------------Captured log teardown------------------------------
DEBUG wazuh_testing:conftest.py:1002 Trucanted /var/ossec/logs/ossec.log
Passed 2023-03-17 15:04:57.505434 test_enrollment/test_agent_auth_enrollment.py::test_agent_auth_enrollment[agent_auth_enrollment-Password from string - Agent-Auth] description:. "Check that different configuration generates the adequate enrollment message or the corresponding. error log. Agent-auth will be executed using the different parameters and with different keys and password. files scenarios as described in the test cases." 0.85 linux, win32, agent 0
-----------------------------Captured stderr setup------------------------------
2023-03-17 15:02:57,858 - wazuh_testing - DEBUG - Initializing file to monitor to /var/ossec/logs/ossec.log
-------------------------------Captured log setup-------------------------------
DEBUG wazuh_testing:conftest.py:994 Initializing file to monitor to /var/ossec/logs/ossec.log
------------------------------Captured stderr call------------------------------
2023/03/17 15:02:57 agent-auth: INFO: Started (pid: 333486). 2023/03/17 15:02:57 agent-auth: INFO: Requesting a key from server: 127.0.0.1 2023/03/17 15:02:57 agent-auth: INFO: Using agent name as: vagrant 2023/03/17 15:02:57 agent-auth: INFO: Waiting for server reply 2023/03/17 15:02:57 agent-auth: INFO: Valid key received
----------------------------Captured stderr teardown----------------------------
2023-03-17 15:02:58,713 - wazuh_testing - DEBUG - Trucanted /var/ossec/logs/ossec.log
-----------------------------Captured log teardown------------------------------
DEBUG wazuh_testing:conftest.py:1002 Trucanted /var/ossec/logs/ossec.log
Passed 2023-03-17 15:04:57.505512 test_enrollment/test_agent_auth_enrollment.py::test_agent_auth_enrollment[agent_auth_enrollment-Password from file - Agent-Auth] description:. "Check that different configuration generates the adequate enrollment message or the corresponding. error log. Agent-auth will be executed using the different parameters and with different keys and password. files scenarios as described in the test cases." 0.54 linux, win32, agent 0
-----------------------------Captured stderr setup------------------------------
2023-03-17 15:02:58,717 - wazuh_testing - DEBUG - Initializing file to monitor to /var/ossec/logs/ossec.log
-------------------------------Captured log setup-------------------------------
DEBUG wazuh_testing:conftest.py:994 Initializing file to monitor to /var/ossec/logs/ossec.log
------------------------------Captured stderr call------------------------------
2023/03/17 15:02:58 agent-auth: INFO: Started (pid: 333504). 2023/03/17 15:02:58 agent-auth: INFO: Requesting a key from server: 127.0.0.1 2023/03/17 15:02:58 agent-auth: INFO: Using password specified on file: etc/authd.pass 2023/03/17 15:02:58 agent-auth: INFO: Using agent name as: vagrant 2023/03/17 15:02:58 agent-auth: INFO: Waiting for server reply 2023/03/17 15:02:58 agent-auth: INFO: Valid key received
----------------------------Captured stderr teardown----------------------------
2023-03-17 15:02:59,261 - wazuh_testing - DEBUG - Trucanted /var/ossec/logs/ossec.log
-----------------------------Captured log teardown------------------------------
DEBUG wazuh_testing:conftest.py:1002 Trucanted /var/ossec/logs/ossec.log
Passed 2023-03-17 15:04:57.506079 test_enrollment/test_agent_auth_enrollment.py::test_agent_auth_enrollment[agent_auth_enrollment-Default Name with key hash] description:. "Check that different configuration generates the adequate enrollment message or the corresponding. error log. Agent-auth will be executed using the different parameters and with different keys and password. files scenarios as described in the test cases." 0.56 linux, win32, agent 0
-----------------------------Captured stderr setup------------------------------
2023-03-17 15:03:01,954 - wazuh_testing - DEBUG - Initializing file to monitor to /var/ossec/logs/ossec.log
-------------------------------Captured log setup-------------------------------
DEBUG wazuh_testing:conftest.py:994 Initializing file to monitor to /var/ossec/logs/ossec.log
------------------------------Captured stderr call------------------------------
2023/03/17 15:03:01 agent-auth: INFO: Started (pid: 333541). 2023/03/17 15:03:01 agent-auth: INFO: Requesting a key from server: 127.0.0.1 2023/03/17 15:03:02 agent-auth: INFO: Using password specified on file: etc/authd.pass 2023/03/17 15:03:02 agent-auth: INFO: No authentication password provided 2023/03/17 15:03:02 agent-auth: INFO: Using agent name as: vagrant 2023/03/17 15:03:02 agent-auth: INFO: Waiting for server reply 2023/03/17 15:03:02 agent-auth: INFO: Valid key received
----------------------------Captured stderr teardown----------------------------
2023-03-17 15:03:02,519 - wazuh_testing - DEBUG - Trucanted /var/ossec/logs/ossec.log
-----------------------------Captured log teardown------------------------------
DEBUG wazuh_testing:conftest.py:1002 Trucanted /var/ossec/logs/ossec.log
Passed 2023-03-17 15:04:57.506163 test_enrollment/test_agent_auth_enrollment.py::test_agent_auth_enrollment[agent_auth_enrollment-Valid agent address with key hash] description:. "Check that different configuration generates the adequate enrollment message or the corresponding. error log. Agent-auth will be executed using the different parameters and with different keys and password. files scenarios as described in the test cases." 0.57 linux, win32, agent 0
-----------------------------Captured stderr setup------------------------------
2023-03-17 15:03:02,522 - wazuh_testing - DEBUG - Initializing file to monitor to /var/ossec/logs/ossec.log
-------------------------------Captured log setup-------------------------------
DEBUG wazuh_testing:conftest.py:994 Initializing file to monitor to /var/ossec/logs/ossec.log
------------------------------Captured stderr call------------------------------
2023/03/17 15:03:02 agent-auth: INFO: Started (pid: 333559). 2023/03/17 15:03:02 agent-auth: INFO: Requesting a key from server: 127.0.0.1 2023/03/17 15:03:02 agent-auth: INFO: Using password specified on file: etc/authd.pass 2023/03/17 15:03:02 agent-auth: INFO: No authentication password provided 2023/03/17 15:03:02 agent-auth: INFO: Using agent name as: vagrant 2023/03/17 15:03:02 agent-auth: INFO: Waiting for server reply 2023/03/17 15:03:02 agent-auth: INFO: Valid key received
----------------------------Captured stderr teardown----------------------------
2023-03-17 15:03:03,098 - wazuh_testing - DEBUG - Trucanted /var/ossec/logs/ossec.log
-----------------------------Captured log teardown------------------------------
DEBUG wazuh_testing:conftest.py:1002 Trucanted /var/ossec/logs/ossec.log
Passed 2023-03-17 15:04:57.506269 test_enrollment/test_agent_auth_enrollment.py::test_agent_auth_enrollment[agent_auth_enrollment-Groups with key hash] description:. "Check that different configuration generates the adequate enrollment message or the corresponding. error log. Agent-auth will be executed using the different parameters and with different keys and password. files scenarios as described in the test cases." 0.73 linux, win32, agent 0
-----------------------------Captured stderr setup------------------------------
2023-03-17 15:03:03,102 - wazuh_testing - DEBUG - Initializing file to monitor to /var/ossec/logs/ossec.log
-------------------------------Captured log setup-------------------------------
DEBUG wazuh_testing:conftest.py:994 Initializing file to monitor to /var/ossec/logs/ossec.log
------------------------------Captured stderr call------------------------------
2023/03/17 15:03:03 agent-auth: INFO: Started (pid: 333577). 2023/03/17 15:03:03 agent-auth: INFO: Requesting a key from server: 127.0.0.1 2023/03/17 15:03:03 agent-auth: INFO: Using password specified on file: etc/authd.pass 2023/03/17 15:03:03 agent-auth: INFO: No authentication password provided 2023/03/17 15:03:03 agent-auth: INFO: Using agent name as: vagrant 2023/03/17 15:03:03 agent-auth: INFO: Waiting for server reply 2023/03/17 15:03:03 agent-auth: INFO: Valid key received
----------------------------Captured stderr teardown----------------------------
2023-03-17 15:03:03,836 - wazuh_testing - DEBUG - Trucanted /var/ossec/logs/ossec.log
-----------------------------Captured log teardown------------------------------
DEBUG wazuh_testing:conftest.py:1002 Trucanted /var/ossec/logs/ossec.log
Passed 2023-03-17 15:04:57.506352 test_enrollment/test_agent_auth_enrollment.py::test_agent_auth_enrollment[agent_auth_enrollment-Valid agent IPv6 address] description:. "Check that different configuration generates the adequate enrollment message or the corresponding. error log. Agent-auth will be executed using the different parameters and with different keys and password. files scenarios as described in the test cases." 0.58 linux, win32, agent 0
-----------------------------Captured stderr setup------------------------------
2023-03-17 15:03:03,839 - wazuh_testing - DEBUG - Initializing file to monitor to /var/ossec/logs/ossec.log
-------------------------------Captured log setup-------------------------------
DEBUG wazuh_testing:conftest.py:994 Initializing file to monitor to /var/ossec/logs/ossec.log
------------------------------Captured stderr call------------------------------
2023/03/17 15:03:03 agent-auth: INFO: Started (pid: 333595). 2023/03/17 15:03:03 agent-auth: INFO: Requesting a key from server: 127.0.0.1 2023/03/17 15:03:03 agent-auth: INFO: Using password specified on file: etc/authd.pass 2023/03/17 15:03:03 agent-auth: INFO: No authentication password provided 2023/03/17 15:03:03 agent-auth: INFO: Using agent name as: vagrant 2023/03/17 15:03:03 agent-auth: INFO: Waiting for server reply 2023/03/17 15:03:03 agent-auth: INFO: Valid key received
----------------------------Captured stderr teardown----------------------------
2023-03-17 15:03:04,430 - wazuh_testing - DEBUG - Trucanted /var/ossec/logs/ossec.log
-----------------------------Captured log teardown------------------------------
DEBUG wazuh_testing:conftest.py:1002 Trucanted /var/ossec/logs/ossec.log
Passed 2023-03-17 15:04:57.506432 test_enrollment/test_agent_auth_enrollment.py::test_agent_auth_enrollment[agent_auth_enrollment-Valid compressed agent IPv6 address] description:. "Check that different configuration generates the adequate enrollment message or the corresponding. error log. Agent-auth will be executed using the different parameters and with different keys and password. files scenarios as described in the test cases." 0.54 linux, win32, agent 0
-----------------------------Captured stderr setup------------------------------
2023-03-17 15:03:04,432 - wazuh_testing - DEBUG - Initializing file to monitor to /var/ossec/logs/ossec.log
-------------------------------Captured log setup-------------------------------
DEBUG wazuh_testing:conftest.py:994 Initializing file to monitor to /var/ossec/logs/ossec.log
------------------------------Captured stderr call------------------------------
2023/03/17 15:03:04 agent-auth: INFO: Started (pid: 333613). 2023/03/17 15:03:04 agent-auth: INFO: Requesting a key from server: 127.0.0.1 2023/03/17 15:03:04 agent-auth: INFO: Using password specified on file: etc/authd.pass 2023/03/17 15:03:04 agent-auth: INFO: No authentication password provided 2023/03/17 15:03:04 agent-auth: INFO: Using agent name as: vagrant 2023/03/17 15:03:04 agent-auth: INFO: Waiting for server reply 2023/03/17 15:03:04 agent-auth: INFO: Valid key received
----------------------------Captured stderr teardown----------------------------
2023-03-17 15:03:04,984 - wazuh_testing - DEBUG - Trucanted /var/ossec/logs/ossec.log
-----------------------------Captured log teardown------------------------------
DEBUG wazuh_testing:conftest.py:1002 Trucanted /var/ossec/logs/ossec.log
Passed 2023-03-17 15:04:57.506519 test_enrollment/test_agent_auth_enrollment.py::test_agent_auth_enrollment[agent_auth_enrollment-Invalid Agent IPv6 address double colon] description:. "Check that different configuration generates the adequate enrollment message or the corresponding. error log. Agent-auth will be executed using the different parameters and with different keys and password. files scenarios as described in the test cases." 1.02 linux, win32, agent 0
-----------------------------Captured stderr setup------------------------------
2023-03-17 15:03:04,986 - wazuh_testing - DEBUG - Initializing file to monitor to /var/ossec/logs/ossec.log
-------------------------------Captured log setup-------------------------------
DEBUG wazuh_testing:conftest.py:994 Initializing file to monitor to /var/ossec/logs/ossec.log
------------------------------Captured stderr call------------------------------
2023/03/17 15:03:04 agent-auth: INFO: Started (pid: 333624). 2023/03/17 15:03:04 agent-auth: INFO: Requesting a key from server: 127.0.0.1 2023/03/17 15:03:05 agent-auth: INFO: Using password specified on file: etc/authd.pass 2023/03/17 15:03:05 agent-auth: INFO: No authentication password provided 2023/03/17 15:03:05 agent-auth: INFO: Using agent name as: vagrant 2023/03/17 15:03:05 agent-auth: ERROR: Invalid IP address provided for sender IP. ---------------------------------------- Exception happened during processing of request from ('127.0.0.1', 46596) Traceback (most recent call last): File "/usr/lib/python3.8/socketserver.py", line 683, in process_request_thread self.finish_request(request, client_address) File "/usr/lib/python3.8/socketserver.py", line 360, in finish_request self.RequestHandlerClass(request, client_address, self) File "/usr/lib/python3.8/socketserver.py", line 747, in __init__ self.handle() File "/usr/local/lib/python3.8/dist-packages/wazuh_testing/tools/monitoring.py", line 708, in handle self.request.sendall(response) File "/usr/lib/python3.8/ssl.py", line 1204, in sendall v = self.send(byte_view[count:]) File "/usr/lib/python3.8/ssl.py", line 1173, in send return self._sslobj.write(data) BrokenPipeError: [Errno 32] Broken pipe ----------------------------------------
----------------------------Captured stderr teardown----------------------------
2023-03-17 15:03:06,017 - wazuh_testing - DEBUG - Trucanted /var/ossec/logs/ossec.log
-----------------------------Captured log teardown------------------------------
DEBUG wazuh_testing:conftest.py:1002 Trucanted /var/ossec/logs/ossec.log
Passed 2023-03-17 15:04:57.506647 test_enrollment/test_agent_auth_enrollment.py::test_agent_auth_enrollment[agent_auth_enrollment-Valid manager IPv6 address] description:. "Check that different configuration generates the adequate enrollment message or the corresponding. error log. Agent-auth will be executed using the different parameters and with different keys and password. files scenarios as described in the test cases." 0.81 linux, win32, agent 0
-----------------------------Captured stderr setup------------------------------
2023-03-17 15:03:06,022 - wazuh_testing - DEBUG - Initializing file to monitor to /var/ossec/logs/ossec.log
-------------------------------Captured log setup-------------------------------
DEBUG wazuh_testing:conftest.py:994 Initializing file to monitor to /var/ossec/logs/ossec.log
------------------------------Captured stderr call------------------------------
2023/03/17 15:03:06 agent-auth: INFO: Started (pid: 333637). 2023/03/17 15:03:06 agent-auth: INFO: Requesting a key from server: 0000:0000:0000:0000:0000:0000:0000:0001 2023/03/17 15:03:06 agent-auth: INFO: Using password specified on file: etc/authd.pass 2023/03/17 15:03:06 agent-auth: INFO: No authentication password provided 2023/03/17 15:03:06 agent-auth: INFO: Using agent name as: vagrant 2023/03/17 15:03:06 agent-auth: INFO: Waiting for server reply 2023/03/17 15:03:06 agent-auth: INFO: Valid key received
----------------------------Captured stderr teardown----------------------------
2023-03-17 15:03:06,839 - wazuh_testing - DEBUG - Trucanted /var/ossec/logs/ossec.log
-----------------------------Captured log teardown------------------------------
DEBUG wazuh_testing:conftest.py:1002 Trucanted /var/ossec/logs/ossec.log
Passed 2023-03-17 15:04:57.506736 test_enrollment/test_agent_auth_enrollment.py::test_agent_auth_enrollment[agent_auth_enrollment-Invalid long agent IPv6 address] description:. "Check that different configuration generates the adequate enrollment message or the corresponding. error log. Agent-auth will be executed using the different parameters and with different keys and password. files scenarios as described in the test cases." 1.05 linux, win32, agent 0
-----------------------------Captured stderr setup------------------------------
2023-03-17 15:03:06,842 - wazuh_testing - DEBUG - Initializing file to monitor to /var/ossec/logs/ossec.log
-------------------------------Captured log setup-------------------------------
DEBUG wazuh_testing:conftest.py:994 Initializing file to monitor to /var/ossec/logs/ossec.log
------------------------------Captured stderr call------------------------------
2023/03/17 15:03:06 agent-auth: INFO: Started (pid: 333648). 2023/03/17 15:03:06 agent-auth: INFO: Requesting a key from server: 127.0.0.1 2023/03/17 15:03:06 agent-auth: INFO: Using password specified on file: etc/authd.pass 2023/03/17 15:03:06 agent-auth: INFO: No authentication password provided 2023/03/17 15:03:06 agent-auth: INFO: Using agent name as: vagrant 2023/03/17 15:03:06 agent-auth: ERROR: Invalid IP address provided for sender IP. ---------------------------------------- Exception happened during processing of request from ('127.0.0.1', 46600) Traceback (most recent call last): File "/usr/lib/python3.8/socketserver.py", line 683, in process_request_thread self.finish_request(request, client_address) File "/usr/lib/python3.8/socketserver.py", line 360, in finish_request self.RequestHandlerClass(request, client_address, self) File "/usr/lib/python3.8/socketserver.py", line 747, in __init__ self.handle() File "/usr/local/lib/python3.8/dist-packages/wazuh_testing/tools/monitoring.py", line 708, in handle self.request.sendall(response) File "/usr/lib/python3.8/ssl.py", line 1204, in sendall v = self.send(byte_view[count:]) File "/usr/lib/python3.8/ssl.py", line 1173, in send return self._sslobj.write(data) BrokenPipeError: [Errno 32] Broken pipe ----------------------------------------
----------------------------Captured stderr teardown----------------------------
2023-03-17 15:03:07,899 - wazuh_testing - DEBUG - Trucanted /var/ossec/logs/ossec.log
-----------------------------Captured log teardown------------------------------
DEBUG wazuh_testing:conftest.py:1002 Trucanted /var/ossec/logs/ossec.log
Passed 2023-03-17 15:04:57.506851 test_enrollment/test_agent_auth_enrollment.py::test_agent_auth_enrollment[agent_auth_enrollment-Invalid Agent IPv6 address with words] description:. "Check that different configuration generates the adequate enrollment message or the corresponding. error log. Agent-auth will be executed using the different parameters and with different keys and password. files scenarios as described in the test cases." 1.68 linux, win32, agent 0
-----------------------------Captured stderr setup------------------------------
2023-03-17 15:03:07,902 - wazuh_testing - DEBUG - Initializing file to monitor to /var/ossec/logs/ossec.log
-------------------------------Captured log setup-------------------------------
DEBUG wazuh_testing:conftest.py:994 Initializing file to monitor to /var/ossec/logs/ossec.log
------------------------------Captured stderr call------------------------------
2023/03/17 15:03:07 agent-auth: INFO: Started (pid: 333653). 2023/03/17 15:03:07 agent-auth: INFO: Requesting a key from server: 127.0.0.1 2023/03/17 15:03:07 agent-auth: INFO: Using password specified on file: etc/authd.pass 2023/03/17 15:03:07 agent-auth: INFO: No authentication password provided 2023/03/17 15:03:07 agent-auth: INFO: Using agent name as: vagrant 2023/03/17 15:03:07 agent-auth: ERROR: Invalid IP address provided for sender IP. ---------------------------------------- Exception happened during processing of request from ('127.0.0.1', 46602) Traceback (most recent call last): File "/usr/lib/python3.8/socketserver.py", line 683, in process_request_thread self.finish_request(request, client_address) File "/usr/lib/python3.8/socketserver.py", line 360, in finish_request self.RequestHandlerClass(request, client_address, self) File "/usr/lib/python3.8/socketserver.py", line 747, in __init__ self.handle() File "/usr/local/lib/python3.8/dist-packages/wazuh_testing/tools/monitoring.py", line 708, in handle self.request.sendall(response) File "/usr/lib/python3.8/ssl.py", line 1204, in sendall v = self.send(byte_view[count:]) File "/usr/lib/python3.8/ssl.py", line 1173, in send return self._sslobj.write(data) BrokenPipeError: [Errno 32] Broken pipe ----------------------------------------
----------------------------Captured stdout teardown----------------------------
2023-03-17T15:03:08.1679065388
----------------------------Captured stderr teardown----------------------------
2023-03-17 15:03:08,963 - wazuh_testing - DEBUG - Trucanted /var/ossec/logs/ossec.log
-----------------------------Captured log teardown------------------------------
DEBUG wazuh_testing:conftest.py:1002 Trucanted /var/ossec/logs/ossec.log
Passed 2023-03-17 15:04:57.506935 test_enrollment/test_agentd_enrollment.py::test_agentd_enrollment[agentd_enrollment-Default Name] description:. "Check that different configuration generates the adequate enrollment message or the corresponding error. log. The configuration, keys, and password files will be written with the different scenarios described. in the test cases. After this, Agentd is started to wait for the expected result." 3.03 linux, win32, agent 0
-----------------------------Captured stderr setup------------------------------
2023-03-17 15:03:11,428 - wazuh_testing - DEBUG - Initializing file to monitor to /var/ossec/logs/ossec.log 2023/03/17 15:03:11 wazuh-agentd[333680] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/03/17 15:03:11 wazuh-agentd[333680] main.c:139 at main(): DEBUG: Wazuh home directory: /var/ossec 2023/03/17 15:03:11 wazuh-agentd[333680] main.c:141 at main(): DEBUG: Started (pid: 333680).
-------------------------------Captured log setup-------------------------------
DEBUG wazuh_testing:conftest.py:994 Initializing file to monitor to /var/ossec/logs/ossec.log
----------------------------Captured stderr teardown----------------------------
2023-03-17 15:03:12,546 - wazuh_testing - DEBUG - Trucanted /var/ossec/logs/ossec.log
-----------------------------Captured log teardown------------------------------
DEBUG wazuh_testing:conftest.py:1002 Trucanted /var/ossec/logs/ossec.log
Passed 2023-03-17 15:04:57.507018 test_enrollment/test_agentd_enrollment.py::test_agentd_enrollment[agentd_enrollment-Valid agent address] description:. "Check that different configuration generates the adequate enrollment message or the corresponding error. log. The configuration, keys, and password files will be written with the different scenarios described. in the test cases. After this, Agentd is started to wait for the expected result." 1.05 linux, win32, agent 0
-----------------------------Captured stderr setup------------------------------
2023-03-17 15:03:12,563 - wazuh_testing - DEBUG - Initializing file to monitor to /var/ossec/logs/ossec.log 2023/03/17 15:03:12 wazuh-agentd[333702] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/03/17 15:03:12 wazuh-agentd[333702] main.c:139 at main(): DEBUG: Wazuh home directory: /var/ossec 2023/03/17 15:03:12 wazuh-agentd[333702] main.c:141 at main(): DEBUG: Started (pid: 333702).
-------------------------------Captured log setup-------------------------------
DEBUG wazuh_testing:conftest.py:994 Initializing file to monitor to /var/ossec/logs/ossec.log
----------------------------Captured stderr teardown----------------------------
2023-03-17 15:03:13,608 - wazuh_testing - DEBUG - Trucanted /var/ossec/logs/ossec.log
-----------------------------Captured log teardown------------------------------
DEBUG wazuh_testing:conftest.py:1002 Trucanted /var/ossec/logs/ossec.log
Passed 2023-03-17 15:04:57.507092 test_enrollment/test_agentd_enrollment.py::test_agentd_enrollment[agentd_enrollment-Valid agent address CIDR] description:. "Check that different configuration generates the adequate enrollment message or the corresponding error. log. The configuration, keys, and password files will be written with the different scenarios described. in the test cases. After this, Agentd is started to wait for the expected result." 1.17 linux, win32, agent 0
-----------------------------Captured stderr setup------------------------------
2023-03-17 15:03:13,635 - wazuh_testing - DEBUG - Initializing file to monitor to /var/ossec/logs/ossec.log 2023/03/17 15:03:13 wazuh-agentd[333724] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/03/17 15:03:13 wazuh-agentd[333724] main.c:139 at main(): DEBUG: Wazuh home directory: /var/ossec 2023/03/17 15:03:13 wazuh-agentd[333724] main.c:141 at main(): DEBUG: Started (pid: 333724).
-------------------------------Captured log setup-------------------------------
DEBUG wazuh_testing:conftest.py:994 Initializing file to monitor to /var/ossec/logs/ossec.log
----------------------------Captured stderr teardown----------------------------
2023-03-17 15:03:14,786 - wazuh_testing - DEBUG - Trucanted /var/ossec/logs/ossec.log
-----------------------------Captured log teardown------------------------------
DEBUG wazuh_testing:conftest.py:1002 Trucanted /var/ossec/logs/ossec.log
Passed 2023-03-17 15:04:57.507195 test_enrollment/test_agentd_enrollment.py::test_agentd_enrollment[agentd_enrollment-Invalid Agent address CIDR0] description:. "Check that different configuration generates the adequate enrollment message or the corresponding error. log. The configuration, keys, and password files will be written with the different scenarios described. in the test cases. After this, Agentd is started to wait for the expected result." 1.02 linux, win32, agent 0
-----------------------------Captured stderr setup------------------------------
2023-03-17 15:03:14,807 - wazuh_testing - DEBUG - Initializing file to monitor to /var/ossec/logs/ossec.log 2023/03/17 15:03:14 wazuh-agentd[333739] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/03/17 15:03:14 wazuh-agentd[333739] main.c:139 at main(): DEBUG: Wazuh home directory: /var/ossec 2023/03/17 15:03:14 wazuh-agentd[333739] main.c:141 at main(): DEBUG: Started (pid: 333739). 2023/03/17 15:03:14 wazuh-agentd[333739] client-config.c:492 at Read_Client_Enrollment(): ERROR: (4104): Invalid hostname: '192.168.0.10/100'. 2023/03/17 15:03:14 wazuh-agentd[333739] config.c:332 at ReadConfig(): ERROR: (1202): Configuration error at 'etc/ossec.conf'. 2023/03/17 15:03:14 wazuh-agentd[333739] main.c:145 at main(): CRITICAL: (1215): No client configured. Exiting.
-------------------------------Captured log setup-------------------------------
DEBUG wazuh_testing:conftest.py:994 Initializing file to monitor to /var/ossec/logs/ossec.log
----------------------------Captured stderr teardown----------------------------
2023-03-17 15:03:15,812 - wazuh_testing - DEBUG - Trucanted /var/ossec/logs/ossec.log
-----------------------------Captured log teardown------------------------------
DEBUG wazuh_testing:conftest.py:1002 Trucanted /var/ossec/logs/ossec.log
Passed 2023-03-17 15:04:57.509250 test_enrollment/test_agentd_enrollment.py::test_agentd_enrollment[agentd_enrollment-Valid manager address] description:. "Check that different configuration generates the adequate enrollment message or the corresponding error. log. The configuration, keys, and password files will be written with the different scenarios described. in the test cases. After this, Agentd is started to wait for the expected result." 1.18 linux, win32, agent 0
-----------------------------Captured stderr setup------------------------------
2023-03-17 15:03:37,644 - wazuh_testing - DEBUG - Initializing file to monitor to /var/ossec/logs/ossec.log 2023/03/17 15:03:37 wazuh-agentd[333753] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/03/17 15:03:37 wazuh-agentd[333753] main.c:139 at main(): DEBUG: Wazuh home directory: /var/ossec 2023/03/17 15:03:37 wazuh-agentd[333753] main.c:141 at main(): DEBUG: Started (pid: 333753).
-------------------------------Captured log setup-------------------------------
DEBUG wazuh_testing:conftest.py:994 Initializing file to monitor to /var/ossec/logs/ossec.log
----------------------------Captured stderr teardown----------------------------
2023-03-17 15:03:38,818 - wazuh_testing - DEBUG - Trucanted /var/ossec/logs/ossec.log
-----------------------------Captured log teardown------------------------------
DEBUG wazuh_testing:conftest.py:1002 Trucanted /var/ossec/logs/ossec.log
Passed 2023-03-17 15:04:57.509338 test_enrollment/test_agentd_enrollment.py::test_agentd_enrollment[agentd_enrollment-Groups] description:. "Check that different configuration generates the adequate enrollment message or the corresponding error. log. The configuration, keys, and password files will be written with the different scenarios described. in the test cases. After this, Agentd is started to wait for the expected result." 1.13 linux, win32, agent 0
-----------------------------Captured stderr setup------------------------------
2023-03-17 15:03:38,843 - wazuh_testing - DEBUG - Initializing file to monitor to /var/ossec/logs/ossec.log 2023/03/17 15:03:38 wazuh-agentd[333775] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/03/17 15:03:38 wazuh-agentd[333775] main.c:139 at main(): DEBUG: Wazuh home directory: /var/ossec 2023/03/17 15:03:38 wazuh-agentd[333775] main.c:141 at main(): DEBUG: Started (pid: 333775).
-------------------------------Captured log setup-------------------------------
DEBUG wazuh_testing:conftest.py:994 Initializing file to monitor to /var/ossec/logs/ossec.log
----------------------------Captured stderr teardown----------------------------
2023-03-17 15:03:39,959 - wazuh_testing - DEBUG - Trucanted /var/ossec/logs/ossec.log
-----------------------------Captured log teardown------------------------------
DEBUG wazuh_testing:conftest.py:1002 Trucanted /var/ossec/logs/ossec.log
Passed 2023-03-17 15:04:57.666097 test_enrollment/test_agentd_enrollment.py::test_agentd_enrollment[agentd_enrollment-Multi Groups] description:. "Check that different configuration generates the adequate enrollment message or the corresponding error. log. The configuration, keys, and password files will be written with the different scenarios described. in the test cases. After this, Agentd is started to wait for the expected result." 1.12 linux, win32, agent 0
-----------------------------Captured stderr setup------------------------------
2023-03-17 15:03:39,982 - wazuh_testing - DEBUG - Initializing file to monitor to /var/ossec/logs/ossec.log 2023/03/17 15:03:39 wazuh-agentd[333816] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/03/17 15:03:39 wazuh-agentd[333816] main.c:139 at main(): DEBUG: Wazuh home directory: /var/ossec 2023/03/17 15:03:39 wazuh-agentd[333816] main.c:141 at main(): DEBUG: Started (pid: 333816).
-------------------------------Captured log setup-------------------------------
DEBUG wazuh_testing:conftest.py:994 Initializing file to monitor to /var/ossec/logs/ossec.log
----------------------------Captured stderr teardown----------------------------
2023-03-17 15:03:41,091 - wazuh_testing - DEBUG - Trucanted /var/ossec/logs/ossec.log
-----------------------------Captured log teardown------------------------------
DEBUG wazuh_testing:conftest.py:1002 Trucanted /var/ossec/logs/ossec.log
Passed 2023-03-17 15:04:57.666261 test_enrollment/test_agentd_enrollment.py::test_agentd_enrollment[agentd_enrollment-Invalid enabled] description:. "Check that different configuration generates the adequate enrollment message or the corresponding error. log. The configuration, keys, and password files will be written with the different scenarios described. in the test cases. After this, Agentd is started to wait for the expected result." 1.03 linux, win32, agent 0
-----------------------------Captured stderr setup------------------------------
2023-03-17 15:03:41,108 - wazuh_testing - DEBUG - Initializing file to monitor to /var/ossec/logs/ossec.log 2023/03/17 15:03:41 wazuh-agentd[333831] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/03/17 15:03:41 wazuh-agentd[333831] main.c:139 at main(): DEBUG: Wazuh home directory: /var/ossec 2023/03/17 15:03:41 wazuh-agentd[333831] main.c:141 at main(): DEBUG: Started (pid: 333831). 2023/03/17 15:03:41 wazuh-agentd[333831] client-config.c:424 at Read_Client_Enrollment(): ERROR: Invalid content for tag 'enabled'. 2023/03/17 15:03:41 wazuh-agentd[333831] config.c:332 at ReadConfig(): ERROR: (1202): Configuration error at 'etc/ossec.conf'. 2023/03/17 15:03:41 wazuh-agentd[333831] main.c:145 at main(): CRITICAL: (1215): No client configured. Exiting.
-------------------------------Captured log setup-------------------------------
DEBUG wazuh_testing:conftest.py:994 Initializing file to monitor to /var/ossec/logs/ossec.log
----------------------------Captured stderr teardown----------------------------
2023-03-17 15:03:42,125 - wazuh_testing - DEBUG - Trucanted /var/ossec/logs/ossec.log
-----------------------------Captured log teardown------------------------------
DEBUG wazuh_testing:conftest.py:1002 Trucanted /var/ossec/logs/ossec.log
Passed 2023-03-17 15:04:57.666450 test_enrollment/test_agentd_enrollment.py::test_agentd_enrollment[agentd_enrollment-Valid agent name config] description:. "Check that different configuration generates the adequate enrollment message or the corresponding error. log. The configuration, keys, and password files will be written with the different scenarios described. in the test cases. After this, Agentd is started to wait for the expected result." 1.17 linux, win32, agent 0
-----------------------------Captured stderr setup------------------------------
2023-03-17 15:03:42,155 - wazuh_testing - DEBUG - Initializing file to monitor to /var/ossec/logs/ossec.log 2023/03/17 15:03:42 wazuh-agentd[333841] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/03/17 15:03:42 wazuh-agentd[333841] main.c:139 at main(): DEBUG: Wazuh home directory: /var/ossec 2023/03/17 15:03:42 wazuh-agentd[333841] main.c:141 at main(): DEBUG: Started (pid: 333841).
-------------------------------Captured log setup-------------------------------
DEBUG wazuh_testing:conftest.py:994 Initializing file to monitor to /var/ossec/logs/ossec.log
----------------------------Captured stderr teardown----------------------------
2023-03-17 15:03:43,309 - wazuh_testing - DEBUG - Trucanted /var/ossec/logs/ossec.log
-----------------------------Captured log teardown------------------------------
DEBUG wazuh_testing:conftest.py:1002 Trucanted /var/ossec/logs/ossec.log
Passed 2023-03-17 15:04:57.666524 test_enrollment/test_agentd_enrollment.py::test_agentd_enrollment[agentd_enrollment-Valid agent name config max length] description:. "Check that different configuration generates the adequate enrollment message or the corresponding error. log. The configuration, keys, and password files will be written with the different scenarios described. in the test cases. After this, Agentd is started to wait for the expected result." 1.29 linux, win32, agent 0
-----------------------------Captured stderr setup------------------------------
2023-03-17 15:03:43,333 - wazuh_testing - DEBUG - Initializing file to monitor to /var/ossec/logs/ossec.log 2023/03/17 15:03:43 wazuh-agentd[333863] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/03/17 15:03:43 wazuh-agentd[333863] main.c:139 at main(): DEBUG: Wazuh home directory: /var/ossec 2023/03/17 15:03:43 wazuh-agentd[333863] main.c:141 at main(): DEBUG: Started (pid: 333863).
-------------------------------Captured log setup-------------------------------
DEBUG wazuh_testing:conftest.py:994 Initializing file to monitor to /var/ossec/logs/ossec.log
----------------------------Captured stderr teardown----------------------------
2023-03-17 15:03:44,610 - wazuh_testing - DEBUG - Trucanted /var/ossec/logs/ossec.log
-----------------------------Captured log teardown------------------------------
DEBUG wazuh_testing:conftest.py:1002 Trucanted /var/ossec/logs/ossec.log
Passed 2023-03-17 15:04:57.666593 test_enrollment/test_agentd_enrollment.py::test_agentd_enrollment[agentd_enrollment-Invalid agent name config] description:. "Check that different configuration generates the adequate enrollment message or the corresponding error. log. The configuration, keys, and password files will be written with the different scenarios described. in the test cases. After this, Agentd is started to wait for the expected result." 1.73 linux, win32, agent 0
-----------------------------Captured stderr setup------------------------------
2023-03-17 15:03:44,636 - wazuh_testing - DEBUG - Initializing file to monitor to /var/ossec/logs/ossec.log 2023/03/17 15:03:44 wazuh-agentd[333878] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/03/17 15:03:44 wazuh-agentd[333878] main.c:139 at main(): DEBUG: Wazuh home directory: /var/ossec 2023/03/17 15:03:44 wazuh-agentd[333878] main.c:141 at main(): DEBUG: Started (pid: 333878).
-------------------------------Captured log setup-------------------------------
DEBUG wazuh_testing:conftest.py:994 Initializing file to monitor to /var/ossec/logs/ossec.log
----------------------------Captured stderr teardown----------------------------
2023-03-17 15:03:46,344 - wazuh_testing - DEBUG - Trucanted /var/ossec/logs/ossec.log
-----------------------------Captured log teardown------------------------------
DEBUG wazuh_testing:conftest.py:1002 Trucanted /var/ossec/logs/ossec.log
Passed 2023-03-17 15:04:57.666663 test_enrollment/test_agentd_enrollment.py::test_agentd_enrollment[agentd_enrollment-Invalid agent name config - too short] description:. "Check that different configuration generates the adequate enrollment message or the corresponding error. log. The configuration, keys, and password files will be written with the different scenarios described. in the test cases. After this, Agentd is started to wait for the expected result." 1.55 linux, win32, agent 0
-----------------------------Captured stderr setup------------------------------
2023-03-17 15:03:46,368 - wazuh_testing - DEBUG - Initializing file to monitor to /var/ossec/logs/ossec.log 2023/03/17 15:03:46 wazuh-agentd[333887] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/03/17 15:03:46 wazuh-agentd[333887] main.c:139 at main(): DEBUG: Wazuh home directory: /var/ossec 2023/03/17 15:03:46 wazuh-agentd[333887] main.c:141 at main(): DEBUG: Started (pid: 333887).
-------------------------------Captured log setup-------------------------------
DEBUG wazuh_testing:conftest.py:994 Initializing file to monitor to /var/ossec/logs/ossec.log
----------------------------Captured stderr teardown----------------------------
2023-03-17 15:03:47,902 - wazuh_testing - DEBUG - Trucanted /var/ossec/logs/ossec.log
-----------------------------Captured log teardown------------------------------
DEBUG wazuh_testing:conftest.py:1002 Trucanted /var/ossec/logs/ossec.log
Passed 2023-03-17 15:04:57.666730 test_enrollment/test_agentd_enrollment.py::test_agentd_enrollment[agentd_enrollment-Invalid agent name config - too long] description:. "Check that different configuration generates the adequate enrollment message or the corresponding error. log. The configuration, keys, and password files will be written with the different scenarios described. in the test cases. After this, Agentd is started to wait for the expected result." 1.86 linux, win32, agent 0
-----------------------------Captured stderr setup------------------------------
2023-03-17 15:03:47,914 - wazuh_testing - DEBUG - Initializing file to monitor to /var/ossec/logs/ossec.log 2023/03/17 15:03:47 wazuh-agentd[333896] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/03/17 15:03:47 wazuh-agentd[333896] main.c:139 at main(): DEBUG: Wazuh home directory: /var/ossec 2023/03/17 15:03:47 wazuh-agentd[333896] main.c:141 at main(): DEBUG: Started (pid: 333896).
-------------------------------Captured log setup-------------------------------
DEBUG wazuh_testing:conftest.py:994 Initializing file to monitor to /var/ossec/logs/ossec.log
----------------------------Captured stderr teardown----------------------------
2023-03-17 15:03:49,773 - wazuh_testing - DEBUG - Trucanted /var/ossec/logs/ossec.log
-----------------------------Captured log teardown------------------------------
DEBUG wazuh_testing:conftest.py:1002 Trucanted /var/ossec/logs/ossec.log
Passed 2023-03-17 15:04:57.666831 test_enrollment/test_agentd_enrollment.py::test_agentd_enrollment[agentd_enrollment-Use source IP] description:. "Check that different configuration generates the adequate enrollment message or the corresponding error. log. The configuration, keys, and password files will be written with the different scenarios described. in the test cases. After this, Agentd is started to wait for the expected result." 1.04 linux, win32, agent 0
-----------------------------Captured stderr setup------------------------------
2023-03-17 15:03:49,783 - wazuh_testing - DEBUG - Initializing file to monitor to /var/ossec/logs/ossec.log 2023/03/17 15:03:49 wazuh-agentd[333912] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/03/17 15:03:49 wazuh-agentd[333912] main.c:139 at main(): DEBUG: Wazuh home directory: /var/ossec 2023/03/17 15:03:49 wazuh-agentd[333912] main.c:141 at main(): DEBUG: Started (pid: 333912).
-------------------------------Captured log setup-------------------------------
DEBUG wazuh_testing:conftest.py:994 Initializing file to monitor to /var/ossec/logs/ossec.log
----------------------------Captured stderr teardown----------------------------
2023-03-17 15:03:50,826 - wazuh_testing - DEBUG - Trucanted /var/ossec/logs/ossec.log
-----------------------------Captured log teardown------------------------------
DEBUG wazuh_testing:conftest.py:1002 Trucanted /var/ossec/logs/ossec.log
Passed 2023-03-17 15:04:57.666990 test_enrollment/test_agentd_enrollment.py::test_agentd_enrollment[agentd_enrollment-Incompatible - Use source IP1] description:. "Check that different configuration generates the adequate enrollment message or the corresponding error. log. The configuration, keys, and password files will be written with the different scenarios described. in the test cases. After this, Agentd is started to wait for the expected result." 1.55 linux, win32, agent 0
-----------------------------Captured stderr setup------------------------------
2023-03-17 15:03:51,367 - wazuh_testing - DEBUG - Initializing file to monitor to /var/ossec/logs/ossec.log 2023/03/17 15:03:51 wazuh-agentd[333928] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/03/17 15:03:51 wazuh-agentd[333928] main.c:139 at main(): DEBUG: Wazuh home directory: /var/ossec 2023/03/17 15:03:51 wazuh-agentd[333928] main.c:141 at main(): DEBUG: Started (pid: 333928).
-------------------------------Captured log setup-------------------------------
DEBUG wazuh_testing:conftest.py:994 Initializing file to monitor to /var/ossec/logs/ossec.log
----------------------------Captured stderr teardown----------------------------
2023-03-17 15:03:52,914 - wazuh_testing - DEBUG - Trucanted /var/ossec/logs/ossec.log
-----------------------------Captured log teardown------------------------------
DEBUG wazuh_testing:conftest.py:1002 Trucanted /var/ossec/logs/ossec.log
Passed 2023-03-17 15:04:57.667223 test_enrollment/test_agentd_enrollment.py::test_agentd_enrollment[agentd_enrollment-Password from file - Agentd] description:. "Check that different configuration generates the adequate enrollment message or the corresponding error. log. The configuration, keys, and password files will be written with the different scenarios described. in the test cases. After this, Agentd is started to wait for the expected result." 1.28 linux, win32, agent 0
-----------------------------Captured stderr setup------------------------------
2023-03-17 15:03:54,085 - wazuh_testing - DEBUG - Initializing file to monitor to /var/ossec/logs/ossec.log 2023/03/17 15:03:54 wazuh-agentd[333960] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/03/17 15:03:54 wazuh-agentd[333960] main.c:139 at main(): DEBUG: Wazuh home directory: /var/ossec 2023/03/17 15:03:54 wazuh-agentd[333960] main.c:141 at main(): DEBUG: Started (pid: 333960).
-------------------------------Captured log setup-------------------------------
DEBUG wazuh_testing:conftest.py:994 Initializing file to monitor to /var/ossec/logs/ossec.log
----------------------------Captured stderr teardown----------------------------
2023-03-17 15:03:55,352 - wazuh_testing - DEBUG - Trucanted /var/ossec/logs/ossec.log
-----------------------------Captured log teardown------------------------------
DEBUG wazuh_testing:conftest.py:1002 Trucanted /var/ossec/logs/ossec.log
Passed 2023-03-17 15:04:57.667290 test_enrollment/test_agentd_enrollment.py::test_agentd_enrollment[agentd_enrollment-Valid port] description:. "Check that different configuration generates the adequate enrollment message or the corresponding error. log. The configuration, keys, and password files will be written with the different scenarios described. in the test cases. After this, Agentd is started to wait for the expected result." 1.13 linux, win32, agent 0
-----------------------------Captured stderr setup------------------------------
2023-03-17 15:03:55,369 - wazuh_testing - DEBUG - Initializing file to monitor to /var/ossec/logs/ossec.log 2023/03/17 15:03:55 wazuh-agentd[333982] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/03/17 15:03:55 wazuh-agentd[333982] main.c:139 at main(): DEBUG: Wazuh home directory: /var/ossec 2023/03/17 15:03:55 wazuh-agentd[333982] main.c:141 at main(): DEBUG: Started (pid: 333982).
-------------------------------Captured log setup-------------------------------
DEBUG wazuh_testing:conftest.py:994 Initializing file to monitor to /var/ossec/logs/ossec.log
----------------------------Captured stderr teardown----------------------------
2023-03-17 15:03:56,494 - wazuh_testing - DEBUG - Trucanted /var/ossec/logs/ossec.log
-----------------------------Captured log teardown------------------------------
DEBUG wazuh_testing:conftest.py:1002 Trucanted /var/ossec/logs/ossec.log
Passed 2023-03-17 15:04:57.667379 test_enrollment/test_agentd_enrollment.py::test_agentd_enrollment[agentd_enrollment-Invalid port 65536] description:. "Check that different configuration generates the adequate enrollment message or the corresponding error. log. The configuration, keys, and password files will be written with the different scenarios described. in the test cases. After this, Agentd is started to wait for the expected result." 1.04 linux, win32, agent 0
-----------------------------Captured stderr setup------------------------------
2023-03-17 15:03:56,512 - wazuh_testing - DEBUG - Initializing file to monitor to /var/ossec/logs/ossec.log 2023/03/17 15:03:56 wazuh-agentd[333997] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/03/17 15:03:56 wazuh-agentd[333997] main.c:139 at main(): DEBUG: Wazuh home directory: /var/ossec 2023/03/17 15:03:56 wazuh-agentd[333997] main.c:141 at main(): DEBUG: Started (pid: 333997). 2023/03/17 15:03:56 wazuh-agentd[333997] client-config.c:456 at Read_Client_Enrollment(): ERROR: (1205): Invalid port number: '65536'. 2023/03/17 15:03:56 wazuh-agentd[333997] config.c:332 at ReadConfig(): ERROR: (1202): Configuration error at 'etc/ossec.conf'. 2023/03/17 15:03:56 wazuh-agentd[333997] main.c:145 at main(): CRITICAL: (1215): No client configured. Exiting.
-------------------------------Captured log setup-------------------------------
DEBUG wazuh_testing:conftest.py:994 Initializing file to monitor to /var/ossec/logs/ossec.log
----------------------------Captured stderr teardown----------------------------
2023-03-17 15:03:57,539 - wazuh_testing - DEBUG - Trucanted /var/ossec/logs/ossec.log
-----------------------------Captured log teardown------------------------------
DEBUG wazuh_testing:conftest.py:1002 Trucanted /var/ossec/logs/ossec.log
Passed 2023-03-17 15:04:57.667445 test_enrollment/test_agentd_enrollment.py::test_agentd_enrollment[agentd_enrollment-Invalid port 0] description:. "Check that different configuration generates the adequate enrollment message or the corresponding error. log. The configuration, keys, and password files will be written with the different scenarios described. in the test cases. After this, Agentd is started to wait for the expected result." 0.52 linux, win32, agent 0
-----------------------------Captured stderr setup------------------------------
2023-03-17 15:03:57,564 - wazuh_testing - DEBUG - Initializing file to monitor to /var/ossec/logs/ossec.log 2023/03/17 15:03:57 wazuh-agentd[334000] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/03/17 15:03:57 wazuh-agentd[334000] main.c:139 at main(): DEBUG: Wazuh home directory: /var/ossec 2023/03/17 15:03:57 wazuh-agentd[334000] main.c:141 at main(): DEBUG: Started (pid: 334000). 2023/03/17 15:03:57 wazuh-agentd[334000] client-config.c:456 at Read_Client_Enrollment(): ERROR: (1205): Invalid port number: '0'. 2023/03/17 15:03:57 wazuh-agentd[334000] config.c:332 at ReadConfig(): ERROR: (1202): Configuration error at 'etc/ossec.conf'. 2023/03/17 15:03:57 wazuh-agentd[334000] main.c:145 at main(): CRITICAL: (1215): No client configured. Exiting.
-------------------------------Captured log setup-------------------------------
DEBUG wazuh_testing:conftest.py:994 Initializing file to monitor to /var/ossec/logs/ossec.log
----------------------------Captured stderr teardown----------------------------
2023-03-17 15:03:58,069 - wazuh_testing - DEBUG - Trucanted /var/ossec/logs/ossec.log
-----------------------------Captured log teardown------------------------------
DEBUG wazuh_testing:conftest.py:1002 Trucanted /var/ossec/logs/ossec.log
Passed 2023-03-17 15:04:57.667510 test_enrollment/test_agentd_enrollment.py::test_agentd_enrollment[agentd_enrollment-Invalid port -1515] description:. "Check that different configuration generates the adequate enrollment message or the corresponding error. log. The configuration, keys, and password files will be written with the different scenarios described. in the test cases. After this, Agentd is started to wait for the expected result." 1.21 linux, win32, agent 0
-----------------------------Captured stderr setup------------------------------
2023-03-17 15:03:58,086 - wazuh_testing - DEBUG - Initializing file to monitor to /var/ossec/logs/ossec.log 2023/03/17 15:03:58 wazuh-agentd[334003] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/03/17 15:03:58 wazuh-agentd[334003] main.c:139 at main(): DEBUG: Wazuh home directory: /var/ossec 2023/03/17 15:03:58 wazuh-agentd[334003] main.c:141 at main(): DEBUG: Started (pid: 334003). 2023/03/17 15:03:58 wazuh-agentd[334003] client-config.c:450 at Read_Client_Enrollment(): ERROR: (1235): Invalid value for element 'port': -1515. 2023/03/17 15:03:58 wazuh-agentd[334003] config.c:332 at ReadConfig(): ERROR: (1202): Configuration error at 'etc/ossec.conf'. 2023/03/17 15:03:58 wazuh-agentd[334003] main.c:145 at main(): CRITICAL: (1215): No client configured. Exiting.
-------------------------------Captured log setup-------------------------------
DEBUG wazuh_testing:conftest.py:994 Initializing file to monitor to /var/ossec/logs/ossec.log
----------------------------Captured stderr teardown----------------------------
2023-03-17 15:03:59,294 - wazuh_testing - DEBUG - Trucanted /var/ossec/logs/ossec.log
-----------------------------Captured log teardown------------------------------
DEBUG wazuh_testing:conftest.py:1002 Trucanted /var/ossec/logs/ossec.log
Passed 2023-03-17 15:04:57.667576 test_enrollment/test_agentd_enrollment.py::test_agentd_enrollment[agentd_enrollment-Default Name with key hash] description:. "Check that different configuration generates the adequate enrollment message or the corresponding error. log. The configuration, keys, and password files will be written with the different scenarios described. in the test cases. After this, Agentd is started to wait for the expected result." 1.11 linux, win32, agent 0
-----------------------------Captured stderr setup------------------------------
2023-03-17 15:03:59,322 - wazuh_testing - DEBUG - Initializing file to monitor to /var/ossec/logs/ossec.log 2023/03/17 15:03:59 wazuh-agentd[334013] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/03/17 15:03:59 wazuh-agentd[334013] main.c:139 at main(): DEBUG: Wazuh home directory: /var/ossec 2023/03/17 15:03:59 wazuh-agentd[334013] main.c:141 at main(): DEBUG: Started (pid: 334013).
-------------------------------Captured log setup-------------------------------
DEBUG wazuh_testing:conftest.py:994 Initializing file to monitor to /var/ossec/logs/ossec.log
----------------------------Captured stderr teardown----------------------------
2023-03-17 15:04:00,413 - wazuh_testing - DEBUG - Trucanted /var/ossec/logs/ossec.log
-----------------------------Captured log teardown------------------------------
DEBUG wazuh_testing:conftest.py:1002 Trucanted /var/ossec/logs/ossec.log
Passed 2023-03-17 15:04:57.667641 test_enrollment/test_agentd_enrollment.py::test_agentd_enrollment[agentd_enrollment-Valid agent address with key hash] description:. "Check that different configuration generates the adequate enrollment message or the corresponding error. log. The configuration, keys, and password files will be written with the different scenarios described. in the test cases. After this, Agentd is started to wait for the expected result." 1.11 linux, win32, agent 0
-----------------------------Captured stderr setup------------------------------
2023-03-17 15:04:00,430 - wazuh_testing - DEBUG - Initializing file to monitor to /var/ossec/logs/ossec.log 2023/03/17 15:04:00 wazuh-agentd[334035] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/03/17 15:04:00 wazuh-agentd[334035] main.c:139 at main(): DEBUG: Wazuh home directory: /var/ossec 2023/03/17 15:04:00 wazuh-agentd[334035] main.c:141 at main(): DEBUG: Started (pid: 334035).
-------------------------------Captured log setup-------------------------------
DEBUG wazuh_testing:conftest.py:994 Initializing file to monitor to /var/ossec/logs/ossec.log
----------------------------Captured stderr teardown----------------------------
2023-03-17 15:04:01,531 - wazuh_testing - DEBUG - Trucanted /var/ossec/logs/ossec.log
-----------------------------Captured log teardown------------------------------
DEBUG wazuh_testing:conftest.py:1002 Trucanted /var/ossec/logs/ossec.log
Passed 2023-03-17 15:04:57.667712 test_enrollment/test_agentd_enrollment.py::test_agentd_enrollment[agentd_enrollment-Groups with key hash] description:. "Check that different configuration generates the adequate enrollment message or the corresponding error. log. The configuration, keys, and password files will be written with the different scenarios described. in the test cases. After this, Agentd is started to wait for the expected result." 1.92 linux, win32, agent 0
-----------------------------Captured stderr setup------------------------------
2023-03-17 15:04:01,548 - wazuh_testing - DEBUG - Initializing file to monitor to /var/ossec/logs/ossec.log 2023/03/17 15:04:01 wazuh-agentd[334057] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/03/17 15:04:01 wazuh-agentd[334057] main.c:139 at main(): DEBUG: Wazuh home directory: /var/ossec 2023/03/17 15:04:01 wazuh-agentd[334057] main.c:141 at main(): DEBUG: Started (pid: 334057).
-------------------------------Captured log setup-------------------------------
DEBUG wazuh_testing:conftest.py:994 Initializing file to monitor to /var/ossec/logs/ossec.log
----------------------------Captured stderr teardown----------------------------
2023-03-17 15:04:03,457 - wazuh_testing - DEBUG - Trucanted /var/ossec/logs/ossec.log
-----------------------------Captured log teardown------------------------------
DEBUG wazuh_testing:conftest.py:1002 Trucanted /var/ossec/logs/ossec.log
Passed 2023-03-17 15:04:57.667777 test_enrollment/test_agentd_enrollment.py::test_agentd_enrollment[agentd_enrollment-Valid agent IPv6 address] description:. "Check that different configuration generates the adequate enrollment message or the corresponding error. log. The configuration, keys, and password files will be written with the different scenarios described. in the test cases. After this, Agentd is started to wait for the expected result." 1.08 linux, win32, agent 0
-----------------------------Captured stderr setup------------------------------
2023-03-17 15:04:03,486 - wazuh_testing - DEBUG - Initializing file to monitor to /var/ossec/logs/ossec.log 2023/03/17 15:04:03 wazuh-agentd[334079] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/03/17 15:04:03 wazuh-agentd[334079] main.c:139 at main(): DEBUG: Wazuh home directory: /var/ossec 2023/03/17 15:04:03 wazuh-agentd[334079] main.c:141 at main(): DEBUG: Started (pid: 334079).
-------------------------------Captured log setup-------------------------------
DEBUG wazuh_testing:conftest.py:994 Initializing file to monitor to /var/ossec/logs/ossec.log
----------------------------Captured stderr teardown----------------------------
2023-03-17 15:04:04,549 - wazuh_testing - DEBUG - Trucanted /var/ossec/logs/ossec.log
-----------------------------Captured log teardown------------------------------
DEBUG wazuh_testing:conftest.py:1002 Trucanted /var/ossec/logs/ossec.log
Passed 2023-03-17 15:04:57.667868 test_enrollment/test_agentd_enrollment.py::test_agentd_enrollment[agentd_enrollment-Valid compressed agent IPv6 address] description:. "Check that different configuration generates the adequate enrollment message or the corresponding error. log. The configuration, keys, and password files will be written with the different scenarios described. in the test cases. After this, Agentd is started to wait for the expected result." 1.13 linux, win32, agent 0
-----------------------------Captured stderr setup------------------------------
2023-03-17 15:04:04,562 - wazuh_testing - DEBUG - Initializing file to monitor to /var/ossec/logs/ossec.log 2023/03/17 15:04:04 wazuh-agentd[334101] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/03/17 15:04:04 wazuh-agentd[334101] main.c:139 at main(): DEBUG: Wazuh home directory: /var/ossec 2023/03/17 15:04:04 wazuh-agentd[334101] main.c:141 at main(): DEBUG: Started (pid: 334101).
-------------------------------Captured log setup-------------------------------
DEBUG wazuh_testing:conftest.py:994 Initializing file to monitor to /var/ossec/logs/ossec.log
----------------------------Captured stderr teardown----------------------------
2023-03-17 15:04:05,687 - wazuh_testing - DEBUG - Trucanted /var/ossec/logs/ossec.log
-----------------------------Captured log teardown------------------------------
DEBUG wazuh_testing:conftest.py:1002 Trucanted /var/ossec/logs/ossec.log
Passed 2023-03-17 15:04:57.667937 test_enrollment/test_agentd_enrollment.py::test_agentd_enrollment[agentd_enrollment-Invalid Agent IPv6 address double colon] description:. "Check that different configuration generates the adequate enrollment message or the corresponding error. log. The configuration, keys, and password files will be written with the different scenarios described. in the test cases. After this, Agentd is started to wait for the expected result." 1.05 linux, win32, agent 0
-----------------------------Captured stderr setup------------------------------
2023-03-17 15:04:05,713 - wazuh_testing - DEBUG - Initializing file to monitor to /var/ossec/logs/ossec.log 2023/03/17 15:04:05 wazuh-agentd[334116] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/03/17 15:04:05 wazuh-agentd[334116] main.c:139 at main(): DEBUG: Wazuh home directory: /var/ossec 2023/03/17 15:04:05 wazuh-agentd[334116] main.c:141 at main(): DEBUG: Started (pid: 334116). 2023/03/17 15:04:05 wazuh-agentd[334116] client-config.c:492 at Read_Client_Enrollment(): ERROR: (4104): Invalid hostname: '56FE::2159:5BBC::6594'. 2023/03/17 15:04:05 wazuh-agentd[334116] config.c:332 at ReadConfig(): ERROR: (1202): Configuration error at 'etc/ossec.conf'. 2023/03/17 15:04:05 wazuh-agentd[334116] main.c:145 at main(): CRITICAL: (1215): No client configured. Exiting.
-------------------------------Captured log setup-------------------------------
DEBUG wazuh_testing:conftest.py:994 Initializing file to monitor to /var/ossec/logs/ossec.log
----------------------------Captured stderr teardown----------------------------
2023-03-17 15:04:06,748 - wazuh_testing - DEBUG - Trucanted /var/ossec/logs/ossec.log
-----------------------------Captured log teardown------------------------------
DEBUG wazuh_testing:conftest.py:1002 Trucanted /var/ossec/logs/ossec.log
Passed 2023-03-17 15:04:57.668004 test_enrollment/test_agentd_enrollment.py::test_agentd_enrollment[agentd_enrollment-Valid manager IPv6 address] description:. "Check that different configuration generates the adequate enrollment message or the corresponding error. log. The configuration, keys, and password files will be written with the different scenarios described. in the test cases. After this, Agentd is started to wait for the expected result." 1.50 linux, win32, agent 0
-----------------------------Captured stderr setup------------------------------
2023-03-17 15:04:06,775 - wazuh_testing - DEBUG - Initializing file to monitor to /var/ossec/logs/ossec.log 2023/03/17 15:04:06 wazuh-agentd[334126] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/03/17 15:04:06 wazuh-agentd[334126] main.c:139 at main(): DEBUG: Wazuh home directory: /var/ossec 2023/03/17 15:04:06 wazuh-agentd[334126] main.c:141 at main(): DEBUG: Started (pid: 334126).
-------------------------------Captured log setup-------------------------------
DEBUG wazuh_testing:conftest.py:994 Initializing file to monitor to /var/ossec/logs/ossec.log
----------------------------Captured stderr teardown----------------------------
2023-03-17 15:04:08,256 - wazuh_testing - DEBUG - Trucanted /var/ossec/logs/ossec.log
-----------------------------Captured log teardown------------------------------
DEBUG wazuh_testing:conftest.py:1002 Trucanted /var/ossec/logs/ossec.log
Passed 2023-03-17 15:04:57.668072 test_enrollment/test_agentd_enrollment.py::test_agentd_enrollment[agentd_enrollment-Invalid long agent IPv6 address] description:. "Check that different configuration generates the adequate enrollment message or the corresponding error. log. The configuration, keys, and password files will be written with the different scenarios described. in the test cases. After this, Agentd is started to wait for the expected result." 1.03 linux, win32, agent 0
-----------------------------Captured stderr setup------------------------------
2023-03-17 15:04:08,267 - wazuh_testing - DEBUG - Initializing file to monitor to /var/ossec/logs/ossec.log 2023/03/17 15:04:08 wazuh-agentd[334141] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/03/17 15:04:08 wazuh-agentd[334141] main.c:139 at main(): DEBUG: Wazuh home directory: /var/ossec 2023/03/17 15:04:08 wazuh-agentd[334141] main.c:141 at main(): DEBUG: Started (pid: 334141). 2023/03/17 15:04:08 wazuh-agentd[334141] client-config.c:492 at Read_Client_Enrollment(): ERROR: (4104): Invalid hostname: '11AA:11AA:11AA:11AA:11AA:11AA:11AA:11AA:11AA'. 2023/03/17 15:04:08 wazuh-agentd[334141] config.c:332 at ReadConfig(): ERROR: (1202): Configuration error at 'etc/ossec.conf'. 2023/03/17 15:04:08 wazuh-agentd[334141] main.c:145 at main(): CRITICAL: (1215): No client configured. Exiting.
-------------------------------Captured log setup-------------------------------
DEBUG wazuh_testing:conftest.py:994 Initializing file to monitor to /var/ossec/logs/ossec.log
----------------------------Captured stderr teardown----------------------------
2023-03-17 15:04:09,293 - wazuh_testing - DEBUG - Trucanted /var/ossec/logs/ossec.log
-----------------------------Captured log teardown------------------------------
DEBUG wazuh_testing:conftest.py:1002 Trucanted /var/ossec/logs/ossec.log
Passed 2023-03-17 15:04:57.668150 test_enrollment/test_agentd_enrollment.py::test_agentd_enrollment[agentd_enrollment-Invalid Agent IPv6 address with words] description:. "Check that different configuration generates the adequate enrollment message or the corresponding error. log. The configuration, keys, and password files will be written with the different scenarios described. in the test cases. After this, Agentd is started to wait for the expected result." 1.31 linux, win32, agent 0
-----------------------------Captured stderr setup------------------------------
2023-03-17 15:04:09,312 - wazuh_testing - DEBUG - Initializing file to monitor to /var/ossec/logs/ossec.log 2023/03/17 15:04:09 wazuh-agentd[334144] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/03/17 15:04:09 wazuh-agentd[334144] main.c:139 at main(): DEBUG: Wazuh home directory: /var/ossec 2023/03/17 15:04:09 wazuh-agentd[334144] main.c:141 at main(): DEBUG: Started (pid: 334144). 2023/03/17 15:04:09 wazuh-agentd[334144] client-config.c:492 at Read_Client_Enrollment(): ERROR: (4104): Invalid hostname: '02db:4660:46af:invalid:d05e:a62e:4ca7:8e58'. 2023/03/17 15:04:09 wazuh-agentd[334144] config.c:332 at ReadConfig(): ERROR: (1202): Configuration error at 'etc/ossec.conf'. 2023/03/17 15:04:09 wazuh-agentd[334144] main.c:145 at main(): CRITICAL: (1215): No client configured. Exiting.
-------------------------------Captured log setup-------------------------------
DEBUG wazuh_testing:conftest.py:994 Initializing file to monitor to /var/ossec/logs/ossec.log
----------------------------Captured stdout teardown----------------------------
2023-03-17T15:04:10.1679065450
----------------------------Captured stderr teardown----------------------------
2023-03-17 15:04:10,320 - wazuh_testing - DEBUG - Trucanted /var/ossec/logs/ossec.log
-----------------------------Captured log teardown------------------------------
DEBUG wazuh_testing:conftest.py:1002 Trucanted /var/ossec/logs/ossec.log
Passed 2023-03-17 15:04:57.668242 test_enrollment/test_agentd_server_address_configuration.py::test_agentd_server_address_configuration[MANAGER_IP] description: Check the messages produced by the agent when introducing. a valid and invalid server address, with IPv4 and IPv6 7.00 linux, win32, agent 0
-----------------------------Captured stderr setup------------------------------
2023-03-17 15:04:10,504 - wazuh_testing - DEBUG - Set local_internal_option to {'agent.debug': '2'} 2023-03-17 15:04:16,469 - wazuh_testing - DEBUG - Ignore error set to True 2023-03-17 15:04:16,470 - wazuh_testing - DEBUG - Restarting wazuh-agentd 2023/03/17 15:04:16 wazuh-agentd[334328] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/03/17 15:04:16 wazuh-agentd[334328] main.c:139 at main(): DEBUG: Wazuh home directory: /var/ossec 2023/03/17 15:04:16 wazuh-agentd[334328] main.c:141 at main(): DEBUG: Started (pid: 334328). 2023/03/17 15:04:16 wazuh-agentd[334328] main.c:154 at main(): ERROR: (4112): Invalid server address found: 'MANAGER_IP' 2023/03/17 15:04:16 wazuh-agentd[334328] main.c:155 at main(): CRITICAL: (1215): No client configured. Exiting. 2023-03-17 15:04:16,494 - wazuh_testing - ERROR - Command '['/var/ossec/bin/wazuh-agentd']' returned non-zero exit status 1. 2023-03-17 15:04:16,495 - wazuh_testing - DEBUG - Initializing file to monitor to /var/ossec/logs/ossec.log
-------------------------------Captured log setup-------------------------------
DEBUG wazuh_testing:conftest.py:599 Set local_internal_option to {'agent.debug': '2'} DEBUG wazuh_testing:conftest.py:942 Ignore error set to True DEBUG wazuh_testing:conftest.py:956 Restarting wazuh-agentd ERROR wazuh_testing:conftest.py:965 Command '['/var/ossec/bin/wazuh-agentd']' returned non-zero exit status 1. DEBUG wazuh_testing:conftest.py:994 Initializing file to monitor to /var/ossec/logs/ossec.log
----------------------------Captured stderr teardown----------------------------
2023-03-17 15:04:17,010 - wazuh_testing - DEBUG - Trucanted /var/ossec/logs/ossec.log
-----------------------------Captured log teardown------------------------------
DEBUG wazuh_testing:conftest.py:1002 Trucanted /var/ossec/logs/ossec.log
Passed 2023-03-17 15:04:57.668314 test_enrollment/test_agentd_server_address_configuration.py::test_agentd_server_address_configuration[127.0.0.1] description: Check the messages produced by the agent when introducing. a valid and invalid server address, with IPv4 and IPv6 2.08 linux, win32, agent 0
-----------------------------Captured stdout setup------------------------------
2023-03-17T15:04:17.1679065457
-----------------------------Captured stderr setup------------------------------
2023-03-17 15:04:17,509 - wazuh_testing - DEBUG - Stopping wazuh-agentd 2023-03-17 15:04:18,504 - wazuh_testing - DEBUG - Ignore error set to True 2023-03-17 15:04:18,504 - wazuh_testing - DEBUG - Restarting wazuh-agentd 2023/03/17 15:04:18 wazuh-agentd[334334] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/03/17 15:04:18 wazuh-agentd[334334] main.c:139 at main(): DEBUG: Wazuh home directory: /var/ossec 2023/03/17 15:04:18 wazuh-agentd[334334] main.c:141 at main(): DEBUG: Started (pid: 334334). 2023-03-17 15:04:18,538 - wazuh_testing - DEBUG - Initializing file to monitor to /var/ossec/logs/ossec.log
-------------------------------Captured log setup-------------------------------
DEBUG wazuh_testing:conftest.py:976 Stopping wazuh-agentd DEBUG wazuh_testing:conftest.py:942 Ignore error set to True DEBUG wazuh_testing:conftest.py:956 Restarting wazuh-agentd DEBUG wazuh_testing:conftest.py:994 Initializing file to monitor to /var/ossec/logs/ossec.log
----------------------------Captured stderr teardown----------------------------
2023-03-17 15:04:19,548 - wazuh_testing - DEBUG - Trucanted /var/ossec/logs/ossec.log
-----------------------------Captured log teardown------------------------------
DEBUG wazuh_testing:conftest.py:1002 Trucanted /var/ossec/logs/ossec.log
Passed 2023-03-17 15:04:57.668403 test_enrollment/test_agentd_server_address_configuration.py::test_agentd_server_address_configuration[::1] description: Check the messages produced by the agent when introducing. a valid and invalid server address, with IPv4 and IPv6 1.53 linux, win32, agent 0
-----------------------------Captured stdout setup------------------------------
2023-03-17T15:04:19.1679065459
-----------------------------Captured stderr setup------------------------------
2023-03-17 15:04:19,557 - wazuh_testing - DEBUG - Stopping wazuh-agentd 2023-03-17 15:04:20,505 - wazuh_testing - DEBUG - Ignore error set to True 2023-03-17 15:04:20,505 - wazuh_testing - DEBUG - Restarting wazuh-agentd 2023/03/17 15:04:20 wazuh-agentd[334346] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/03/17 15:04:20 wazuh-agentd[334346] main.c:139 at main(): DEBUG: Wazuh home directory: /var/ossec 2023/03/17 15:04:20 wazuh-agentd[334346] main.c:141 at main(): DEBUG: Started (pid: 334346). 2023-03-17 15:04:20,541 - wazuh_testing - DEBUG - Initializing file to monitor to /var/ossec/logs/ossec.log
-------------------------------Captured log setup-------------------------------
DEBUG wazuh_testing:conftest.py:976 Stopping wazuh-agentd DEBUG wazuh_testing:conftest.py:942 Ignore error set to True DEBUG wazuh_testing:conftest.py:956 Restarting wazuh-agentd DEBUG wazuh_testing:conftest.py:994 Initializing file to monitor to /var/ossec/logs/ossec.log
----------------------------Captured stderr teardown----------------------------
2023-03-17 15:04:21,051 - wazuh_testing - DEBUG - Trucanted /var/ossec/logs/ossec.log
-----------------------------Captured log teardown------------------------------
DEBUG wazuh_testing:conftest.py:1002 Trucanted /var/ossec/logs/ossec.log
Passed 2023-03-17 15:04:57.668474 test_enrollment/test_agentd_server_address_configuration.py::test_agentd_server_address_configuration[172.28.128.hello] description: Check the messages produced by the agent when introducing. a valid and invalid server address, with IPv4 and IPv6 10.17 linux, win32, agent 0
-----------------------------Captured stdout setup------------------------------
2023-03-17T15:04:21.1679065461
-----------------------------Captured stderr setup------------------------------
2023-03-17 15:04:21,065 - wazuh_testing - DEBUG - Stopping wazuh-agentd 2023-03-17 15:04:21,504 - wazuh_testing - DEBUG - Ignore error set to True 2023-03-17 15:04:21,504 - wazuh_testing - DEBUG - Restarting wazuh-agentd 2023/03/17 15:04:21 wazuh-agentd[334358] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/03/17 15:04:21 wazuh-agentd[334358] main.c:139 at main(): DEBUG: Wazuh home directory: /var/ossec 2023/03/17 15:04:21 wazuh-agentd[334358] main.c:141 at main(): DEBUG: Started (pid: 334358). 2023/03/17 15:04:25 wazuh-agentd[334358] client-config.c:633 at Validate_IPv6_Link_Local_Interface(): DEBUG: Could not resolve hostname '172.28.128.hello' 2023-03-17 15:04:25,990 - wazuh_testing - DEBUG - Initializing file to monitor to /var/ossec/logs/ossec.log
-------------------------------Captured log setup-------------------------------
DEBUG wazuh_testing:conftest.py:976 Stopping wazuh-agentd DEBUG wazuh_testing:conftest.py:942 Ignore error set to True DEBUG wazuh_testing:conftest.py:956 Restarting wazuh-agentd DEBUG wazuh_testing:conftest.py:994 Initializing file to monitor to /var/ossec/logs/ossec.log
----------------------------Captured stderr teardown----------------------------
2023-03-17 15:04:31,094 - wazuh_testing - DEBUG - Trucanted /var/ossec/logs/ossec.log
-----------------------------Captured log teardown------------------------------
DEBUG wazuh_testing:conftest.py:1002 Trucanted /var/ossec/logs/ossec.log
Passed 2023-03-17 15:04:57.668546 test_enrollment/test_agentd_server_address_configuration.py::test_agentd_server_address_configuration[::ffff:ac1c::::::::800c] description: Check the messages produced by the agent when introducing. a valid and invalid server address, with IPv4 and IPv6 9.95 linux, win32, agent 0
-----------------------------Captured stdout setup------------------------------
2023-03-17T15:04:31.1679065471
-----------------------------Captured stderr setup------------------------------
2023-03-17 15:04:31,210 - wazuh_testing - DEBUG - Stopping wazuh-agentd 2023-03-17 15:04:31,502 - wazuh_testing - DEBUG - Ignore error set to True 2023-03-17 15:04:31,502 - wazuh_testing - DEBUG - Restarting wazuh-agentd 2023/03/17 15:04:31 wazuh-agentd[334369] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/03/17 15:04:31 wazuh-agentd[334369] main.c:139 at main(): DEBUG: Wazuh home directory: /var/ossec 2023/03/17 15:04:31 wazuh-agentd[334369] main.c:141 at main(): DEBUG: Started (pid: 334369). 2023/03/17 15:04:35 wazuh-agentd[334369] client-config.c:633 at Validate_IPv6_Link_Local_Interface(): DEBUG: Could not resolve hostname '::ffff:ac1c::::::::800c' 2023-03-17 15:04:35,532 - wazuh_testing - DEBUG - Initializing file to monitor to /var/ossec/logs/ossec.log
-------------------------------Captured log setup-------------------------------
DEBUG wazuh_testing:conftest.py:976 Stopping wazuh-agentd DEBUG wazuh_testing:conftest.py:942 Ignore error set to True DEBUG wazuh_testing:conftest.py:956 Restarting wazuh-agentd DEBUG wazuh_testing:conftest.py:994 Initializing file to monitor to /var/ossec/logs/ossec.log
----------------------------Captured stderr teardown----------------------------
2023-03-17 15:04:40,611 - wazuh_testing - DEBUG - Trucanted /var/ossec/logs/ossec.log
-----------------------------Captured log teardown------------------------------
DEBUG wazuh_testing:conftest.py:1002 Trucanted /var/ossec/logs/ossec.log
Passed 2023-03-17 15:04:57.668624 test_enrollment/test_agentd_server_address_configuration.py::test_agentd_server_address_configuration[wazuh-manager-ipv4] description: Check the messages produced by the agent when introducing. a valid and invalid server address, with IPv4 and IPv6 0.92 linux, win32, agent 0
-----------------------------Captured stdout setup------------------------------
2023-03-17T15:04:41.1679065481
-----------------------------Captured stderr setup------------------------------
2023-03-17 15:04:41,146 - wazuh_testing - DEBUG - Stopping wazuh-agentd 2023-03-17 15:04:41,502 - wazuh_testing - DEBUG - Ignore error set to True 2023-03-17 15:04:41,502 - wazuh_testing - DEBUG - Restarting wazuh-agentd 2023/03/17 15:04:41 wazuh-agentd[334380] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/03/17 15:04:41 wazuh-agentd[334380] main.c:139 at main(): DEBUG: Wazuh home directory: /var/ossec 2023/03/17 15:04:41 wazuh-agentd[334380] main.c:141 at main(): DEBUG: Started (pid: 334380). 2023-03-17 15:04:41,522 - wazuh_testing - DEBUG - Initializing file to monitor to /var/ossec/logs/ossec.log
-------------------------------Captured log setup-------------------------------
DEBUG wazuh_testing:conftest.py:976 Stopping wazuh-agentd DEBUG wazuh_testing:conftest.py:942 Ignore error set to True DEBUG wazuh_testing:conftest.py:956 Restarting wazuh-agentd DEBUG wazuh_testing:conftest.py:994 Initializing file to monitor to /var/ossec/logs/ossec.log
----------------------------Captured stderr teardown----------------------------
2023-03-17 15:04:42,027 - wazuh_testing - DEBUG - Trucanted /var/ossec/logs/ossec.log
-----------------------------Captured log teardown------------------------------
DEBUG wazuh_testing:conftest.py:1002 Trucanted /var/ossec/logs/ossec.log
Passed 2023-03-17 15:04:57.668701 test_enrollment/test_agentd_server_address_configuration.py::test_agentd_server_address_configuration[wazuh-manager-ipv6] description: Check the messages produced by the agent when introducing. a valid and invalid server address, with IPv4 and IPv6 15.50 linux, win32, agent 0
-----------------------------Captured stdout setup------------------------------
2023-03-17T15:04:42.1679065482
-----------------------------Captured stderr setup------------------------------
2023-03-17 15:04:42,052 - wazuh_testing - DEBUG - Stopping wazuh-agentd 2023-03-17 15:04:42,504 - wazuh_testing - DEBUG - Ignore error set to True 2023-03-17 15:04:42,504 - wazuh_testing - DEBUG - Restarting wazuh-agentd 2023/03/17 15:04:42 wazuh-agentd[334392] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/03/17 15:04:42 wazuh-agentd[334392] main.c:139 at main(): DEBUG: Wazuh home directory: /var/ossec 2023/03/17 15:04:42 wazuh-agentd[334392] main.c:141 at main(): DEBUG: Started (pid: 334392). 2023-03-17 15:04:42,534 - wazuh_testing - DEBUG - Initializing file to monitor to /var/ossec/logs/ossec.log
-------------------------------Captured log setup-------------------------------
DEBUG wazuh_testing:conftest.py:976 Stopping wazuh-agentd DEBUG wazuh_testing:conftest.py:942 Ignore error set to True DEBUG wazuh_testing:conftest.py:956 Restarting wazuh-agentd DEBUG wazuh_testing:conftest.py:994 Initializing file to monitor to /var/ossec/logs/ossec.log
----------------------------Captured stdout teardown----------------------------
2023-03-17T15:04:57.1679065497
----------------------------Captured stderr teardown----------------------------
2023-03-17 15:04:43,551 - wazuh_testing - DEBUG - Trucanted /var/ossec/logs/ossec.log 2023-03-17 15:04:44,058 - wazuh_testing - DEBUG - Stopping wazuh-agentd 2023-03-17 15:04:57,501 - wazuh_testing - DEBUG - Restore local_internal_option to {'agent.debug': '2\n', 'agent.recv_timeout': '5\n'}
-----------------------------Captured log teardown------------------------------
DEBUG wazuh_testing:conftest.py:1002 Trucanted /var/ossec/logs/ossec.log DEBUG wazuh_testing:conftest.py:976 Stopping wazuh-agentd DEBUG wazuh_testing:conftest.py:604 Restore local_internal_option to {'agent.debug': '2\n', 'agent.recv_timeout': '5\n'}