results.html

Report generated on 17-Mar-2023 at 15:07:35 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 136.91 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:07:35.677583 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." 20.69 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 0x7f45cf75ff40>
timeout = 20
callback = <function make_callback.<locals>.<lambda> at 0x7f45cbdbf5e0>
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 0x7f45cbd4d790>
timeout = 20
callback = <function make_callback.<locals>.<lambda> at 0x7f45cbdbf5e0>
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:05:49,906 - wazuh_testing - DEBUG - Initializing file to monitor to /var/ossec/logs/ossec.log 2023/03/17 15:05:49 wazuh-agentd[335939] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/03/17 15:05:49 wazuh-agentd[335939] main.c:139 at main(): DEBUG: Wazuh home directory: /var/ossec 2023/03/17 15:05:49 wazuh-agentd[335939] main.c:141 at main(): DEBUG: Started (pid: 335939). 2023/03/17 15:05:49 wazuh-agentd[335939] client-config.c:492 at Read_Client_Enrollment(): ERROR: (4104): Invalid hostname: '192.168.0.1000'. 2023/03/17 15:05:49 wazuh-agentd[335939] config.c:332 at ReadConfig(): ERROR: (1202): Configuration error at 'etc/ossec.conf'. 2023/03/17 15:05:49 wazuh-agentd[335939] 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:06:10,129 - wazuh_testing - ERROR - Expected error log does not occured. 2023-03-17 15:06:10,130 - wazuh_testing - ERROR - Results accumulated: 0 2023-03-17 15:06:10,130 - 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:06:10,741 - 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:07:35.504750 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.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:05:21,271 - 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:05:21,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:07:35.505259 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.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:05:23,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 teardown----------------------------
2023-03-17 15:05:23,953 - 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:07:35.505522 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:05:25,045 - 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:05:25,553 - 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:07:35.506263 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.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:05:32,553 - 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:05:33,057 - 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:07:35.506548 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:05:34,424 - 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:05:34,937 - 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:07:35.506643 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.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:05:34,940 - 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:05:35,450 - 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:07:35.506738 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.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:05:35,455 - 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:05:35,961 - 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:07:35.506836 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.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:05:35,965 - 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:05:36,485 - 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:07:35.506927 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:05:36,489 - 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:05:36,993 - 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:07:35.676262 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.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:05:49,374 - 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:05:49,879 - 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:07:35.678525 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.53 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:06:24,738 - 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:06:25,248 - 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:07:35.678683 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.53 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:06:26,967 - 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:06:27,485 - 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:07:35.678765 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.53 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:06:27,511 - 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:06:28,028 - 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:07:35.504268 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." 0.96 linux, win32, agent 0
-----------------------------Captured stderr setup------------------------------
2023-03-17 15:05:19,428 - 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:05:19 agent-auth: INFO: Started (pid: 335485). 2023/03/17 15:05:19 agent-auth: INFO: Requesting a key from server: 127.0.0.1 2023/03/17 15:05:19 agent-auth: INFO: Using password specified on file: etc/authd.pass 2023/03/17 15:05:19 agent-auth: INFO: No authentication password provided 2023/03/17 15:05:19 agent-auth: INFO: Using agent name as: vagrant 2023/03/17 15:05:19 agent-auth: INFO: Waiting for server reply 2023/03/17 15:05:19 agent-auth: INFO: Valid key received
----------------------------Captured stderr teardown----------------------------
2023-03-17 15:05:20,198 - 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:07:35.504532 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:05:20,202 - 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:05:20 agent-auth: INFO: Started (pid: 335503). 2023/03/17 15:05:20 agent-auth: INFO: Requesting a key from server: 127.0.0.1 2023/03/17 15:05:20 agent-auth: INFO: Using password specified on file: etc/authd.pass 2023/03/17 15:05:20 agent-auth: INFO: No authentication password provided 2023/03/17 15:05:20 agent-auth: INFO: Using agent name as: vagrant 2023/03/17 15:05:20 agent-auth: INFO: Waiting for server reply 2023/03/17 15:05:20 agent-auth: INFO: Valid key received
----------------------------Captured stderr teardown----------------------------
2023-03-17 15:05:20,742 - 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:07:35.504631 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.52 linux, win32, agent 0
-----------------------------Captured stderr setup------------------------------
2023-03-17 15:05:20,744 - 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:05:20 agent-auth: INFO: Started (pid: 335521). 2023/03/17 15:05:20 agent-auth: INFO: Requesting a key from server: 127.0.0.1 2023/03/17 15:05:20 agent-auth: INFO: Using password specified on file: etc/authd.pass 2023/03/17 15:05:20 agent-auth: INFO: No authentication password provided 2023/03/17 15:05:20 agent-auth: INFO: Using agent name as: vagrant 2023/03/17 15:05:20 agent-auth: INFO: Waiting for server reply 2023/03/17 15:05:20 agent-auth: INFO: Valid key received
----------------------------Captured stderr teardown----------------------------
2023-03-17 15:05:21,269 - 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:07:35.504840 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.03 linux, win32, agent 0
-----------------------------Captured stderr setup------------------------------
2023-03-17 15:05:21,779 - 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:05:21 agent-auth: INFO: Started (pid: 335533). 2023/03/17 15:05:21 agent-auth: INFO: Requesting a key from server: 127.0.0.1 2023/03/17 15:05:21 agent-auth: INFO: Using password specified on file: etc/authd.pass 2023/03/17 15:05:21 agent-auth: INFO: No authentication password provided 2023/03/17 15:05:21 agent-auth: INFO: Using agent name as: vagrant 2023/03/17 15:05:21 agent-auth: ERROR: Invalid IP address provided for sender IP. ---------------------------------------- Exception happened during processing of request from ('127.0.0.1', 46666) 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:05:22,814 - 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:07:35.505152 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." 0.60 linux, win32, agent 0
-----------------------------Captured stderr setup------------------------------
2023-03-17 15:05:22,818 - 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:05:22 agent-auth: INFO: Started (pid: 335538). 2023/03/17 15:05:22 agent-auth: INFO: Requesting a key from server: 127.0.0.1 2023/03/17 15:05:22 agent-auth: INFO: Using password specified on file: etc/authd.pass 2023/03/17 15:05:22 agent-auth: INFO: No authentication password provided 2023/03/17 15:05:22 agent-auth: INFO: Using agent name as: vagrant 2023/03/17 15:05:22 agent-auth: ERROR: Invalid IP address provided for sender IP. ---------------------------------------- Exception happened during processing of request from ('127.0.0.1', 46668) 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:05:23,428 - 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:07:35.505342 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.55 linux, win32, agent 0
-----------------------------Captured stderr setup------------------------------
2023-03-17 15:05:23,958 - 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:05:23 agent-auth: INFO: Started (pid: 335558). 2023/03/17 15:05:23 agent-auth: INFO: Requesting a key from server: 127.0.0.1 2023/03/17 15:05:24 agent-auth: INFO: Using password specified on file: etc/authd.pass 2023/03/17 15:05:24 agent-auth: INFO: No authentication password provided 2023/03/17 15:05:24 agent-auth: INFO: Using agent name as: vagrant 2023/03/17 15:05:24 agent-auth: INFO: Waiting for server reply 2023/03/17 15:05:24 agent-auth: INFO: Valid key received
----------------------------Captured stderr teardown----------------------------
2023-03-17 15:05:24,515 - 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:07:35.505430 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.52 linux, win32, agent 0
-----------------------------Captured stderr setup------------------------------
2023-03-17 15:05:24,517 - 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:05:24 agent-auth: INFO: Started (pid: 335576). 2023/03/17 15:05:24 agent-auth: INFO: Requesting a key from server: 127.0.0.1 2023/03/17 15:05:24 agent-auth: INFO: Using password specified on file: etc/authd.pass 2023/03/17 15:05:24 agent-auth: INFO: No authentication password provided 2023/03/17 15:05:24 agent-auth: INFO: Using agent name as: vagrant 2023/03/17 15:05:24 agent-auth: INFO: Waiting for server reply 2023/03/17 15:05:24 agent-auth: INFO: Valid key received
----------------------------Captured stderr teardown----------------------------
2023-03-17 15:05:25,043 - 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:07:35.505606 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.56 linux, win32, agent 0
-----------------------------Captured stderr setup------------------------------
2023-03-17 15:05:25,556 - 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:05:25 agent-auth: INFO: Started (pid: 335595). 2023/03/17 15:05:25 agent-auth: INFO: Requesting a key from server: 127.0.0.1 2023/03/17 15:05:25 agent-auth: INFO: Using password specified on file: etc/authd.pass 2023/03/17 15:05:25 agent-auth: INFO: No authentication password provided 2023/03/17 15:05:25 agent-auth: INFO: Using agent name as: test_agent 2023/03/17 15:05:25 agent-auth: INFO: Waiting for server reply 2023/03/17 15:05:25 agent-auth: INFO: Valid key received
----------------------------Captured stderr teardown----------------------------
2023-03-17 15:05:26,121 - 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:07:35.505695 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.66 linux, win32, agent 0
-----------------------------Captured stderr setup------------------------------
2023-03-17 15:05:26,125 - 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:05:26 agent-auth: INFO: Started (pid: 335613). 2023/03/17 15:05:26 agent-auth: INFO: Requesting a key from server: 127.0.0.1 2023/03/17 15:05:26 agent-auth: INFO: Using password specified on file: etc/authd.pass 2023/03/17 15:05:26 agent-auth: INFO: No authentication password provided 2023/03/17 15:05:26 agent-auth: INFO: Using agent name as: nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn 2023/03/17 15:05:26 agent-auth: INFO: Waiting for server reply 2023/03/17 15:05:26 agent-auth: INFO: Valid key received
----------------------------Captured stderr teardown----------------------------
2023-03-17 15:05:26,792 - 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:07:35.505778 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.28 linux, win32, agent 0
-----------------------------Captured stderr setup------------------------------
2023-03-17 15:05:26,795 - 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:05:26 agent-auth: INFO: Started (pid: 335624). 2023/03/17 15:05:26 agent-auth: INFO: Requesting a key from server: 127.0.0.1 2023/03/17 15:05:26 agent-auth: INFO: Using password specified on file: etc/authd.pass 2023/03/17 15:05:26 agent-auth: INFO: No authentication password provided 2023/03/17 15:05:26 agent-auth: ERROR: Invalid agent name "test_agent/+bad". Please pick a valid name.
----------------------------Captured stderr teardown----------------------------
2023-03-17 15:05:28,082 - 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:07:35.505902 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." 1.25 linux, win32, agent 0
-----------------------------Captured stderr setup------------------------------
2023-03-17 15:05:28,085 - 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:05:28 agent-auth: INFO: Started (pid: 335644). 2023/03/17 15:05:28 agent-auth: INFO: Requesting a key from server: 127.0.0.1 2023/03/17 15:05:28 agent-auth: INFO: Using password specified on file: etc/authd.pass 2023/03/17 15:05:28 agent-auth: INFO: No authentication password provided 2023/03/17 15:05:28 agent-auth: ERROR: Invalid agent name "n". Please pick a valid name.
----------------------------Captured stderr teardown----------------------------
2023-03-17 15:05:29,346 - 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:07:35.505987 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.03 linux, win32, agent 0
-----------------------------Captured stderr setup------------------------------
2023-03-17 15:05:29,350 - 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:05:29 agent-auth: INFO: Started (pid: 335649). 2023/03/17 15:05:29 agent-auth: INFO: Requesting a key from server: 127.0.0.1 2023/03/17 15:05:29 agent-auth: INFO: Using password specified on file: etc/authd.pass 2023/03/17 15:05:29 agent-auth: INFO: No authentication password provided 2023/03/17 15:05:29 agent-auth: ERROR: Invalid agent name "nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn". Please pick a valid name.
----------------------------Captured stderr teardown----------------------------
2023-03-17 15:05:30,386 - 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:07:35.506084 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." 1.14 linux, win32, agent 0
-----------------------------Captured stderr setup------------------------------
2023-03-17 15:05:30,388 - 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:05:30 agent-auth: INFO: Started (pid: 335661). 2023/03/17 15:05:30 agent-auth: INFO: Requesting a key from server: 127.0.0.1 2023/03/17 15:05:30 agent-auth: INFO: Using password specified on file: etc/authd.pass 2023/03/17 15:05:30 agent-auth: INFO: No authentication password provided 2023/03/17 15:05:30 agent-auth: INFO: Using agent name as: vagrant 2023/03/17 15:05:30 agent-auth: INFO: Waiting for server reply 2023/03/17 15:05:30 agent-auth: INFO: Valid key received
----------------------------Captured stderr teardown----------------------------
2023-03-17 15:05:31,538 - 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:07:35.506162 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.00 linux, win32, agent 0
-----------------------------Captured stderr setup------------------------------
2023-03-17 15:05:31,544 - 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:05:31 agent-auth: ERROR: Options '-I' and '-i' are uncompatible.
----------------------------Captured stderr teardown----------------------------
2023-03-17 15:05:32,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:07:35.506348 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.55 linux, win32, agent 0
-----------------------------Captured stderr setup------------------------------
2023-03-17 15:05:33,061 - 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:05:33 agent-auth: INFO: Started (pid: 335684). 2023/03/17 15:05:33 agent-auth: INFO: Requesting a key from server: 127.0.0.1 2023/03/17 15:05:33 agent-auth: INFO: Using agent name as: vagrant 2023/03/17 15:05:33 agent-auth: INFO: Waiting for server reply 2023/03/17 15:05:33 agent-auth: INFO: Valid key received
----------------------------Captured stderr teardown----------------------------
2023-03-17 15:05:33,614 - 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:07:35.506455 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.80 linux, win32, agent 0
-----------------------------Captured stderr setup------------------------------
2023-03-17 15:05:33,617 - 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:05:33 agent-auth: INFO: Started (pid: 335702). 2023/03/17 15:05:33 agent-auth: INFO: Requesting a key from server: 127.0.0.1 2023/03/17 15:05:33 agent-auth: INFO: Using password specified on file: etc/authd.pass 2023/03/17 15:05:33 agent-auth: INFO: Using agent name as: vagrant 2023/03/17 15:05:33 agent-auth: INFO: Waiting for server reply 2023/03/17 15:05:33 agent-auth: INFO: Valid key received
----------------------------Captured stderr teardown----------------------------
2023-03-17 15:05:34,420 - 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:07:35.507013 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.64 linux, win32, agent 0
-----------------------------Captured stderr setup------------------------------
2023-03-17 15:05:36,996 - 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:05:37 agent-auth: INFO: Started (pid: 335739). 2023/03/17 15:05:37 agent-auth: INFO: Requesting a key from server: 127.0.0.1 2023/03/17 15:05:37 agent-auth: INFO: Using password specified on file: etc/authd.pass 2023/03/17 15:05:37 agent-auth: INFO: No authentication password provided 2023/03/17 15:05:37 agent-auth: INFO: Using agent name as: vagrant 2023/03/17 15:05:37 agent-auth: INFO: Waiting for server reply 2023/03/17 15:05:37 agent-auth: INFO: Valid key received
----------------------------Captured stderr teardown----------------------------
2023-03-17 15:05:37,637 - 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:07:35.507460 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.53 linux, win32, agent 0
-----------------------------Captured stderr setup------------------------------
2023-03-17 15:05:37,641 - 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:05:37 agent-auth: INFO: Started (pid: 335757). 2023/03/17 15:05:37 agent-auth: INFO: Requesting a key from server: 127.0.0.1 2023/03/17 15:05:37 agent-auth: INFO: Using password specified on file: etc/authd.pass 2023/03/17 15:05:37 agent-auth: INFO: No authentication password provided 2023/03/17 15:05:37 agent-auth: INFO: Using agent name as: vagrant 2023/03/17 15:05:37 agent-auth: INFO: Waiting for server reply 2023/03/17 15:05:37 agent-auth: INFO: Valid key received
----------------------------Captured stderr teardown----------------------------
2023-03-17 15:05:38,174 - 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:07:35.507546 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.63 linux, win32, agent 0
-----------------------------Captured stderr setup------------------------------
2023-03-17 15:05:38,178 - 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:05:38 agent-auth: INFO: Started (pid: 335775). 2023/03/17 15:05:38 agent-auth: INFO: Requesting a key from server: 127.0.0.1 2023/03/17 15:05:38 agent-auth: INFO: Using password specified on file: etc/authd.pass 2023/03/17 15:05:38 agent-auth: INFO: No authentication password provided 2023/03/17 15:05:38 agent-auth: INFO: Using agent name as: vagrant 2023/03/17 15:05:38 agent-auth: INFO: Waiting for server reply 2023/03/17 15:05:38 agent-auth: INFO: Valid key received
----------------------------Captured stderr teardown----------------------------
2023-03-17 15:05:38,810 - 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:07:35.507628 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.53 linux, win32, agent 0
-----------------------------Captured stderr setup------------------------------
2023-03-17 15:05:38,813 - 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:05:38 agent-auth: INFO: Started (pid: 335793). 2023/03/17 15:05:38 agent-auth: INFO: Requesting a key from server: 127.0.0.1 2023/03/17 15:05:38 agent-auth: INFO: Using password specified on file: etc/authd.pass 2023/03/17 15:05:38 agent-auth: INFO: No authentication password provided 2023/03/17 15:05:38 agent-auth: INFO: Using agent name as: vagrant 2023/03/17 15:05:38 agent-auth: INFO: Waiting for server reply 2023/03/17 15:05:38 agent-auth: INFO: Valid key received
----------------------------Captured stderr teardown----------------------------
2023-03-17 15:05:39,345 - 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:07:35.507714 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:05:39,347 - 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:05:39 agent-auth: INFO: Started (pid: 335811). 2023/03/17 15:05:39 agent-auth: INFO: Requesting a key from server: 127.0.0.1 2023/03/17 15:05:39 agent-auth: INFO: Using password specified on file: etc/authd.pass 2023/03/17 15:05:39 agent-auth: INFO: No authentication password provided 2023/03/17 15:05:39 agent-auth: INFO: Using agent name as: vagrant 2023/03/17 15:05:39 agent-auth: INFO: Waiting for server reply 2023/03/17 15:05:39 agent-auth: INFO: Valid key received
----------------------------Captured stderr teardown----------------------------
2023-03-17 15:05:39,890 - 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:07:35.507798 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:05:39,893 - 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:05:39 agent-auth: INFO: Started (pid: 335822). 2023/03/17 15:05:39 agent-auth: INFO: Requesting a key from server: 127.0.0.1 2023/03/17 15:05:39 agent-auth: INFO: Using password specified on file: etc/authd.pass 2023/03/17 15:05:39 agent-auth: INFO: No authentication password provided 2023/03/17 15:05:39 agent-auth: INFO: Using agent name as: vagrant 2023/03/17 15:05:39 agent-auth: ERROR: Invalid IP address provided for sender IP. ---------------------------------------- Exception happened during processing of request from ('127.0.0.1', 46700) 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:05:40,920 - 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:07:35.507925 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.92 linux, win32, agent 0
-----------------------------Captured stderr setup------------------------------
2023-03-17 15:05:40,929 - 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:05:40 agent-auth: INFO: Started (pid: 335834). 2023/03/17 15:05:40 agent-auth: INFO: Requesting a key from server: 0000:0000:0000:0000:0000:0000:0000:0001 2023/03/17 15:05:40 agent-auth: INFO: Using password specified on file: etc/authd.pass 2023/03/17 15:05:40 agent-auth: INFO: No authentication password provided 2023/03/17 15:05:40 agent-auth: INFO: Using agent name as: vagrant 2023/03/17 15:05:40 agent-auth: INFO: Waiting for server reply 2023/03/17 15:05:40 agent-auth: INFO: Valid key received
----------------------------Captured stderr teardown----------------------------
2023-03-17 15:05:41,848 - 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:07:35.508006 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.03 linux, win32, agent 0
-----------------------------Captured stderr setup------------------------------
2023-03-17 15:05:41,854 - 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:05:41 agent-auth: INFO: Started (pid: 335845). 2023/03/17 15:05:41 agent-auth: INFO: Requesting a key from server: 127.0.0.1 2023/03/17 15:05:41 agent-auth: INFO: Using password specified on file: etc/authd.pass 2023/03/17 15:05:41 agent-auth: INFO: No authentication password provided 2023/03/17 15:05:41 agent-auth: INFO: Using agent name as: vagrant 2023/03/17 15:05:41 agent-auth: ERROR: Invalid IP address provided for sender IP. ---------------------------------------- Exception happened during processing of request from ('127.0.0.1', 46704) 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:05:42,893 - 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:07:35.675808 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.69 linux, win32, agent 0
-----------------------------Captured stderr setup------------------------------
2023-03-17 15:05:42,898 - 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:05:42 agent-auth: INFO: Started (pid: 335850). 2023/03/17 15:05:42 agent-auth: INFO: Requesting a key from server: 127.0.0.1 2023/03/17 15:05:42 agent-auth: INFO: Using password specified on file: etc/authd.pass 2023/03/17 15:05:42 agent-auth: INFO: No authentication password provided 2023/03/17 15:05:42 agent-auth: INFO: Using agent name as: vagrant 2023/03/17 15:05:42 agent-auth: ERROR: Invalid IP address provided for sender IP. ---------------------------------------- Exception happened during processing of request from ('127.0.0.1', 46706) 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:05:43.1679065543
----------------------------Captured stderr teardown----------------------------
2023-03-17 15:05:43,951 - 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:07:35.675906 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." 1.50 linux, win32, agent 0
-----------------------------Captured stderr setup------------------------------
2023-03-17 15:05:44,967 - wazuh_testing - DEBUG - Initializing file to monitor to /var/ossec/logs/ossec.log 2023/03/17 15:05:44 wazuh-agentd[335876] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/03/17 15:05:44 wazuh-agentd[335876] main.c:139 at main(): DEBUG: Wazuh home directory: /var/ossec 2023/03/17 15:05:44 wazuh-agentd[335876] main.c:141 at main(): DEBUG: Started (pid: 335876).
-------------------------------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:05:46,012 - 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:07:35.675990 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.25 linux, win32, agent 0
-----------------------------Captured stderr setup------------------------------
2023-03-17 15:05:46,029 - wazuh_testing - DEBUG - Initializing file to monitor to /var/ossec/logs/ossec.log 2023/03/17 15:05:46 wazuh-agentd[335898] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/03/17 15:05:46 wazuh-agentd[335898] main.c:139 at main(): DEBUG: Wazuh home directory: /var/ossec 2023/03/17 15:05:46 wazuh-agentd[335898] main.c:141 at main(): DEBUG: Started (pid: 335898).
-------------------------------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:05:47,268 - 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:07:35.676078 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.05 linux, win32, agent 0
-----------------------------Captured stderr setup------------------------------
2023-03-17 15:05:47,297 - wazuh_testing - DEBUG - Initializing file to monitor to /var/ossec/logs/ossec.log 2023/03/17 15:05:47 wazuh-agentd[335920] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/03/17 15:05:47 wazuh-agentd[335920] main.c:139 at main(): DEBUG: Wazuh home directory: /var/ossec 2023/03/17 15:05:47 wazuh-agentd[335920] main.c:141 at main(): DEBUG: Started (pid: 335920).
-------------------------------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:05:48,325 - 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:07:35.676160 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.01 linux, win32, agent 0
-----------------------------Captured stderr setup------------------------------
2023-03-17 15:05:48,341 - wazuh_testing - DEBUG - Initializing file to monitor to /var/ossec/logs/ossec.log 2023/03/17 15:05:48 wazuh-agentd[335935] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/03/17 15:05:48 wazuh-agentd[335935] main.c:139 at main(): DEBUG: Wazuh home directory: /var/ossec 2023/03/17 15:05:48 wazuh-agentd[335935] main.c:141 at main(): DEBUG: Started (pid: 335935). 2023/03/17 15:05:48 wazuh-agentd[335935] client-config.c:492 at Read_Client_Enrollment(): ERROR: (4104): Invalid hostname: '192.168.0.10/100'. 2023/03/17 15:05:48 wazuh-agentd[335935] config.c:332 at ReadConfig(): ERROR: (1202): Configuration error at 'etc/ossec.conf'. 2023/03/17 15:05:48 wazuh-agentd[335935] 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:05:49,346 - 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:07:35.677735 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.17 linux, win32, agent 0
-----------------------------Captured stderr setup------------------------------
2023-03-17 15:06:10,759 - wazuh_testing - DEBUG - Initializing file to monitor to /var/ossec/logs/ossec.log 2023/03/17 15:06:10 wazuh-agentd[335951] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/03/17 15:06:10 wazuh-agentd[335951] main.c:139 at main(): DEBUG: Wazuh home directory: /var/ossec 2023/03/17 15:06:10 wazuh-agentd[335951] main.c:141 at main(): DEBUG: Started (pid: 335951).
-------------------------------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:06:11,924 - 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:07:35.677811 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.05 linux, win32, agent 0
-----------------------------Captured stderr setup------------------------------
2023-03-17 15:06:11,940 - wazuh_testing - DEBUG - Initializing file to monitor to /var/ossec/logs/ossec.log 2023/03/17 15:06:11 wazuh-agentd[335973] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/03/17 15:06:11 wazuh-agentd[335973] main.c:139 at main(): DEBUG: Wazuh home directory: /var/ossec 2023/03/17 15:06:11 wazuh-agentd[335973] main.c:141 at main(): DEBUG: Started (pid: 335973).
-------------------------------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:06:12,980 - 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:07:35.677889 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.04 linux, win32, agent 0
-----------------------------Captured stderr setup------------------------------
2023-03-17 15:06:12,997 - wazuh_testing - DEBUG - Initializing file to monitor to /var/ossec/logs/ossec.log 2023/03/17 15:06:13 wazuh-agentd[335995] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/03/17 15:06:13 wazuh-agentd[335995] main.c:139 at main(): DEBUG: Wazuh home directory: /var/ossec 2023/03/17 15:06:13 wazuh-agentd[335995] main.c:141 at main(): DEBUG: Started (pid: 335995).
-------------------------------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:06:14,032 - 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:07:35.677964 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.02 linux, win32, agent 0
-----------------------------Captured stderr setup------------------------------
2023-03-17 15:06:14,049 - wazuh_testing - DEBUG - Initializing file to monitor to /var/ossec/logs/ossec.log 2023/03/17 15:06:14 wazuh-agentd[336026] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/03/17 15:06:14 wazuh-agentd[336026] main.c:139 at main(): DEBUG: Wazuh home directory: /var/ossec 2023/03/17 15:06:14 wazuh-agentd[336026] main.c:141 at main(): DEBUG: Started (pid: 336026). 2023/03/17 15:06:14 wazuh-agentd[336026] client-config.c:424 at Read_Client_Enrollment(): ERROR: Invalid content for tag 'enabled'. 2023/03/17 15:06:14 wazuh-agentd[336026] config.c:332 at ReadConfig(): ERROR: (1202): Configuration error at 'etc/ossec.conf'. 2023/03/17 15:06:14 wazuh-agentd[336026] 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:06:15,064 - 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:07:35.678037 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.25 linux, win32, agent 0
-----------------------------Captured stderr setup------------------------------
2023-03-17 15:06:15,090 - wazuh_testing - DEBUG - Initializing file to monitor to /var/ossec/logs/ossec.log 2023/03/17 15:06:15 wazuh-agentd[336036] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/03/17 15:06:15 wazuh-agentd[336036] main.c:139 at main(): DEBUG: Wazuh home directory: /var/ossec 2023/03/17 15:06:15 wazuh-agentd[336036] main.c:141 at main(): DEBUG: Started (pid: 336036).
-------------------------------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:06:16,322 - 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:07:35.678109 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.09 linux, win32, agent 0
-----------------------------Captured stderr setup------------------------------
2023-03-17 15:06:16,338 - wazuh_testing - DEBUG - Initializing file to monitor to /var/ossec/logs/ossec.log 2023/03/17 15:06:16 wazuh-agentd[336058] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/03/17 15:06:16 wazuh-agentd[336058] main.c:139 at main(): DEBUG: Wazuh home directory: /var/ossec 2023/03/17 15:06:16 wazuh-agentd[336058] main.c:141 at main(): DEBUG: Started (pid: 336058).
-------------------------------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:06:17,418 - 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:07:35.678179 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." 2.66 linux, win32, agent 0
-----------------------------Captured stderr setup------------------------------
2023-03-17 15:06:17,435 - wazuh_testing - DEBUG - Initializing file to monitor to /var/ossec/logs/ossec.log 2023/03/17 15:06:17 wazuh-agentd[336073] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/03/17 15:06:17 wazuh-agentd[336073] main.c:139 at main(): DEBUG: Wazuh home directory: /var/ossec 2023/03/17 15:06:17 wazuh-agentd[336073] main.c:141 at main(): DEBUG: Started (pid: 336073).
-------------------------------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:06:20,089 - 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:07:35.678252 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.74 linux, win32, agent 0
-----------------------------Captured stderr setup------------------------------
2023-03-17 15:06:20,106 - wazuh_testing - DEBUG - Initializing file to monitor to /var/ossec/logs/ossec.log 2023/03/17 15:06:20 wazuh-agentd[336082] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/03/17 15:06:20 wazuh-agentd[336082] main.c:139 at main(): DEBUG: Wazuh home directory: /var/ossec 2023/03/17 15:06:20 wazuh-agentd[336082] main.c:141 at main(): DEBUG: Started (pid: 336082).
-------------------------------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:06:21,841 - 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:07:35.678350 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.78 linux, win32, agent 0
-----------------------------Captured stderr setup------------------------------
2023-03-17 15:06:21,858 - wazuh_testing - DEBUG - Initializing file to monitor to /var/ossec/logs/ossec.log 2023/03/17 15:06:21 wazuh-agentd[336091] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/03/17 15:06:21 wazuh-agentd[336091] main.c:139 at main(): DEBUG: Wazuh home directory: /var/ossec 2023/03/17 15:06:21 wazuh-agentd[336091] main.c:141 at main(): DEBUG: Started (pid: 336091).
-------------------------------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:06:23,634 - 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:07:35.678426 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.07 linux, win32, agent 0
-----------------------------Captured stderr setup------------------------------
2023-03-17 15:06:23,660 - wazuh_testing - DEBUG - Initializing file to monitor to /var/ossec/logs/ossec.log 2023/03/17 15:06:23 wazuh-agentd[336107] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/03/17 15:06:23 wazuh-agentd[336107] main.c:139 at main(): DEBUG: Wazuh home directory: /var/ossec 2023/03/17 15:06:23 wazuh-agentd[336107] main.c:141 at main(): DEBUG: Started (pid: 336107).
-------------------------------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:06:24,710 - 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:07:35.678600 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.69 linux, win32, agent 0
-----------------------------Captured stderr setup------------------------------
2023-03-17 15:06:25,275 - wazuh_testing - DEBUG - Initializing file to monitor to /var/ossec/logs/ossec.log 2023/03/17 15:06:25 wazuh-agentd[336123] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/03/17 15:06:25 wazuh-agentd[336123] main.c:139 at main(): DEBUG: Wazuh home directory: /var/ossec 2023/03/17 15:06:25 wazuh-agentd[336123] main.c:141 at main(): DEBUG: Started (pid: 336123).
-------------------------------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:06:26,944 - 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:07:35.678863 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.11 linux, win32, agent 0
-----------------------------Captured stderr setup------------------------------
2023-03-17 15:06:28,059 - wazuh_testing - DEBUG - Initializing file to monitor to /var/ossec/logs/ossec.log 2023/03/17 15:06:28 wazuh-agentd[336156] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/03/17 15:06:28 wazuh-agentd[336156] main.c:139 at main(): DEBUG: Wazuh home directory: /var/ossec 2023/03/17 15:06:28 wazuh-agentd[336156] main.c:141 at main(): DEBUG: Started (pid: 336156).
-------------------------------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:06:29,148 - 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:07:35.678938 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.25 linux, win32, agent 0
-----------------------------Captured stderr setup------------------------------
2023-03-17 15:06:29,167 - wazuh_testing - DEBUG - Initializing file to monitor to /var/ossec/logs/ossec.log 2023/03/17 15:06:29 wazuh-agentd[336178] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/03/17 15:06:29 wazuh-agentd[336178] main.c:139 at main(): DEBUG: Wazuh home directory: /var/ossec 2023/03/17 15:06:29 wazuh-agentd[336178] main.c:141 at main(): DEBUG: Started (pid: 336178).
-------------------------------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:06:30,405 - 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:07:35.679016 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." 0.52 linux, win32, agent 0
-----------------------------Captured stderr setup------------------------------
2023-03-17 15:06:30,421 - wazuh_testing - DEBUG - Initializing file to monitor to /var/ossec/logs/ossec.log 2023/03/17 15:06:30 wazuh-agentd[336193] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/03/17 15:06:30 wazuh-agentd[336193] main.c:139 at main(): DEBUG: Wazuh home directory: /var/ossec 2023/03/17 15:06:30 wazuh-agentd[336193] main.c:141 at main(): DEBUG: Started (pid: 336193). 2023/03/17 15:06:30 wazuh-agentd[336193] client-config.c:456 at Read_Client_Enrollment(): ERROR: (1205): Invalid port number: '65536'. 2023/03/17 15:06:30 wazuh-agentd[336193] config.c:332 at ReadConfig(): ERROR: (1202): Configuration error at 'etc/ossec.conf'. 2023/03/17 15:06:30 wazuh-agentd[336193] 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:06:30,928 - 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:07:35.679095 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:06:30,947 - wazuh_testing - DEBUG - Initializing file to monitor to /var/ossec/logs/ossec.log 2023/03/17 15:06:30 wazuh-agentd[336196] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/03/17 15:06:30 wazuh-agentd[336196] main.c:139 at main(): DEBUG: Wazuh home directory: /var/ossec 2023/03/17 15:06:30 wazuh-agentd[336196] main.c:141 at main(): DEBUG: Started (pid: 336196). 2023/03/17 15:06:30 wazuh-agentd[336196] client-config.c:456 at Read_Client_Enrollment(): ERROR: (1205): Invalid port number: '0'. 2023/03/17 15:06:30 wazuh-agentd[336196] config.c:332 at ReadConfig(): ERROR: (1202): Configuration error at 'etc/ossec.conf'. 2023/03/17 15:06:30 wazuh-agentd[336196] 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:06:31,452 - 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:07:35.679169 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.12 linux, win32, agent 0
-----------------------------Captured stderr setup------------------------------
2023-03-17 15:06:31,476 - wazuh_testing - DEBUG - Initializing file to monitor to /var/ossec/logs/ossec.log 2023/03/17 15:06:31 wazuh-agentd[336199] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/03/17 15:06:31 wazuh-agentd[336199] main.c:139 at main(): DEBUG: Wazuh home directory: /var/ossec 2023/03/17 15:06:31 wazuh-agentd[336199] main.c:141 at main(): DEBUG: Started (pid: 336199). 2023/03/17 15:06:31 wazuh-agentd[336199] client-config.c:450 at Read_Client_Enrollment(): ERROR: (1235): Invalid value for element 'port': -1515. 2023/03/17 15:06:31 wazuh-agentd[336199] config.c:332 at ReadConfig(): ERROR: (1202): Configuration error at 'etc/ossec.conf'. 2023/03/17 15:06:31 wazuh-agentd[336199] 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:06:32,584 - 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:07:35.679244 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.37 linux, win32, agent 0
-----------------------------Captured stderr setup------------------------------
2023-03-17 15:06:32,612 - wazuh_testing - DEBUG - Initializing file to monitor to /var/ossec/logs/ossec.log 2023/03/17 15:06:32 wazuh-agentd[336209] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/03/17 15:06:32 wazuh-agentd[336209] main.c:139 at main(): DEBUG: Wazuh home directory: /var/ossec 2023/03/17 15:06:32 wazuh-agentd[336209] main.c:141 at main(): DEBUG: Started (pid: 336209).
-------------------------------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:06:33,962 - 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:07:35.679317 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.26 linux, win32, agent 0
-----------------------------Captured stderr setup------------------------------
2023-03-17 15:06:33,979 - wazuh_testing - DEBUG - Initializing file to monitor to /var/ossec/logs/ossec.log 2023/03/17 15:06:33 wazuh-agentd[336231] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/03/17 15:06:33 wazuh-agentd[336231] main.c:139 at main(): DEBUG: Wazuh home directory: /var/ossec 2023/03/17 15:06:33 wazuh-agentd[336231] main.c:141 at main(): DEBUG: Started (pid: 336231).
-------------------------------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:06:35,235 - 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:07:35.679392 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.08 linux, win32, agent 0
-----------------------------Captured stderr setup------------------------------
2023-03-17 15:06:35,262 - wazuh_testing - DEBUG - Initializing file to monitor to /var/ossec/logs/ossec.log 2023/03/17 15:06:35 wazuh-agentd[336253] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/03/17 15:06:35 wazuh-agentd[336253] main.c:139 at main(): DEBUG: Wazuh home directory: /var/ossec 2023/03/17 15:06:35 wazuh-agentd[336253] main.c:141 at main(): DEBUG: Started (pid: 336253).
-------------------------------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:06:36,322 - 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:07:35.679489 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.10 linux, win32, agent 0
-----------------------------Captured stderr setup------------------------------
2023-03-17 15:06:36,338 - wazuh_testing - DEBUG - Initializing file to monitor to /var/ossec/logs/ossec.log 2023/03/17 15:06:36 wazuh-agentd[336275] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/03/17 15:06:36 wazuh-agentd[336275] main.c:139 at main(): DEBUG: Wazuh home directory: /var/ossec 2023/03/17 15:06:36 wazuh-agentd[336275] main.c:141 at main(): DEBUG: Started (pid: 336275).
-------------------------------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:06:37,429 - 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:07:35.679565 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.06 linux, win32, agent 0
-----------------------------Captured stderr setup------------------------------
2023-03-17 15:06:37,447 - wazuh_testing - DEBUG - Initializing file to monitor to /var/ossec/logs/ossec.log 2023/03/17 15:06:37 wazuh-agentd[336297] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/03/17 15:06:37 wazuh-agentd[336297] main.c:139 at main(): DEBUG: Wazuh home directory: /var/ossec 2023/03/17 15:06:37 wazuh-agentd[336297] main.c:141 at main(): DEBUG: Started (pid: 336297).
-------------------------------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:06:38,499 - 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:07:35.679639 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:06:38,516 - wazuh_testing - DEBUG - Initializing file to monitor to /var/ossec/logs/ossec.log 2023/03/17 15:06:38 wazuh-agentd[336312] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/03/17 15:06:38 wazuh-agentd[336312] main.c:139 at main(): DEBUG: Wazuh home directory: /var/ossec 2023/03/17 15:06:38 wazuh-agentd[336312] main.c:141 at main(): DEBUG: Started (pid: 336312). 2023/03/17 15:06:38 wazuh-agentd[336312] client-config.c:492 at Read_Client_Enrollment(): ERROR: (4104): Invalid hostname: '56FE::2159:5BBC::6594'. 2023/03/17 15:06:38 wazuh-agentd[336312] config.c:332 at ReadConfig(): ERROR: (1202): Configuration error at 'etc/ossec.conf'. 2023/03/17 15:06:38 wazuh-agentd[336312] 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:06:39,559 - 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:07:35.679712 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." 2.24 linux, win32, agent 0
-----------------------------Captured stderr setup------------------------------
2023-03-17 15:06:39,587 - wazuh_testing - DEBUG - Initializing file to monitor to /var/ossec/logs/ossec.log 2023/03/17 15:06:39 wazuh-agentd[336322] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/03/17 15:06:39 wazuh-agentd[336322] main.c:139 at main(): DEBUG: Wazuh home directory: /var/ossec 2023/03/17 15:06:39 wazuh-agentd[336322] main.c:141 at main(): DEBUG: Started (pid: 336322).
-------------------------------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:06:41,809 - 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:07:35.679787 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.02 linux, win32, agent 0
-----------------------------Captured stderr setup------------------------------
2023-03-17 15:06:41,826 - wazuh_testing - DEBUG - Initializing file to monitor to /var/ossec/logs/ossec.log 2023/03/17 15:06:41 wazuh-agentd[336337] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/03/17 15:06:41 wazuh-agentd[336337] main.c:139 at main(): DEBUG: Wazuh home directory: /var/ossec 2023/03/17 15:06:41 wazuh-agentd[336337] main.c:141 at main(): DEBUG: Started (pid: 336337). 2023/03/17 15:06:41 wazuh-agentd[336337] 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:06:41 wazuh-agentd[336337] config.c:332 at ReadConfig(): ERROR: (1202): Configuration error at 'etc/ossec.conf'. 2023/03/17 15:06:41 wazuh-agentd[336337] 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:06:42,838 - 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:07:35.679865 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.74 linux, win32, agent 0
-----------------------------Captured stderr setup------------------------------
2023-03-17 15:06:42,862 - wazuh_testing - DEBUG - Initializing file to monitor to /var/ossec/logs/ossec.log 2023/03/17 15:06:42 wazuh-agentd[336340] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/03/17 15:06:42 wazuh-agentd[336340] main.c:139 at main(): DEBUG: Wazuh home directory: /var/ossec 2023/03/17 15:06:42 wazuh-agentd[336340] main.c:141 at main(): DEBUG: Started (pid: 336340). 2023/03/17 15:06:42 wazuh-agentd[336340] client-config.c:492 at Read_Client_Enrollment(): ERROR: (4104): Invalid hostname: '02db:4660:46af:invalid:d05e:a62e:4ca7:8e58'. 2023/03/17 15:06:42 wazuh-agentd[336340] config.c:332 at ReadConfig(): ERROR: (1202): Configuration error at 'etc/ossec.conf'. 2023/03/17 15:06:42 wazuh-agentd[336340] 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:06:43.1679065603
----------------------------Captured stderr teardown----------------------------
2023-03-17 15:06:43,870 - 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:07:35.679943 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.03 linux, win32, agent 0
-----------------------------Captured stderr setup------------------------------
2023-03-17 15:06:44,507 - wazuh_testing - DEBUG - Set local_internal_option to {'agent.debug': '2'} 2023-03-17 15:06:50,521 - wazuh_testing - DEBUG - Ignore error set to True 2023-03-17 15:06:50,521 - wazuh_testing - DEBUG - Restarting wazuh-agentd 2023/03/17 15:06:50 wazuh-agentd[336529] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/03/17 15:06:50 wazuh-agentd[336529] main.c:139 at main(): DEBUG: Wazuh home directory: /var/ossec 2023/03/17 15:06:50 wazuh-agentd[336529] main.c:141 at main(): DEBUG: Started (pid: 336529). 2023/03/17 15:06:50 wazuh-agentd[336529] main.c:154 at main(): ERROR: (4112): Invalid server address found: 'MANAGER_IP' 2023/03/17 15:06:50 wazuh-agentd[336529] main.c:155 at main(): CRITICAL: (1215): No client configured. Exiting. 2023-03-17 15:06:50,540 - wazuh_testing - ERROR - Command '['/var/ossec/bin/wazuh-agentd']' returned non-zero exit status 1. 2023-03-17 15:06:50,541 - 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:06:51,089 - 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:07:35.680062 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.54 linux, win32, agent 0
-----------------------------Captured stdout setup------------------------------
2023-03-17T15:06:51.1679065611
-----------------------------Captured stderr setup------------------------------
2023-03-17 15:06:51,549 - wazuh_testing - DEBUG - Stopping wazuh-agentd 2023-03-17 15:06:52,502 - wazuh_testing - DEBUG - Ignore error set to True 2023-03-17 15:06:52,502 - wazuh_testing - DEBUG - Restarting wazuh-agentd 2023/03/17 15:06:52 wazuh-agentd[336535] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/03/17 15:06:52 wazuh-agentd[336535] main.c:139 at main(): DEBUG: Wazuh home directory: /var/ossec 2023/03/17 15:06:52 wazuh-agentd[336535] main.c:141 at main(): DEBUG: Started (pid: 336535). 2023-03-17 15:06:52,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:06:53,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:07:35.680143 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 2.02 linux, win32, agent 0
-----------------------------Captured stdout setup------------------------------
2023-03-17T15:06:54.1679065614
-----------------------------Captured stderr setup------------------------------
2023-03-17 15:06:54,057 - wazuh_testing - DEBUG - Stopping wazuh-agentd 2023-03-17 15:06:54,503 - wazuh_testing - DEBUG - Ignore error set to True 2023-03-17 15:06:54,504 - wazuh_testing - DEBUG - Restarting wazuh-agentd 2023/03/17 15:06:54 wazuh-agentd[336547] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/03/17 15:06:54 wazuh-agentd[336547] main.c:139 at main(): DEBUG: Wazuh home directory: /var/ossec 2023/03/17 15:06:54 wazuh-agentd[336547] main.c:141 at main(): DEBUG: Started (pid: 336547). 2023-03-17 15:06:54,533 - 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:06:55,553 - 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:07:35.680225 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.44 linux, win32, agent 0
-----------------------------Captured stdout setup------------------------------
2023-03-17T15:06:56.1679065616
-----------------------------Captured stderr setup------------------------------
2023-03-17 15:06:56,052 - wazuh_testing - DEBUG - Stopping wazuh-agentd 2023-03-17 15:06:56,504 - wazuh_testing - DEBUG - Ignore error set to True 2023-03-17 15:06:56,504 - wazuh_testing - DEBUG - Restarting wazuh-agentd 2023/03/17 15:06:56 wazuh-agentd[336559] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/03/17 15:06:56 wazuh-agentd[336559] main.c:139 at main(): DEBUG: Wazuh home directory: /var/ossec 2023/03/17 15:06:56 wazuh-agentd[336559] main.c:141 at main(): DEBUG: Started (pid: 336559). 2023/03/17 15:07:00 wazuh-agentd[336559] client-config.c:633 at Validate_IPv6_Link_Local_Interface(): DEBUG: Could not resolve hostname '172.28.128.hello' 2023-03-17 15:07:00,938 - 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:07:05,974 - 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:07:35.680302 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 10.76 linux, win32, agent 0
-----------------------------Captured stdout setup------------------------------
2023-03-17T15:07:06.1679065626
-----------------------------Captured stderr setup------------------------------
2023-03-17 15:07:06,475 - wazuh_testing - DEBUG - Stopping wazuh-agentd 2023-03-17 15:07:07,503 - wazuh_testing - DEBUG - Ignore error set to True 2023-03-17 15:07:07,504 - wazuh_testing - DEBUG - Restarting wazuh-agentd 2023/03/17 15:07:07 wazuh-agentd[336570] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/03/17 15:07:07 wazuh-agentd[336570] main.c:139 at main(): DEBUG: Wazuh home directory: /var/ossec 2023/03/17 15:07:07 wazuh-agentd[336570] main.c:141 at main(): DEBUG: Started (pid: 336570). 2023/03/17 15:07:11 wazuh-agentd[336570] client-config.c:633 at Validate_IPv6_Link_Local_Interface(): DEBUG: Could not resolve hostname '::ffff:ac1c::::::::800c' 2023-03-17 15:07:11,760 - 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:07:16,719 - 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:07:35.680400 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 1.37 linux, win32, agent 0
-----------------------------Captured stdout setup------------------------------
2023-03-17T15:07:17.1679065637
-----------------------------Captured stderr setup------------------------------
2023-03-17 15:07:17,220 - wazuh_testing - DEBUG - Stopping wazuh-agentd 2023-03-17 15:07:17,504 - wazuh_testing - DEBUG - Ignore error set to True 2023-03-17 15:07:17,504 - wazuh_testing - DEBUG - Restarting wazuh-agentd 2023/03/17 15:07:17 wazuh-agentd[336581] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/03/17 15:07:17 wazuh-agentd[336581] main.c:139 at main(): DEBUG: Wazuh home directory: /var/ossec 2023/03/17 15:07:17 wazuh-agentd[336581] main.c:141 at main(): DEBUG: Started (pid: 336581). 2023-03-17 15:07:17,535 - 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:07:18,555 - 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:07:35.680495 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 16.98 linux, win32, agent 0
-----------------------------Captured stdout setup------------------------------
2023-03-17T15:07:18.1679065638
-----------------------------Captured stderr setup------------------------------
2023-03-17 15:07:18,568 - wazuh_testing - DEBUG - Stopping wazuh-agentd 2023-03-17 15:07:19,504 - wazuh_testing - DEBUG - Ignore error set to True 2023-03-17 15:07:19,504 - wazuh_testing - DEBUG - Restarting wazuh-agentd 2023/03/17 15:07:19 wazuh-agentd[336593] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/03/17 15:07:19 wazuh-agentd[336593] main.c:139 at main(): DEBUG: Wazuh home directory: /var/ossec 2023/03/17 15:07:19 wazuh-agentd[336593] main.c:141 at main(): DEBUG: Started (pid: 336593). 2023-03-17 15:07:19,536 - 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:07:35.1679065655
----------------------------Captured stderr teardown----------------------------
2023-03-17 15:07:20,044 - wazuh_testing - DEBUG - Trucanted /var/ossec/logs/ossec.log 2023-03-17 15:07:20,059 - wazuh_testing - DEBUG - Stopping wazuh-agentd 2023-03-17 15:07:35,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'}