report.html

Report generated on 23-Jun-2023 at 05:08:24 by pytest-html v3.1.1

Environment

Packages {"pluggy": "0.13.1", "py": "1.10.0", "pytest": "6.2.2"}
Platform Darwin-19.0.0-x86_64-i386-64bit
Plugins {"html": "3.1.1", "metadata": "1.8.0", "testinfra": "5.0.0"}
Python 3.7.3

Summary

68 tests ran in 172.60 seconds.

0 passed, 28 skipped, 68 failed, 58 errors, 0 expected failures, 0 unexpected passes
Tests Failed Success XFail Error
test_remoted/test_active_response/test_active_response_send_ar.py 0 0 0 0
test_remoted/test_agent_communication/test_agent_pending_status.py 6 0 0 0
test_remoted/test_agent_communication/test_agent_version_shared_configuration_startup_message.py 0 0 0 6
test_remoted/test_agent_communication/test_agents_switching_protocols.py 0 0 0 2
test_remoted/test_agent_communication/test_invalid_protocol_communication.py 0 0 0 4
test_remoted/test_agent_communication/test_multi_agent_protocols_communication.py 6 0 0 0
test_remoted/test_agent_communication/test_multi_agent_status.py 0 0 0 0
test_remoted/test_agent_communication/test_protocols_communication.py 0 0 0 8
test_remoted/test_agent_communication/test_request_agent_info.py 0 0 0 3
test_remoted/test_agent_communication/test_shared_configuration.py 0 0 0 3
test_remoted/test_manager_messages/test_manager_ack.py 0 0 0 4
test_remoted/test_multi_groups/test_merged_mg_file_content.py 0 0 0 2
test_remoted/test_socket_communication/test_ping_pong_message.py 0 0 0 24
test_remoted/test_socket_communication/test_syslog_message.py 56 0 0 0
test_remoted/test_socket_communication/test_syslog_message_parser.py 0 0 0 2

Results

Result Time Test Description Duration Markers Links Tier
Error 2023-06-23 12:08:24.075421 test_remoted/test_agent_communication/test_agent_version_shared_configuration_startup_message.py::test_agent_remote_configuration[TCP-debian7_420]::setup description: Check if the manager sends the shared configuration to agents through remote,. ensuring the agent version is correct. 0.00 2
test_remoted/conftest.py:51: in remove_shared_files
file_names = os.listdir(source_dir)
E FileNotFoundError: [Errno 2] No such file or directory: '/Library/Ossec/etc/shared/default'
Error 2023-06-23 12:08:24.075580 test_remoted/test_agent_communication/test_agent_version_shared_configuration_startup_message.py::test_agent_remote_configuration[TCP-debian9_4.4.0]::setup description: Check if the manager sends the shared configuration to agents through remote,. ensuring the agent version is correct. 0.00 2
test_remoted/conftest.py:51: in remove_shared_files
file_names = os.listdir(source_dir)
E FileNotFoundError: [Errno 2] No such file or directory: '/Library/Ossec/etc/shared/default'
Error 2023-06-23 12:08:24.075708 test_remoted/test_agent_communication/test_agent_version_shared_configuration_startup_message.py::test_agent_remote_configuration[UDP-debian7_420]::setup description: Check if the manager sends the shared configuration to agents through remote,. ensuring the agent version is correct. 0.02 2
test_remoted/conftest.py:51: in remove_shared_files
file_names = os.listdir(source_dir)
E FileNotFoundError: [Errno 2] No such file or directory: '/Library/Ossec/etc/shared/default'
-----------------------------Captured stdout setup------------------------------
Fri Jun 23 12:06:32 UTC 2023
Error 2023-06-23 12:08:24.075829 test_remoted/test_agent_communication/test_agent_version_shared_configuration_startup_message.py::test_agent_remote_configuration[UDP-debian9_4.4.0]::setup description: Check if the manager sends the shared configuration to agents through remote,. ensuring the agent version is correct. 0.00 2
test_remoted/conftest.py:51: in remove_shared_files
file_names = os.listdir(source_dir)
E FileNotFoundError: [Errno 2] No such file or directory: '/Library/Ossec/etc/shared/default'
Error 2023-06-23 12:08:24.075953 test_remoted/test_agent_communication/test_agent_version_shared_configuration_startup_message.py::test_agent_remote_configuration[TCP,UDP-debian7_420]::setup description: Check if the manager sends the shared configuration to agents through remote,. ensuring the agent version is correct. 0.02 2
test_remoted/conftest.py:51: in remove_shared_files
file_names = os.listdir(source_dir)
E FileNotFoundError: [Errno 2] No such file or directory: '/Library/Ossec/etc/shared/default'
-----------------------------Captured stdout setup------------------------------
Fri Jun 23 12:06:32 UTC 2023
Error 2023-06-23 12:08:24.076119 test_remoted/test_agent_communication/test_agent_version_shared_configuration_startup_message.py::test_agent_remote_configuration[TCP,UDP-debian9_4.4.0]::setup description: Check if the manager sends the shared configuration to agents through remote,. ensuring the agent version is correct. 0.02 2
test_remoted/conftest.py:51: in remove_shared_files
file_names = os.listdir(source_dir)
E FileNotFoundError: [Errno 2] No such file or directory: '/Library/Ossec/etc/shared/default'
----------------------------Captured stdout teardown----------------------------
Fri Jun 23 12:06:32 UTC 2023
Error 2023-06-23 12:08:24.076332 test_remoted/test_agent_communication/test_agents_switching_protocols.py::test_agents_switching_protocols[1514]::setup description: Checks if the agents can reconnect without issues to the manager after switching their protocol.. For this purpose, the test will establish a connection with simulated agents. Then, they will be. stopped and it will wait until the manager consider that agents are disconnected. Finally, it will. connect the agents switching their protocol. 0.02 2
test_remoted/conftest.py:26: in restart_remoted
control_service('start', daemon=DAEMON_NAME)
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/services.py:143: in control_service
subprocess.check_call(start_process)
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:342: in check_call
retcode = call(*popenargs, **kwargs)
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:323: in call
with Popen(*popenargs, **kwargs) as p:
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:775: in __init__
restore_signals, start_new_session)
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:1522: in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
E FileNotFoundError: [Errno 2] No such file or directory: '/Library/Ossec/bin/wazuh-remoted': '/Library/Ossec/bin/wazuh-remoted'
Error 2023-06-23 12:08:24.076559 test_remoted/test_agent_communication/test_agents_switching_protocols.py::test_agents_switching_protocols[56000]::setup description: Checks if the agents can reconnect without issues to the manager after switching their protocol.. For this purpose, the test will establish a connection with simulated agents. Then, they will be. stopped and it will wait until the manager consider that agents are disconnected. Finally, it will. connect the agents switching their protocol. 0.06 2
test_remoted/conftest.py:26: in restart_remoted
control_service('start', daemon=DAEMON_NAME)
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/services.py:143: in control_service
subprocess.check_call(start_process)
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:342: in check_call
retcode = call(*popenargs, **kwargs)
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:323: in call
with Popen(*popenargs, **kwargs) as p:
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:775: in __init__
restore_signals, start_new_session)
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:1522: in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
E FileNotFoundError: [Errno 2] No such file or directory: '/Library/Ossec/bin/wazuh-remoted': '/Library/Ossec/bin/wazuh-remoted'
-----------------------------Captured stdout setup------------------------------
Fri Jun 23 12:06:32 UTC 2023
----------------------------Captured stdout teardown----------------------------
Fri Jun 23 12:06:32 UTC 2023
Error 2023-06-23 12:08:24.076754 test_remoted/test_agent_communication/test_invalid_protocol_communication.py::test_invalid_protocol_communication[TCP_1514]::setup description: Check that the manager receive any event from a protocol that is not allowed.. For this purpose, the test will swap the expected protocol before create the simulated agents. Then,. an event will be created and a message sent using a protocol not allowed. Finally, it will raise an. error based in the protocol used. 0.01 0
test_remoted/conftest.py:26: in restart_remoted
control_service('start', daemon=DAEMON_NAME)
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/services.py:143: in control_service
subprocess.check_call(start_process)
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:342: in check_call
retcode = call(*popenargs, **kwargs)
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:323: in call
with Popen(*popenargs, **kwargs) as p:
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:775: in __init__
restore_signals, start_new_session)
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:1522: in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
E FileNotFoundError: [Errno 2] No such file or directory: '/Library/Ossec/bin/wazuh-remoted': '/Library/Ossec/bin/wazuh-remoted'
Error 2023-06-23 12:08:24.076968 test_remoted/test_agent_communication/test_invalid_protocol_communication.py::test_invalid_protocol_communication[UDP_1514]::setup description: Check that the manager receive any event from a protocol that is not allowed.. For this purpose, the test will swap the expected protocol before create the simulated agents. Then,. an event will be created and a message sent using a protocol not allowed. Finally, it will raise an. error based in the protocol used. 0.03 0
test_remoted/conftest.py:26: in restart_remoted
control_service('start', daemon=DAEMON_NAME)
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/services.py:143: in control_service
subprocess.check_call(start_process)
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:342: in check_call
retcode = call(*popenargs, **kwargs)
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:323: in call
with Popen(*popenargs, **kwargs) as p:
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:775: in __init__
restore_signals, start_new_session)
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:1522: in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
E FileNotFoundError: [Errno 2] No such file or directory: '/Library/Ossec/bin/wazuh-remoted': '/Library/Ossec/bin/wazuh-remoted'
-----------------------------Captured stdout setup------------------------------
Fri Jun 23 12:06:32 UTC 2023
Error 2023-06-23 12:08:24.077204 test_remoted/test_agent_communication/test_invalid_protocol_communication.py::test_invalid_protocol_communication[TCP_56000]::setup description: Check that the manager receive any event from a protocol that is not allowed.. For this purpose, the test will swap the expected protocol before create the simulated agents. Then,. an event will be created and a message sent using a protocol not allowed. Finally, it will raise an. error based in the protocol used. 0.03 0
test_remoted/conftest.py:26: in restart_remoted
control_service('start', daemon=DAEMON_NAME)
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/services.py:143: in control_service
subprocess.check_call(start_process)
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:342: in check_call
retcode = call(*popenargs, **kwargs)
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:323: in call
with Popen(*popenargs, **kwargs) as p:
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:775: in __init__
restore_signals, start_new_session)
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:1522: in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
E FileNotFoundError: [Errno 2] No such file or directory: '/Library/Ossec/bin/wazuh-remoted': '/Library/Ossec/bin/wazuh-remoted'
-----------------------------Captured stdout setup------------------------------
Fri Jun 23 12:06:32 UTC 2023
Error 2023-06-23 12:08:24.077423 test_remoted/test_agent_communication/test_invalid_protocol_communication.py::test_invalid_protocol_communication[UDP_56000]::setup description: Check that the manager receive any event from a protocol that is not allowed.. For this purpose, the test will swap the expected protocol before create the simulated agents. Then,. an event will be created and a message sent using a protocol not allowed. Finally, it will raise an. error based in the protocol used. 0.05 0
test_remoted/conftest.py:26: in restart_remoted
control_service('start', daemon=DAEMON_NAME)
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/services.py:143: in control_service
subprocess.check_call(start_process)
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:342: in check_call
retcode = call(*popenargs, **kwargs)
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:323: in call
with Popen(*popenargs, **kwargs) as p:
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:775: in __init__
restore_signals, start_new_session)
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:1522: in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
E FileNotFoundError: [Errno 2] No such file or directory: '/Library/Ossec/bin/wazuh-remoted': '/Library/Ossec/bin/wazuh-remoted'
-----------------------------Captured stdout setup------------------------------
Fri Jun 23 12:06:32 UTC 2023
----------------------------Captured stdout teardown----------------------------
Fri Jun 23 12:06:32 UTC 2023
Error 2023-06-23 12:08:24.087537 test_remoted/test_agent_communication/test_protocols_communication.py::test_protocols_communication[TCP_1514]::setup description: Check agent-manager communication via TCP, UDP or both.. For this purpose, the test will log and send the message to check if the communication works fine.. Then, after the sender ends, the socket connection is closed. 0.01 0
test_remoted/conftest.py:26: in restart_remoted
control_service('start', daemon=DAEMON_NAME)
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/services.py:143: in control_service
subprocess.check_call(start_process)
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:342: in check_call
retcode = call(*popenargs, **kwargs)
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:323: in call
with Popen(*popenargs, **kwargs) as p:
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:775: in __init__
restore_signals, start_new_session)
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:1522: in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
E FileNotFoundError: [Errno 2] No such file or directory: '/Library/Ossec/bin/wazuh-remoted': '/Library/Ossec/bin/wazuh-remoted'
Error 2023-06-23 12:08:24.087784 test_remoted/test_agent_communication/test_protocols_communication.py::test_protocols_communication[UDP_1514]::setup description: Check agent-manager communication via TCP, UDP or both.. For this purpose, the test will log and send the message to check if the communication works fine.. Then, after the sender ends, the socket connection is closed. 0.03 0
test_remoted/conftest.py:26: in restart_remoted
control_service('start', daemon=DAEMON_NAME)
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/services.py:143: in control_service
subprocess.check_call(start_process)
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:342: in check_call
retcode = call(*popenargs, **kwargs)
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:323: in call
with Popen(*popenargs, **kwargs) as p:
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:775: in __init__
restore_signals, start_new_session)
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:1522: in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
E FileNotFoundError: [Errno 2] No such file or directory: '/Library/Ossec/bin/wazuh-remoted': '/Library/Ossec/bin/wazuh-remoted'
-----------------------------Captured stdout setup------------------------------
Fri Jun 23 12:07:20 UTC 2023
Error 2023-06-23 12:08:24.088019 test_remoted/test_agent_communication/test_protocols_communication.py::test_protocols_communication[TCP,UDP_1514]::setup description: Check agent-manager communication via TCP, UDP or both.. For this purpose, the test will log and send the message to check if the communication works fine.. Then, after the sender ends, the socket connection is closed. 0.03 0
test_remoted/conftest.py:26: in restart_remoted
control_service('start', daemon=DAEMON_NAME)
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/services.py:143: in control_service
subprocess.check_call(start_process)
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:342: in check_call
retcode = call(*popenargs, **kwargs)
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:323: in call
with Popen(*popenargs, **kwargs) as p:
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:775: in __init__
restore_signals, start_new_session)
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:1522: in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
E FileNotFoundError: [Errno 2] No such file or directory: '/Library/Ossec/bin/wazuh-remoted': '/Library/Ossec/bin/wazuh-remoted'
-----------------------------Captured stdout setup------------------------------
Fri Jun 23 12:07:20 UTC 2023
Error 2023-06-23 12:08:24.088231 test_remoted/test_agent_communication/test_protocols_communication.py::test_protocols_communication[UDP,TCP_1514]::setup description: Check agent-manager communication via TCP, UDP or both.. For this purpose, the test will log and send the message to check if the communication works fine.. Then, after the sender ends, the socket connection is closed. 0.03 0
test_remoted/conftest.py:26: in restart_remoted
control_service('start', daemon=DAEMON_NAME)
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/services.py:143: in control_service
subprocess.check_call(start_process)
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:342: in check_call
retcode = call(*popenargs, **kwargs)
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:323: in call
with Popen(*popenargs, **kwargs) as p:
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:775: in __init__
restore_signals, start_new_session)
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:1522: in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
E FileNotFoundError: [Errno 2] No such file or directory: '/Library/Ossec/bin/wazuh-remoted': '/Library/Ossec/bin/wazuh-remoted'
-----------------------------Captured stdout setup------------------------------
Fri Jun 23 12:07:20 UTC 2023
Error 2023-06-23 12:08:24.088444 test_remoted/test_agent_communication/test_protocols_communication.py::test_protocols_communication[TCP_56000]::setup description: Check agent-manager communication via TCP, UDP or both.. For this purpose, the test will log and send the message to check if the communication works fine.. Then, after the sender ends, the socket connection is closed. 0.03 0
test_remoted/conftest.py:26: in restart_remoted
control_service('start', daemon=DAEMON_NAME)
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/services.py:143: in control_service
subprocess.check_call(start_process)
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:342: in check_call
retcode = call(*popenargs, **kwargs)
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:323: in call
with Popen(*popenargs, **kwargs) as p:
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:775: in __init__
restore_signals, start_new_session)
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:1522: in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
E FileNotFoundError: [Errno 2] No such file or directory: '/Library/Ossec/bin/wazuh-remoted': '/Library/Ossec/bin/wazuh-remoted'
-----------------------------Captured stdout setup------------------------------
Fri Jun 23 12:07:20 UTC 2023
Error 2023-06-23 12:08:24.088640 test_remoted/test_agent_communication/test_protocols_communication.py::test_protocols_communication[UDP_56000]::setup description: Check agent-manager communication via TCP, UDP or both.. For this purpose, the test will log and send the message to check if the communication works fine.. Then, after the sender ends, the socket connection is closed. 0.04 0
test_remoted/conftest.py:26: in restart_remoted
control_service('start', daemon=DAEMON_NAME)
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/services.py:143: in control_service
subprocess.check_call(start_process)
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:342: in check_call
retcode = call(*popenargs, **kwargs)
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:323: in call
with Popen(*popenargs, **kwargs) as p:
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:775: in __init__
restore_signals, start_new_session)
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:1522: in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
E FileNotFoundError: [Errno 2] No such file or directory: '/Library/Ossec/bin/wazuh-remoted': '/Library/Ossec/bin/wazuh-remoted'
-----------------------------Captured stdout setup------------------------------
Fri Jun 23 12:07:20 UTC 2023
Error 2023-06-23 12:08:24.088840 test_remoted/test_agent_communication/test_protocols_communication.py::test_protocols_communication[TCP,UDP_56000]::setup description: Check agent-manager communication via TCP, UDP or both.. For this purpose, the test will log and send the message to check if the communication works fine.. Then, after the sender ends, the socket connection is closed. 0.04 0
test_remoted/conftest.py:26: in restart_remoted
control_service('start', daemon=DAEMON_NAME)
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/services.py:143: in control_service
subprocess.check_call(start_process)
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:342: in check_call
retcode = call(*popenargs, **kwargs)
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:323: in call
with Popen(*popenargs, **kwargs) as p:
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:775: in __init__
restore_signals, start_new_session)
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:1522: in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
E FileNotFoundError: [Errno 2] No such file or directory: '/Library/Ossec/bin/wazuh-remoted': '/Library/Ossec/bin/wazuh-remoted'
-----------------------------Captured stdout setup------------------------------
Fri Jun 23 12:07:20 UTC 2023
Error 2023-06-23 12:08:24.089090 test_remoted/test_agent_communication/test_protocols_communication.py::test_protocols_communication[UDP,TCP_56000]::setup description: Check agent-manager communication via TCP, UDP or both.. For this purpose, the test will log and send the message to check if the communication works fine.. Then, after the sender ends, the socket connection is closed. 0.06 0
test_remoted/conftest.py:26: in restart_remoted
control_service('start', daemon=DAEMON_NAME)
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/services.py:143: in control_service
subprocess.check_call(start_process)
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:342: in check_call
retcode = call(*popenargs, **kwargs)
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:323: in call
with Popen(*popenargs, **kwargs) as p:
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:775: in __init__
restore_signals, start_new_session)
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:1522: in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
E FileNotFoundError: [Errno 2] No such file or directory: '/Library/Ossec/bin/wazuh-remoted': '/Library/Ossec/bin/wazuh-remoted'
-----------------------------Captured stdout setup------------------------------
Fri Jun 23 12:07:20 UTC 2023
----------------------------Captured stdout teardown----------------------------
Fri Jun 23 12:07:20 UTC 2023
Error 2023-06-23 12:08:24.089208 test_remoted/test_agent_communication/test_request_agent_info.py::test_request[udp,tcp-disconnected]::setup description: Check that there are no problems when the manager tries to communicate with an agent to ask for. configuration or state files using the remoted socket. For this purpose, the test will create agents. and then, for each agent, it will wait until the agent key is loaded by remoted. After that, a request. is sent depending on the test case, and it checks if the response is the expected one for that case.. If the agent is disconnected, it raises an error.. As the test has nothing to do with shared configuration files, we removed those rootcheck txt files. from default agent group to reduce the time required by the test to make the checks. 0.00 0
test_remoted/conftest.py:49: in remove_shared_files
os.mkdir(target_dir)
E FileExistsError: [Errno 17] File exists: '/Library/Ossec/etc/default.backup'
Error 2023-06-23 12:08:24.089320 test_remoted/test_agent_communication/test_request_agent_info.py::test_request[udp,tcp-get_config]::setup description: Check that there are no problems when the manager tries to communicate with an agent to ask for. configuration or state files using the remoted socket. For this purpose, the test will create agents. and then, for each agent, it will wait until the agent key is loaded by remoted. After that, a request. is sent depending on the test case, and it checks if the response is the expected one for that case.. If the agent is disconnected, it raises an error.. As the test has nothing to do with shared configuration files, we removed those rootcheck txt files. from default agent group to reduce the time required by the test to make the checks. 0.00 0
test_remoted/conftest.py:49: in remove_shared_files
os.mkdir(target_dir)
E FileExistsError: [Errno 17] File exists: '/Library/Ossec/etc/default.backup'
Error 2023-06-23 12:08:24.089437 test_remoted/test_agent_communication/test_request_agent_info.py::test_request[udp,tcp-get_state]::setup description: Check that there are no problems when the manager tries to communicate with an agent to ask for. configuration or state files using the remoted socket. For this purpose, the test will create agents. and then, for each agent, it will wait until the agent key is loaded by remoted. After that, a request. is sent depending on the test case, and it checks if the response is the expected one for that case.. If the agent is disconnected, it raises an error.. As the test has nothing to do with shared configuration files, we removed those rootcheck txt files. from default agent group to reduce the time required by the test to make the checks. 0.02 0
test_remoted/conftest.py:49: in remove_shared_files
os.mkdir(target_dir)
E FileExistsError: [Errno 17] File exists: '/Library/Ossec/etc/default.backup'
----------------------------Captured stdout teardown----------------------------
Fri Jun 23 12:07:20 UTC 2023
Error 2023-06-23 12:08:24.089553 test_remoted/test_agent_communication/test_shared_configuration.py::test_push_shared_config[TCP]::setup description: Check if the manager pushes shared configuration to agents as expected.. For this purpose, the test will create an agent for each protocol within the module test cases. Then,. it will try to send the shared configuration to the agent and then, check if the configuration is. completely pushed.. For example, if Wazuh Manager sends new shared files from group shared folder when the merged.mg. checksum is received from an agent is different than the stored one.. As the test has nothing to do with shared configuration files, we removed those rootcheck txt files. from default agent group to reduce the time required by the test to make the checks. 0.00 1
test_remoted/conftest.py:49: in remove_shared_files
os.mkdir(target_dir)
E FileExistsError: [Errno 17] File exists: '/Library/Ossec/etc/default.backup'
Error 2023-06-23 12:08:24.089667 test_remoted/test_agent_communication/test_shared_configuration.py::test_push_shared_config[UDP]::setup description: Check if the manager pushes shared configuration to agents as expected.. For this purpose, the test will create an agent for each protocol within the module test cases. Then,. it will try to send the shared configuration to the agent and then, check if the configuration is. completely pushed.. For example, if Wazuh Manager sends new shared files from group shared folder when the merged.mg. checksum is received from an agent is different than the stored one.. As the test has nothing to do with shared configuration files, we removed those rootcheck txt files. from default agent group to reduce the time required by the test to make the checks. 0.02 1
test_remoted/conftest.py:49: in remove_shared_files
os.mkdir(target_dir)
E FileExistsError: [Errno 17] File exists: '/Library/Ossec/etc/default.backup'
-----------------------------Captured stdout setup------------------------------
Fri Jun 23 12:07:20 UTC 2023
Error 2023-06-23 12:08:24.089786 test_remoted/test_agent_communication/test_shared_configuration.py::test_push_shared_config[TCP,UDP]::setup description: Check if the manager pushes shared configuration to agents as expected.. For this purpose, the test will create an agent for each protocol within the module test cases. Then,. it will try to send the shared configuration to the agent and then, check if the configuration is. completely pushed.. For example, if Wazuh Manager sends new shared files from group shared folder when the merged.mg. checksum is received from an agent is different than the stored one.. As the test has nothing to do with shared configuration files, we removed those rootcheck txt files. from default agent group to reduce the time required by the test to make the checks. 0.04 1
test_remoted/conftest.py:49: in remove_shared_files
os.mkdir(target_dir)
E FileExistsError: [Errno 17] File exists: '/Library/Ossec/etc/default.backup'
-----------------------------Captured stdout setup------------------------------
Fri Jun 23 12:07:20 UTC 2023
----------------------------Captured stdout teardown----------------------------
Fri Jun 23 12:07:20 UTC 2023
Error 2023-06-23 12:08:24.090003 test_remoted/test_manager_messages/test_manager_ack.py::test_manager_ack[TCP]::setup description: Check if the manager sends the ACK message after receiving. the start-up message from the agent. 0.02 1
test_remoted/conftest.py:26: in restart_remoted
control_service('start', daemon=DAEMON_NAME)
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/services.py:143: in control_service
subprocess.check_call(start_process)
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:342: in check_call
retcode = call(*popenargs, **kwargs)
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:323: in call
with Popen(*popenargs, **kwargs) as p:
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:775: in __init__
restore_signals, start_new_session)
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:1522: in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
E FileNotFoundError: [Errno 2] No such file or directory: '/Library/Ossec/bin/wazuh-remoted': '/Library/Ossec/bin/wazuh-remoted'
Error 2023-06-23 12:08:24.090200 test_remoted/test_manager_messages/test_manager_ack.py::test_manager_ack[UDP]::setup description: Check if the manager sends the ACK message after receiving. the start-up message from the agent. 0.03 1
test_remoted/conftest.py:26: in restart_remoted
control_service('start', daemon=DAEMON_NAME)
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/services.py:143: in control_service
subprocess.check_call(start_process)
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:342: in check_call
retcode = call(*popenargs, **kwargs)
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:323: in call
with Popen(*popenargs, **kwargs) as p:
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:775: in __init__
restore_signals, start_new_session)
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:1522: in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
E FileNotFoundError: [Errno 2] No such file or directory: '/Library/Ossec/bin/wazuh-remoted': '/Library/Ossec/bin/wazuh-remoted'
-----------------------------Captured stdout setup------------------------------
Fri Jun 23 12:07:20 UTC 2023
Error 2023-06-23 12:08:24.090392 test_remoted/test_manager_messages/test_manager_ack.py::test_manager_ack[TCP,UDP]::setup description: Check if the manager sends the ACK message after receiving. the start-up message from the agent. 0.04 1
test_remoted/conftest.py:26: in restart_remoted
control_service('start', daemon=DAEMON_NAME)
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/services.py:143: in control_service
subprocess.check_call(start_process)
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:342: in check_call
retcode = call(*popenargs, **kwargs)
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:323: in call
with Popen(*popenargs, **kwargs) as p:
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:775: in __init__
restore_signals, start_new_session)
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:1522: in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
E FileNotFoundError: [Errno 2] No such file or directory: '/Library/Ossec/bin/wazuh-remoted': '/Library/Ossec/bin/wazuh-remoted'
-----------------------------Captured stdout setup------------------------------
Fri Jun 23 12:07:20 UTC 2023
Error 2023-06-23 12:08:24.090592 test_remoted/test_manager_messages/test_manager_ack.py::test_manager_ack[UDP,TCP]::setup description: Check if the manager sends the ACK message after receiving. the start-up message from the agent. 0.05 1
test_remoted/conftest.py:26: in restart_remoted
control_service('start', daemon=DAEMON_NAME)
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/services.py:143: in control_service
subprocess.check_call(start_process)
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:342: in check_call
retcode = call(*popenargs, **kwargs)
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:323: in call
with Popen(*popenargs, **kwargs) as p:
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:775: in __init__
restore_signals, start_new_session)
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:1522: in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
E FileNotFoundError: [Errno 2] No such file or directory: '/Library/Ossec/bin/wazuh-remoted': '/Library/Ossec/bin/wazuh-remoted'
-----------------------------Captured stdout setup------------------------------
Fri Jun 23 12:07:20 UTC 2023
----------------------------Captured stdout teardown----------------------------
Fri Jun 23 12:07:20 UTC 2023
Error 2023-06-23 12:08:24.090836 test_remoted/test_multi_groups/test_merged_mg_file_content.py::test_merged_mg_file_content[check_that_the_new_file_is_added]::setup description: Check the content of the merged.mg file that wazuh-remoted compiles for multi-groups. 0.01 filterwarnings
test_remoted/test_multi_groups/test_merged_mg_file_content.py:92: in restart_remoted
control_service('restart', daemon=REMOTE_DAEMON)
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/services.py:111: in control_service
control_service('start', daemon=daemon)
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/services.py:143: in control_service
subprocess.check_call(start_process)
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:342: in check_call
retcode = call(*popenargs, **kwargs)
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:323: in call
with Popen(*popenargs, **kwargs) as p:
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:775: in __init__
restore_signals, start_new_session)
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:1522: in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
E FileNotFoundError: [Errno 2] No such file or directory: '/Library/Ossec/bin/wazuh-remoted': '/Library/Ossec/bin/wazuh-remoted'
-----------------------------Captured stderr setup------------------------------
2023-06-23 05:07:20,009 - wazuh_testing - DEBUG - Set local_internal_option to {'remoted.shared_reload': '1'}
-------------------------------Captured log setup-------------------------------
DEBUG wazuh_testing:conftest.py:624 Set local_internal_option to {'remoted.shared_reload': '1'}
Error 2023-06-23 12:08:24.090954 test_remoted/test_multi_groups/test_merged_mg_file_content.py::test_merged_mg_file_content[check_that_the_old_file_is_deleted]::setup description: Check the content of the merged.mg file that wazuh-remoted compiles for multi-groups. 0.00 filterwarnings
test_remoted/test_multi_groups/test_merged_mg_file_content.py:92: in restart_remoted
control_service('restart', daemon=REMOTE_DAEMON)
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/services.py:111: in control_service
control_service('start', daemon=daemon)
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/services.py:143: in control_service
subprocess.check_call(start_process)
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:342: in check_call
retcode = call(*popenargs, **kwargs)
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:323: in call
with Popen(*popenargs, **kwargs) as p:
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:775: in __init__
restore_signals, start_new_session)
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:1522: in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
E FileNotFoundError: [Errno 2] No such file or directory: '/Library/Ossec/bin/wazuh-remoted': '/Library/Ossec/bin/wazuh-remoted'
----------------------------Captured stderr teardown----------------------------
2023-06-23 05:07:20,167 - wazuh_testing - DEBUG - Restore local_internal_option to {'syscheck.debug': '2\n', 'agent.debug': '2\n', 'monitord.rotate_log': '0\n', 'analysisd.debug': '2\n', 'wazuh_modules.debug': '2\n', 'wazuh_database.interval': '1\n', 'wazuh_db.commit_time': '2\n', 'wazuh_db.commit_time_max': '3\n', 'remoted.debug': '2'}
-----------------------------Captured log teardown------------------------------
DEBUG wazuh_testing:conftest.py:629 Restore local_internal_option to {'syscheck.debug': '2\n', 'agent.debug': '2\n', 'monitord.rotate_log': '0\n', 'analysisd.debug': '2\n', 'wazuh_modules.debug': '2\n', 'wazuh_database.interval': '1\n', 'wazuh_db.commit_time': '2\n', 'wazuh_db.commit_time_max': '3\n', 'remoted.debug': '2'}
Error 2023-06-23 12:08:24.090954 test_remoted/test_socket_communication/test_ping_pong_message.py::test_ping_pong_message[UDP_1514]::setup description: Check if 'wazuh-remoted' sends the #pong message 0.01 0
test_remoted/conftest.py:26: in restart_remoted
control_service('start', daemon=DAEMON_NAME)
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/services.py:143: in control_service
subprocess.check_call(start_process)
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:342: in check_call
retcode = call(*popenargs, **kwargs)
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:323: in call
with Popen(*popenargs, **kwargs) as p:
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:775: in __init__
restore_signals, start_new_session)
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:1522: in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
E FileNotFoundError: [Errno 2] No such file or directory: '/Library/Ossec/bin/wazuh-remoted': '/Library/Ossec/bin/wazuh-remoted'
Error 2023-06-23 12:08:24.090954 test_remoted/test_socket_communication/test_ping_pong_message.py::test_ping_pong_message[UDP_56000]::setup description: Check if 'wazuh-remoted' sends the #pong message 0.03 0
test_remoted/conftest.py:26: in restart_remoted
control_service('start', daemon=DAEMON_NAME)
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/services.py:143: in control_service
subprocess.check_call(start_process)
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:342: in check_call
retcode = call(*popenargs, **kwargs)
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:323: in call
with Popen(*popenargs, **kwargs) as p:
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:775: in __init__
restore_signals, start_new_session)
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:1522: in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
E FileNotFoundError: [Errno 2] No such file or directory: '/Library/Ossec/bin/wazuh-remoted': '/Library/Ossec/bin/wazuh-remoted'
-----------------------------Captured stdout setup------------------------------
Fri Jun 23 12:07:20 UTC 2023
Error 2023-06-23 12:08:24.090954 test_remoted/test_socket_communication/test_ping_pong_message.py::test_ping_pong_message[TCP_1514]::setup description: Check if 'wazuh-remoted' sends the #pong message 0.03 0
test_remoted/conftest.py:26: in restart_remoted
control_service('start', daemon=DAEMON_NAME)
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/services.py:143: in control_service
subprocess.check_call(start_process)
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:342: in check_call
retcode = call(*popenargs, **kwargs)
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:323: in call
with Popen(*popenargs, **kwargs) as p:
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:775: in __init__
restore_signals, start_new_session)
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:1522: in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
E FileNotFoundError: [Errno 2] No such file or directory: '/Library/Ossec/bin/wazuh-remoted': '/Library/Ossec/bin/wazuh-remoted'
-----------------------------Captured stdout setup------------------------------
Fri Jun 23 12:07:20 UTC 2023
Error 2023-06-23 12:08:24.090954 test_remoted/test_socket_communication/test_ping_pong_message.py::test_ping_pong_message[TCP_56000]::setup description: Check if 'wazuh-remoted' sends the #pong message 0.03 0
test_remoted/conftest.py:26: in restart_remoted
control_service('start', daemon=DAEMON_NAME)
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/services.py:143: in control_service
subprocess.check_call(start_process)
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:342: in check_call
retcode = call(*popenargs, **kwargs)
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:323: in call
with Popen(*popenargs, **kwargs) as p:
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:775: in __init__
restore_signals, start_new_session)
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:1522: in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
E FileNotFoundError: [Errno 2] No such file or directory: '/Library/Ossec/bin/wazuh-remoted': '/Library/Ossec/bin/wazuh-remoted'
-----------------------------Captured stdout setup------------------------------
Fri Jun 23 12:07:20 UTC 2023
Error 2023-06-23 12:08:24.092165 test_remoted/test_socket_communication/test_ping_pong_message.py::test_ping_pong_message[UDP,TCP_1514]::setup description: Check if 'wazuh-remoted' sends the #pong message 0.03 0
test_remoted/conftest.py:26: in restart_remoted
control_service('start', daemon=DAEMON_NAME)
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/services.py:143: in control_service
subprocess.check_call(start_process)
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:342: in check_call
retcode = call(*popenargs, **kwargs)
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:323: in call
with Popen(*popenargs, **kwargs) as p:
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:775: in __init__
restore_signals, start_new_session)
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:1522: in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
E FileNotFoundError: [Errno 2] No such file or directory: '/Library/Ossec/bin/wazuh-remoted': '/Library/Ossec/bin/wazuh-remoted'
-----------------------------Captured stdout setup------------------------------
Fri Jun 23 12:07:20 UTC 2023
Error 2023-06-23 12:08:24.092372 test_remoted/test_socket_communication/test_ping_pong_message.py::test_ping_pong_message[UDP,TCP_56000]::setup description: Check if 'wazuh-remoted' sends the #pong message 0.03 0
test_remoted/conftest.py:26: in restart_remoted
control_service('start', daemon=DAEMON_NAME)
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/services.py:143: in control_service
subprocess.check_call(start_process)
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:342: in check_call
retcode = call(*popenargs, **kwargs)
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:323: in call
with Popen(*popenargs, **kwargs) as p:
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:775: in __init__
restore_signals, start_new_session)
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:1522: in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
E FileNotFoundError: [Errno 2] No such file or directory: '/Library/Ossec/bin/wazuh-remoted': '/Library/Ossec/bin/wazuh-remoted'
-----------------------------Captured stdout setup------------------------------
Fri Jun 23 12:07:20 UTC 2023
Error 2023-06-23 12:08:24.092575 test_remoted/test_socket_communication/test_ping_pong_message.py::test_ping_pong_message[TCP,UDP_1514]::setup description: Check if 'wazuh-remoted' sends the #pong message 0.03 0
test_remoted/conftest.py:26: in restart_remoted
control_service('start', daemon=DAEMON_NAME)
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/services.py:143: in control_service
subprocess.check_call(start_process)
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:342: in check_call
retcode = call(*popenargs, **kwargs)
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:323: in call
with Popen(*popenargs, **kwargs) as p:
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:775: in __init__
restore_signals, start_new_session)
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:1522: in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
E FileNotFoundError: [Errno 2] No such file or directory: '/Library/Ossec/bin/wazuh-remoted': '/Library/Ossec/bin/wazuh-remoted'
-----------------------------Captured stdout setup------------------------------
Fri Jun 23 12:07:20 UTC 2023
Error 2023-06-23 12:08:24.093184 test_remoted/test_socket_communication/test_ping_pong_message.py::test_ping_pong_message[TCP,UDP_56000]::setup description: Check if 'wazuh-remoted' sends the #pong message 0.03 0
test_remoted/conftest.py:26: in restart_remoted
control_service('start', daemon=DAEMON_NAME)
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/services.py:143: in control_service
subprocess.check_call(start_process)
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:342: in check_call
retcode = call(*popenargs, **kwargs)
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:323: in call
with Popen(*popenargs, **kwargs) as p:
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:775: in __init__
restore_signals, start_new_session)
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:1522: in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
E FileNotFoundError: [Errno 2] No such file or directory: '/Library/Ossec/bin/wazuh-remoted': '/Library/Ossec/bin/wazuh-remoted'
-----------------------------Captured stdout setup------------------------------
Fri Jun 23 12:07:20 UTC 2023
Error 2023-06-23 12:08:24.093401 test_remoted/test_socket_communication/test_ping_pong_message.py::test_ping_pong_message[TCP,TCP_1514]::setup description: Check if 'wazuh-remoted' sends the #pong message 0.03 0
test_remoted/conftest.py:26: in restart_remoted
control_service('start', daemon=DAEMON_NAME)
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/services.py:143: in control_service
subprocess.check_call(start_process)
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:342: in check_call
retcode = call(*popenargs, **kwargs)
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:323: in call
with Popen(*popenargs, **kwargs) as p:
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:775: in __init__
restore_signals, start_new_session)
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:1522: in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
E FileNotFoundError: [Errno 2] No such file or directory: '/Library/Ossec/bin/wazuh-remoted': '/Library/Ossec/bin/wazuh-remoted'
-----------------------------Captured stdout setup------------------------------
Fri Jun 23 12:07:20 UTC 2023
Error 2023-06-23 12:08:24.093598 test_remoted/test_socket_communication/test_ping_pong_message.py::test_ping_pong_message[UDP,UDP_1514]::setup description: Check if 'wazuh-remoted' sends the #pong message 0.03 0
test_remoted/conftest.py:26: in restart_remoted
control_service('start', daemon=DAEMON_NAME)
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/services.py:143: in control_service
subprocess.check_call(start_process)
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:342: in check_call
retcode = call(*popenargs, **kwargs)
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:323: in call
with Popen(*popenargs, **kwargs) as p:
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:775: in __init__
restore_signals, start_new_session)
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:1522: in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
E FileNotFoundError: [Errno 2] No such file or directory: '/Library/Ossec/bin/wazuh-remoted': '/Library/Ossec/bin/wazuh-remoted'
-----------------------------Captured stdout setup------------------------------
Fri Jun 23 12:07:20 UTC 2023
Error 2023-06-23 12:08:24.093793 test_remoted/test_socket_communication/test_ping_pong_message.py::test_ping_pong_message[TCP,TCP_56000]::setup description: Check if 'wazuh-remoted' sends the #pong message 0.03 0
test_remoted/conftest.py:26: in restart_remoted
control_service('start', daemon=DAEMON_NAME)
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/services.py:143: in control_service
subprocess.check_call(start_process)
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:342: in check_call
retcode = call(*popenargs, **kwargs)
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:323: in call
with Popen(*popenargs, **kwargs) as p:
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:775: in __init__
restore_signals, start_new_session)
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:1522: in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
E FileNotFoundError: [Errno 2] No such file or directory: '/Library/Ossec/bin/wazuh-remoted': '/Library/Ossec/bin/wazuh-remoted'
-----------------------------Captured stdout setup------------------------------
Fri Jun 23 12:07:20 UTC 2023
Error 2023-06-23 12:08:24.093983 test_remoted/test_socket_communication/test_ping_pong_message.py::test_ping_pong_message[UDP,UDP_56000]::setup description: Check if 'wazuh-remoted' sends the #pong message 0.03 0
test_remoted/conftest.py:26: in restart_remoted
control_service('start', daemon=DAEMON_NAME)
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/services.py:143: in control_service
subprocess.check_call(start_process)
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:342: in check_call
retcode = call(*popenargs, **kwargs)
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:323: in call
with Popen(*popenargs, **kwargs) as p:
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:775: in __init__
restore_signals, start_new_session)
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:1522: in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
E FileNotFoundError: [Errno 2] No such file or directory: '/Library/Ossec/bin/wazuh-remoted': '/Library/Ossec/bin/wazuh-remoted'
-----------------------------Captured stdout setup------------------------------
Fri Jun 23 12:07:20 UTC 2023
Error 2023-06-23 12:08:24.094197 test_remoted/test_socket_communication/test_ping_pong_message.py::test_ping_pong_message[udp_1514]::setup description: Check if 'wazuh-remoted' sends the #pong message 0.03 0
test_remoted/conftest.py:26: in restart_remoted
control_service('start', daemon=DAEMON_NAME)
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/services.py:143: in control_service
subprocess.check_call(start_process)
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:342: in check_call
retcode = call(*popenargs, **kwargs)
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:323: in call
with Popen(*popenargs, **kwargs) as p:
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:775: in __init__
restore_signals, start_new_session)
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:1522: in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
E FileNotFoundError: [Errno 2] No such file or directory: '/Library/Ossec/bin/wazuh-remoted': '/Library/Ossec/bin/wazuh-remoted'
-----------------------------Captured stdout setup------------------------------
Fri Jun 23 12:07:20 UTC 2023
Error 2023-06-23 12:08:24.094389 test_remoted/test_socket_communication/test_ping_pong_message.py::test_ping_pong_message[udp_56000]::setup description: Check if 'wazuh-remoted' sends the #pong message 0.03 0
test_remoted/conftest.py:26: in restart_remoted
control_service('start', daemon=DAEMON_NAME)
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/services.py:143: in control_service
subprocess.check_call(start_process)
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:342: in check_call
retcode = call(*popenargs, **kwargs)
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:323: in call
with Popen(*popenargs, **kwargs) as p:
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:775: in __init__
restore_signals, start_new_session)
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:1522: in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
E FileNotFoundError: [Errno 2] No such file or directory: '/Library/Ossec/bin/wazuh-remoted': '/Library/Ossec/bin/wazuh-remoted'
-----------------------------Captured stdout setup------------------------------
Fri Jun 23 12:07:20 UTC 2023
Error 2023-06-23 12:08:24.094588 test_remoted/test_socket_communication/test_ping_pong_message.py::test_ping_pong_message[tcp_1514]::setup description: Check if 'wazuh-remoted' sends the #pong message 0.04 0
test_remoted/conftest.py:26: in restart_remoted
control_service('start', daemon=DAEMON_NAME)
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/services.py:143: in control_service
subprocess.check_call(start_process)
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:342: in check_call
retcode = call(*popenargs, **kwargs)
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:323: in call
with Popen(*popenargs, **kwargs) as p:
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:775: in __init__
restore_signals, start_new_session)
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:1522: in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
E FileNotFoundError: [Errno 2] No such file or directory: '/Library/Ossec/bin/wazuh-remoted': '/Library/Ossec/bin/wazuh-remoted'
-----------------------------Captured stdout setup------------------------------
Fri Jun 23 12:07:20 UTC 2023
Error 2023-06-23 12:08:24.094779 test_remoted/test_socket_communication/test_ping_pong_message.py::test_ping_pong_message[tcp_56000]::setup description: Check if 'wazuh-remoted' sends the #pong message 0.03 0
test_remoted/conftest.py:26: in restart_remoted
control_service('start', daemon=DAEMON_NAME)
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/services.py:143: in control_service
subprocess.check_call(start_process)
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:342: in check_call
retcode = call(*popenargs, **kwargs)
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:323: in call
with Popen(*popenargs, **kwargs) as p:
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:775: in __init__
restore_signals, start_new_session)
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:1522: in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
E FileNotFoundError: [Errno 2] No such file or directory: '/Library/Ossec/bin/wazuh-remoted': '/Library/Ossec/bin/wazuh-remoted'
-----------------------------Captured stdout setup------------------------------
Fri Jun 23 12:07:20 UTC 2023
Error 2023-06-23 12:08:24.094979 test_remoted/test_socket_communication/test_ping_pong_message.py::test_ping_pong_message[udp,tcp_1514]::setup description: Check if 'wazuh-remoted' sends the #pong message 0.03 0
test_remoted/conftest.py:26: in restart_remoted
control_service('start', daemon=DAEMON_NAME)
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/services.py:143: in control_service
subprocess.check_call(start_process)
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:342: in check_call
retcode = call(*popenargs, **kwargs)
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:323: in call
with Popen(*popenargs, **kwargs) as p:
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:775: in __init__
restore_signals, start_new_session)
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:1522: in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
E FileNotFoundError: [Errno 2] No such file or directory: '/Library/Ossec/bin/wazuh-remoted': '/Library/Ossec/bin/wazuh-remoted'
-----------------------------Captured stdout setup------------------------------
Fri Jun 23 12:07:20 UTC 2023
Error 2023-06-23 12:08:24.095202 test_remoted/test_socket_communication/test_ping_pong_message.py::test_ping_pong_message[udp,tcp_56000]::setup description: Check if 'wazuh-remoted' sends the #pong message 0.03 0
test_remoted/conftest.py:26: in restart_remoted
control_service('start', daemon=DAEMON_NAME)
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/services.py:143: in control_service
subprocess.check_call(start_process)
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:342: in check_call
retcode = call(*popenargs, **kwargs)
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:323: in call
with Popen(*popenargs, **kwargs) as p:
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:775: in __init__
restore_signals, start_new_session)
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:1522: in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
E FileNotFoundError: [Errno 2] No such file or directory: '/Library/Ossec/bin/wazuh-remoted': '/Library/Ossec/bin/wazuh-remoted'
-----------------------------Captured stdout setup------------------------------
Fri Jun 23 12:07:20 UTC 2023
Error 2023-06-23 12:08:24.095392 test_remoted/test_socket_communication/test_ping_pong_message.py::test_ping_pong_message[tcp,udp_1514]::setup description: Check if 'wazuh-remoted' sends the #pong message 0.03 0
test_remoted/conftest.py:26: in restart_remoted
control_service('start', daemon=DAEMON_NAME)
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/services.py:143: in control_service
subprocess.check_call(start_process)
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:342: in check_call
retcode = call(*popenargs, **kwargs)
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:323: in call
with Popen(*popenargs, **kwargs) as p:
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:775: in __init__
restore_signals, start_new_session)
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:1522: in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
E FileNotFoundError: [Errno 2] No such file or directory: '/Library/Ossec/bin/wazuh-remoted': '/Library/Ossec/bin/wazuh-remoted'
-----------------------------Captured stdout setup------------------------------
Fri Jun 23 12:07:20 UTC 2023
Error 2023-06-23 12:08:24.095594 test_remoted/test_socket_communication/test_ping_pong_message.py::test_ping_pong_message[tcp,udp_56000]::setup description: Check if 'wazuh-remoted' sends the #pong message 0.03 0
test_remoted/conftest.py:26: in restart_remoted
control_service('start', daemon=DAEMON_NAME)
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/services.py:143: in control_service
subprocess.check_call(start_process)
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:342: in check_call
retcode = call(*popenargs, **kwargs)
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:323: in call
with Popen(*popenargs, **kwargs) as p:
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:775: in __init__
restore_signals, start_new_session)
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:1522: in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
E FileNotFoundError: [Errno 2] No such file or directory: '/Library/Ossec/bin/wazuh-remoted': '/Library/Ossec/bin/wazuh-remoted'
-----------------------------Captured stdout setup------------------------------
Fri Jun 23 12:07:20 UTC 2023
Error 2023-06-23 12:08:24.095813 test_remoted/test_socket_communication/test_ping_pong_message.py::test_ping_pong_message[tcp,tcp_1514]::setup description: Check if 'wazuh-remoted' sends the #pong message 0.03 0
test_remoted/conftest.py:26: in restart_remoted
control_service('start', daemon=DAEMON_NAME)
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/services.py:143: in control_service
subprocess.check_call(start_process)
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:342: in check_call
retcode = call(*popenargs, **kwargs)
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:323: in call
with Popen(*popenargs, **kwargs) as p:
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:775: in __init__
restore_signals, start_new_session)
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:1522: in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
E FileNotFoundError: [Errno 2] No such file or directory: '/Library/Ossec/bin/wazuh-remoted': '/Library/Ossec/bin/wazuh-remoted'
-----------------------------Captured stdout setup------------------------------
Fri Jun 23 12:07:20 UTC 2023
Error 2023-06-23 12:08:24.096052 test_remoted/test_socket_communication/test_ping_pong_message.py::test_ping_pong_message[udp,udp_1514]::setup description: Check if 'wazuh-remoted' sends the #pong message 0.03 0
test_remoted/conftest.py:26: in restart_remoted
control_service('start', daemon=DAEMON_NAME)
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/services.py:143: in control_service
subprocess.check_call(start_process)
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:342: in check_call
retcode = call(*popenargs, **kwargs)
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:323: in call
with Popen(*popenargs, **kwargs) as p:
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:775: in __init__
restore_signals, start_new_session)
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:1522: in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
E FileNotFoundError: [Errno 2] No such file or directory: '/Library/Ossec/bin/wazuh-remoted': '/Library/Ossec/bin/wazuh-remoted'
-----------------------------Captured stdout setup------------------------------
Fri Jun 23 12:07:20 UTC 2023
Error 2023-06-23 12:08:24.096294 test_remoted/test_socket_communication/test_ping_pong_message.py::test_ping_pong_message[tcp,tcp_56000]::setup description: Check if 'wazuh-remoted' sends the #pong message 0.03 0
test_remoted/conftest.py:26: in restart_remoted
control_service('start', daemon=DAEMON_NAME)
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/services.py:143: in control_service
subprocess.check_call(start_process)
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:342: in check_call
retcode = call(*popenargs, **kwargs)
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:323: in call
with Popen(*popenargs, **kwargs) as p:
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:775: in __init__
restore_signals, start_new_session)
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:1522: in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
E FileNotFoundError: [Errno 2] No such file or directory: '/Library/Ossec/bin/wazuh-remoted': '/Library/Ossec/bin/wazuh-remoted'
-----------------------------Captured stdout setup------------------------------
Fri Jun 23 12:07:20 UTC 2023
Error 2023-06-23 12:08:24.096501 test_remoted/test_socket_communication/test_ping_pong_message.py::test_ping_pong_message[udp,udp_56000]::setup description: Check if 'wazuh-remoted' sends the #pong message 0.05 0
test_remoted/conftest.py:26: in restart_remoted
control_service('start', daemon=DAEMON_NAME)
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/services.py:143: in control_service
subprocess.check_call(start_process)
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:342: in check_call
retcode = call(*popenargs, **kwargs)
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:323: in call
with Popen(*popenargs, **kwargs) as p:
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:775: in __init__
restore_signals, start_new_session)
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py:1522: in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
E FileNotFoundError: [Errno 2] No such file or directory: '/Library/Ossec/bin/wazuh-remoted': '/Library/Ossec/bin/wazuh-remoted'
-----------------------------Captured stdout setup------------------------------
Fri Jun 23 12:07:20 UTC 2023
----------------------------Captured stdout teardown----------------------------
Fri Jun 23 12:07:20 UTC 2023
Error 2023-06-23 12:08:24.188714 test_remoted/test_socket_communication/test_syslog_message_parser.py::test_syslog_message_parser[Syslog_message_ipv6]::setup description: Check if 'wazuh-remoted' can receive syslog messages through the socket. 0.00 0
conftest.py:1285: in truncate_event_logs
truncate_file(log_file)
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/file.py:79: in truncate_file
with open(file_path, 'w'):
E FileNotFoundError: [Errno 2] No such file or directory: '/Library/Ossec/logs/archives/archives.log'
Error 2023-06-23 12:08:24.188881 test_remoted/test_socket_communication/test_syslog_message_parser.py::test_syslog_message_parser[Syslog_message_ipv4]::setup description: Check if 'wazuh-remoted' can receive syslog messages through the socket. 0.00 0
conftest.py:1285: in truncate_event_logs
truncate_file(log_file)
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/file.py:79: in truncate_file
with open(file_path, 'w'):
E FileNotFoundError: [Errno 2] No such file or directory: '/Library/Ossec/logs/archives/archives.log'
Failed 2023-06-23 12:08:24.066927 test_remoted/test_agent_communication/test_agent_pending_status.py::test_protocols_communication[TCP_1514] Validate agent status after sending only the start-up 9.19 0

Test function details

Extended Summary

Parameters

test_remoted/test_agent_communication/test_agent_pending_status.py:131: in test_protocols_communication
check_active_agents(num_agents=2, manager_port=manager_port, protocol=protocol)
test_remoted/test_agent_communication/test_agent_pending_status.py:76: in check_active_agents
agents_version=[agent_version]*num_agents, agents_os=[agent_os]*num_agents)
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/agent_simulator.py:1685: in create_agents
os=agent_os, version=agent_version, disable_all_modules=disable_all_modules))
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/agent_simulator.py:188: in __init__
self.setup(disable_all_modules=disable_all_modules)
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/agent_simulator.py:201: in setup
self.register()
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/agent_simulator.py:281: in register
self._register_helper()
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/agent_simulator.py:245: in _register_helper
ssl_socket.connect((self.registration_address, 1515))
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/ssl.py:1150: in connect
self._real_connect(addr, False)
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/ssl.py:1137: in _real_connect
super().connect(addr)
E ConnectionRefusedError: [Errno 61] Connection refused
-----------------------------Captured stdout setup------------------------------
Killing wazuh-modulesd... Killing wazuh-logcollector... Killing wazuh-syscheckd... Killing wazuh-agentd... Killing wazuh-execd... Wazuh v4.4.4 Stopped Starting Wazuh v4.4.4... Started wazuh-execd... Started wazuh-agentd... Started wazuh-syscheckd... Started wazuh-logcollector... Started wazuh-modulesd... Completed.
-----------------------------Captured stderr setup------------------------------
2023/06/23 05:05:38 wazuh-agentd[4835] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/06/23 05:05:38 wazuh-agentd[4835] main.c:139 at main(): DEBUG: Wazuh home directory: /Library/Ossec 2023/06/23 05:05:38 wazuh-agentd[4835] main.c:141 at main(): DEBUG: Started (pid: 4835). 2023/06/23 05:05:38 wazuh-agentd[4835] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:05:38 wazuh-agentd[4835] agent_op.c:238 at os_read_agent_profile(): DEBUG: os_read_agent_profile() = [centos, centos7, centos7.4] 2023/06/23 05:05:38 wazuh-agentd[4835] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:05:38 wazuh-agentd[4835] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:05:38 wazuh-agentd[4835] agent_op.c:238 at os_read_agent_profile(): DEBUG: os_read_agent_profile() = [centos, centos7, centos7.4] 2023/06/23 05:05:38 wazuh-agentd[4835] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:05:38 wazuh-syscheckd[4836] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/06/23 05:05:38 wazuh-syscheckd[4836] config.c:33 at Read_Syscheck_Config(): DEBUG: (6287): Reading configuration file: 'etc/ossec.conf' 2023/06/23 05:05:38 wazuh-syscheckd[4836] syscheck-config.c:2421 at process_option_regex(): DEBUG: Found ignore regex node .log$|.swp$ 2023/06/23 05:05:38 wazuh-syscheckd[4836] syscheck-config.c:2428 at process_option_regex(): DEBUG: Found ignore regex node .log$|.swp$ OK? 2023/06/23 05:05:38 wazuh-syscheckd[4836] syscheck-config.c:2429 at process_option_regex(): DEBUG: Found ignore regex size 0 2023/06/23 05:05:38 wazuh-syscheckd[4836] config.c:41 at Read_Syscheck_Config(): DEBUG: (6208): Reading Client Configuration [etc/ossec.conf] 2023/06/23 05:05:38 wazuh-syscheckd[4836] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:05:38 wazuh-syscheckd[4836] agent_op.c:238 at os_read_agent_profile(): DEBUG: os_read_agent_profile() = [centos, centos7, centos7.4] 2023/06/23 05:05:38 wazuh-syscheckd[4836] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:05:38 wazuh-syscheckd[4836] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:05:38 wazuh-syscheckd[4836] agent_op.c:238 at os_read_agent_profile(): DEBUG: os_read_agent_profile() = [centos, centos7, centos7.4] 2023/06/23 05:05:38 wazuh-syscheckd[4836] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:05:38 wazuh-modulesd[4838] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/06/23 05:05:38 wazuh-modulesd[4838] main.c:77 at main(): DEBUG: Wazuh home directory: /Library/Ossec 2023/06/23 05:05:38 wazuh-modulesd[4838] wmodules-osquery-monitor.c:78 at wm_osquery_monitor_read(): DEBUG: Logpath read: /var/log/osquery/osqueryd.results.log 2023/06/23 05:05:38 wazuh-modulesd[4838] wmodules-osquery-monitor.c:84 at wm_osquery_monitor_read(): DEBUG: configPath read: /etc/osquery/osquery.conf 2023/06/23 05:05:38 wazuh-modulesd[4838] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:05:38 wazuh-modulesd[4838] agent_op.c:238 at os_read_agent_profile(): DEBUG: os_read_agent_profile() = [centos, centos7, centos7.4] 2023/06/23 05:05:38 wazuh-modulesd[4838] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:05:41 wazuh-agentd[4919] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/06/23 05:05:41 wazuh-agentd[4919] main.c:139 at main(): DEBUG: Wazuh home directory: /Library/Ossec 2023/06/23 05:05:41 wazuh-agentd[4919] main.c:141 at main(): DEBUG: Started (pid: 4919). 2023/06/23 05:05:41 wazuh-agentd[4919] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:05:41 wazuh-agentd[4919] agent_op.c:238 at os_read_agent_profile(): DEBUG: os_read_agent_profile() = [centos, centos7, centos7.4] 2023/06/23 05:05:41 wazuh-agentd[4919] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:05:41 wazuh-agentd[4919] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:05:41 wazuh-agentd[4919] agent_op.c:238 at os_read_agent_profile(): DEBUG: os_read_agent_profile() = [centos, centos7, centos7.4] 2023/06/23 05:05:41 wazuh-agentd[4919] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:05:42 wazuh-syscheckd[4937] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/06/23 05:05:42 wazuh-syscheckd[4937] config.c:33 at Read_Syscheck_Config(): DEBUG: (6287): Reading configuration file: 'etc/ossec.conf' 2023/06/23 05:05:42 wazuh-syscheckd[4937] syscheck-config.c:2421 at process_option_regex(): DEBUG: Found ignore regex node .log$|.swp$ 2023/06/23 05:05:42 wazuh-syscheckd[4937] syscheck-config.c:2428 at process_option_regex(): DEBUG: Found ignore regex node .log$|.swp$ OK? 2023/06/23 05:05:42 wazuh-syscheckd[4937] syscheck-config.c:2429 at process_option_regex(): DEBUG: Found ignore regex size 0 2023/06/23 05:05:42 wazuh-syscheckd[4937] config.c:41 at Read_Syscheck_Config(): DEBUG: (6208): Reading Client Configuration [etc/ossec.conf] 2023/06/23 05:05:42 wazuh-syscheckd[4937] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:05:42 wazuh-syscheckd[4937] agent_op.c:238 at os_read_agent_profile(): DEBUG: os_read_agent_profile() = [centos, centos7, centos7.4] 2023/06/23 05:05:42 wazuh-syscheckd[4937] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:05:42 wazuh-syscheckd[4937] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:05:42 wazuh-syscheckd[4937] agent_op.c:238 at os_read_agent_profile(): DEBUG: os_read_agent_profile() = [centos, centos7, centos7.4] 2023/06/23 05:05:42 wazuh-syscheckd[4937] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:05:42 rootcheck[4937] rootcheck.c:202 at rootcheck_init(): INFO: Rootcheck disabled. 2023/06/23 05:05:44 wazuh-modulesd[4959] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/06/23 05:05:44 wazuh-modulesd[4959] main.c:77 at main(): DEBUG: Wazuh home directory: /Library/Ossec 2023/06/23 05:05:44 wazuh-modulesd[4959] wmodules-osquery-monitor.c:78 at wm_osquery_monitor_read(): DEBUG: Logpath read: /var/log/osquery/osqueryd.results.log 2023/06/23 05:05:44 wazuh-modulesd[4959] wmodules-osquery-monitor.c:84 at wm_osquery_monitor_read(): DEBUG: configPath read: /etc/osquery/osquery.conf 2023/06/23 05:05:44 wazuh-modulesd[4959] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:05:44 wazuh-modulesd[4959] agent_op.c:238 at os_read_agent_profile(): DEBUG: os_read_agent_profile() = [centos, centos7, centos7.4] 2023/06/23 05:05:44 wazuh-modulesd[4959] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes.
Failed 2023-06-23 12:08:24.068564 test_remoted/test_agent_communication/test_agent_pending_status.py::test_protocols_communication[TCP_56000] Validate agent status after sending only the start-up 9.21 0

Test function details

Extended Summary

Parameters

test_remoted/test_agent_communication/test_agent_pending_status.py:131: in test_protocols_communication
check_active_agents(num_agents=2, manager_port=manager_port, protocol=protocol)
test_remoted/test_agent_communication/test_agent_pending_status.py:76: in check_active_agents
agents_version=[agent_version]*num_agents, agents_os=[agent_os]*num_agents)
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/agent_simulator.py:1685: in create_agents
os=agent_os, version=agent_version, disable_all_modules=disable_all_modules))
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/agent_simulator.py:188: in __init__
self.setup(disable_all_modules=disable_all_modules)
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/agent_simulator.py:201: in setup
self.register()
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/agent_simulator.py:281: in register
self._register_helper()
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/agent_simulator.py:245: in _register_helper
ssl_socket.connect((self.registration_address, 1515))
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/ssl.py:1150: in connect
self._real_connect(addr, False)
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/ssl.py:1137: in _real_connect
super().connect(addr)
E ConnectionRefusedError: [Errno 61] Connection refused
-----------------------------Captured stdout setup------------------------------
Fri Jun 23 12:05:47 UTC 2023 Killing wazuh-modulesd... Killing wazuh-logcollector... Killing wazuh-syscheckd... Killing wazuh-agentd... Killing wazuh-execd... Wazuh v4.4.4 Stopped Starting Wazuh v4.4.4... Started wazuh-execd... Started wazuh-agentd... Started wazuh-syscheckd... Started wazuh-logcollector... Started wazuh-modulesd... Completed.
-----------------------------Captured stderr setup------------------------------
2023/06/23 05:05:47 wazuh-agentd[4989] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/06/23 05:05:47 wazuh-agentd[4989] main.c:139 at main(): DEBUG: Wazuh home directory: /Library/Ossec 2023/06/23 05:05:47 wazuh-agentd[4989] main.c:141 at main(): DEBUG: Started (pid: 4989). 2023/06/23 05:05:47 wazuh-agentd[4989] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:05:47 wazuh-agentd[4989] agent_op.c:238 at os_read_agent_profile(): DEBUG: os_read_agent_profile() = [centos, centos7, centos7.4] 2023/06/23 05:05:47 wazuh-agentd[4989] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:05:47 wazuh-agentd[4989] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:05:47 wazuh-agentd[4989] agent_op.c:238 at os_read_agent_profile(): DEBUG: os_read_agent_profile() = [centos, centos7, centos7.4] 2023/06/23 05:05:47 wazuh-agentd[4989] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:05:47 wazuh-syscheckd[4990] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/06/23 05:05:47 wazuh-syscheckd[4990] config.c:33 at Read_Syscheck_Config(): DEBUG: (6287): Reading configuration file: 'etc/ossec.conf' 2023/06/23 05:05:47 wazuh-syscheckd[4990] syscheck-config.c:2421 at process_option_regex(): DEBUG: Found ignore regex node .log$|.swp$ 2023/06/23 05:05:47 wazuh-syscheckd[4990] syscheck-config.c:2428 at process_option_regex(): DEBUG: Found ignore regex node .log$|.swp$ OK? 2023/06/23 05:05:47 wazuh-syscheckd[4990] syscheck-config.c:2429 at process_option_regex(): DEBUG: Found ignore regex size 0 2023/06/23 05:05:47 wazuh-syscheckd[4990] config.c:41 at Read_Syscheck_Config(): DEBUG: (6208): Reading Client Configuration [etc/ossec.conf] 2023/06/23 05:05:47 wazuh-syscheckd[4990] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:05:47 wazuh-syscheckd[4990] agent_op.c:238 at os_read_agent_profile(): DEBUG: os_read_agent_profile() = [centos, centos7, centos7.4] 2023/06/23 05:05:47 wazuh-syscheckd[4990] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:05:47 wazuh-syscheckd[4990] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:05:47 wazuh-syscheckd[4990] agent_op.c:238 at os_read_agent_profile(): DEBUG: os_read_agent_profile() = [centos, centos7, centos7.4] 2023/06/23 05:05:47 wazuh-syscheckd[4990] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:05:47 wazuh-modulesd[4992] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/06/23 05:05:47 wazuh-modulesd[4992] main.c:77 at main(): DEBUG: Wazuh home directory: /Library/Ossec 2023/06/23 05:05:47 wazuh-modulesd[4992] wmodules-osquery-monitor.c:78 at wm_osquery_monitor_read(): DEBUG: Logpath read: /var/log/osquery/osqueryd.results.log 2023/06/23 05:05:47 wazuh-modulesd[4992] wmodules-osquery-monitor.c:84 at wm_osquery_monitor_read(): DEBUG: configPath read: /etc/osquery/osquery.conf 2023/06/23 05:05:47 wazuh-modulesd[4992] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:05:47 wazuh-modulesd[4992] agent_op.c:238 at os_read_agent_profile(): DEBUG: os_read_agent_profile() = [centos, centos7, centos7.4] 2023/06/23 05:05:47 wazuh-modulesd[4992] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:05:49 wazuh-agentd[5081] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/06/23 05:05:49 wazuh-agentd[5081] main.c:139 at main(): DEBUG: Wazuh home directory: /Library/Ossec 2023/06/23 05:05:49 wazuh-agentd[5081] main.c:141 at main(): DEBUG: Started (pid: 5081). 2023/06/23 05:05:49 wazuh-agentd[5081] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:05:49 wazuh-agentd[5081] agent_op.c:238 at os_read_agent_profile(): DEBUG: os_read_agent_profile() = [centos, centos7, centos7.4] 2023/06/23 05:05:49 wazuh-agentd[5081] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:05:49 wazuh-agentd[5081] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:05:49 wazuh-agentd[5081] agent_op.c:238 at os_read_agent_profile(): DEBUG: os_read_agent_profile() = [centos, centos7, centos7.4] 2023/06/23 05:05:49 wazuh-agentd[5081] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:05:51 wazuh-syscheckd[5099] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/06/23 05:05:51 wazuh-syscheckd[5099] config.c:33 at Read_Syscheck_Config(): DEBUG: (6287): Reading configuration file: 'etc/ossec.conf' 2023/06/23 05:05:51 wazuh-syscheckd[5099] syscheck-config.c:2421 at process_option_regex(): DEBUG: Found ignore regex node .log$|.swp$ 2023/06/23 05:05:51 wazuh-syscheckd[5099] syscheck-config.c:2428 at process_option_regex(): DEBUG: Found ignore regex node .log$|.swp$ OK? 2023/06/23 05:05:51 wazuh-syscheckd[5099] syscheck-config.c:2429 at process_option_regex(): DEBUG: Found ignore regex size 0 2023/06/23 05:05:51 wazuh-syscheckd[5099] config.c:41 at Read_Syscheck_Config(): DEBUG: (6208): Reading Client Configuration [etc/ossec.conf] 2023/06/23 05:05:51 wazuh-syscheckd[5099] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:05:51 wazuh-syscheckd[5099] agent_op.c:238 at os_read_agent_profile(): DEBUG: os_read_agent_profile() = [centos, centos7, centos7.4] 2023/06/23 05:05:51 wazuh-syscheckd[5099] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:05:51 wazuh-syscheckd[5099] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:05:51 wazuh-syscheckd[5099] agent_op.c:238 at os_read_agent_profile(): DEBUG: os_read_agent_profile() = [centos, centos7, centos7.4] 2023/06/23 05:05:51 wazuh-syscheckd[5099] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:05:51 rootcheck[5099] rootcheck.c:202 at rootcheck_init(): INFO: Rootcheck disabled. 2023/06/23 05:05:53 wazuh-modulesd[5121] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/06/23 05:05:53 wazuh-modulesd[5121] main.c:77 at main(): DEBUG: Wazuh home directory: /Library/Ossec 2023/06/23 05:05:53 wazuh-modulesd[5121] wmodules-osquery-monitor.c:78 at wm_osquery_monitor_read(): DEBUG: Logpath read: /var/log/osquery/osqueryd.results.log 2023/06/23 05:05:53 wazuh-modulesd[5121] wmodules-osquery-monitor.c:84 at wm_osquery_monitor_read(): DEBUG: configPath read: /etc/osquery/osquery.conf 2023/06/23 05:05:53 wazuh-modulesd[5121] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:05:53 wazuh-modulesd[5121] agent_op.c:238 at os_read_agent_profile(): DEBUG: os_read_agent_profile() = [centos, centos7, centos7.4] 2023/06/23 05:05:53 wazuh-modulesd[5121] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes.
Failed 2023-06-23 12:08:24.069979 test_remoted/test_agent_communication/test_agent_pending_status.py::test_protocols_communication[UDP_1514] Validate agent status after sending only the start-up 9.18 0

Test function details

Extended Summary

Parameters

test_remoted/test_agent_communication/test_agent_pending_status.py:131: in test_protocols_communication
check_active_agents(num_agents=2, manager_port=manager_port, protocol=protocol)
test_remoted/test_agent_communication/test_agent_pending_status.py:76: in check_active_agents
agents_version=[agent_version]*num_agents, agents_os=[agent_os]*num_agents)
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/agent_simulator.py:1685: in create_agents
os=agent_os, version=agent_version, disable_all_modules=disable_all_modules))
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/agent_simulator.py:188: in __init__
self.setup(disable_all_modules=disable_all_modules)
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/agent_simulator.py:201: in setup
self.register()
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/agent_simulator.py:281: in register
self._register_helper()
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/agent_simulator.py:245: in _register_helper
ssl_socket.connect((self.registration_address, 1515))
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/ssl.py:1150: in connect
self._real_connect(addr, False)
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/ssl.py:1137: in _real_connect
super().connect(addr)
E ConnectionRefusedError: [Errno 61] Connection refused
-----------------------------Captured stdout setup------------------------------
Fri Jun 23 12:05:56 UTC 2023 Killing wazuh-modulesd... Killing wazuh-logcollector... Killing wazuh-syscheckd... Killing wazuh-agentd... Killing wazuh-execd... Wazuh v4.4.4 Stopped Starting Wazuh v4.4.4... Started wazuh-execd... Started wazuh-agentd... Started wazuh-syscheckd... Started wazuh-logcollector... Started wazuh-modulesd... Completed.
-----------------------------Captured stderr setup------------------------------
2023/06/23 05:05:56 wazuh-agentd[5151] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/06/23 05:05:56 wazuh-agentd[5151] main.c:139 at main(): DEBUG: Wazuh home directory: /Library/Ossec 2023/06/23 05:05:56 wazuh-agentd[5151] main.c:141 at main(): DEBUG: Started (pid: 5151). 2023/06/23 05:05:56 wazuh-agentd[5151] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:05:56 wazuh-agentd[5151] agent_op.c:238 at os_read_agent_profile(): DEBUG: os_read_agent_profile() = [centos, centos7, centos7.4] 2023/06/23 05:05:56 wazuh-agentd[5151] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:05:56 wazuh-agentd[5151] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:05:56 wazuh-agentd[5151] agent_op.c:238 at os_read_agent_profile(): DEBUG: os_read_agent_profile() = [centos, centos7, centos7.4] 2023/06/23 05:05:56 wazuh-agentd[5151] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:05:56 wazuh-syscheckd[5152] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/06/23 05:05:56 wazuh-syscheckd[5152] config.c:33 at Read_Syscheck_Config(): DEBUG: (6287): Reading configuration file: 'etc/ossec.conf' 2023/06/23 05:05:56 wazuh-syscheckd[5152] syscheck-config.c:2421 at process_option_regex(): DEBUG: Found ignore regex node .log$|.swp$ 2023/06/23 05:05:56 wazuh-syscheckd[5152] syscheck-config.c:2428 at process_option_regex(): DEBUG: Found ignore regex node .log$|.swp$ OK? 2023/06/23 05:05:56 wazuh-syscheckd[5152] syscheck-config.c:2429 at process_option_regex(): DEBUG: Found ignore regex size 0 2023/06/23 05:05:56 wazuh-syscheckd[5152] config.c:41 at Read_Syscheck_Config(): DEBUG: (6208): Reading Client Configuration [etc/ossec.conf] 2023/06/23 05:05:56 wazuh-syscheckd[5152] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:05:56 wazuh-syscheckd[5152] agent_op.c:238 at os_read_agent_profile(): DEBUG: os_read_agent_profile() = [centos, centos7, centos7.4] 2023/06/23 05:05:56 wazuh-syscheckd[5152] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:05:56 wazuh-syscheckd[5152] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:05:56 wazuh-syscheckd[5152] agent_op.c:238 at os_read_agent_profile(): DEBUG: os_read_agent_profile() = [centos, centos7, centos7.4] 2023/06/23 05:05:56 wazuh-syscheckd[5152] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:05:56 wazuh-modulesd[5154] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/06/23 05:05:56 wazuh-modulesd[5154] main.c:77 at main(): DEBUG: Wazuh home directory: /Library/Ossec 2023/06/23 05:05:56 wazuh-modulesd[5154] wmodules-osquery-monitor.c:78 at wm_osquery_monitor_read(): DEBUG: Logpath read: /var/log/osquery/osqueryd.results.log 2023/06/23 05:05:56 wazuh-modulesd[5154] wmodules-osquery-monitor.c:84 at wm_osquery_monitor_read(): DEBUG: configPath read: /etc/osquery/osquery.conf 2023/06/23 05:05:56 wazuh-modulesd[5154] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:05:56 wazuh-modulesd[5154] agent_op.c:238 at os_read_agent_profile(): DEBUG: os_read_agent_profile() = [centos, centos7, centos7.4] 2023/06/23 05:05:56 wazuh-modulesd[5154] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:05:58 wazuh-agentd[5243] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/06/23 05:05:58 wazuh-agentd[5243] main.c:139 at main(): DEBUG: Wazuh home directory: /Library/Ossec 2023/06/23 05:05:58 wazuh-agentd[5243] main.c:141 at main(): DEBUG: Started (pid: 5243). 2023/06/23 05:05:58 wazuh-agentd[5243] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:05:58 wazuh-agentd[5243] agent_op.c:238 at os_read_agent_profile(): DEBUG: os_read_agent_profile() = [centos, centos7, centos7.4] 2023/06/23 05:05:58 wazuh-agentd[5243] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:05:58 wazuh-agentd[5243] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:05:58 wazuh-agentd[5243] agent_op.c:238 at os_read_agent_profile(): DEBUG: os_read_agent_profile() = [centos, centos7, centos7.4] 2023/06/23 05:05:58 wazuh-agentd[5243] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:05:59 wazuh-syscheckd[5261] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/06/23 05:05:59 wazuh-syscheckd[5261] config.c:33 at Read_Syscheck_Config(): DEBUG: (6287): Reading configuration file: 'etc/ossec.conf' 2023/06/23 05:05:59 wazuh-syscheckd[5261] syscheck-config.c:2421 at process_option_regex(): DEBUG: Found ignore regex node .log$|.swp$ 2023/06/23 05:05:59 wazuh-syscheckd[5261] syscheck-config.c:2428 at process_option_regex(): DEBUG: Found ignore regex node .log$|.swp$ OK? 2023/06/23 05:05:59 wazuh-syscheckd[5261] syscheck-config.c:2429 at process_option_regex(): DEBUG: Found ignore regex size 0 2023/06/23 05:05:59 wazuh-syscheckd[5261] config.c:41 at Read_Syscheck_Config(): DEBUG: (6208): Reading Client Configuration [etc/ossec.conf] 2023/06/23 05:05:59 wazuh-syscheckd[5261] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:05:59 wazuh-syscheckd[5261] agent_op.c:238 at os_read_agent_profile(): DEBUG: os_read_agent_profile() = [centos, centos7, centos7.4] 2023/06/23 05:05:59 wazuh-syscheckd[5261] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:05:59 wazuh-syscheckd[5261] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:05:59 wazuh-syscheckd[5261] agent_op.c:238 at os_read_agent_profile(): DEBUG: os_read_agent_profile() = [centos, centos7, centos7.4] 2023/06/23 05:05:59 wazuh-syscheckd[5261] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:05:59 rootcheck[5261] rootcheck.c:202 at rootcheck_init(): INFO: Rootcheck disabled. 2023/06/23 05:06:02 wazuh-modulesd[5283] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/06/23 05:06:02 wazuh-modulesd[5283] main.c:77 at main(): DEBUG: Wazuh home directory: /Library/Ossec 2023/06/23 05:06:02 wazuh-modulesd[5283] wmodules-osquery-monitor.c:78 at wm_osquery_monitor_read(): DEBUG: Logpath read: /var/log/osquery/osqueryd.results.log 2023/06/23 05:06:02 wazuh-modulesd[5283] wmodules-osquery-monitor.c:84 at wm_osquery_monitor_read(): DEBUG: configPath read: /etc/osquery/osquery.conf 2023/06/23 05:06:02 wazuh-modulesd[5283] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:06:02 wazuh-modulesd[5283] agent_op.c:238 at os_read_agent_profile(): DEBUG: os_read_agent_profile() = [centos, centos7, centos7.4] 2023/06/23 05:06:02 wazuh-modulesd[5283] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes.
Failed 2023-06-23 12:08:24.071870 test_remoted/test_agent_communication/test_agent_pending_status.py::test_protocols_communication[UDP_56000] Validate agent status after sending only the start-up 9.15 0

Test function details

Extended Summary

Parameters

test_remoted/test_agent_communication/test_agent_pending_status.py:131: in test_protocols_communication
check_active_agents(num_agents=2, manager_port=manager_port, protocol=protocol)
test_remoted/test_agent_communication/test_agent_pending_status.py:76: in check_active_agents
agents_version=[agent_version]*num_agents, agents_os=[agent_os]*num_agents)
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/agent_simulator.py:1685: in create_agents
os=agent_os, version=agent_version, disable_all_modules=disable_all_modules))
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/agent_simulator.py:188: in __init__
self.setup(disable_all_modules=disable_all_modules)
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/agent_simulator.py:201: in setup
self.register()
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/agent_simulator.py:281: in register
self._register_helper()
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/agent_simulator.py:245: in _register_helper
ssl_socket.connect((self.registration_address, 1515))
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/ssl.py:1150: in connect
self._real_connect(addr, False)
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/ssl.py:1137: in _real_connect
super().connect(addr)
E ConnectionRefusedError: [Errno 61] Connection refused
-----------------------------Captured stdout setup------------------------------
Fri Jun 23 12:06:05 UTC 2023 Killing wazuh-modulesd... Killing wazuh-logcollector... Killing wazuh-syscheckd... Killing wazuh-agentd... Killing wazuh-execd... Wazuh v4.4.4 Stopped Starting Wazuh v4.4.4... Started wazuh-execd... Started wazuh-agentd... Started wazuh-syscheckd... Started wazuh-logcollector... Started wazuh-modulesd... Completed.
-----------------------------Captured stderr setup------------------------------
2023/06/23 05:06:05 wazuh-agentd[5313] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/06/23 05:06:05 wazuh-agentd[5313] main.c:139 at main(): DEBUG: Wazuh home directory: /Library/Ossec 2023/06/23 05:06:05 wazuh-agentd[5313] main.c:141 at main(): DEBUG: Started (pid: 5313). 2023/06/23 05:06:05 wazuh-agentd[5313] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:06:05 wazuh-agentd[5313] agent_op.c:238 at os_read_agent_profile(): DEBUG: os_read_agent_profile() = [centos, centos7, centos7.4] 2023/06/23 05:06:05 wazuh-agentd[5313] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:06:05 wazuh-agentd[5313] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:06:05 wazuh-agentd[5313] agent_op.c:238 at os_read_agent_profile(): DEBUG: os_read_agent_profile() = [centos, centos7, centos7.4] 2023/06/23 05:06:05 wazuh-agentd[5313] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:06:05 wazuh-syscheckd[5314] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/06/23 05:06:05 wazuh-syscheckd[5314] config.c:33 at Read_Syscheck_Config(): DEBUG: (6287): Reading configuration file: 'etc/ossec.conf' 2023/06/23 05:06:05 wazuh-syscheckd[5314] syscheck-config.c:2421 at process_option_regex(): DEBUG: Found ignore regex node .log$|.swp$ 2023/06/23 05:06:05 wazuh-syscheckd[5314] syscheck-config.c:2428 at process_option_regex(): DEBUG: Found ignore regex node .log$|.swp$ OK? 2023/06/23 05:06:05 wazuh-syscheckd[5314] syscheck-config.c:2429 at process_option_regex(): DEBUG: Found ignore regex size 0 2023/06/23 05:06:05 wazuh-syscheckd[5314] config.c:41 at Read_Syscheck_Config(): DEBUG: (6208): Reading Client Configuration [etc/ossec.conf] 2023/06/23 05:06:05 wazuh-syscheckd[5314] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:06:05 wazuh-syscheckd[5314] agent_op.c:238 at os_read_agent_profile(): DEBUG: os_read_agent_profile() = [centos, centos7, centos7.4] 2023/06/23 05:06:05 wazuh-syscheckd[5314] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:06:05 wazuh-syscheckd[5314] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:06:05 wazuh-syscheckd[5314] agent_op.c:238 at os_read_agent_profile(): DEBUG: os_read_agent_profile() = [centos, centos7, centos7.4] 2023/06/23 05:06:05 wazuh-syscheckd[5314] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:06:05 wazuh-modulesd[5316] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/06/23 05:06:05 wazuh-modulesd[5316] main.c:77 at main(): DEBUG: Wazuh home directory: /Library/Ossec 2023/06/23 05:06:05 wazuh-modulesd[5316] wmodules-osquery-monitor.c:78 at wm_osquery_monitor_read(): DEBUG: Logpath read: /var/log/osquery/osqueryd.results.log 2023/06/23 05:06:05 wazuh-modulesd[5316] wmodules-osquery-monitor.c:84 at wm_osquery_monitor_read(): DEBUG: configPath read: /etc/osquery/osquery.conf 2023/06/23 05:06:05 wazuh-modulesd[5316] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:06:05 wazuh-modulesd[5316] agent_op.c:238 at os_read_agent_profile(): DEBUG: os_read_agent_profile() = [centos, centos7, centos7.4] 2023/06/23 05:06:05 wazuh-modulesd[5316] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:06:07 wazuh-agentd[5397] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/06/23 05:06:07 wazuh-agentd[5397] main.c:139 at main(): DEBUG: Wazuh home directory: /Library/Ossec 2023/06/23 05:06:07 wazuh-agentd[5397] main.c:141 at main(): DEBUG: Started (pid: 5397). 2023/06/23 05:06:07 wazuh-agentd[5397] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:06:07 wazuh-agentd[5397] agent_op.c:238 at os_read_agent_profile(): DEBUG: os_read_agent_profile() = [centos, centos7, centos7.4] 2023/06/23 05:06:07 wazuh-agentd[5397] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:06:07 wazuh-agentd[5397] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:06:07 wazuh-agentd[5397] agent_op.c:238 at os_read_agent_profile(): DEBUG: os_read_agent_profile() = [centos, centos7, centos7.4] 2023/06/23 05:06:07 wazuh-agentd[5397] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:06:08 wazuh-syscheckd[5423] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/06/23 05:06:08 wazuh-syscheckd[5423] config.c:33 at Read_Syscheck_Config(): DEBUG: (6287): Reading configuration file: 'etc/ossec.conf' 2023/06/23 05:06:08 wazuh-syscheckd[5423] syscheck-config.c:2421 at process_option_regex(): DEBUG: Found ignore regex node .log$|.swp$ 2023/06/23 05:06:08 wazuh-syscheckd[5423] syscheck-config.c:2428 at process_option_regex(): DEBUG: Found ignore regex node .log$|.swp$ OK? 2023/06/23 05:06:08 wazuh-syscheckd[5423] syscheck-config.c:2429 at process_option_regex(): DEBUG: Found ignore regex size 0 2023/06/23 05:06:08 wazuh-syscheckd[5423] config.c:41 at Read_Syscheck_Config(): DEBUG: (6208): Reading Client Configuration [etc/ossec.conf] 2023/06/23 05:06:08 wazuh-syscheckd[5423] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:06:08 wazuh-syscheckd[5423] agent_op.c:238 at os_read_agent_profile(): DEBUG: os_read_agent_profile() = [centos, centos7, centos7.4] 2023/06/23 05:06:08 wazuh-syscheckd[5423] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:06:08 wazuh-syscheckd[5423] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:06:08 wazuh-syscheckd[5423] agent_op.c:238 at os_read_agent_profile(): DEBUG: os_read_agent_profile() = [centos, centos7, centos7.4] 2023/06/23 05:06:08 wazuh-syscheckd[5423] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:06:08 rootcheck[5423] rootcheck.c:202 at rootcheck_init(): INFO: Rootcheck disabled. 2023/06/23 05:06:11 wazuh-modulesd[5445] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/06/23 05:06:11 wazuh-modulesd[5445] main.c:77 at main(): DEBUG: Wazuh home directory: /Library/Ossec 2023/06/23 05:06:11 wazuh-modulesd[5445] wmodules-osquery-monitor.c:78 at wm_osquery_monitor_read(): DEBUG: Logpath read: /var/log/osquery/osqueryd.results.log 2023/06/23 05:06:11 wazuh-modulesd[5445] wmodules-osquery-monitor.c:84 at wm_osquery_monitor_read(): DEBUG: configPath read: /etc/osquery/osquery.conf 2023/06/23 05:06:11 wazuh-modulesd[5445] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:06:11 wazuh-modulesd[5445] agent_op.c:238 at os_read_agent_profile(): DEBUG: os_read_agent_profile() = [centos, centos7, centos7.4] 2023/06/23 05:06:11 wazuh-modulesd[5445] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes.
Failed 2023-06-23 12:08:24.073874 test_remoted/test_agent_communication/test_agent_pending_status.py::test_protocols_communication[TCP,UDP_1514] Validate agent status after sending only the start-up 9.17 0

Test function details

Extended Summary

Parameters

test_remoted/test_agent_communication/test_agent_pending_status.py:131: in test_protocols_communication
check_active_agents(num_agents=2, manager_port=manager_port, protocol=protocol)
test_remoted/test_agent_communication/test_agent_pending_status.py:76: in check_active_agents
agents_version=[agent_version]*num_agents, agents_os=[agent_os]*num_agents)
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/agent_simulator.py:1685: in create_agents
os=agent_os, version=agent_version, disable_all_modules=disable_all_modules))
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/agent_simulator.py:188: in __init__
self.setup(disable_all_modules=disable_all_modules)
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/agent_simulator.py:201: in setup
self.register()
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/agent_simulator.py:281: in register
self._register_helper()
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/agent_simulator.py:245: in _register_helper
ssl_socket.connect((self.registration_address, 1515))
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/ssl.py:1150: in connect
self._real_connect(addr, False)
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/ssl.py:1137: in _real_connect
super().connect(addr)
E ConnectionRefusedError: [Errno 61] Connection refused
-----------------------------Captured stdout setup------------------------------
Fri Jun 23 12:06:14 UTC 2023 Killing wazuh-modulesd... Killing wazuh-logcollector... Killing wazuh-syscheckd... Killing wazuh-agentd... Killing wazuh-execd... Wazuh v4.4.4 Stopped Starting Wazuh v4.4.4... Started wazuh-execd... Started wazuh-agentd... Started wazuh-syscheckd... Started wazuh-logcollector... Started wazuh-modulesd... Completed.
-----------------------------Captured stderr setup------------------------------
2023/06/23 05:06:14 wazuh-agentd[5475] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/06/23 05:06:14 wazuh-agentd[5475] main.c:139 at main(): DEBUG: Wazuh home directory: /Library/Ossec 2023/06/23 05:06:14 wazuh-agentd[5475] main.c:141 at main(): DEBUG: Started (pid: 5475). 2023/06/23 05:06:14 wazuh-agentd[5475] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:06:14 wazuh-agentd[5475] agent_op.c:238 at os_read_agent_profile(): DEBUG: os_read_agent_profile() = [centos, centos7, centos7.4] 2023/06/23 05:06:14 wazuh-agentd[5475] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:06:14 wazuh-agentd[5475] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:06:14 wazuh-agentd[5475] agent_op.c:238 at os_read_agent_profile(): DEBUG: os_read_agent_profile() = [centos, centos7, centos7.4] 2023/06/23 05:06:14 wazuh-agentd[5475] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:06:14 wazuh-syscheckd[5476] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/06/23 05:06:14 wazuh-syscheckd[5476] config.c:33 at Read_Syscheck_Config(): DEBUG: (6287): Reading configuration file: 'etc/ossec.conf' 2023/06/23 05:06:14 wazuh-syscheckd[5476] syscheck-config.c:2421 at process_option_regex(): DEBUG: Found ignore regex node .log$|.swp$ 2023/06/23 05:06:14 wazuh-syscheckd[5476] syscheck-config.c:2428 at process_option_regex(): DEBUG: Found ignore regex node .log$|.swp$ OK? 2023/06/23 05:06:14 wazuh-syscheckd[5476] syscheck-config.c:2429 at process_option_regex(): DEBUG: Found ignore regex size 0 2023/06/23 05:06:14 wazuh-syscheckd[5476] config.c:41 at Read_Syscheck_Config(): DEBUG: (6208): Reading Client Configuration [etc/ossec.conf] 2023/06/23 05:06:14 wazuh-syscheckd[5476] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:06:14 wazuh-syscheckd[5476] agent_op.c:238 at os_read_agent_profile(): DEBUG: os_read_agent_profile() = [centos, centos7, centos7.4] 2023/06/23 05:06:14 wazuh-syscheckd[5476] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:06:14 wazuh-syscheckd[5476] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:06:14 wazuh-syscheckd[5476] agent_op.c:238 at os_read_agent_profile(): DEBUG: os_read_agent_profile() = [centos, centos7, centos7.4] 2023/06/23 05:06:14 wazuh-syscheckd[5476] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:06:14 wazuh-modulesd[5478] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/06/23 05:06:14 wazuh-modulesd[5478] main.c:77 at main(): DEBUG: Wazuh home directory: /Library/Ossec 2023/06/23 05:06:14 wazuh-modulesd[5478] wmodules-osquery-monitor.c:78 at wm_osquery_monitor_read(): DEBUG: Logpath read: /var/log/osquery/osqueryd.results.log 2023/06/23 05:06:14 wazuh-modulesd[5478] wmodules-osquery-monitor.c:84 at wm_osquery_monitor_read(): DEBUG: configPath read: /etc/osquery/osquery.conf 2023/06/23 05:06:14 wazuh-modulesd[5478] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:06:14 wazuh-modulesd[5478] agent_op.c:238 at os_read_agent_profile(): DEBUG: os_read_agent_profile() = [centos, centos7, centos7.4] 2023/06/23 05:06:14 wazuh-modulesd[5478] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:06:16 wazuh-agentd[5559] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/06/23 05:06:16 wazuh-agentd[5559] main.c:139 at main(): DEBUG: Wazuh home directory: /Library/Ossec 2023/06/23 05:06:16 wazuh-agentd[5559] main.c:141 at main(): DEBUG: Started (pid: 5559). 2023/06/23 05:06:16 wazuh-agentd[5559] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:06:16 wazuh-agentd[5559] agent_op.c:238 at os_read_agent_profile(): DEBUG: os_read_agent_profile() = [centos, centos7, centos7.4] 2023/06/23 05:06:16 wazuh-agentd[5559] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:06:16 wazuh-agentd[5559] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:06:16 wazuh-agentd[5559] agent_op.c:238 at os_read_agent_profile(): DEBUG: os_read_agent_profile() = [centos, centos7, centos7.4] 2023/06/23 05:06:16 wazuh-agentd[5559] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:06:18 wazuh-syscheckd[5577] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/06/23 05:06:18 wazuh-syscheckd[5577] config.c:33 at Read_Syscheck_Config(): DEBUG: (6287): Reading configuration file: 'etc/ossec.conf' 2023/06/23 05:06:18 wazuh-syscheckd[5577] syscheck-config.c:2421 at process_option_regex(): DEBUG: Found ignore regex node .log$|.swp$ 2023/06/23 05:06:18 wazuh-syscheckd[5577] syscheck-config.c:2428 at process_option_regex(): DEBUG: Found ignore regex node .log$|.swp$ OK? 2023/06/23 05:06:18 wazuh-syscheckd[5577] syscheck-config.c:2429 at process_option_regex(): DEBUG: Found ignore regex size 0 2023/06/23 05:06:18 wazuh-syscheckd[5577] config.c:41 at Read_Syscheck_Config(): DEBUG: (6208): Reading Client Configuration [etc/ossec.conf] 2023/06/23 05:06:18 wazuh-syscheckd[5577] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:06:18 wazuh-syscheckd[5577] agent_op.c:238 at os_read_agent_profile(): DEBUG: os_read_agent_profile() = [centos, centos7, centos7.4] 2023/06/23 05:06:18 wazuh-syscheckd[5577] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:06:18 wazuh-syscheckd[5577] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:06:18 wazuh-syscheckd[5577] agent_op.c:238 at os_read_agent_profile(): DEBUG: os_read_agent_profile() = [centos, centos7, centos7.4] 2023/06/23 05:06:18 wazuh-syscheckd[5577] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:06:18 rootcheck[5577] rootcheck.c:202 at rootcheck_init(): INFO: Rootcheck disabled. 2023/06/23 05:06:20 wazuh-modulesd[5607] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/06/23 05:06:20 wazuh-modulesd[5607] main.c:77 at main(): DEBUG: Wazuh home directory: /Library/Ossec 2023/06/23 05:06:20 wazuh-modulesd[5607] wmodules-osquery-monitor.c:78 at wm_osquery_monitor_read(): DEBUG: Logpath read: /var/log/osquery/osqueryd.results.log 2023/06/23 05:06:20 wazuh-modulesd[5607] wmodules-osquery-monitor.c:84 at wm_osquery_monitor_read(): DEBUG: configPath read: /etc/osquery/osquery.conf 2023/06/23 05:06:20 wazuh-modulesd[5607] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:06:20 wazuh-modulesd[5607] agent_op.c:238 at os_read_agent_profile(): DEBUG: os_read_agent_profile() = [centos, centos7, centos7.4] 2023/06/23 05:06:20 wazuh-modulesd[5607] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes.
Failed 2023-06-23 12:08:24.075260 test_remoted/test_agent_communication/test_agent_pending_status.py::test_protocols_communication[TCP,UDP_56000] Validate agent status after sending only the start-up 9.14 0

Test function details

Extended Summary

Parameters

test_remoted/test_agent_communication/test_agent_pending_status.py:131: in test_protocols_communication
check_active_agents(num_agents=2, manager_port=manager_port, protocol=protocol)
test_remoted/test_agent_communication/test_agent_pending_status.py:76: in check_active_agents
agents_version=[agent_version]*num_agents, agents_os=[agent_os]*num_agents)
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/agent_simulator.py:1685: in create_agents
os=agent_os, version=agent_version, disable_all_modules=disable_all_modules))
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/agent_simulator.py:188: in __init__
self.setup(disable_all_modules=disable_all_modules)
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/agent_simulator.py:201: in setup
self.register()
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/agent_simulator.py:281: in register
self._register_helper()
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/agent_simulator.py:245: in _register_helper
ssl_socket.connect((self.registration_address, 1515))
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/ssl.py:1150: in connect
self._real_connect(addr, False)
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/ssl.py:1137: in _real_connect
super().connect(addr)
E ConnectionRefusedError: [Errno 61] Connection refused
-----------------------------Captured stdout setup------------------------------
Fri Jun 23 12:06:23 UTC 2023 Killing wazuh-modulesd... Killing wazuh-logcollector... Killing wazuh-syscheckd... Killing wazuh-agentd... Killing wazuh-execd... Wazuh v4.4.4 Stopped Starting Wazuh v4.4.4... Started wazuh-execd... Started wazuh-agentd... Started wazuh-syscheckd... Started wazuh-logcollector... Started wazuh-modulesd... Completed.
-----------------------------Captured stderr setup------------------------------
2023/06/23 05:06:23 wazuh-agentd[5636] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/06/23 05:06:23 wazuh-agentd[5636] main.c:139 at main(): DEBUG: Wazuh home directory: /Library/Ossec 2023/06/23 05:06:23 wazuh-agentd[5636] main.c:141 at main(): DEBUG: Started (pid: 5636). 2023/06/23 05:06:23 wazuh-agentd[5636] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:06:23 wazuh-agentd[5636] agent_op.c:238 at os_read_agent_profile(): DEBUG: os_read_agent_profile() = [centos, centos7, centos7.4] 2023/06/23 05:06:23 wazuh-agentd[5636] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:06:23 wazuh-agentd[5636] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:06:23 wazuh-agentd[5636] agent_op.c:238 at os_read_agent_profile(): DEBUG: os_read_agent_profile() = [centos, centos7, centos7.4] 2023/06/23 05:06:23 wazuh-agentd[5636] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:06:23 wazuh-syscheckd[5637] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/06/23 05:06:23 wazuh-syscheckd[5637] config.c:33 at Read_Syscheck_Config(): DEBUG: (6287): Reading configuration file: 'etc/ossec.conf' 2023/06/23 05:06:23 wazuh-syscheckd[5637] syscheck-config.c:2421 at process_option_regex(): DEBUG: Found ignore regex node .log$|.swp$ 2023/06/23 05:06:23 wazuh-syscheckd[5637] syscheck-config.c:2428 at process_option_regex(): DEBUG: Found ignore regex node .log$|.swp$ OK? 2023/06/23 05:06:23 wazuh-syscheckd[5637] syscheck-config.c:2429 at process_option_regex(): DEBUG: Found ignore regex size 0 2023/06/23 05:06:23 wazuh-syscheckd[5637] config.c:41 at Read_Syscheck_Config(): DEBUG: (6208): Reading Client Configuration [etc/ossec.conf] 2023/06/23 05:06:23 wazuh-syscheckd[5637] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:06:23 wazuh-syscheckd[5637] agent_op.c:238 at os_read_agent_profile(): DEBUG: os_read_agent_profile() = [centos, centos7, centos7.4] 2023/06/23 05:06:23 wazuh-syscheckd[5637] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:06:23 wazuh-syscheckd[5637] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:06:23 wazuh-syscheckd[5637] agent_op.c:238 at os_read_agent_profile(): DEBUG: os_read_agent_profile() = [centos, centos7, centos7.4] 2023/06/23 05:06:23 wazuh-syscheckd[5637] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:06:23 wazuh-modulesd[5639] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/06/23 05:06:23 wazuh-modulesd[5639] main.c:77 at main(): DEBUG: Wazuh home directory: /Library/Ossec 2023/06/23 05:06:23 wazuh-modulesd[5639] wmodules-osquery-monitor.c:78 at wm_osquery_monitor_read(): DEBUG: Logpath read: /var/log/osquery/osqueryd.results.log 2023/06/23 05:06:23 wazuh-modulesd[5639] wmodules-osquery-monitor.c:84 at wm_osquery_monitor_read(): DEBUG: configPath read: /etc/osquery/osquery.conf 2023/06/23 05:06:23 wazuh-modulesd[5639] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:06:23 wazuh-modulesd[5639] agent_op.c:238 at os_read_agent_profile(): DEBUG: os_read_agent_profile() = [centos, centos7, centos7.4] 2023/06/23 05:06:23 wazuh-modulesd[5639] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:06:25 wazuh-agentd[5721] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/06/23 05:06:25 wazuh-agentd[5721] main.c:139 at main(): DEBUG: Wazuh home directory: /Library/Ossec 2023/06/23 05:06:25 wazuh-agentd[5721] main.c:141 at main(): DEBUG: Started (pid: 5721). 2023/06/23 05:06:25 wazuh-agentd[5721] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:06:25 wazuh-agentd[5721] agent_op.c:238 at os_read_agent_profile(): DEBUG: os_read_agent_profile() = [centos, centos7, centos7.4] 2023/06/23 05:06:25 wazuh-agentd[5721] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:06:25 wazuh-agentd[5721] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:06:25 wazuh-agentd[5721] agent_op.c:238 at os_read_agent_profile(): DEBUG: os_read_agent_profile() = [centos, centos7, centos7.4] 2023/06/23 05:06:25 wazuh-agentd[5721] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:06:26 wazuh-syscheckd[5739] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/06/23 05:06:26 wazuh-syscheckd[5739] config.c:33 at Read_Syscheck_Config(): DEBUG: (6287): Reading configuration file: 'etc/ossec.conf' 2023/06/23 05:06:26 wazuh-syscheckd[5739] syscheck-config.c:2421 at process_option_regex(): DEBUG: Found ignore regex node .log$|.swp$ 2023/06/23 05:06:26 wazuh-syscheckd[5739] syscheck-config.c:2428 at process_option_regex(): DEBUG: Found ignore regex node .log$|.swp$ OK? 2023/06/23 05:06:26 wazuh-syscheckd[5739] syscheck-config.c:2429 at process_option_regex(): DEBUG: Found ignore regex size 0 2023/06/23 05:06:26 wazuh-syscheckd[5739] config.c:41 at Read_Syscheck_Config(): DEBUG: (6208): Reading Client Configuration [etc/ossec.conf] 2023/06/23 05:06:26 wazuh-syscheckd[5739] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:06:26 wazuh-syscheckd[5739] agent_op.c:238 at os_read_agent_profile(): DEBUG: os_read_agent_profile() = [centos, centos7, centos7.4] 2023/06/23 05:06:26 wazuh-syscheckd[5739] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:06:26 wazuh-syscheckd[5739] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:06:26 wazuh-syscheckd[5739] agent_op.c:238 at os_read_agent_profile(): DEBUG: os_read_agent_profile() = [centos, centos7, centos7.4] 2023/06/23 05:06:26 wazuh-syscheckd[5739] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:06:26 rootcheck[5739] rootcheck.c:202 at rootcheck_init(): INFO: Rootcheck disabled. 2023/06/23 05:06:29 wazuh-modulesd[5761] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/06/23 05:06:29 wazuh-modulesd[5761] main.c:77 at main(): DEBUG: Wazuh home directory: /Library/Ossec 2023/06/23 05:06:29 wazuh-modulesd[5761] wmodules-osquery-monitor.c:78 at wm_osquery_monitor_read(): DEBUG: Logpath read: /var/log/osquery/osqueryd.results.log 2023/06/23 05:06:29 wazuh-modulesd[5761] wmodules-osquery-monitor.c:84 at wm_osquery_monitor_read(): DEBUG: configPath read: /etc/osquery/osquery.conf 2023/06/23 05:06:29 wazuh-modulesd[5761] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:06:29 wazuh-modulesd[5761] agent_op.c:238 at os_read_agent_profile(): DEBUG: os_read_agent_profile() = [centos, centos7, centos7.4] 2023/06/23 05:06:29 wazuh-modulesd[5761] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes.
----------------------------Captured stdout teardown----------------------------
Fri Jun 23 12:06:32 UTC 2023
Failed 2023-06-23 12:08:24.079176 test_remoted/test_agent_communication/test_multi_agent_protocols_communication.py::test_multi_agents_protocols_communication[TCP_1514] description: Check agent-manager communication with several agents simultaneously via TCP, UDP or both.. For this purpose, the test will create all the agents and select the protocol using Round-Robin. Then,. an event and a message will be created for each agent created. Finally, it will search for. those events within the messages sent to the manager. 8.13 2

Test function details

Extended Summary

wazuh_min_version: 4.2.0
tier: 2
parameters:
- get_configuration:
type: fixture
brief: Get configurations from the module.
- configure_environment:
type: fixture
brief: Configure a custom environment for testing. Restart Wazuh is needed for applying the configuration.
- restart_wazuh:
type: fixture
brief: Stop Wazuh, reset ossec.log and start a new monitor. Then start Wazuh.
assertions:
- Verify that the custom events created has been logged correctly.
input_description: A configuration template (test_multi_agent_protocols_communication) is contained in an external
YAML file, (wazuh_multi_agent_protocols_communication.yaml). That template is combined with
different test cases defined in the module. Those include configuration settings for the
'wazuh-remoted' daemon and agents info.
expected_output:
- r".* test message from agent .*"
- Agent message was not received or took too much time.
tags:
- simulator
- remoted

Parameters

test_remoted/test_agent_communication/test_multi_agent_protocols_communication.py:214: in test_multi_agents_protocols_communication
validate_agent_manager_protocol_communication(manager_port=manager_port, protocol=protocol)
test_remoted/test_agent_communication/test_multi_agent_protocols_communication.py:124: in validate_agent_manager_protocol_communication
disable_all_modules=agent_info['disable_all_modules'])
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/agent_simulator.py:1685: in create_agents
os=agent_os, version=agent_version, disable_all_modules=disable_all_modules))
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/agent_simulator.py:188: in __init__
self.setup(disable_all_modules=disable_all_modules)
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/agent_simulator.py:201: in setup
self.register()
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/agent_simulator.py:281: in register
self._register_helper()
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/agent_simulator.py:245: in _register_helper
ssl_socket.connect((self.registration_address, 1515))
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/ssl.py:1150: in connect
self._real_connect(addr, False)
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/ssl.py:1137: in _real_connect
super().connect(addr)
E ConnectionRefusedError: [Errno 61] Connection refused
-----------------------------Captured stdout setup------------------------------
Killing wazuh-modulesd... Killing wazuh-logcollector... Killing wazuh-syscheckd... Killing wazuh-agentd... Killing wazuh-execd... Wazuh v4.4.4 Stopped Starting Wazuh v4.4.4... Started wazuh-execd... Started wazuh-agentd... Started wazuh-syscheckd... Started wazuh-logcollector... Started wazuh-modulesd... Completed.
-----------------------------Captured stderr setup------------------------------
2023/06/23 05:06:32 wazuh-agentd[5878] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/06/23 05:06:32 wazuh-agentd[5878] main.c:139 at main(): DEBUG: Wazuh home directory: /Library/Ossec 2023/06/23 05:06:32 wazuh-agentd[5878] main.c:141 at main(): DEBUG: Started (pid: 5878). 2023/06/23 05:06:32 wazuh-agentd[5878] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:06:32 wazuh-agentd[5878] agent_op.c:223 at os_read_agent_profile(): ERROR: (1103): Could not open file 'queue/sockets/.agent_info' due to [(2)-(No such file or directory)]. 2023/06/23 05:06:32 wazuh-agentd[5878] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:06:32 wazuh-agentd[5878] config.c:433 at ReadConfig(): DEBUG: but agent has a profile name. 2023/06/23 05:06:32 wazuh-agentd[5878] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:06:32 wazuh-agentd[5878] agent_op.c:223 at os_read_agent_profile(): ERROR: (1103): Could not open file 'queue/sockets/.agent_info' due to [(2)-(No such file or directory)]. 2023/06/23 05:06:32 wazuh-agentd[5878] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:06:32 wazuh-agentd[5878] config.c:433 at ReadConfig(): DEBUG: but agent has a profile name. 2023/06/23 05:06:32 wazuh-syscheckd[5879] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/06/23 05:06:32 wazuh-syscheckd[5879] config.c:33 at Read_Syscheck_Config(): DEBUG: (6287): Reading configuration file: 'etc/ossec.conf' 2023/06/23 05:06:32 wazuh-syscheckd[5879] syscheck-config.c:2421 at process_option_regex(): DEBUG: Found ignore regex node .log$|.swp$ 2023/06/23 05:06:32 wazuh-syscheckd[5879] syscheck-config.c:2428 at process_option_regex(): DEBUG: Found ignore regex node .log$|.swp$ OK? 2023/06/23 05:06:32 wazuh-syscheckd[5879] syscheck-config.c:2429 at process_option_regex(): DEBUG: Found ignore regex size 0 2023/06/23 05:06:32 wazuh-syscheckd[5879] config.c:41 at Read_Syscheck_Config(): DEBUG: (6208): Reading Client Configuration [etc/ossec.conf] 2023/06/23 05:06:32 wazuh-syscheckd[5879] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:06:32 wazuh-syscheckd[5879] agent_op.c:223 at os_read_agent_profile(): ERROR: (1103): Could not open file 'queue/sockets/.agent_info' due to [(2)-(No such file or directory)]. 2023/06/23 05:06:32 wazuh-syscheckd[5879] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:06:32 wazuh-syscheckd[5879] config.c:433 at ReadConfig(): DEBUG: but agent has a profile name. 2023/06/23 05:06:32 wazuh-syscheckd[5879] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:06:32 wazuh-syscheckd[5879] agent_op.c:223 at os_read_agent_profile(): ERROR: (1103): Could not open file 'queue/sockets/.agent_info' due to [(2)-(No such file or directory)]. 2023/06/23 05:06:32 wazuh-syscheckd[5879] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:06:32 wazuh-syscheckd[5879] config.c:433 at ReadConfig(): DEBUG: but agent has a profile name. 2023/06/23 05:06:32 wazuh-logcollector: ERROR: (1103): Could not open file 'queue/sockets/.agent_info' due to [(2)-(No such file or directory)]. 2023/06/23 05:06:32 wazuh-modulesd[5881] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/06/23 05:06:32 wazuh-modulesd[5881] main.c:77 at main(): DEBUG: Wazuh home directory: /Library/Ossec 2023/06/23 05:06:32 wazuh-modulesd[5881] wmodules-osquery-monitor.c:78 at wm_osquery_monitor_read(): DEBUG: Logpath read: /var/log/osquery/osqueryd.results.log 2023/06/23 05:06:32 wazuh-modulesd[5881] wmodules-osquery-monitor.c:84 at wm_osquery_monitor_read(): DEBUG: configPath read: /etc/osquery/osquery.conf 2023/06/23 05:06:32 wazuh-modulesd[5881] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:06:32 wazuh-modulesd[5881] agent_op.c:223 at os_read_agent_profile(): ERROR: (1103): Could not open file 'queue/sockets/.agent_info' due to [(2)-(No such file or directory)]. 2023/06/23 05:06:32 wazuh-modulesd[5881] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:06:32 wazuh-modulesd[5881] config.c:433 at ReadConfig(): DEBUG: but agent has a profile name. 2023/06/23 05:06:33 wazuh-agentd[5906] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/06/23 05:06:33 wazuh-agentd[5906] main.c:139 at main(): DEBUG: Wazuh home directory: /Library/Ossec 2023/06/23 05:06:33 wazuh-agentd[5906] main.c:141 at main(): DEBUG: Started (pid: 5906). 2023/06/23 05:06:33 wazuh-agentd[5906] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:06:33 wazuh-agentd[5906] agent_op.c:223 at os_read_agent_profile(): ERROR: (1103): Could not open file 'queue/sockets/.agent_info' due to [(2)-(No such file or directory)]. 2023/06/23 05:06:33 wazuh-agentd[5906] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:06:33 wazuh-agentd[5906] config.c:433 at ReadConfig(): DEBUG: but agent has a profile name. 2023/06/23 05:06:33 wazuh-agentd[5906] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:06:33 wazuh-agentd[5906] agent_op.c:223 at os_read_agent_profile(): ERROR: (1103): Could not open file 'queue/sockets/.agent_info' due to [(2)-(No such file or directory)]. 2023/06/23 05:06:33 wazuh-agentd[5906] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:06:33 wazuh-agentd[5906] config.c:433 at ReadConfig(): DEBUG: but agent has a profile name. 2023/06/23 05:06:35 wazuh-syscheckd[5924] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/06/23 05:06:34 wazuh-syscheckd[5924] config.c:33 at Read_Syscheck_Config(): DEBUG: (6287): Reading configuration file: 'etc/ossec.conf' 2023/06/23 05:06:35 wazuh-syscheckd[5924] syscheck-config.c:2421 at process_option_regex(): DEBUG: Found ignore regex node .log$|.swp$ 2023/06/23 05:06:35 wazuh-syscheckd[5924] syscheck-config.c:2428 at process_option_regex(): DEBUG: Found ignore regex node .log$|.swp$ OK? 2023/06/23 05:06:35 wazuh-syscheckd[5924] syscheck-config.c:2429 at process_option_regex(): DEBUG: Found ignore regex size 0 2023/06/23 05:06:35 wazuh-syscheckd[5924] config.c:41 at Read_Syscheck_Config(): DEBUG: (6208): Reading Client Configuration [etc/ossec.conf] 2023/06/23 05:06:35 wazuh-syscheckd[5924] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:06:35 wazuh-syscheckd[5924] agent_op.c:238 at os_read_agent_profile(): DEBUG: os_read_agent_profile() = [centos, centos7, centos7.4] 2023/06/23 05:06:35 wazuh-syscheckd[5924] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:06:35 wazuh-syscheckd[5924] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:06:35 wazuh-syscheckd[5924] agent_op.c:238 at os_read_agent_profile(): DEBUG: os_read_agent_profile() = [centos, centos7, centos7.4] 2023/06/23 05:06:35 wazuh-syscheckd[5924] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:06:35 rootcheck[5924] rootcheck.c:202 at rootcheck_init(): INFO: Rootcheck disabled. 2023/06/23 05:06:37 wazuh-modulesd[5946] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/06/23 05:06:37 wazuh-modulesd[5946] main.c:77 at main(): DEBUG: Wazuh home directory: /Library/Ossec 2023/06/23 05:06:37 wazuh-modulesd[5946] wmodules-osquery-monitor.c:78 at wm_osquery_monitor_read(): DEBUG: Logpath read: /var/log/osquery/osqueryd.results.log 2023/06/23 05:06:37 wazuh-modulesd[5946] wmodules-osquery-monitor.c:84 at wm_osquery_monitor_read(): DEBUG: configPath read: /etc/osquery/osquery.conf 2023/06/23 05:06:37 wazuh-modulesd[5946] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:06:37 wazuh-modulesd[5946] agent_op.c:238 at os_read_agent_profile(): DEBUG: os_read_agent_profile() = [centos, centos7, centos7.4] 2023/06/23 05:06:37 wazuh-modulesd[5946] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes.
Failed 2023-06-23 12:08:24.080542 test_remoted/test_agent_communication/test_multi_agent_protocols_communication.py::test_multi_agents_protocols_communication[TCP_56000] description: Check agent-manager communication with several agents simultaneously via TCP, UDP or both.. For this purpose, the test will create all the agents and select the protocol using Round-Robin. Then,. an event and a message will be created for each agent created. Finally, it will search for. those events within the messages sent to the manager. 8.16 2

Test function details

Extended Summary

wazuh_min_version: 4.2.0
tier: 2
parameters:
- get_configuration:
type: fixture
brief: Get configurations from the module.
- configure_environment:
type: fixture
brief: Configure a custom environment for testing. Restart Wazuh is needed for applying the configuration.
- restart_wazuh:
type: fixture
brief: Stop Wazuh, reset ossec.log and start a new monitor. Then start Wazuh.
assertions:
- Verify that the custom events created has been logged correctly.
input_description: A configuration template (test_multi_agent_protocols_communication) is contained in an external
YAML file, (wazuh_multi_agent_protocols_communication.yaml). That template is combined with
different test cases defined in the module. Those include configuration settings for the
'wazuh-remoted' daemon and agents info.
expected_output:
- r".* test message from agent .*"
- Agent message was not received or took too much time.
tags:
- simulator
- remoted

Parameters

test_remoted/test_agent_communication/test_multi_agent_protocols_communication.py:214: in test_multi_agents_protocols_communication
validate_agent_manager_protocol_communication(manager_port=manager_port, protocol=protocol)
test_remoted/test_agent_communication/test_multi_agent_protocols_communication.py:124: in validate_agent_manager_protocol_communication
disable_all_modules=agent_info['disable_all_modules'])
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/agent_simulator.py:1685: in create_agents
os=agent_os, version=agent_version, disable_all_modules=disable_all_modules))
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/agent_simulator.py:188: in __init__
self.setup(disable_all_modules=disable_all_modules)
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/agent_simulator.py:201: in setup
self.register()
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/agent_simulator.py:281: in register
self._register_helper()
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/agent_simulator.py:245: in _register_helper
ssl_socket.connect((self.registration_address, 1515))
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/ssl.py:1150: in connect
self._real_connect(addr, False)
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/ssl.py:1137: in _real_connect
super().connect(addr)
E ConnectionRefusedError: [Errno 61] Connection refused
-----------------------------Captured stdout setup------------------------------
Fri Jun 23 12:06:40 UTC 2023 Killing wazuh-modulesd... Killing wazuh-logcollector... Killing wazuh-syscheckd... Killing wazuh-agentd... Killing wazuh-execd... Wazuh v4.4.4 Stopped Starting Wazuh v4.4.4... Started wazuh-execd... Started wazuh-agentd... Started wazuh-syscheckd... Started wazuh-logcollector... Started wazuh-modulesd... Completed.
-----------------------------Captured stderr setup------------------------------
2023/06/23 05:06:40 wazuh-agentd[6047] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/06/23 05:06:40 wazuh-agentd[6047] main.c:139 at main(): DEBUG: Wazuh home directory: /Library/Ossec 2023/06/23 05:06:40 wazuh-agentd[6047] main.c:141 at main(): DEBUG: Started (pid: 6047). 2023/06/23 05:06:40 wazuh-agentd[6047] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:06:40 wazuh-agentd[6047] agent_op.c:223 at os_read_agent_profile(): ERROR: (1103): Could not open file 'queue/sockets/.agent_info' due to [(2)-(No such file or directory)]. 2023/06/23 05:06:40 wazuh-agentd[6047] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:06:40 wazuh-agentd[6047] config.c:433 at ReadConfig(): DEBUG: but agent has a profile name. 2023/06/23 05:06:40 wazuh-agentd[6047] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:06:40 wazuh-agentd[6047] agent_op.c:223 at os_read_agent_profile(): ERROR: (1103): Could not open file 'queue/sockets/.agent_info' due to [(2)-(No such file or directory)]. 2023/06/23 05:06:40 wazuh-agentd[6047] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:06:40 wazuh-agentd[6047] config.c:433 at ReadConfig(): DEBUG: but agent has a profile name. 2023/06/23 05:06:40 wazuh-syscheckd[6048] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/06/23 05:06:40 wazuh-syscheckd[6048] config.c:33 at Read_Syscheck_Config(): DEBUG: (6287): Reading configuration file: 'etc/ossec.conf' 2023/06/23 05:06:40 wazuh-syscheckd[6048] syscheck-config.c:2421 at process_option_regex(): DEBUG: Found ignore regex node .log$|.swp$ 2023/06/23 05:06:40 wazuh-syscheckd[6048] syscheck-config.c:2428 at process_option_regex(): DEBUG: Found ignore regex node .log$|.swp$ OK? 2023/06/23 05:06:40 wazuh-syscheckd[6048] syscheck-config.c:2429 at process_option_regex(): DEBUG: Found ignore regex size 0 2023/06/23 05:06:40 wazuh-syscheckd[6048] config.c:41 at Read_Syscheck_Config(): DEBUG: (6208): Reading Client Configuration [etc/ossec.conf] 2023/06/23 05:06:40 wazuh-syscheckd[6048] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:06:40 wazuh-syscheckd[6048] agent_op.c:223 at os_read_agent_profile(): ERROR: (1103): Could not open file 'queue/sockets/.agent_info' due to [(2)-(No such file or directory)]. 2023/06/23 05:06:40 wazuh-syscheckd[6048] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:06:40 wazuh-syscheckd[6048] config.c:433 at ReadConfig(): DEBUG: but agent has a profile name. 2023/06/23 05:06:40 wazuh-syscheckd[6048] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:06:40 wazuh-syscheckd[6048] agent_op.c:223 at os_read_agent_profile(): ERROR: (1103): Could not open file 'queue/sockets/.agent_info' due to [(2)-(No such file or directory)]. 2023/06/23 05:06:40 wazuh-syscheckd[6048] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:06:40 wazuh-syscheckd[6048] config.c:433 at ReadConfig(): DEBUG: but agent has a profile name. 2023/06/23 05:06:40 wazuh-logcollector: ERROR: (1103): Could not open file 'queue/sockets/.agent_info' due to [(2)-(No such file or directory)]. 2023/06/23 05:06:40 wazuh-modulesd[6050] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/06/23 05:06:40 wazuh-modulesd[6050] main.c:77 at main(): DEBUG: Wazuh home directory: /Library/Ossec 2023/06/23 05:06:40 wazuh-modulesd[6050] wmodules-osquery-monitor.c:78 at wm_osquery_monitor_read(): DEBUG: Logpath read: /var/log/osquery/osqueryd.results.log 2023/06/23 05:06:40 wazuh-modulesd[6050] wmodules-osquery-monitor.c:84 at wm_osquery_monitor_read(): DEBUG: configPath read: /etc/osquery/osquery.conf 2023/06/23 05:06:40 wazuh-modulesd[6050] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:06:40 wazuh-modulesd[6050] agent_op.c:223 at os_read_agent_profile(): ERROR: (1103): Could not open file 'queue/sockets/.agent_info' due to [(2)-(No such file or directory)]. 2023/06/23 05:06:40 wazuh-modulesd[6050] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:06:40 wazuh-modulesd[6050] config.c:433 at ReadConfig(): DEBUG: but agent has a profile name. 2023/06/23 05:06:41 wazuh-agentd[6075] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/06/23 05:06:41 wazuh-agentd[6075] main.c:139 at main(): DEBUG: Wazuh home directory: /Library/Ossec 2023/06/23 05:06:41 wazuh-agentd[6075] main.c:141 at main(): DEBUG: Started (pid: 6075). 2023/06/23 05:06:41 wazuh-agentd[6075] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:06:41 wazuh-agentd[6075] agent_op.c:223 at os_read_agent_profile(): ERROR: (1103): Could not open file 'queue/sockets/.agent_info' due to [(2)-(No such file or directory)]. 2023/06/23 05:06:41 wazuh-agentd[6075] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:06:41 wazuh-agentd[6075] config.c:433 at ReadConfig(): DEBUG: but agent has a profile name. 2023/06/23 05:06:41 wazuh-agentd[6075] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:06:41 wazuh-agentd[6075] agent_op.c:223 at os_read_agent_profile(): ERROR: (1103): Could not open file 'queue/sockets/.agent_info' due to [(2)-(No such file or directory)]. 2023/06/23 05:06:41 wazuh-agentd[6075] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:06:41 wazuh-agentd[6075] config.c:433 at ReadConfig(): DEBUG: but agent has a profile name. 2023/06/23 05:06:43 wazuh-syscheckd[6094] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/06/23 05:06:43 wazuh-syscheckd[6094] config.c:33 at Read_Syscheck_Config(): DEBUG: (6287): Reading configuration file: 'etc/ossec.conf' 2023/06/23 05:06:43 wazuh-syscheckd[6094] syscheck-config.c:2421 at process_option_regex(): DEBUG: Found ignore regex node .log$|.swp$ 2023/06/23 05:06:43 wazuh-syscheckd[6094] syscheck-config.c:2428 at process_option_regex(): DEBUG: Found ignore regex node .log$|.swp$ OK? 2023/06/23 05:06:43 wazuh-syscheckd[6094] syscheck-config.c:2429 at process_option_regex(): DEBUG: Found ignore regex size 0 2023/06/23 05:06:43 wazuh-syscheckd[6094] config.c:41 at Read_Syscheck_Config(): DEBUG: (6208): Reading Client Configuration [etc/ossec.conf] 2023/06/23 05:06:43 wazuh-syscheckd[6094] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:06:43 wazuh-syscheckd[6094] agent_op.c:238 at os_read_agent_profile(): DEBUG: os_read_agent_profile() = [centos, centos7, centos7.4] 2023/06/23 05:06:43 wazuh-syscheckd[6094] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:06:43 wazuh-syscheckd[6094] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:06:43 wazuh-syscheckd[6094] agent_op.c:238 at os_read_agent_profile(): DEBUG: os_read_agent_profile() = [centos, centos7, centos7.4] 2023/06/23 05:06:43 wazuh-syscheckd[6094] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:06:43 rootcheck[6094] rootcheck.c:202 at rootcheck_init(): INFO: Rootcheck disabled. 2023/06/23 05:06:45 wazuh-modulesd[6116] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/06/23 05:06:45 wazuh-modulesd[6116] main.c:77 at main(): DEBUG: Wazuh home directory: /Library/Ossec 2023/06/23 05:06:45 wazuh-modulesd[6116] wmodules-osquery-monitor.c:78 at wm_osquery_monitor_read(): DEBUG: Logpath read: /var/log/osquery/osqueryd.results.log 2023/06/23 05:06:45 wazuh-modulesd[6116] wmodules-osquery-monitor.c:84 at wm_osquery_monitor_read(): DEBUG: configPath read: /etc/osquery/osquery.conf 2023/06/23 05:06:45 wazuh-modulesd[6116] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:06:45 wazuh-modulesd[6116] agent_op.c:238 at os_read_agent_profile(): DEBUG: os_read_agent_profile() = [centos, centos7, centos7.4] 2023/06/23 05:06:45 wazuh-modulesd[6116] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes.
Failed 2023-06-23 12:08:24.082307 test_remoted/test_agent_communication/test_multi_agent_protocols_communication.py::test_multi_agents_protocols_communication[UDP_1514] description: Check agent-manager communication with several agents simultaneously via TCP, UDP or both.. For this purpose, the test will create all the agents and select the protocol using Round-Robin. Then,. an event and a message will be created for each agent created. Finally, it will search for. those events within the messages sent to the manager. 8.13 2

Test function details

Extended Summary

wazuh_min_version: 4.2.0
tier: 2
parameters:
- get_configuration:
type: fixture
brief: Get configurations from the module.
- configure_environment:
type: fixture
brief: Configure a custom environment for testing. Restart Wazuh is needed for applying the configuration.
- restart_wazuh:
type: fixture
brief: Stop Wazuh, reset ossec.log and start a new monitor. Then start Wazuh.
assertions:
- Verify that the custom events created has been logged correctly.
input_description: A configuration template (test_multi_agent_protocols_communication) is contained in an external
YAML file, (wazuh_multi_agent_protocols_communication.yaml). That template is combined with
different test cases defined in the module. Those include configuration settings for the
'wazuh-remoted' daemon and agents info.
expected_output:
- r".* test message from agent .*"
- Agent message was not received or took too much time.
tags:
- simulator
- remoted

Parameters

test_remoted/test_agent_communication/test_multi_agent_protocols_communication.py:214: in test_multi_agents_protocols_communication
validate_agent_manager_protocol_communication(manager_port=manager_port, protocol=protocol)
test_remoted/test_agent_communication/test_multi_agent_protocols_communication.py:124: in validate_agent_manager_protocol_communication
disable_all_modules=agent_info['disable_all_modules'])
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/agent_simulator.py:1685: in create_agents
os=agent_os, version=agent_version, disable_all_modules=disable_all_modules))
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/agent_simulator.py:188: in __init__
self.setup(disable_all_modules=disable_all_modules)
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/agent_simulator.py:201: in setup
self.register()
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/agent_simulator.py:281: in register
self._register_helper()
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/agent_simulator.py:245: in _register_helper
ssl_socket.connect((self.registration_address, 1515))
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/ssl.py:1150: in connect
self._real_connect(addr, False)
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/ssl.py:1137: in _real_connect
super().connect(addr)
E ConnectionRefusedError: [Errno 61] Connection refused
-----------------------------Captured stdout setup------------------------------
Fri Jun 23 12:06:48 UTC 2023 Killing wazuh-modulesd... Killing wazuh-logcollector... Killing wazuh-syscheckd... Killing wazuh-agentd... Killing wazuh-execd... Wazuh v4.4.4 Stopped Starting Wazuh v4.4.4... Started wazuh-execd... Started wazuh-agentd... Started wazuh-syscheckd... Started wazuh-logcollector... Started wazuh-modulesd... Completed.
-----------------------------Captured stderr setup------------------------------
2023/06/23 05:06:48 wazuh-agentd[6209] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/06/23 05:06:48 wazuh-agentd[6209] main.c:139 at main(): DEBUG: Wazuh home directory: /Library/Ossec 2023/06/23 05:06:48 wazuh-agentd[6209] main.c:141 at main(): DEBUG: Started (pid: 6209). 2023/06/23 05:06:48 wazuh-agentd[6209] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:06:48 wazuh-agentd[6209] agent_op.c:223 at os_read_agent_profile(): ERROR: (1103): Could not open file 'queue/sockets/.agent_info' due to [(2)-(No such file or directory)]. 2023/06/23 05:06:48 wazuh-agentd[6209] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:06:48 wazuh-agentd[6209] config.c:433 at ReadConfig(): DEBUG: but agent has a profile name. 2023/06/23 05:06:48 wazuh-agentd[6209] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:06:48 wazuh-agentd[6209] agent_op.c:223 at os_read_agent_profile(): ERROR: (1103): Could not open file 'queue/sockets/.agent_info' due to [(2)-(No such file or directory)]. 2023/06/23 05:06:48 wazuh-agentd[6209] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:06:48 wazuh-agentd[6209] config.c:433 at ReadConfig(): DEBUG: but agent has a profile name. 2023/06/23 05:06:48 wazuh-syscheckd[6210] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/06/23 05:06:48 wazuh-syscheckd[6210] config.c:33 at Read_Syscheck_Config(): DEBUG: (6287): Reading configuration file: 'etc/ossec.conf' 2023/06/23 05:06:48 wazuh-syscheckd[6210] syscheck-config.c:2421 at process_option_regex(): DEBUG: Found ignore regex node .log$|.swp$ 2023/06/23 05:06:48 wazuh-syscheckd[6210] syscheck-config.c:2428 at process_option_regex(): DEBUG: Found ignore regex node .log$|.swp$ OK? 2023/06/23 05:06:48 wazuh-syscheckd[6210] syscheck-config.c:2429 at process_option_regex(): DEBUG: Found ignore regex size 0 2023/06/23 05:06:48 wazuh-syscheckd[6210] config.c:41 at Read_Syscheck_Config(): DEBUG: (6208): Reading Client Configuration [etc/ossec.conf] 2023/06/23 05:06:48 wazuh-syscheckd[6210] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:06:48 wazuh-syscheckd[6210] agent_op.c:223 at os_read_agent_profile(): ERROR: (1103): Could not open file 'queue/sockets/.agent_info' due to [(2)-(No such file or directory)]. 2023/06/23 05:06:48 wazuh-syscheckd[6210] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:06:48 wazuh-syscheckd[6210] config.c:433 at ReadConfig(): DEBUG: but agent has a profile name. 2023/06/23 05:06:48 wazuh-syscheckd[6210] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:06:48 wazuh-syscheckd[6210] agent_op.c:223 at os_read_agent_profile(): ERROR: (1103): Could not open file 'queue/sockets/.agent_info' due to [(2)-(No such file or directory)]. 2023/06/23 05:06:48 wazuh-syscheckd[6210] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:06:48 wazuh-syscheckd[6210] config.c:433 at ReadConfig(): DEBUG: but agent has a profile name. 2023/06/23 05:06:48 wazuh-logcollector: ERROR: (1103): Could not open file 'queue/sockets/.agent_info' due to [(2)-(No such file or directory)]. 2023/06/23 05:06:48 wazuh-modulesd[6212] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/06/23 05:06:48 wazuh-modulesd[6212] main.c:77 at main(): DEBUG: Wazuh home directory: /Library/Ossec 2023/06/23 05:06:48 wazuh-modulesd[6212] wmodules-osquery-monitor.c:78 at wm_osquery_monitor_read(): DEBUG: Logpath read: /var/log/osquery/osqueryd.results.log 2023/06/23 05:06:48 wazuh-modulesd[6212] wmodules-osquery-monitor.c:84 at wm_osquery_monitor_read(): DEBUG: configPath read: /etc/osquery/osquery.conf 2023/06/23 05:06:48 wazuh-modulesd[6212] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:06:48 wazuh-modulesd[6212] agent_op.c:223 at os_read_agent_profile(): ERROR: (1103): Could not open file 'queue/sockets/.agent_info' due to [(2)-(No such file or directory)]. 2023/06/23 05:06:48 wazuh-modulesd[6212] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:06:48 wazuh-modulesd[6212] config.c:433 at ReadConfig(): DEBUG: but agent has a profile name. 2023/06/23 05:06:49 wazuh-agentd[6245] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/06/23 05:06:49 wazuh-agentd[6245] main.c:139 at main(): DEBUG: Wazuh home directory: /Library/Ossec 2023/06/23 05:06:49 wazuh-agentd[6245] main.c:141 at main(): DEBUG: Started (pid: 6245). 2023/06/23 05:06:49 wazuh-agentd[6245] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:06:49 wazuh-agentd[6245] agent_op.c:223 at os_read_agent_profile(): ERROR: (1103): Could not open file 'queue/sockets/.agent_info' due to [(2)-(No such file or directory)]. 2023/06/23 05:06:49 wazuh-agentd[6245] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:06:49 wazuh-agentd[6245] config.c:433 at ReadConfig(): DEBUG: but agent has a profile name. 2023/06/23 05:06:49 wazuh-agentd[6245] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:06:49 wazuh-agentd[6245] agent_op.c:223 at os_read_agent_profile(): ERROR: (1103): Could not open file 'queue/sockets/.agent_info' due to [(2)-(No such file or directory)]. 2023/06/23 05:06:49 wazuh-agentd[6245] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:06:49 wazuh-agentd[6245] config.c:433 at ReadConfig(): DEBUG: but agent has a profile name. 2023/06/23 05:06:50 wazuh-syscheckd[6263] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/06/23 05:06:50 wazuh-syscheckd[6263] config.c:33 at Read_Syscheck_Config(): DEBUG: (6287): Reading configuration file: 'etc/ossec.conf' 2023/06/23 05:06:50 wazuh-syscheckd[6263] syscheck-config.c:2421 at process_option_regex(): DEBUG: Found ignore regex node .log$|.swp$ 2023/06/23 05:06:50 wazuh-syscheckd[6263] syscheck-config.c:2428 at process_option_regex(): DEBUG: Found ignore regex node .log$|.swp$ OK? 2023/06/23 05:06:50 wazuh-syscheckd[6263] syscheck-config.c:2429 at process_option_regex(): DEBUG: Found ignore regex size 0 2023/06/23 05:06:50 wazuh-syscheckd[6263] config.c:41 at Read_Syscheck_Config(): DEBUG: (6208): Reading Client Configuration [etc/ossec.conf] 2023/06/23 05:06:50 wazuh-syscheckd[6263] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:06:50 wazuh-syscheckd[6263] agent_op.c:238 at os_read_agent_profile(): DEBUG: os_read_agent_profile() = [centos, centos7, centos7.4] 2023/06/23 05:06:50 wazuh-syscheckd[6263] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:06:50 wazuh-syscheckd[6263] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:06:50 wazuh-syscheckd[6263] agent_op.c:238 at os_read_agent_profile(): DEBUG: os_read_agent_profile() = [centos, centos7, centos7.4] 2023/06/23 05:06:50 wazuh-syscheckd[6263] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:06:50 rootcheck[6263] rootcheck.c:202 at rootcheck_init(): INFO: Rootcheck disabled. 2023/06/23 05:06:53 wazuh-modulesd[6286] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/06/23 05:06:53 wazuh-modulesd[6286] main.c:77 at main(): DEBUG: Wazuh home directory: /Library/Ossec 2023/06/23 05:06:53 wazuh-modulesd[6286] wmodules-osquery-monitor.c:78 at wm_osquery_monitor_read(): DEBUG: Logpath read: /var/log/osquery/osqueryd.results.log 2023/06/23 05:06:53 wazuh-modulesd[6286] wmodules-osquery-monitor.c:84 at wm_osquery_monitor_read(): DEBUG: configPath read: /etc/osquery/osquery.conf 2023/06/23 05:06:53 wazuh-modulesd[6286] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:06:53 wazuh-modulesd[6286] agent_op.c:238 at os_read_agent_profile(): DEBUG: os_read_agent_profile() = [centos, centos7, centos7.4] 2023/06/23 05:06:53 wazuh-modulesd[6286] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes.
Failed 2023-06-23 12:08:24.083737 test_remoted/test_agent_communication/test_multi_agent_protocols_communication.py::test_multi_agents_protocols_communication[UDP_56000] description: Check agent-manager communication with several agents simultaneously via TCP, UDP or both.. For this purpose, the test will create all the agents and select the protocol using Round-Robin. Then,. an event and a message will be created for each agent created. Finally, it will search for. those events within the messages sent to the manager. 8.13 2

Test function details

Extended Summary

wazuh_min_version: 4.2.0
tier: 2
parameters:
- get_configuration:
type: fixture
brief: Get configurations from the module.
- configure_environment:
type: fixture
brief: Configure a custom environment for testing. Restart Wazuh is needed for applying the configuration.
- restart_wazuh:
type: fixture
brief: Stop Wazuh, reset ossec.log and start a new monitor. Then start Wazuh.
assertions:
- Verify that the custom events created has been logged correctly.
input_description: A configuration template (test_multi_agent_protocols_communication) is contained in an external
YAML file, (wazuh_multi_agent_protocols_communication.yaml). That template is combined with
different test cases defined in the module. Those include configuration settings for the
'wazuh-remoted' daemon and agents info.
expected_output:
- r".* test message from agent .*"
- Agent message was not received or took too much time.
tags:
- simulator
- remoted

Parameters

test_remoted/test_agent_communication/test_multi_agent_protocols_communication.py:214: in test_multi_agents_protocols_communication
validate_agent_manager_protocol_communication(manager_port=manager_port, protocol=protocol)
test_remoted/test_agent_communication/test_multi_agent_protocols_communication.py:124: in validate_agent_manager_protocol_communication
disable_all_modules=agent_info['disable_all_modules'])
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/agent_simulator.py:1685: in create_agents
os=agent_os, version=agent_version, disable_all_modules=disable_all_modules))
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/agent_simulator.py:188: in __init__
self.setup(disable_all_modules=disable_all_modules)
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/agent_simulator.py:201: in setup
self.register()
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/agent_simulator.py:281: in register
self._register_helper()
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/agent_simulator.py:245: in _register_helper
ssl_socket.connect((self.registration_address, 1515))
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/ssl.py:1150: in connect
self._real_connect(addr, False)
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/ssl.py:1137: in _real_connect
super().connect(addr)
E ConnectionRefusedError: [Errno 61] Connection refused
-----------------------------Captured stdout setup------------------------------
Fri Jun 23 12:06:56 UTC 2023 Killing wazuh-modulesd... Killing wazuh-logcollector... Killing wazuh-syscheckd... Killing wazuh-agentd... Killing wazuh-execd... Wazuh v4.4.4 Stopped Starting Wazuh v4.4.4... Started wazuh-execd... Started wazuh-agentd... Started wazuh-syscheckd... Started wazuh-logcollector... Started wazuh-modulesd... Completed.
-----------------------------Captured stderr setup------------------------------
2023/06/23 05:06:56 wazuh-agentd[6379] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/06/23 05:06:56 wazuh-agentd[6379] main.c:139 at main(): DEBUG: Wazuh home directory: /Library/Ossec 2023/06/23 05:06:56 wazuh-agentd[6379] main.c:141 at main(): DEBUG: Started (pid: 6379). 2023/06/23 05:06:56 wazuh-agentd[6379] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:06:56 wazuh-agentd[6379] agent_op.c:223 at os_read_agent_profile(): ERROR: (1103): Could not open file 'queue/sockets/.agent_info' due to [(2)-(No such file or directory)]. 2023/06/23 05:06:56 wazuh-agentd[6379] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:06:56 wazuh-agentd[6379] config.c:433 at ReadConfig(): DEBUG: but agent has a profile name. 2023/06/23 05:06:56 wazuh-agentd[6379] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:06:56 wazuh-agentd[6379] agent_op.c:223 at os_read_agent_profile(): ERROR: (1103): Could not open file 'queue/sockets/.agent_info' due to [(2)-(No such file or directory)]. 2023/06/23 05:06:56 wazuh-agentd[6379] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:06:56 wazuh-agentd[6379] config.c:433 at ReadConfig(): DEBUG: but agent has a profile name. 2023/06/23 05:06:56 wazuh-syscheckd[6380] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/06/23 05:06:56 wazuh-syscheckd[6380] config.c:33 at Read_Syscheck_Config(): DEBUG: (6287): Reading configuration file: 'etc/ossec.conf' 2023/06/23 05:06:56 wazuh-syscheckd[6380] syscheck-config.c:2421 at process_option_regex(): DEBUG: Found ignore regex node .log$|.swp$ 2023/06/23 05:06:56 wazuh-syscheckd[6380] syscheck-config.c:2428 at process_option_regex(): DEBUG: Found ignore regex node .log$|.swp$ OK? 2023/06/23 05:06:56 wazuh-syscheckd[6380] syscheck-config.c:2429 at process_option_regex(): DEBUG: Found ignore regex size 0 2023/06/23 05:06:56 wazuh-syscheckd[6380] config.c:41 at Read_Syscheck_Config(): DEBUG: (6208): Reading Client Configuration [etc/ossec.conf] 2023/06/23 05:06:56 wazuh-syscheckd[6380] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:06:56 wazuh-syscheckd[6380] agent_op.c:223 at os_read_agent_profile(): ERROR: (1103): Could not open file 'queue/sockets/.agent_info' due to [(2)-(No such file or directory)]. 2023/06/23 05:06:56 wazuh-syscheckd[6380] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:06:56 wazuh-syscheckd[6380] config.c:433 at ReadConfig(): DEBUG: but agent has a profile name. 2023/06/23 05:06:56 wazuh-syscheckd[6380] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:06:56 wazuh-syscheckd[6380] agent_op.c:223 at os_read_agent_profile(): ERROR: (1103): Could not open file 'queue/sockets/.agent_info' due to [(2)-(No such file or directory)]. 2023/06/23 05:06:56 wazuh-syscheckd[6380] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:06:56 wazuh-syscheckd[6380] config.c:433 at ReadConfig(): DEBUG: but agent has a profile name. 2023/06/23 05:06:56 wazuh-logcollector: ERROR: (1103): Could not open file 'queue/sockets/.agent_info' due to [(2)-(No such file or directory)]. 2023/06/23 05:06:56 wazuh-modulesd[6382] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/06/23 05:06:56 wazuh-modulesd[6382] main.c:77 at main(): DEBUG: Wazuh home directory: /Library/Ossec 2023/06/23 05:06:56 wazuh-modulesd[6382] wmodules-osquery-monitor.c:78 at wm_osquery_monitor_read(): DEBUG: Logpath read: /var/log/osquery/osqueryd.results.log 2023/06/23 05:06:56 wazuh-modulesd[6382] wmodules-osquery-monitor.c:84 at wm_osquery_monitor_read(): DEBUG: configPath read: /etc/osquery/osquery.conf 2023/06/23 05:06:56 wazuh-modulesd[6382] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:06:56 wazuh-modulesd[6382] agent_op.c:223 at os_read_agent_profile(): ERROR: (1103): Could not open file 'queue/sockets/.agent_info' due to [(2)-(No such file or directory)]. 2023/06/23 05:06:56 wazuh-modulesd[6382] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:06:56 wazuh-modulesd[6382] config.c:433 at ReadConfig(): DEBUG: but agent has a profile name. 2023/06/23 05:06:57 wazuh-agentd[6407] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/06/23 05:06:57 wazuh-agentd[6407] main.c:139 at main(): DEBUG: Wazuh home directory: /Library/Ossec 2023/06/23 05:06:57 wazuh-agentd[6407] main.c:141 at main(): DEBUG: Started (pid: 6407). 2023/06/23 05:06:57 wazuh-agentd[6407] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:06:57 wazuh-agentd[6407] agent_op.c:223 at os_read_agent_profile(): ERROR: (1103): Could not open file 'queue/sockets/.agent_info' due to [(2)-(No such file or directory)]. 2023/06/23 05:06:57 wazuh-agentd[6407] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:06:57 wazuh-agentd[6407] config.c:433 at ReadConfig(): DEBUG: but agent has a profile name. 2023/06/23 05:06:57 wazuh-agentd[6407] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:06:57 wazuh-agentd[6407] agent_op.c:223 at os_read_agent_profile(): ERROR: (1103): Could not open file 'queue/sockets/.agent_info' due to [(2)-(No such file or directory)]. 2023/06/23 05:06:57 wazuh-agentd[6407] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:06:57 wazuh-agentd[6407] config.c:433 at ReadConfig(): DEBUG: but agent has a profile name. 2023/06/23 05:06:58 wazuh-syscheckd[6425] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/06/23 05:06:58 wazuh-syscheckd[6425] config.c:33 at Read_Syscheck_Config(): DEBUG: (6287): Reading configuration file: 'etc/ossec.conf' 2023/06/23 05:06:58 wazuh-syscheckd[6425] syscheck-config.c:2421 at process_option_regex(): DEBUG: Found ignore regex node .log$|.swp$ 2023/06/23 05:06:58 wazuh-syscheckd[6425] syscheck-config.c:2428 at process_option_regex(): DEBUG: Found ignore regex node .log$|.swp$ OK? 2023/06/23 05:06:58 wazuh-syscheckd[6425] syscheck-config.c:2429 at process_option_regex(): DEBUG: Found ignore regex size 0 2023/06/23 05:06:58 wazuh-syscheckd[6425] config.c:41 at Read_Syscheck_Config(): DEBUG: (6208): Reading Client Configuration [etc/ossec.conf] 2023/06/23 05:06:58 wazuh-syscheckd[6425] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:06:58 wazuh-syscheckd[6425] agent_op.c:238 at os_read_agent_profile(): DEBUG: os_read_agent_profile() = [centos, centos7, centos7.4] 2023/06/23 05:06:58 wazuh-syscheckd[6425] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:06:58 wazuh-syscheckd[6425] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:06:58 wazuh-syscheckd[6425] agent_op.c:238 at os_read_agent_profile(): DEBUG: os_read_agent_profile() = [centos, centos7, centos7.4] 2023/06/23 05:06:58 wazuh-syscheckd[6425] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:06:58 rootcheck[6425] rootcheck.c:202 at rootcheck_init(): INFO: Rootcheck disabled. 2023/06/23 05:07:01 wazuh-modulesd[6455] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/06/23 05:07:01 wazuh-modulesd[6455] main.c:77 at main(): DEBUG: Wazuh home directory: /Library/Ossec 2023/06/23 05:07:01 wazuh-modulesd[6455] wmodules-osquery-monitor.c:78 at wm_osquery_monitor_read(): DEBUG: Logpath read: /var/log/osquery/osqueryd.results.log 2023/06/23 05:07:01 wazuh-modulesd[6455] wmodules-osquery-monitor.c:84 at wm_osquery_monitor_read(): DEBUG: configPath read: /etc/osquery/osquery.conf 2023/06/23 05:07:01 wazuh-modulesd[6455] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:07:01 wazuh-modulesd[6455] agent_op.c:238 at os_read_agent_profile(): DEBUG: os_read_agent_profile() = [centos, centos7, centos7.4] 2023/06/23 05:07:01 wazuh-modulesd[6455] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes.
Failed 2023-06-23 12:08:24.085160 test_remoted/test_agent_communication/test_multi_agent_protocols_communication.py::test_multi_agents_protocols_communication[TCP,UDP_1514] description: Check agent-manager communication with several agents simultaneously via TCP, UDP or both.. For this purpose, the test will create all the agents and select the protocol using Round-Robin. Then,. an event and a message will be created for each agent created. Finally, it will search for. those events within the messages sent to the manager. 8.12 2

Test function details

Extended Summary

wazuh_min_version: 4.2.0
tier: 2
parameters:
- get_configuration:
type: fixture
brief: Get configurations from the module.
- configure_environment:
type: fixture
brief: Configure a custom environment for testing. Restart Wazuh is needed for applying the configuration.
- restart_wazuh:
type: fixture
brief: Stop Wazuh, reset ossec.log and start a new monitor. Then start Wazuh.
assertions:
- Verify that the custom events created has been logged correctly.
input_description: A configuration template (test_multi_agent_protocols_communication) is contained in an external
YAML file, (wazuh_multi_agent_protocols_communication.yaml). That template is combined with
different test cases defined in the module. Those include configuration settings for the
'wazuh-remoted' daemon and agents info.
expected_output:
- r".* test message from agent .*"
- Agent message was not received or took too much time.
tags:
- simulator
- remoted

Parameters

test_remoted/test_agent_communication/test_multi_agent_protocols_communication.py:214: in test_multi_agents_protocols_communication
validate_agent_manager_protocol_communication(manager_port=manager_port, protocol=protocol)
test_remoted/test_agent_communication/test_multi_agent_protocols_communication.py:124: in validate_agent_manager_protocol_communication
disable_all_modules=agent_info['disable_all_modules'])
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/agent_simulator.py:1685: in create_agents
os=agent_os, version=agent_version, disable_all_modules=disable_all_modules))
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/agent_simulator.py:188: in __init__
self.setup(disable_all_modules=disable_all_modules)
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/agent_simulator.py:201: in setup
self.register()
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/agent_simulator.py:281: in register
self._register_helper()
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/agent_simulator.py:245: in _register_helper
ssl_socket.connect((self.registration_address, 1515))
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/ssl.py:1150: in connect
self._real_connect(addr, False)
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/ssl.py:1137: in _real_connect
super().connect(addr)
E ConnectionRefusedError: [Errno 61] Connection refused
-----------------------------Captured stdout setup------------------------------
Fri Jun 23 12:07:04 UTC 2023 Killing wazuh-modulesd... Killing wazuh-logcollector... Killing wazuh-syscheckd... Killing wazuh-agentd... Killing wazuh-execd... Wazuh v4.4.4 Stopped Starting Wazuh v4.4.4... Started wazuh-execd... Started wazuh-agentd... Started wazuh-syscheckd... Started wazuh-logcollector... Started wazuh-modulesd... Completed.
-----------------------------Captured stderr setup------------------------------
2023/06/23 05:07:04 wazuh-agentd[6549] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/06/23 05:07:04 wazuh-agentd[6549] main.c:139 at main(): DEBUG: Wazuh home directory: /Library/Ossec 2023/06/23 05:07:04 wazuh-agentd[6549] main.c:141 at main(): DEBUG: Started (pid: 6549). 2023/06/23 05:07:04 wazuh-agentd[6549] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:07:04 wazuh-agentd[6549] agent_op.c:223 at os_read_agent_profile(): ERROR: (1103): Could not open file 'queue/sockets/.agent_info' due to [(2)-(No such file or directory)]. 2023/06/23 05:07:04 wazuh-agentd[6549] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:07:04 wazuh-agentd[6549] config.c:433 at ReadConfig(): DEBUG: but agent has a profile name. 2023/06/23 05:07:04 wazuh-agentd[6549] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:07:04 wazuh-agentd[6549] agent_op.c:223 at os_read_agent_profile(): ERROR: (1103): Could not open file 'queue/sockets/.agent_info' due to [(2)-(No such file or directory)]. 2023/06/23 05:07:04 wazuh-agentd[6549] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:07:04 wazuh-agentd[6549] config.c:433 at ReadConfig(): DEBUG: but agent has a profile name. 2023/06/23 05:07:04 wazuh-syscheckd[6550] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/06/23 05:07:04 wazuh-syscheckd[6550] config.c:33 at Read_Syscheck_Config(): DEBUG: (6287): Reading configuration file: 'etc/ossec.conf' 2023/06/23 05:07:04 wazuh-syscheckd[6550] syscheck-config.c:2421 at process_option_regex(): DEBUG: Found ignore regex node .log$|.swp$ 2023/06/23 05:07:04 wazuh-syscheckd[6550] syscheck-config.c:2428 at process_option_regex(): DEBUG: Found ignore regex node .log$|.swp$ OK? 2023/06/23 05:07:04 wazuh-syscheckd[6550] syscheck-config.c:2429 at process_option_regex(): DEBUG: Found ignore regex size 0 2023/06/23 05:07:04 wazuh-syscheckd[6550] config.c:41 at Read_Syscheck_Config(): DEBUG: (6208): Reading Client Configuration [etc/ossec.conf] 2023/06/23 05:07:04 wazuh-syscheckd[6550] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:07:04 wazuh-syscheckd[6550] agent_op.c:223 at os_read_agent_profile(): ERROR: (1103): Could not open file 'queue/sockets/.agent_info' due to [(2)-(No such file or directory)]. 2023/06/23 05:07:04 wazuh-syscheckd[6550] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:07:04 wazuh-syscheckd[6550] config.c:433 at ReadConfig(): DEBUG: but agent has a profile name. 2023/06/23 05:07:04 wazuh-syscheckd[6550] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:07:04 wazuh-syscheckd[6550] agent_op.c:223 at os_read_agent_profile(): ERROR: (1103): Could not open file 'queue/sockets/.agent_info' due to [(2)-(No such file or directory)]. 2023/06/23 05:07:04 wazuh-syscheckd[6550] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:07:04 wazuh-syscheckd[6550] config.c:433 at ReadConfig(): DEBUG: but agent has a profile name. 2023/06/23 05:07:04 wazuh-logcollector: ERROR: (1103): Could not open file 'queue/sockets/.agent_info' due to [(2)-(No such file or directory)]. 2023/06/23 05:07:04 wazuh-modulesd[6552] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/06/23 05:07:04 wazuh-modulesd[6552] main.c:77 at main(): DEBUG: Wazuh home directory: /Library/Ossec 2023/06/23 05:07:04 wazuh-modulesd[6552] wmodules-osquery-monitor.c:78 at wm_osquery_monitor_read(): DEBUG: Logpath read: /var/log/osquery/osqueryd.results.log 2023/06/23 05:07:04 wazuh-modulesd[6552] wmodules-osquery-monitor.c:84 at wm_osquery_monitor_read(): DEBUG: configPath read: /etc/osquery/osquery.conf 2023/06/23 05:07:04 wazuh-modulesd[6552] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:07:04 wazuh-modulesd[6552] agent_op.c:223 at os_read_agent_profile(): ERROR: (1103): Could not open file 'queue/sockets/.agent_info' due to [(2)-(No such file or directory)]. 2023/06/23 05:07:04 wazuh-modulesd[6552] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:07:04 wazuh-modulesd[6552] config.c:433 at ReadConfig(): DEBUG: but agent has a profile name. 2023/06/23 05:07:05 wazuh-agentd[6577] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/06/23 05:07:05 wazuh-agentd[6577] main.c:139 at main(): DEBUG: Wazuh home directory: /Library/Ossec 2023/06/23 05:07:05 wazuh-agentd[6577] main.c:141 at main(): DEBUG: Started (pid: 6577). 2023/06/23 05:07:05 wazuh-agentd[6577] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:07:05 wazuh-agentd[6577] agent_op.c:223 at os_read_agent_profile(): ERROR: (1103): Could not open file 'queue/sockets/.agent_info' due to [(2)-(No such file or directory)]. 2023/06/23 05:07:05 wazuh-agentd[6577] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:07:05 wazuh-agentd[6577] config.c:433 at ReadConfig(): DEBUG: but agent has a profile name. 2023/06/23 05:07:05 wazuh-agentd[6577] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:07:05 wazuh-agentd[6577] agent_op.c:223 at os_read_agent_profile(): ERROR: (1103): Could not open file 'queue/sockets/.agent_info' due to [(2)-(No such file or directory)]. 2023/06/23 05:07:05 wazuh-agentd[6577] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:07:05 wazuh-agentd[6577] config.c:433 at ReadConfig(): DEBUG: but agent has a profile name. 2023/06/23 05:07:06 wazuh-syscheckd[6595] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/06/23 05:07:06 wazuh-syscheckd[6595] config.c:33 at Read_Syscheck_Config(): DEBUG: (6287): Reading configuration file: 'etc/ossec.conf' 2023/06/23 05:07:06 wazuh-syscheckd[6595] syscheck-config.c:2421 at process_option_regex(): DEBUG: Found ignore regex node .log$|.swp$ 2023/06/23 05:07:06 wazuh-syscheckd[6595] syscheck-config.c:2428 at process_option_regex(): DEBUG: Found ignore regex node .log$|.swp$ OK? 2023/06/23 05:07:06 wazuh-syscheckd[6595] syscheck-config.c:2429 at process_option_regex(): DEBUG: Found ignore regex size 0 2023/06/23 05:07:06 wazuh-syscheckd[6595] config.c:41 at Read_Syscheck_Config(): DEBUG: (6208): Reading Client Configuration [etc/ossec.conf] 2023/06/23 05:07:06 wazuh-syscheckd[6595] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:07:06 wazuh-syscheckd[6595] agent_op.c:238 at os_read_agent_profile(): DEBUG: os_read_agent_profile() = [centos, centos7, centos7.4] 2023/06/23 05:07:06 wazuh-syscheckd[6595] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:07:06 wazuh-syscheckd[6595] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:07:06 wazuh-syscheckd[6595] agent_op.c:238 at os_read_agent_profile(): DEBUG: os_read_agent_profile() = [centos, centos7, centos7.4] 2023/06/23 05:07:06 wazuh-syscheckd[6595] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:07:06 rootcheck[6595] rootcheck.c:202 at rootcheck_init(): INFO: Rootcheck disabled. 2023/06/23 05:07:09 wazuh-modulesd[6617] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/06/23 05:07:09 wazuh-modulesd[6617] main.c:77 at main(): DEBUG: Wazuh home directory: /Library/Ossec 2023/06/23 05:07:09 wazuh-modulesd[6617] wmodules-osquery-monitor.c:78 at wm_osquery_monitor_read(): DEBUG: Logpath read: /var/log/osquery/osqueryd.results.log 2023/06/23 05:07:09 wazuh-modulesd[6617] wmodules-osquery-monitor.c:84 at wm_osquery_monitor_read(): DEBUG: configPath read: /etc/osquery/osquery.conf 2023/06/23 05:07:09 wazuh-modulesd[6617] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:07:09 wazuh-modulesd[6617] agent_op.c:238 at os_read_agent_profile(): DEBUG: os_read_agent_profile() = [centos, centos7, centos7.4] 2023/06/23 05:07:09 wazuh-modulesd[6617] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes.
Failed 2023-06-23 12:08:24.086716 test_remoted/test_agent_communication/test_multi_agent_protocols_communication.py::test_multi_agents_protocols_communication[TCP,UDP_56000] description: Check agent-manager communication with several agents simultaneously via TCP, UDP or both.. For this purpose, the test will create all the agents and select the protocol using Round-Robin. Then,. an event and a message will be created for each agent created. Finally, it will search for. those events within the messages sent to the manager. 8.14 2

Test function details

Extended Summary

wazuh_min_version: 4.2.0
tier: 2
parameters:
- get_configuration:
type: fixture
brief: Get configurations from the module.
- configure_environment:
type: fixture
brief: Configure a custom environment for testing. Restart Wazuh is needed for applying the configuration.
- restart_wazuh:
type: fixture
brief: Stop Wazuh, reset ossec.log and start a new monitor. Then start Wazuh.
assertions:
- Verify that the custom events created has been logged correctly.
input_description: A configuration template (test_multi_agent_protocols_communication) is contained in an external
YAML file, (wazuh_multi_agent_protocols_communication.yaml). That template is combined with
different test cases defined in the module. Those include configuration settings for the
'wazuh-remoted' daemon and agents info.
expected_output:
- r".* test message from agent .*"
- Agent message was not received or took too much time.
tags:
- simulator
- remoted

Parameters

test_remoted/test_agent_communication/test_multi_agent_protocols_communication.py:214: in test_multi_agents_protocols_communication
validate_agent_manager_protocol_communication(manager_port=manager_port, protocol=protocol)
test_remoted/test_agent_communication/test_multi_agent_protocols_communication.py:124: in validate_agent_manager_protocol_communication
disable_all_modules=agent_info['disable_all_modules'])
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/agent_simulator.py:1685: in create_agents
os=agent_os, version=agent_version, disable_all_modules=disable_all_modules))
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/agent_simulator.py:188: in __init__
self.setup(disable_all_modules=disable_all_modules)
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/agent_simulator.py:201: in setup
self.register()
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/agent_simulator.py:281: in register
self._register_helper()
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/agent_simulator.py:245: in _register_helper
ssl_socket.connect((self.registration_address, 1515))
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/ssl.py:1150: in connect
self._real_connect(addr, False)
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/ssl.py:1137: in _real_connect
super().connect(addr)
E ConnectionRefusedError: [Errno 61] Connection refused
-----------------------------Captured stdout setup------------------------------
Fri Jun 23 12:07:12 UTC 2023 Killing wazuh-modulesd... Killing wazuh-logcollector... Killing wazuh-syscheckd... Killing wazuh-agentd... Killing wazuh-execd... Wazuh v4.4.4 Stopped Starting Wazuh v4.4.4... Started wazuh-execd... Started wazuh-agentd... Started wazuh-syscheckd... Started wazuh-logcollector... Started wazuh-modulesd... Completed.
-----------------------------Captured stderr setup------------------------------
2023/06/23 05:07:12 wazuh-agentd[6719] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/06/23 05:07:12 wazuh-agentd[6719] main.c:139 at main(): DEBUG: Wazuh home directory: /Library/Ossec 2023/06/23 05:07:12 wazuh-agentd[6719] main.c:141 at main(): DEBUG: Started (pid: 6719). 2023/06/23 05:07:12 wazuh-agentd[6719] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:07:12 wazuh-agentd[6719] agent_op.c:223 at os_read_agent_profile(): ERROR: (1103): Could not open file 'queue/sockets/.agent_info' due to [(2)-(No such file or directory)]. 2023/06/23 05:07:12 wazuh-agentd[6719] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:07:12 wazuh-agentd[6719] config.c:433 at ReadConfig(): DEBUG: but agent has a profile name. 2023/06/23 05:07:12 wazuh-agentd[6719] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:07:12 wazuh-agentd[6719] agent_op.c:223 at os_read_agent_profile(): ERROR: (1103): Could not open file 'queue/sockets/.agent_info' due to [(2)-(No such file or directory)]. 2023/06/23 05:07:12 wazuh-agentd[6719] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:07:12 wazuh-agentd[6719] config.c:433 at ReadConfig(): DEBUG: but agent has a profile name. 2023/06/23 05:07:12 wazuh-syscheckd[6720] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/06/23 05:07:12 wazuh-syscheckd[6720] config.c:33 at Read_Syscheck_Config(): DEBUG: (6287): Reading configuration file: 'etc/ossec.conf' 2023/06/23 05:07:12 wazuh-syscheckd[6720] syscheck-config.c:2421 at process_option_regex(): DEBUG: Found ignore regex node .log$|.swp$ 2023/06/23 05:07:12 wazuh-syscheckd[6720] syscheck-config.c:2428 at process_option_regex(): DEBUG: Found ignore regex node .log$|.swp$ OK? 2023/06/23 05:07:12 wazuh-syscheckd[6720] syscheck-config.c:2429 at process_option_regex(): DEBUG: Found ignore regex size 0 2023/06/23 05:07:12 wazuh-syscheckd[6720] config.c:41 at Read_Syscheck_Config(): DEBUG: (6208): Reading Client Configuration [etc/ossec.conf] 2023/06/23 05:07:12 wazuh-syscheckd[6720] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:07:12 wazuh-syscheckd[6720] agent_op.c:223 at os_read_agent_profile(): ERROR: (1103): Could not open file 'queue/sockets/.agent_info' due to [(2)-(No such file or directory)]. 2023/06/23 05:07:12 wazuh-syscheckd[6720] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:07:12 wazuh-syscheckd[6720] config.c:433 at ReadConfig(): DEBUG: but agent has a profile name. 2023/06/23 05:07:12 wazuh-syscheckd[6720] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:07:12 wazuh-syscheckd[6720] agent_op.c:223 at os_read_agent_profile(): ERROR: (1103): Could not open file 'queue/sockets/.agent_info' due to [(2)-(No such file or directory)]. 2023/06/23 05:07:12 wazuh-syscheckd[6720] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:07:12 wazuh-syscheckd[6720] config.c:433 at ReadConfig(): DEBUG: but agent has a profile name. 2023/06/23 05:07:12 wazuh-logcollector: ERROR: (1103): Could not open file 'queue/sockets/.agent_info' due to [(2)-(No such file or directory)]. 2023/06/23 05:07:12 wazuh-modulesd[6722] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/06/23 05:07:12 wazuh-modulesd[6722] main.c:77 at main(): DEBUG: Wazuh home directory: /Library/Ossec 2023/06/23 05:07:12 wazuh-modulesd[6722] wmodules-osquery-monitor.c:78 at wm_osquery_monitor_read(): DEBUG: Logpath read: /var/log/osquery/osqueryd.results.log 2023/06/23 05:07:12 wazuh-modulesd[6722] wmodules-osquery-monitor.c:84 at wm_osquery_monitor_read(): DEBUG: configPath read: /etc/osquery/osquery.conf 2023/06/23 05:07:12 wazuh-modulesd[6722] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:07:12 wazuh-modulesd[6722] agent_op.c:223 at os_read_agent_profile(): ERROR: (1103): Could not open file 'queue/sockets/.agent_info' due to [(2)-(No such file or directory)]. 2023/06/23 05:07:12 wazuh-modulesd[6722] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:07:12 wazuh-modulesd[6722] config.c:433 at ReadConfig(): DEBUG: but agent has a profile name. 2023/06/23 05:07:13 wazuh-agentd[6747] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/06/23 05:07:13 wazuh-agentd[6747] main.c:139 at main(): DEBUG: Wazuh home directory: /Library/Ossec 2023/06/23 05:07:13 wazuh-agentd[6747] main.c:141 at main(): DEBUG: Started (pid: 6747). 2023/06/23 05:07:13 wazuh-agentd[6747] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:07:13 wazuh-agentd[6747] agent_op.c:223 at os_read_agent_profile(): ERROR: (1103): Could not open file 'queue/sockets/.agent_info' due to [(2)-(No such file or directory)]. 2023/06/23 05:07:13 wazuh-agentd[6747] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:07:13 wazuh-agentd[6747] config.c:433 at ReadConfig(): DEBUG: but agent has a profile name. 2023/06/23 05:07:13 wazuh-agentd[6747] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:07:13 wazuh-agentd[6747] agent_op.c:223 at os_read_agent_profile(): ERROR: (1103): Could not open file 'queue/sockets/.agent_info' due to [(2)-(No such file or directory)]. 2023/06/23 05:07:13 wazuh-agentd[6747] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:07:13 wazuh-agentd[6747] config.c:433 at ReadConfig(): DEBUG: but agent has a profile name. 2023/06/23 05:07:14 wazuh-syscheckd[6765] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/06/23 05:07:14 wazuh-syscheckd[6765] config.c:33 at Read_Syscheck_Config(): DEBUG: (6287): Reading configuration file: 'etc/ossec.conf' 2023/06/23 05:07:14 wazuh-syscheckd[6765] syscheck-config.c:2421 at process_option_regex(): DEBUG: Found ignore regex node .log$|.swp$ 2023/06/23 05:07:14 wazuh-syscheckd[6765] syscheck-config.c:2428 at process_option_regex(): DEBUG: Found ignore regex node .log$|.swp$ OK? 2023/06/23 05:07:14 wazuh-syscheckd[6765] syscheck-config.c:2429 at process_option_regex(): DEBUG: Found ignore regex size 0 2023/06/23 05:07:14 wazuh-syscheckd[6765] config.c:41 at Read_Syscheck_Config(): DEBUG: (6208): Reading Client Configuration [etc/ossec.conf] 2023/06/23 05:07:14 wazuh-syscheckd[6765] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:07:14 wazuh-syscheckd[6765] agent_op.c:238 at os_read_agent_profile(): DEBUG: os_read_agent_profile() = [centos, centos7, centos7.4] 2023/06/23 05:07:14 wazuh-syscheckd[6765] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:07:14 wazuh-syscheckd[6765] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:07:14 wazuh-syscheckd[6765] agent_op.c:238 at os_read_agent_profile(): DEBUG: os_read_agent_profile() = [centos, centos7, centos7.4] 2023/06/23 05:07:14 wazuh-syscheckd[6765] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:07:14 rootcheck[6765] rootcheck.c:202 at rootcheck_init(): INFO: Rootcheck disabled. 2023/06/23 05:07:17 wazuh-modulesd[6787] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/06/23 05:07:17 wazuh-modulesd[6787] main.c:77 at main(): DEBUG: Wazuh home directory: /Library/Ossec 2023/06/23 05:07:17 wazuh-modulesd[6787] wmodules-osquery-monitor.c:78 at wm_osquery_monitor_read(): DEBUG: Logpath read: /var/log/osquery/osqueryd.results.log 2023/06/23 05:07:17 wazuh-modulesd[6787] wmodules-osquery-monitor.c:84 at wm_osquery_monitor_read(): DEBUG: configPath read: /etc/osquery/osquery.conf 2023/06/23 05:07:17 wazuh-modulesd[6787] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:07:17 wazuh-modulesd[6787] agent_op.c:238 at os_read_agent_profile(): DEBUG: os_read_agent_profile() = [centos, centos7, centos7.4] 2023/06/23 05:07:17 wazuh-modulesd[6787] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes.
----------------------------Captured stdout teardown----------------------------
Fri Jun 23 12:07:20 UTC 2023
Failed 2023-06-23 12:08:24.098161 test_remoted/test_socket_communication/test_syslog_message.py::test_syslog_message[syslog_UDP_514-dummy] description: Check if 'wazuh-remoted' can receive syslog messages through the socket. 8.14 0

Test function details

Extended Summary

wazuh_min_version: 4.2.0
tier: 0
parameters:
- message:
type: fixture
brief: Message sent
- get_configuration:
type: fixture
brief: Get configurations from the module.
- configure_environment:
type: fixture
brief: Configure a custom environment for testing.
- restart_remoted:
type: fixture
brief: Restart 'wazuh-remoted' daemon in manager.
assertions:
- Verify the syslog message is received.
input_description: A configuration template (test_syslog_message) is contained in an external YAML file,
(wazuh_syslog.yaml). That template is combined with different test cases defined
in the module. Those include configuration settings for the 'wazuh-remoted' daemon
and agents info.
expected_output:
- r'Started : .* Listening on port .*'
- r'<.>.*'

Parameters

test_remoted/test_socket_communication/test_syslog_message.py:152: in test_syslog_message
wazuh_archives_log_monitor = remote.create_archives_log_monitor()
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/remote.py:329: in create_archives_log_monitor
truncate_file(ARCHIVES_LOG_PATH)
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/file.py:79: in truncate_file
with open(file_path, 'w'):
E FileNotFoundError: [Errno 2] No such file or directory: '/Library/Ossec/logs/archives/archives.log'
-----------------------------Captured stdout setup------------------------------
Killing wazuh-modulesd... Killing wazuh-logcollector... Killing wazuh-syscheckd... Killing wazuh-agentd... Killing wazuh-execd... Wazuh v4.4.4 Stopped Starting Wazuh v4.4.4... Started wazuh-execd... Started wazuh-agentd... Started wazuh-syscheckd... Started wazuh-logcollector... Started wazuh-modulesd... Completed.
-----------------------------Captured stderr setup------------------------------
2023/06/23 05:07:20 wazuh-agentd[6966] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/06/23 05:07:20 wazuh-agentd[6966] main.c:139 at main(): DEBUG: Wazuh home directory: /Library/Ossec 2023/06/23 05:07:20 wazuh-agentd[6966] main.c:141 at main(): DEBUG: Started (pid: 6966). 2023/06/23 05:07:20 wazuh-agentd[6966] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:07:20 wazuh-agentd[6966] agent_op.c:223 at os_read_agent_profile(): ERROR: (1103): Could not open file 'queue/sockets/.agent_info' due to [(2)-(No such file or directory)]. 2023/06/23 05:07:20 wazuh-agentd[6966] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:07:20 wazuh-agentd[6966] config.c:433 at ReadConfig(): DEBUG: but agent has a profile name. 2023/06/23 05:07:20 wazuh-agentd[6966] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:07:20 wazuh-agentd[6966] agent_op.c:223 at os_read_agent_profile(): ERROR: (1103): Could not open file 'queue/sockets/.agent_info' due to [(2)-(No such file or directory)]. 2023/06/23 05:07:20 wazuh-agentd[6966] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:07:20 wazuh-agentd[6966] config.c:433 at ReadConfig(): DEBUG: but agent has a profile name. 2023/06/23 05:07:20 wazuh-syscheckd[6967] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/06/23 05:07:20 wazuh-syscheckd[6967] config.c:33 at Read_Syscheck_Config(): DEBUG: (6287): Reading configuration file: 'etc/ossec.conf' 2023/06/23 05:07:20 wazuh-syscheckd[6967] syscheck-config.c:2421 at process_option_regex(): DEBUG: Found ignore regex node .log$|.swp$ 2023/06/23 05:07:20 wazuh-syscheckd[6967] syscheck-config.c:2428 at process_option_regex(): DEBUG: Found ignore regex node .log$|.swp$ OK? 2023/06/23 05:07:20 wazuh-syscheckd[6967] syscheck-config.c:2429 at process_option_regex(): DEBUG: Found ignore regex size 0 2023/06/23 05:07:20 wazuh-syscheckd[6967] config.c:41 at Read_Syscheck_Config(): DEBUG: (6208): Reading Client Configuration [etc/ossec.conf] 2023/06/23 05:07:20 wazuh-syscheckd[6967] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:07:20 wazuh-syscheckd[6967] agent_op.c:223 at os_read_agent_profile(): ERROR: (1103): Could not open file 'queue/sockets/.agent_info' due to [(2)-(No such file or directory)]. 2023/06/23 05:07:20 wazuh-syscheckd[6967] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:07:20 wazuh-syscheckd[6967] config.c:433 at ReadConfig(): DEBUG: but agent has a profile name. 2023/06/23 05:07:20 wazuh-syscheckd[6967] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:07:20 wazuh-syscheckd[6967] agent_op.c:223 at os_read_agent_profile(): ERROR: (1103): Could not open file 'queue/sockets/.agent_info' due to [(2)-(No such file or directory)]. 2023/06/23 05:07:20 wazuh-syscheckd[6967] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:07:20 wazuh-syscheckd[6967] config.c:433 at ReadConfig(): DEBUG: but agent has a profile name. 2023/06/23 05:07:20 wazuh-logcollector: ERROR: (1103): Could not open file 'queue/sockets/.agent_info' due to [(2)-(No such file or directory)]. 2023/06/23 05:07:20 wazuh-modulesd[6969] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/06/23 05:07:20 wazuh-modulesd[6969] main.c:77 at main(): DEBUG: Wazuh home directory: /Library/Ossec 2023/06/23 05:07:20 wazuh-modulesd[6969] wmodules-osquery-monitor.c:78 at wm_osquery_monitor_read(): DEBUG: Logpath read: /var/log/osquery/osqueryd.results.log 2023/06/23 05:07:20 wazuh-modulesd[6969] wmodules-osquery-monitor.c:84 at wm_osquery_monitor_read(): DEBUG: configPath read: /etc/osquery/osquery.conf 2023/06/23 05:07:20 wazuh-modulesd[6969] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:07:20 wazuh-modulesd[6969] agent_op.c:223 at os_read_agent_profile(): ERROR: (1103): Could not open file 'queue/sockets/.agent_info' due to [(2)-(No such file or directory)]. 2023/06/23 05:07:20 wazuh-modulesd[6969] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:07:20 wazuh-modulesd[6969] config.c:433 at ReadConfig(): DEBUG: but agent has a profile name. 2023/06/23 05:07:21 wazuh-agentd[6994] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/06/23 05:07:21 wazuh-agentd[6994] main.c:139 at main(): DEBUG: Wazuh home directory: /Library/Ossec 2023/06/23 05:07:21 wazuh-agentd[6994] main.c:141 at main(): DEBUG: Started (pid: 6994). 2023/06/23 05:07:21 wazuh-agentd[6994] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:07:21 wazuh-agentd[6994] agent_op.c:223 at os_read_agent_profile(): ERROR: (1103): Could not open file 'queue/sockets/.agent_info' due to [(2)-(No such file or directory)]. 2023/06/23 05:07:21 wazuh-agentd[6994] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:07:21 wazuh-agentd[6994] config.c:433 at ReadConfig(): DEBUG: but agent has a profile name. 2023/06/23 05:07:21 wazuh-agentd[6994] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:07:21 wazuh-agentd[6994] agent_op.c:223 at os_read_agent_profile(): ERROR: (1103): Could not open file 'queue/sockets/.agent_info' due to [(2)-(No such file or directory)]. 2023/06/23 05:07:21 wazuh-agentd[6994] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:07:21 wazuh-agentd[6994] config.c:433 at ReadConfig(): DEBUG: but agent has a profile name. 2023/06/23 05:07:22 wazuh-syscheckd[7012] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/06/23 05:07:22 wazuh-syscheckd[7012] config.c:33 at Read_Syscheck_Config(): DEBUG: (6287): Reading configuration file: 'etc/ossec.conf' 2023/06/23 05:07:22 wazuh-syscheckd[7012] syscheck-config.c:2421 at process_option_regex(): DEBUG: Found ignore regex node .log$|.swp$ 2023/06/23 05:07:22 wazuh-syscheckd[7012] syscheck-config.c:2428 at process_option_regex(): DEBUG: Found ignore regex node .log$|.swp$ OK? 2023/06/23 05:07:22 wazuh-syscheckd[7012] syscheck-config.c:2429 at process_option_regex(): DEBUG: Found ignore regex size 0 2023/06/23 05:07:22 wazuh-syscheckd[7012] config.c:41 at Read_Syscheck_Config(): DEBUG: (6208): Reading Client Configuration [etc/ossec.conf] 2023/06/23 05:07:22 wazuh-syscheckd[7012] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:07:22 wazuh-syscheckd[7012] agent_op.c:238 at os_read_agent_profile(): DEBUG: os_read_agent_profile() = [centos, centos7, centos7.4] 2023/06/23 05:07:22 wazuh-syscheckd[7012] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:07:22 wazuh-syscheckd[7012] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:07:22 wazuh-syscheckd[7012] agent_op.c:238 at os_read_agent_profile(): DEBUG: os_read_agent_profile() = [centos, centos7, centos7.4] 2023/06/23 05:07:22 wazuh-syscheckd[7012] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:07:22 rootcheck[7012] rootcheck.c:202 at rootcheck_init(): INFO: Rootcheck disabled. 2023/06/23 05:07:25 wazuh-modulesd[7034] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/06/23 05:07:25 wazuh-modulesd[7034] main.c:77 at main(): DEBUG: Wazuh home directory: /Library/Ossec 2023/06/23 05:07:25 wazuh-modulesd[7034] wmodules-osquery-monitor.c:78 at wm_osquery_monitor_read(): DEBUG: Logpath read: /var/log/osquery/osqueryd.results.log 2023/06/23 05:07:25 wazuh-modulesd[7034] wmodules-osquery-monitor.c:84 at wm_osquery_monitor_read(): DEBUG: configPath read: /etc/osquery/osquery.conf 2023/06/23 05:07:25 wazuh-modulesd[7034] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:07:25 wazuh-modulesd[7034] agent_op.c:238 at os_read_agent_profile(): DEBUG: os_read_agent_profile() = [centos, centos7, centos7.4] 2023/06/23 05:07:25 wazuh-modulesd[7034] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes.
Failed 2023-06-23 12:08:24.099474 test_remoted/test_socket_communication/test_syslog_message.py::test_syslog_message[syslog_UDP_514-failed_login_sshd] description: Check if 'wazuh-remoted' can receive syslog messages through the socket. 0.00 0

Test function details

Extended Summary

wazuh_min_version: 4.2.0
tier: 0
parameters:
- message:
type: fixture
brief: Message sent
- get_configuration:
type: fixture
brief: Get configurations from the module.
- configure_environment:
type: fixture
brief: Configure a custom environment for testing.
- restart_remoted:
type: fixture
brief: Restart 'wazuh-remoted' daemon in manager.
assertions:
- Verify the syslog message is received.
input_description: A configuration template (test_syslog_message) is contained in an external YAML file,
(wazuh_syslog.yaml). That template is combined with different test cases defined
in the module. Those include configuration settings for the 'wazuh-remoted' daemon
and agents info.
expected_output:
- r'Started : .* Listening on port .*'
- r'<.>.*'

Parameters

test_remoted/test_socket_communication/test_syslog_message.py:152: in test_syslog_message
wazuh_archives_log_monitor = remote.create_archives_log_monitor()
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/remote.py:329: in create_archives_log_monitor
truncate_file(ARCHIVES_LOG_PATH)
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/file.py:79: in truncate_file
with open(file_path, 'w'):
E FileNotFoundError: [Errno 2] No such file or directory: '/Library/Ossec/logs/archives/archives.log'
Failed 2023-06-23 12:08:24.101070 test_remoted/test_socket_communication/test_syslog_message.py::test_syslog_message[syslog_UDP_514-failed_login_sshd_pri_header] description: Check if 'wazuh-remoted' can receive syslog messages through the socket. 0.00 0

Test function details

Extended Summary

wazuh_min_version: 4.2.0
tier: 0
parameters:
- message:
type: fixture
brief: Message sent
- get_configuration:
type: fixture
brief: Get configurations from the module.
- configure_environment:
type: fixture
brief: Configure a custom environment for testing.
- restart_remoted:
type: fixture
brief: Restart 'wazuh-remoted' daemon in manager.
assertions:
- Verify the syslog message is received.
input_description: A configuration template (test_syslog_message) is contained in an external YAML file,
(wazuh_syslog.yaml). That template is combined with different test cases defined
in the module. Those include configuration settings for the 'wazuh-remoted' daemon
and agents info.
expected_output:
- r'Started : .* Listening on port .*'
- r'<.>.*'

Parameters

test_remoted/test_socket_communication/test_syslog_message.py:152: in test_syslog_message
wazuh_archives_log_monitor = remote.create_archives_log_monitor()
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/remote.py:329: in create_archives_log_monitor
truncate_file(ARCHIVES_LOG_PATH)
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/file.py:79: in truncate_file
with open(file_path, 'w'):
E FileNotFoundError: [Errno 2] No such file or directory: '/Library/Ossec/logs/archives/archives.log'
Failed 2023-06-23 12:08:24.103358 test_remoted/test_socket_communication/test_syslog_message.py::test_syslog_message[syslog_UDP_514-dummy_pri_header] description: Check if 'wazuh-remoted' can receive syslog messages through the socket. 0.00 0

Test function details

Extended Summary

wazuh_min_version: 4.2.0
tier: 0
parameters:
- message:
type: fixture
brief: Message sent
- get_configuration:
type: fixture
brief: Get configurations from the module.
- configure_environment:
type: fixture
brief: Configure a custom environment for testing.
- restart_remoted:
type: fixture
brief: Restart 'wazuh-remoted' daemon in manager.
assertions:
- Verify the syslog message is received.
input_description: A configuration template (test_syslog_message) is contained in an external YAML file,
(wazuh_syslog.yaml). That template is combined with different test cases defined
in the module. Those include configuration settings for the 'wazuh-remoted' daemon
and agents info.
expected_output:
- r'Started : .* Listening on port .*'
- r'<.>.*'

Parameters

test_remoted/test_socket_communication/test_syslog_message.py:152: in test_syslog_message
wazuh_archives_log_monitor = remote.create_archives_log_monitor()
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/remote.py:329: in create_archives_log_monitor
truncate_file(ARCHIVES_LOG_PATH)
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/file.py:79: in truncate_file
with open(file_path, 'w'):
E FileNotFoundError: [Errno 2] No such file or directory: '/Library/Ossec/logs/archives/archives.log'
Failed 2023-06-23 12:08:24.105215 test_remoted/test_socket_communication/test_syslog_message.py::test_syslog_message[syslog_UDP_514-dummy_bad_formatted_pri_header] description: Check if 'wazuh-remoted' can receive syslog messages through the socket. 0.00 0

Test function details

Extended Summary

wazuh_min_version: 4.2.0
tier: 0
parameters:
- message:
type: fixture
brief: Message sent
- get_configuration:
type: fixture
brief: Get configurations from the module.
- configure_environment:
type: fixture
brief: Configure a custom environment for testing.
- restart_remoted:
type: fixture
brief: Restart 'wazuh-remoted' daemon in manager.
assertions:
- Verify the syslog message is received.
input_description: A configuration template (test_syslog_message) is contained in an external YAML file,
(wazuh_syslog.yaml). That template is combined with different test cases defined
in the module. Those include configuration settings for the 'wazuh-remoted' daemon
and agents info.
expected_output:
- r'Started : .* Listening on port .*'
- r'<.>.*'

Parameters

test_remoted/test_socket_communication/test_syslog_message.py:152: in test_syslog_message
wazuh_archives_log_monitor = remote.create_archives_log_monitor()
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/remote.py:329: in create_archives_log_monitor
truncate_file(ARCHIVES_LOG_PATH)
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/file.py:79: in truncate_file
with open(file_path, 'w'):
E FileNotFoundError: [Errno 2] No such file or directory: '/Library/Ossec/logs/archives/archives.log'
Failed 2023-06-23 12:08:24.106678 test_remoted/test_socket_communication/test_syslog_message.py::test_syslog_message[syslog_UDP_51000-dummy] description: Check if 'wazuh-remoted' can receive syslog messages through the socket. 8.14 0

Test function details

Extended Summary

wazuh_min_version: 4.2.0
tier: 0
parameters:
- message:
type: fixture
brief: Message sent
- get_configuration:
type: fixture
brief: Get configurations from the module.
- configure_environment:
type: fixture
brief: Configure a custom environment for testing.
- restart_remoted:
type: fixture
brief: Restart 'wazuh-remoted' daemon in manager.
assertions:
- Verify the syslog message is received.
input_description: A configuration template (test_syslog_message) is contained in an external YAML file,
(wazuh_syslog.yaml). That template is combined with different test cases defined
in the module. Those include configuration settings for the 'wazuh-remoted' daemon
and agents info.
expected_output:
- r'Started : .* Listening on port .*'
- r'<.>.*'

Parameters

test_remoted/test_socket_communication/test_syslog_message.py:152: in test_syslog_message
wazuh_archives_log_monitor = remote.create_archives_log_monitor()
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/remote.py:329: in create_archives_log_monitor
truncate_file(ARCHIVES_LOG_PATH)
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/file.py:79: in truncate_file
with open(file_path, 'w'):
E FileNotFoundError: [Errno 2] No such file or directory: '/Library/Ossec/logs/archives/archives.log'
-----------------------------Captured stdout setup------------------------------
Fri Jun 23 12:07:28 UTC 2023 Killing wazuh-modulesd... Killing wazuh-logcollector... Killing wazuh-syscheckd... Killing wazuh-agentd... Killing wazuh-execd... Wazuh v4.4.4 Stopped Starting Wazuh v4.4.4... Started wazuh-execd... Started wazuh-agentd... Started wazuh-syscheckd... Started wazuh-logcollector... Started wazuh-modulesd... Completed.
-----------------------------Captured stderr setup------------------------------
2023/06/23 05:07:28 wazuh-agentd[7136] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/06/23 05:07:28 wazuh-agentd[7136] main.c:139 at main(): DEBUG: Wazuh home directory: /Library/Ossec 2023/06/23 05:07:28 wazuh-agentd[7136] main.c:141 at main(): DEBUG: Started (pid: 7136). 2023/06/23 05:07:28 wazuh-agentd[7136] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:07:28 wazuh-agentd[7136] agent_op.c:223 at os_read_agent_profile(): ERROR: (1103): Could not open file 'queue/sockets/.agent_info' due to [(2)-(No such file or directory)]. 2023/06/23 05:07:28 wazuh-agentd[7136] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:07:28 wazuh-agentd[7136] config.c:433 at ReadConfig(): DEBUG: but agent has a profile name. 2023/06/23 05:07:28 wazuh-agentd[7136] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:07:28 wazuh-agentd[7136] agent_op.c:223 at os_read_agent_profile(): ERROR: (1103): Could not open file 'queue/sockets/.agent_info' due to [(2)-(No such file or directory)]. 2023/06/23 05:07:28 wazuh-agentd[7136] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:07:28 wazuh-agentd[7136] config.c:433 at ReadConfig(): DEBUG: but agent has a profile name. 2023/06/23 05:07:28 wazuh-syscheckd[7137] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/06/23 05:07:28 wazuh-syscheckd[7137] config.c:33 at Read_Syscheck_Config(): DEBUG: (6287): Reading configuration file: 'etc/ossec.conf' 2023/06/23 05:07:28 wazuh-syscheckd[7137] syscheck-config.c:2421 at process_option_regex(): DEBUG: Found ignore regex node .log$|.swp$ 2023/06/23 05:07:28 wazuh-syscheckd[7137] syscheck-config.c:2428 at process_option_regex(): DEBUG: Found ignore regex node .log$|.swp$ OK? 2023/06/23 05:07:28 wazuh-syscheckd[7137] syscheck-config.c:2429 at process_option_regex(): DEBUG: Found ignore regex size 0 2023/06/23 05:07:28 wazuh-syscheckd[7137] config.c:41 at Read_Syscheck_Config(): DEBUG: (6208): Reading Client Configuration [etc/ossec.conf] 2023/06/23 05:07:28 wazuh-syscheckd[7137] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:07:28 wazuh-syscheckd[7137] agent_op.c:223 at os_read_agent_profile(): ERROR: (1103): Could not open file 'queue/sockets/.agent_info' due to [(2)-(No such file or directory)]. 2023/06/23 05:07:28 wazuh-syscheckd[7137] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:07:28 wazuh-syscheckd[7137] config.c:433 at ReadConfig(): DEBUG: but agent has a profile name. 2023/06/23 05:07:28 wazuh-syscheckd[7137] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:07:28 wazuh-syscheckd[7137] agent_op.c:223 at os_read_agent_profile(): ERROR: (1103): Could not open file 'queue/sockets/.agent_info' due to [(2)-(No such file or directory)]. 2023/06/23 05:07:28 wazuh-syscheckd[7137] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:07:28 wazuh-syscheckd[7137] config.c:433 at ReadConfig(): DEBUG: but agent has a profile name. 2023/06/23 05:07:28 wazuh-logcollector: ERROR: (1103): Could not open file 'queue/sockets/.agent_info' due to [(2)-(No such file or directory)]. 2023/06/23 05:07:28 wazuh-modulesd[7139] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/06/23 05:07:28 wazuh-modulesd[7139] main.c:77 at main(): DEBUG: Wazuh home directory: /Library/Ossec 2023/06/23 05:07:28 wazuh-modulesd[7139] wmodules-osquery-monitor.c:78 at wm_osquery_monitor_read(): DEBUG: Logpath read: /var/log/osquery/osqueryd.results.log 2023/06/23 05:07:28 wazuh-modulesd[7139] wmodules-osquery-monitor.c:84 at wm_osquery_monitor_read(): DEBUG: configPath read: /etc/osquery/osquery.conf 2023/06/23 05:07:28 wazuh-modulesd[7139] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:07:28 wazuh-modulesd[7139] agent_op.c:223 at os_read_agent_profile(): ERROR: (1103): Could not open file 'queue/sockets/.agent_info' due to [(2)-(No such file or directory)]. 2023/06/23 05:07:28 wazuh-modulesd[7139] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:07:28 wazuh-modulesd[7139] config.c:433 at ReadConfig(): DEBUG: but agent has a profile name. 2023/06/23 05:07:29 wazuh-agentd[7164] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/06/23 05:07:29 wazuh-agentd[7164] main.c:139 at main(): DEBUG: Wazuh home directory: /Library/Ossec 2023/06/23 05:07:29 wazuh-agentd[7164] main.c:141 at main(): DEBUG: Started (pid: 7164). 2023/06/23 05:07:29 wazuh-agentd[7164] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:07:29 wazuh-agentd[7164] agent_op.c:223 at os_read_agent_profile(): ERROR: (1103): Could not open file 'queue/sockets/.agent_info' due to [(2)-(No such file or directory)]. 2023/06/23 05:07:29 wazuh-agentd[7164] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:07:29 wazuh-agentd[7164] config.c:433 at ReadConfig(): DEBUG: but agent has a profile name. 2023/06/23 05:07:29 wazuh-agentd[7164] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:07:29 wazuh-agentd[7164] agent_op.c:223 at os_read_agent_profile(): ERROR: (1103): Could not open file 'queue/sockets/.agent_info' due to [(2)-(No such file or directory)]. 2023/06/23 05:07:29 wazuh-agentd[7164] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:07:29 wazuh-agentd[7164] config.c:433 at ReadConfig(): DEBUG: but agent has a profile name. 2023/06/23 05:07:30 wazuh-syscheckd[7182] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/06/23 05:07:30 wazuh-syscheckd[7182] config.c:33 at Read_Syscheck_Config(): DEBUG: (6287): Reading configuration file: 'etc/ossec.conf' 2023/06/23 05:07:30 wazuh-syscheckd[7182] syscheck-config.c:2421 at process_option_regex(): DEBUG: Found ignore regex node .log$|.swp$ 2023/06/23 05:07:30 wazuh-syscheckd[7182] syscheck-config.c:2428 at process_option_regex(): DEBUG: Found ignore regex node .log$|.swp$ OK? 2023/06/23 05:07:30 wazuh-syscheckd[7182] syscheck-config.c:2429 at process_option_regex(): DEBUG: Found ignore regex size 0 2023/06/23 05:07:30 wazuh-syscheckd[7182] config.c:41 at Read_Syscheck_Config(): DEBUG: (6208): Reading Client Configuration [etc/ossec.conf] 2023/06/23 05:07:30 wazuh-syscheckd[7182] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:07:30 wazuh-syscheckd[7182] agent_op.c:238 at os_read_agent_profile(): DEBUG: os_read_agent_profile() = [centos, centos7, centos7.4] 2023/06/23 05:07:30 wazuh-syscheckd[7182] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:07:30 wazuh-syscheckd[7182] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:07:30 wazuh-syscheckd[7182] agent_op.c:238 at os_read_agent_profile(): DEBUG: os_read_agent_profile() = [centos, centos7, centos7.4] 2023/06/23 05:07:30 wazuh-syscheckd[7182] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:07:30 rootcheck[7182] rootcheck.c:202 at rootcheck_init(): INFO: Rootcheck disabled. 2023/06/23 05:07:33 wazuh-modulesd[7204] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/06/23 05:07:33 wazuh-modulesd[7204] main.c:77 at main(): DEBUG: Wazuh home directory: /Library/Ossec 2023/06/23 05:07:33 wazuh-modulesd[7204] wmodules-osquery-monitor.c:78 at wm_osquery_monitor_read(): DEBUG: Logpath read: /var/log/osquery/osqueryd.results.log 2023/06/23 05:07:33 wazuh-modulesd[7204] wmodules-osquery-monitor.c:84 at wm_osquery_monitor_read(): DEBUG: configPath read: /etc/osquery/osquery.conf 2023/06/23 05:07:33 wazuh-modulesd[7204] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:07:33 wazuh-modulesd[7204] agent_op.c:238 at os_read_agent_profile(): DEBUG: os_read_agent_profile() = [centos, centos7, centos7.4] 2023/06/23 05:07:33 wazuh-modulesd[7204] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes.
Failed 2023-06-23 12:08:24.108042 test_remoted/test_socket_communication/test_syslog_message.py::test_syslog_message[syslog_UDP_51000-failed_login_sshd] description: Check if 'wazuh-remoted' can receive syslog messages through the socket. 0.00 0

Test function details

Extended Summary

wazuh_min_version: 4.2.0
tier: 0
parameters:
- message:
type: fixture
brief: Message sent
- get_configuration:
type: fixture
brief: Get configurations from the module.
- configure_environment:
type: fixture
brief: Configure a custom environment for testing.
- restart_remoted:
type: fixture
brief: Restart 'wazuh-remoted' daemon in manager.
assertions:
- Verify the syslog message is received.
input_description: A configuration template (test_syslog_message) is contained in an external YAML file,
(wazuh_syslog.yaml). That template is combined with different test cases defined
in the module. Those include configuration settings for the 'wazuh-remoted' daemon
and agents info.
expected_output:
- r'Started : .* Listening on port .*'
- r'<.>.*'

Parameters

test_remoted/test_socket_communication/test_syslog_message.py:152: in test_syslog_message
wazuh_archives_log_monitor = remote.create_archives_log_monitor()
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/remote.py:329: in create_archives_log_monitor
truncate_file(ARCHIVES_LOG_PATH)
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/file.py:79: in truncate_file
with open(file_path, 'w'):
E FileNotFoundError: [Errno 2] No such file or directory: '/Library/Ossec/logs/archives/archives.log'
Failed 2023-06-23 12:08:24.109977 test_remoted/test_socket_communication/test_syslog_message.py::test_syslog_message[syslog_UDP_51000-failed_login_sshd_pri_header] description: Check if 'wazuh-remoted' can receive syslog messages through the socket. 0.00 0

Test function details

Extended Summary

wazuh_min_version: 4.2.0
tier: 0
parameters:
- message:
type: fixture
brief: Message sent
- get_configuration:
type: fixture
brief: Get configurations from the module.
- configure_environment:
type: fixture
brief: Configure a custom environment for testing.
- restart_remoted:
type: fixture
brief: Restart 'wazuh-remoted' daemon in manager.
assertions:
- Verify the syslog message is received.
input_description: A configuration template (test_syslog_message) is contained in an external YAML file,
(wazuh_syslog.yaml). That template is combined with different test cases defined
in the module. Those include configuration settings for the 'wazuh-remoted' daemon
and agents info.
expected_output:
- r'Started : .* Listening on port .*'
- r'<.>.*'

Parameters

test_remoted/test_socket_communication/test_syslog_message.py:152: in test_syslog_message
wazuh_archives_log_monitor = remote.create_archives_log_monitor()
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/remote.py:329: in create_archives_log_monitor
truncate_file(ARCHIVES_LOG_PATH)
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/file.py:79: in truncate_file
with open(file_path, 'w'):
E FileNotFoundError: [Errno 2] No such file or directory: '/Library/Ossec/logs/archives/archives.log'
Failed 2023-06-23 12:08:24.111857 test_remoted/test_socket_communication/test_syslog_message.py::test_syslog_message[syslog_UDP_51000-dummy_pri_header] description: Check if 'wazuh-remoted' can receive syslog messages through the socket. 0.00 0

Test function details

Extended Summary

wazuh_min_version: 4.2.0
tier: 0
parameters:
- message:
type: fixture
brief: Message sent
- get_configuration:
type: fixture
brief: Get configurations from the module.
- configure_environment:
type: fixture
brief: Configure a custom environment for testing.
- restart_remoted:
type: fixture
brief: Restart 'wazuh-remoted' daemon in manager.
assertions:
- Verify the syslog message is received.
input_description: A configuration template (test_syslog_message) is contained in an external YAML file,
(wazuh_syslog.yaml). That template is combined with different test cases defined
in the module. Those include configuration settings for the 'wazuh-remoted' daemon
and agents info.
expected_output:
- r'Started : .* Listening on port .*'
- r'<.>.*'

Parameters

test_remoted/test_socket_communication/test_syslog_message.py:152: in test_syslog_message
wazuh_archives_log_monitor = remote.create_archives_log_monitor()
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/remote.py:329: in create_archives_log_monitor
truncate_file(ARCHIVES_LOG_PATH)
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/file.py:79: in truncate_file
with open(file_path, 'w'):
E FileNotFoundError: [Errno 2] No such file or directory: '/Library/Ossec/logs/archives/archives.log'
Failed 2023-06-23 12:08:24.113583 test_remoted/test_socket_communication/test_syslog_message.py::test_syslog_message[syslog_UDP_51000-dummy_bad_formatted_pri_header] description: Check if 'wazuh-remoted' can receive syslog messages through the socket. 0.00 0

Test function details

Extended Summary

wazuh_min_version: 4.2.0
tier: 0
parameters:
- message:
type: fixture
brief: Message sent
- get_configuration:
type: fixture
brief: Get configurations from the module.
- configure_environment:
type: fixture
brief: Configure a custom environment for testing.
- restart_remoted:
type: fixture
brief: Restart 'wazuh-remoted' daemon in manager.
assertions:
- Verify the syslog message is received.
input_description: A configuration template (test_syslog_message) is contained in an external YAML file,
(wazuh_syslog.yaml). That template is combined with different test cases defined
in the module. Those include configuration settings for the 'wazuh-remoted' daemon
and agents info.
expected_output:
- r'Started : .* Listening on port .*'
- r'<.>.*'

Parameters

test_remoted/test_socket_communication/test_syslog_message.py:152: in test_syslog_message
wazuh_archives_log_monitor = remote.create_archives_log_monitor()
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/remote.py:329: in create_archives_log_monitor
truncate_file(ARCHIVES_LOG_PATH)
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/file.py:79: in truncate_file
with open(file_path, 'w'):
E FileNotFoundError: [Errno 2] No such file or directory: '/Library/Ossec/logs/archives/archives.log'
Failed 2023-06-23 12:08:24.115155 test_remoted/test_socket_communication/test_syslog_message.py::test_syslog_message[syslog_TCP_514-dummy] description: Check if 'wazuh-remoted' can receive syslog messages through the socket. 8.13 0

Test function details

Extended Summary

wazuh_min_version: 4.2.0
tier: 0
parameters:
- message:
type: fixture
brief: Message sent
- get_configuration:
type: fixture
brief: Get configurations from the module.
- configure_environment:
type: fixture
brief: Configure a custom environment for testing.
- restart_remoted:
type: fixture
brief: Restart 'wazuh-remoted' daemon in manager.
assertions:
- Verify the syslog message is received.
input_description: A configuration template (test_syslog_message) is contained in an external YAML file,
(wazuh_syslog.yaml). That template is combined with different test cases defined
in the module. Those include configuration settings for the 'wazuh-remoted' daemon
and agents info.
expected_output:
- r'Started : .* Listening on port .*'
- r'<.>.*'

Parameters

test_remoted/test_socket_communication/test_syslog_message.py:152: in test_syslog_message
wazuh_archives_log_monitor = remote.create_archives_log_monitor()
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/remote.py:329: in create_archives_log_monitor
truncate_file(ARCHIVES_LOG_PATH)
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/file.py:79: in truncate_file
with open(file_path, 'w'):
E FileNotFoundError: [Errno 2] No such file or directory: '/Library/Ossec/logs/archives/archives.log'
-----------------------------Captured stdout setup------------------------------
Fri Jun 23 12:07:36 UTC 2023 Killing wazuh-modulesd... Killing wazuh-logcollector... Killing wazuh-syscheckd... Killing wazuh-agentd... Killing wazuh-execd... Wazuh v4.4.4 Stopped Starting Wazuh v4.4.4... Started wazuh-execd... Started wazuh-agentd... Started wazuh-syscheckd... Started wazuh-logcollector... Started wazuh-modulesd... Completed.
-----------------------------Captured stderr setup------------------------------
2023/06/23 05:07:36 wazuh-agentd[7297] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/06/23 05:07:36 wazuh-agentd[7297] main.c:139 at main(): DEBUG: Wazuh home directory: /Library/Ossec 2023/06/23 05:07:36 wazuh-agentd[7297] main.c:141 at main(): DEBUG: Started (pid: 7297). 2023/06/23 05:07:36 wazuh-agentd[7297] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:07:36 wazuh-agentd[7297] agent_op.c:223 at os_read_agent_profile(): ERROR: (1103): Could not open file 'queue/sockets/.agent_info' due to [(2)-(No such file or directory)]. 2023/06/23 05:07:36 wazuh-agentd[7297] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:07:36 wazuh-agentd[7297] config.c:433 at ReadConfig(): DEBUG: but agent has a profile name. 2023/06/23 05:07:36 wazuh-agentd[7297] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:07:36 wazuh-agentd[7297] agent_op.c:223 at os_read_agent_profile(): ERROR: (1103): Could not open file 'queue/sockets/.agent_info' due to [(2)-(No such file or directory)]. 2023/06/23 05:07:36 wazuh-agentd[7297] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:07:36 wazuh-agentd[7297] config.c:433 at ReadConfig(): DEBUG: but agent has a profile name. 2023/06/23 05:07:36 wazuh-syscheckd[7298] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/06/23 05:07:36 wazuh-syscheckd[7298] config.c:33 at Read_Syscheck_Config(): DEBUG: (6287): Reading configuration file: 'etc/ossec.conf' 2023/06/23 05:07:36 wazuh-syscheckd[7298] syscheck-config.c:2421 at process_option_regex(): DEBUG: Found ignore regex node .log$|.swp$ 2023/06/23 05:07:36 wazuh-syscheckd[7298] syscheck-config.c:2428 at process_option_regex(): DEBUG: Found ignore regex node .log$|.swp$ OK? 2023/06/23 05:07:36 wazuh-syscheckd[7298] syscheck-config.c:2429 at process_option_regex(): DEBUG: Found ignore regex size 0 2023/06/23 05:07:36 wazuh-syscheckd[7298] config.c:41 at Read_Syscheck_Config(): DEBUG: (6208): Reading Client Configuration [etc/ossec.conf] 2023/06/23 05:07:36 wazuh-syscheckd[7298] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:07:36 wazuh-syscheckd[7298] agent_op.c:223 at os_read_agent_profile(): ERROR: (1103): Could not open file 'queue/sockets/.agent_info' due to [(2)-(No such file or directory)]. 2023/06/23 05:07:36 wazuh-syscheckd[7298] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:07:36 wazuh-syscheckd[7298] config.c:433 at ReadConfig(): DEBUG: but agent has a profile name. 2023/06/23 05:07:36 wazuh-syscheckd[7298] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:07:36 wazuh-syscheckd[7298] agent_op.c:223 at os_read_agent_profile(): ERROR: (1103): Could not open file 'queue/sockets/.agent_info' due to [(2)-(No such file or directory)]. 2023/06/23 05:07:36 wazuh-syscheckd[7298] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:07:36 wazuh-syscheckd[7298] config.c:433 at ReadConfig(): DEBUG: but agent has a profile name. 2023/06/23 05:07:36 wazuh-logcollector: ERROR: (1103): Could not open file 'queue/sockets/.agent_info' due to [(2)-(No such file or directory)]. 2023/06/23 05:07:36 wazuh-modulesd[7300] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/06/23 05:07:36 wazuh-modulesd[7300] main.c:77 at main(): DEBUG: Wazuh home directory: /Library/Ossec 2023/06/23 05:07:36 wazuh-modulesd[7300] wmodules-osquery-monitor.c:78 at wm_osquery_monitor_read(): DEBUG: Logpath read: /var/log/osquery/osqueryd.results.log 2023/06/23 05:07:36 wazuh-modulesd[7300] wmodules-osquery-monitor.c:84 at wm_osquery_monitor_read(): DEBUG: configPath read: /etc/osquery/osquery.conf 2023/06/23 05:07:36 wazuh-modulesd[7300] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:07:36 wazuh-modulesd[7300] agent_op.c:223 at os_read_agent_profile(): ERROR: (1103): Could not open file 'queue/sockets/.agent_info' due to [(2)-(No such file or directory)]. 2023/06/23 05:07:36 wazuh-modulesd[7300] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:07:36 wazuh-modulesd[7300] config.c:433 at ReadConfig(): DEBUG: but agent has a profile name. 2023/06/23 05:07:37 wazuh-agentd[7334] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/06/23 05:07:37 wazuh-agentd[7334] main.c:139 at main(): DEBUG: Wazuh home directory: /Library/Ossec 2023/06/23 05:07:37 wazuh-agentd[7334] main.c:141 at main(): DEBUG: Started (pid: 7334). 2023/06/23 05:07:37 wazuh-agentd[7334] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:07:37 wazuh-agentd[7334] agent_op.c:223 at os_read_agent_profile(): ERROR: (1103): Could not open file 'queue/sockets/.agent_info' due to [(2)-(No such file or directory)]. 2023/06/23 05:07:37 wazuh-agentd[7334] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:07:37 wazuh-agentd[7334] config.c:433 at ReadConfig(): DEBUG: but agent has a profile name. 2023/06/23 05:07:37 wazuh-agentd[7334] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:07:37 wazuh-agentd[7334] agent_op.c:223 at os_read_agent_profile(): ERROR: (1103): Could not open file 'queue/sockets/.agent_info' due to [(2)-(No such file or directory)]. 2023/06/23 05:07:37 wazuh-agentd[7334] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:07:37 wazuh-agentd[7334] config.c:433 at ReadConfig(): DEBUG: but agent has a profile name. 2023/06/23 05:07:38 wazuh-syscheckd[7352] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/06/23 05:07:38 wazuh-syscheckd[7352] config.c:33 at Read_Syscheck_Config(): DEBUG: (6287): Reading configuration file: 'etc/ossec.conf' 2023/06/23 05:07:38 wazuh-syscheckd[7352] syscheck-config.c:2421 at process_option_regex(): DEBUG: Found ignore regex node .log$|.swp$ 2023/06/23 05:07:38 wazuh-syscheckd[7352] syscheck-config.c:2428 at process_option_regex(): DEBUG: Found ignore regex node .log$|.swp$ OK? 2023/06/23 05:07:38 wazuh-syscheckd[7352] syscheck-config.c:2429 at process_option_regex(): DEBUG: Found ignore regex size 0 2023/06/23 05:07:38 wazuh-syscheckd[7352] config.c:41 at Read_Syscheck_Config(): DEBUG: (6208): Reading Client Configuration [etc/ossec.conf] 2023/06/23 05:07:38 wazuh-syscheckd[7352] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:07:38 wazuh-syscheckd[7352] agent_op.c:238 at os_read_agent_profile(): DEBUG: os_read_agent_profile() = [centos, centos7, centos7.4] 2023/06/23 05:07:38 wazuh-syscheckd[7352] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:07:38 wazuh-syscheckd[7352] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:07:38 wazuh-syscheckd[7352] agent_op.c:238 at os_read_agent_profile(): DEBUG: os_read_agent_profile() = [centos, centos7, centos7.4] 2023/06/23 05:07:38 wazuh-syscheckd[7352] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:07:38 rootcheck[7352] rootcheck.c:202 at rootcheck_init(): INFO: Rootcheck disabled. 2023/06/23 05:07:41 wazuh-modulesd[7374] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/06/23 05:07:41 wazuh-modulesd[7374] main.c:77 at main(): DEBUG: Wazuh home directory: /Library/Ossec 2023/06/23 05:07:41 wazuh-modulesd[7374] wmodules-osquery-monitor.c:78 at wm_osquery_monitor_read(): DEBUG: Logpath read: /var/log/osquery/osqueryd.results.log 2023/06/23 05:07:41 wazuh-modulesd[7374] wmodules-osquery-monitor.c:84 at wm_osquery_monitor_read(): DEBUG: configPath read: /etc/osquery/osquery.conf 2023/06/23 05:07:41 wazuh-modulesd[7374] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:07:41 wazuh-modulesd[7374] agent_op.c:238 at os_read_agent_profile(): DEBUG: os_read_agent_profile() = [centos, centos7, centos7.4] 2023/06/23 05:07:41 wazuh-modulesd[7374] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes.
Failed 2023-06-23 12:08:24.116930 test_remoted/test_socket_communication/test_syslog_message.py::test_syslog_message[syslog_TCP_514-failed_login_sshd] description: Check if 'wazuh-remoted' can receive syslog messages through the socket. 0.00 0

Test function details

Extended Summary

wazuh_min_version: 4.2.0
tier: 0
parameters:
- message:
type: fixture
brief: Message sent
- get_configuration:
type: fixture
brief: Get configurations from the module.
- configure_environment:
type: fixture
brief: Configure a custom environment for testing.
- restart_remoted:
type: fixture
brief: Restart 'wazuh-remoted' daemon in manager.
assertions:
- Verify the syslog message is received.
input_description: A configuration template (test_syslog_message) is contained in an external YAML file,
(wazuh_syslog.yaml). That template is combined with different test cases defined
in the module. Those include configuration settings for the 'wazuh-remoted' daemon
and agents info.
expected_output:
- r'Started : .* Listening on port .*'
- r'<.>.*'

Parameters

test_remoted/test_socket_communication/test_syslog_message.py:152: in test_syslog_message
wazuh_archives_log_monitor = remote.create_archives_log_monitor()
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/remote.py:329: in create_archives_log_monitor
truncate_file(ARCHIVES_LOG_PATH)
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/file.py:79: in truncate_file
with open(file_path, 'w'):
E FileNotFoundError: [Errno 2] No such file or directory: '/Library/Ossec/logs/archives/archives.log'
Failed 2023-06-23 12:08:24.118537 test_remoted/test_socket_communication/test_syslog_message.py::test_syslog_message[syslog_TCP_514-failed_login_sshd_pri_header] description: Check if 'wazuh-remoted' can receive syslog messages through the socket. 0.00 0

Test function details

Extended Summary

wazuh_min_version: 4.2.0
tier: 0
parameters:
- message:
type: fixture
brief: Message sent
- get_configuration:
type: fixture
brief: Get configurations from the module.
- configure_environment:
type: fixture
brief: Configure a custom environment for testing.
- restart_remoted:
type: fixture
brief: Restart 'wazuh-remoted' daemon in manager.
assertions:
- Verify the syslog message is received.
input_description: A configuration template (test_syslog_message) is contained in an external YAML file,
(wazuh_syslog.yaml). That template is combined with different test cases defined
in the module. Those include configuration settings for the 'wazuh-remoted' daemon
and agents info.
expected_output:
- r'Started : .* Listening on port .*'
- r'<.>.*'

Parameters

test_remoted/test_socket_communication/test_syslog_message.py:152: in test_syslog_message
wazuh_archives_log_monitor = remote.create_archives_log_monitor()
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/remote.py:329: in create_archives_log_monitor
truncate_file(ARCHIVES_LOG_PATH)
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/file.py:79: in truncate_file
with open(file_path, 'w'):
E FileNotFoundError: [Errno 2] No such file or directory: '/Library/Ossec/logs/archives/archives.log'
Failed 2023-06-23 12:08:24.120373 test_remoted/test_socket_communication/test_syslog_message.py::test_syslog_message[syslog_TCP_514-multi_log_failed_login_sshd_logon_success] description: Check if 'wazuh-remoted' can receive syslog messages through the socket. 0.00 0

Test function details

Extended Summary

wazuh_min_version: 4.2.0
tier: 0
parameters:
- message:
type: fixture
brief: Message sent
- get_configuration:
type: fixture
brief: Get configurations from the module.
- configure_environment:
type: fixture
brief: Configure a custom environment for testing.
- restart_remoted:
type: fixture
brief: Restart 'wazuh-remoted' daemon in manager.
assertions:
- Verify the syslog message is received.
input_description: A configuration template (test_syslog_message) is contained in an external YAML file,
(wazuh_syslog.yaml). That template is combined with different test cases defined
in the module. Those include configuration settings for the 'wazuh-remoted' daemon
and agents info.
expected_output:
- r'Started : .* Listening on port .*'
- r'<.>.*'

Parameters

test_remoted/test_socket_communication/test_syslog_message.py:152: in test_syslog_message
wazuh_archives_log_monitor = remote.create_archives_log_monitor()
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/remote.py:329: in create_archives_log_monitor
truncate_file(ARCHIVES_LOG_PATH)
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/file.py:79: in truncate_file
with open(file_path, 'w'):
E FileNotFoundError: [Errno 2] No such file or directory: '/Library/Ossec/logs/archives/archives.log'
Failed 2023-06-23 12:08:24.122063 test_remoted/test_socket_communication/test_syslog_message.py::test_syslog_message[syslog_TCP_514-multi_log_failed_login_sshd_logon_success_pri_header] description: Check if 'wazuh-remoted' can receive syslog messages through the socket. 0.00 0

Test function details

Extended Summary

wazuh_min_version: 4.2.0
tier: 0
parameters:
- message:
type: fixture
brief: Message sent
- get_configuration:
type: fixture
brief: Get configurations from the module.
- configure_environment:
type: fixture
brief: Configure a custom environment for testing.
- restart_remoted:
type: fixture
brief: Restart 'wazuh-remoted' daemon in manager.
assertions:
- Verify the syslog message is received.
input_description: A configuration template (test_syslog_message) is contained in an external YAML file,
(wazuh_syslog.yaml). That template is combined with different test cases defined
in the module. Those include configuration settings for the 'wazuh-remoted' daemon
and agents info.
expected_output:
- r'Started : .* Listening on port .*'
- r'<.>.*'

Parameters

test_remoted/test_socket_communication/test_syslog_message.py:152: in test_syslog_message
wazuh_archives_log_monitor = remote.create_archives_log_monitor()
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/remote.py:329: in create_archives_log_monitor
truncate_file(ARCHIVES_LOG_PATH)
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/file.py:79: in truncate_file
with open(file_path, 'w'):
E FileNotFoundError: [Errno 2] No such file or directory: '/Library/Ossec/logs/archives/archives.log'
Failed 2023-06-23 12:08:24.123802 test_remoted/test_socket_communication/test_syslog_message.py::test_syslog_message[syslog_TCP_514-multi_log_failed_login_sshd_logon_success_pri_header_mix_with_without] description: Check if 'wazuh-remoted' can receive syslog messages through the socket. 0.00 0

Test function details

Extended Summary

wazuh_min_version: 4.2.0
tier: 0
parameters:
- message:
type: fixture
brief: Message sent
- get_configuration:
type: fixture
brief: Get configurations from the module.
- configure_environment:
type: fixture
brief: Configure a custom environment for testing.
- restart_remoted:
type: fixture
brief: Restart 'wazuh-remoted' daemon in manager.
assertions:
- Verify the syslog message is received.
input_description: A configuration template (test_syslog_message) is contained in an external YAML file,
(wazuh_syslog.yaml). That template is combined with different test cases defined
in the module. Those include configuration settings for the 'wazuh-remoted' daemon
and agents info.
expected_output:
- r'Started : .* Listening on port .*'
- r'<.>.*'

Parameters

test_remoted/test_socket_communication/test_syslog_message.py:152: in test_syslog_message
wazuh_archives_log_monitor = remote.create_archives_log_monitor()
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/remote.py:329: in create_archives_log_monitor
truncate_file(ARCHIVES_LOG_PATH)
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/file.py:79: in truncate_file
with open(file_path, 'w'):
E FileNotFoundError: [Errno 2] No such file or directory: '/Library/Ossec/logs/archives/archives.log'
Failed 2023-06-23 12:08:24.125095 test_remoted/test_socket_communication/test_syslog_message.py::test_syslog_message[syslog_TCP_514-multi_log_failed_login_sshd_logon_success_pri_header_mix_without_with] description: Check if 'wazuh-remoted' can receive syslog messages through the socket. 0.00 0

Test function details

Extended Summary

wazuh_min_version: 4.2.0
tier: 0
parameters:
- message:
type: fixture
brief: Message sent
- get_configuration:
type: fixture
brief: Get configurations from the module.
- configure_environment:
type: fixture
brief: Configure a custom environment for testing.
- restart_remoted:
type: fixture
brief: Restart 'wazuh-remoted' daemon in manager.
assertions:
- Verify the syslog message is received.
input_description: A configuration template (test_syslog_message) is contained in an external YAML file,
(wazuh_syslog.yaml). That template is combined with different test cases defined
in the module. Those include configuration settings for the 'wazuh-remoted' daemon
and agents info.
expected_output:
- r'Started : .* Listening on port .*'
- r'<.>.*'

Parameters

test_remoted/test_socket_communication/test_syslog_message.py:152: in test_syslog_message
wazuh_archives_log_monitor = remote.create_archives_log_monitor()
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/remote.py:329: in create_archives_log_monitor
truncate_file(ARCHIVES_LOG_PATH)
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/file.py:79: in truncate_file
with open(file_path, 'w'):
E FileNotFoundError: [Errno 2] No such file or directory: '/Library/Ossec/logs/archives/archives.log'
Failed 2023-06-23 12:08:24.127156 test_remoted/test_socket_communication/test_syslog_message.py::test_syslog_message[syslog_TCP_514-dummy_pri_header] description: Check if 'wazuh-remoted' can receive syslog messages through the socket. 0.00 0

Test function details

Extended Summary

wazuh_min_version: 4.2.0
tier: 0
parameters:
- message:
type: fixture
brief: Message sent
- get_configuration:
type: fixture
brief: Get configurations from the module.
- configure_environment:
type: fixture
brief: Configure a custom environment for testing.
- restart_remoted:
type: fixture
brief: Restart 'wazuh-remoted' daemon in manager.
assertions:
- Verify the syslog message is received.
input_description: A configuration template (test_syslog_message) is contained in an external YAML file,
(wazuh_syslog.yaml). That template is combined with different test cases defined
in the module. Those include configuration settings for the 'wazuh-remoted' daemon
and agents info.
expected_output:
- r'Started : .* Listening on port .*'
- r'<.>.*'

Parameters

test_remoted/test_socket_communication/test_syslog_message.py:152: in test_syslog_message
wazuh_archives_log_monitor = remote.create_archives_log_monitor()
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/remote.py:329: in create_archives_log_monitor
truncate_file(ARCHIVES_LOG_PATH)
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/file.py:79: in truncate_file
with open(file_path, 'w'):
E FileNotFoundError: [Errno 2] No such file or directory: '/Library/Ossec/logs/archives/archives.log'
Failed 2023-06-23 12:08:24.128802 test_remoted/test_socket_communication/test_syslog_message.py::test_syslog_message[syslog_TCP_514-dummy_bad_formatted_pri_header] description: Check if 'wazuh-remoted' can receive syslog messages through the socket. 0.00 0

Test function details

Extended Summary

wazuh_min_version: 4.2.0
tier: 0
parameters:
- message:
type: fixture
brief: Message sent
- get_configuration:
type: fixture
brief: Get configurations from the module.
- configure_environment:
type: fixture
brief: Configure a custom environment for testing.
- restart_remoted:
type: fixture
brief: Restart 'wazuh-remoted' daemon in manager.
assertions:
- Verify the syslog message is received.
input_description: A configuration template (test_syslog_message) is contained in an external YAML file,
(wazuh_syslog.yaml). That template is combined with different test cases defined
in the module. Those include configuration settings for the 'wazuh-remoted' daemon
and agents info.
expected_output:
- r'Started : .* Listening on port .*'
- r'<.>.*'

Parameters

test_remoted/test_socket_communication/test_syslog_message.py:152: in test_syslog_message
wazuh_archives_log_monitor = remote.create_archives_log_monitor()
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/remote.py:329: in create_archives_log_monitor
truncate_file(ARCHIVES_LOG_PATH)
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/file.py:79: in truncate_file
with open(file_path, 'w'):
E FileNotFoundError: [Errno 2] No such file or directory: '/Library/Ossec/logs/archives/archives.log'
Failed 2023-06-23 12:08:24.131469 test_remoted/test_socket_communication/test_syslog_message.py::test_syslog_message[syslog_TCP_51000-dummy] description: Check if 'wazuh-remoted' can receive syslog messages through the socket. 8.13 0

Test function details

Extended Summary

wazuh_min_version: 4.2.0
tier: 0
parameters:
- message:
type: fixture
brief: Message sent
- get_configuration:
type: fixture
brief: Get configurations from the module.
- configure_environment:
type: fixture
brief: Configure a custom environment for testing.
- restart_remoted:
type: fixture
brief: Restart 'wazuh-remoted' daemon in manager.
assertions:
- Verify the syslog message is received.
input_description: A configuration template (test_syslog_message) is contained in an external YAML file,
(wazuh_syslog.yaml). That template is combined with different test cases defined
in the module. Those include configuration settings for the 'wazuh-remoted' daemon
and agents info.
expected_output:
- r'Started : .* Listening on port .*'
- r'<.>.*'

Parameters

test_remoted/test_socket_communication/test_syslog_message.py:152: in test_syslog_message
wazuh_archives_log_monitor = remote.create_archives_log_monitor()
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/remote.py:329: in create_archives_log_monitor
truncate_file(ARCHIVES_LOG_PATH)
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/file.py:79: in truncate_file
with open(file_path, 'w'):
E FileNotFoundError: [Errno 2] No such file or directory: '/Library/Ossec/logs/archives/archives.log'
-----------------------------Captured stdout setup------------------------------
Fri Jun 23 12:07:44 UTC 2023 Killing wazuh-modulesd... Killing wazuh-logcollector... Killing wazuh-syscheckd... Killing wazuh-agentd... Killing wazuh-execd... Wazuh v4.4.4 Stopped Starting Wazuh v4.4.4... Started wazuh-execd... Started wazuh-agentd... Started wazuh-syscheckd... Started wazuh-logcollector... Started wazuh-modulesd... Completed.
-----------------------------Captured stderr setup------------------------------
2023/06/23 05:07:44 wazuh-agentd[7467] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/06/23 05:07:44 wazuh-agentd[7467] main.c:139 at main(): DEBUG: Wazuh home directory: /Library/Ossec 2023/06/23 05:07:44 wazuh-agentd[7467] main.c:141 at main(): DEBUG: Started (pid: 7467). 2023/06/23 05:07:44 wazuh-agentd[7467] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:07:44 wazuh-agentd[7467] agent_op.c:223 at os_read_agent_profile(): ERROR: (1103): Could not open file 'queue/sockets/.agent_info' due to [(2)-(No such file or directory)]. 2023/06/23 05:07:44 wazuh-agentd[7467] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:07:44 wazuh-agentd[7467] config.c:433 at ReadConfig(): DEBUG: but agent has a profile name. 2023/06/23 05:07:44 wazuh-agentd[7467] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:07:44 wazuh-agentd[7467] agent_op.c:223 at os_read_agent_profile(): ERROR: (1103): Could not open file 'queue/sockets/.agent_info' due to [(2)-(No such file or directory)]. 2023/06/23 05:07:44 wazuh-agentd[7467] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:07:44 wazuh-agentd[7467] config.c:433 at ReadConfig(): DEBUG: but agent has a profile name. 2023/06/23 05:07:44 wazuh-syscheckd[7468] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/06/23 05:07:44 wazuh-syscheckd[7468] config.c:33 at Read_Syscheck_Config(): DEBUG: (6287): Reading configuration file: 'etc/ossec.conf' 2023/06/23 05:07:44 wazuh-syscheckd[7468] syscheck-config.c:2421 at process_option_regex(): DEBUG: Found ignore regex node .log$|.swp$ 2023/06/23 05:07:44 wazuh-syscheckd[7468] syscheck-config.c:2428 at process_option_regex(): DEBUG: Found ignore regex node .log$|.swp$ OK? 2023/06/23 05:07:44 wazuh-syscheckd[7468] syscheck-config.c:2429 at process_option_regex(): DEBUG: Found ignore regex size 0 2023/06/23 05:07:44 wazuh-syscheckd[7468] config.c:41 at Read_Syscheck_Config(): DEBUG: (6208): Reading Client Configuration [etc/ossec.conf] 2023/06/23 05:07:44 wazuh-syscheckd[7468] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:07:44 wazuh-syscheckd[7468] agent_op.c:223 at os_read_agent_profile(): ERROR: (1103): Could not open file 'queue/sockets/.agent_info' due to [(2)-(No such file or directory)]. 2023/06/23 05:07:44 wazuh-syscheckd[7468] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:07:44 wazuh-syscheckd[7468] config.c:433 at ReadConfig(): DEBUG: but agent has a profile name. 2023/06/23 05:07:44 wazuh-syscheckd[7468] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:07:44 wazuh-syscheckd[7468] agent_op.c:223 at os_read_agent_profile(): ERROR: (1103): Could not open file 'queue/sockets/.agent_info' due to [(2)-(No such file or directory)]. 2023/06/23 05:07:44 wazuh-syscheckd[7468] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:07:44 wazuh-syscheckd[7468] config.c:433 at ReadConfig(): DEBUG: but agent has a profile name. 2023/06/23 05:07:44 wazuh-logcollector: ERROR: (1103): Could not open file 'queue/sockets/.agent_info' due to [(2)-(No such file or directory)]. 2023/06/23 05:07:44 wazuh-modulesd[7470] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/06/23 05:07:44 wazuh-modulesd[7470] main.c:77 at main(): DEBUG: Wazuh home directory: /Library/Ossec 2023/06/23 05:07:44 wazuh-modulesd[7470] wmodules-osquery-monitor.c:78 at wm_osquery_monitor_read(): DEBUG: Logpath read: /var/log/osquery/osqueryd.results.log 2023/06/23 05:07:44 wazuh-modulesd[7470] wmodules-osquery-monitor.c:84 at wm_osquery_monitor_read(): DEBUG: configPath read: /etc/osquery/osquery.conf 2023/06/23 05:07:44 wazuh-modulesd[7470] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:07:44 wazuh-modulesd[7470] agent_op.c:223 at os_read_agent_profile(): ERROR: (1103): Could not open file 'queue/sockets/.agent_info' due to [(2)-(No such file or directory)]. 2023/06/23 05:07:44 wazuh-modulesd[7470] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:07:44 wazuh-modulesd[7470] config.c:433 at ReadConfig(): DEBUG: but agent has a profile name. 2023/06/23 05:07:45 wazuh-agentd[7495] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/06/23 05:07:45 wazuh-agentd[7495] main.c:139 at main(): DEBUG: Wazuh home directory: /Library/Ossec 2023/06/23 05:07:45 wazuh-agentd[7495] main.c:141 at main(): DEBUG: Started (pid: 7495). 2023/06/23 05:07:45 wazuh-agentd[7495] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:07:45 wazuh-agentd[7495] agent_op.c:223 at os_read_agent_profile(): ERROR: (1103): Could not open file 'queue/sockets/.agent_info' due to [(2)-(No such file or directory)]. 2023/06/23 05:07:45 wazuh-agentd[7495] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:07:45 wazuh-agentd[7495] config.c:433 at ReadConfig(): DEBUG: but agent has a profile name. 2023/06/23 05:07:45 wazuh-agentd[7495] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:07:45 wazuh-agentd[7495] agent_op.c:223 at os_read_agent_profile(): ERROR: (1103): Could not open file 'queue/sockets/.agent_info' due to [(2)-(No such file or directory)]. 2023/06/23 05:07:45 wazuh-agentd[7495] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:07:45 wazuh-agentd[7495] config.c:433 at ReadConfig(): DEBUG: but agent has a profile name. 2023/06/23 05:07:46 wazuh-syscheckd[7513] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/06/23 05:07:46 wazuh-syscheckd[7513] config.c:33 at Read_Syscheck_Config(): DEBUG: (6287): Reading configuration file: 'etc/ossec.conf' 2023/06/23 05:07:46 wazuh-syscheckd[7513] syscheck-config.c:2421 at process_option_regex(): DEBUG: Found ignore regex node .log$|.swp$ 2023/06/23 05:07:46 wazuh-syscheckd[7513] syscheck-config.c:2428 at process_option_regex(): DEBUG: Found ignore regex node .log$|.swp$ OK? 2023/06/23 05:07:46 wazuh-syscheckd[7513] syscheck-config.c:2429 at process_option_regex(): DEBUG: Found ignore regex size 0 2023/06/23 05:07:46 wazuh-syscheckd[7513] config.c:41 at Read_Syscheck_Config(): DEBUG: (6208): Reading Client Configuration [etc/ossec.conf] 2023/06/23 05:07:46 wazuh-syscheckd[7513] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:07:46 wazuh-syscheckd[7513] agent_op.c:238 at os_read_agent_profile(): DEBUG: os_read_agent_profile() = [centos, centos7, centos7.4] 2023/06/23 05:07:46 wazuh-syscheckd[7513] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:07:46 wazuh-syscheckd[7513] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:07:46 wazuh-syscheckd[7513] agent_op.c:238 at os_read_agent_profile(): DEBUG: os_read_agent_profile() = [centos, centos7, centos7.4] 2023/06/23 05:07:46 wazuh-syscheckd[7513] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:07:46 rootcheck[7513] rootcheck.c:202 at rootcheck_init(): INFO: Rootcheck disabled. 2023/06/23 05:07:49 wazuh-modulesd[7544] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/06/23 05:07:49 wazuh-modulesd[7544] main.c:77 at main(): DEBUG: Wazuh home directory: /Library/Ossec 2023/06/23 05:07:49 wazuh-modulesd[7544] wmodules-osquery-monitor.c:78 at wm_osquery_monitor_read(): DEBUG: Logpath read: /var/log/osquery/osqueryd.results.log 2023/06/23 05:07:49 wazuh-modulesd[7544] wmodules-osquery-monitor.c:84 at wm_osquery_monitor_read(): DEBUG: configPath read: /etc/osquery/osquery.conf 2023/06/23 05:07:49 wazuh-modulesd[7544] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:07:49 wazuh-modulesd[7544] agent_op.c:238 at os_read_agent_profile(): DEBUG: os_read_agent_profile() = [centos, centos7, centos7.4] 2023/06/23 05:07:49 wazuh-modulesd[7544] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes.
Failed 2023-06-23 12:08:24.132771 test_remoted/test_socket_communication/test_syslog_message.py::test_syslog_message[syslog_TCP_51000-failed_login_sshd] description: Check if 'wazuh-remoted' can receive syslog messages through the socket. 0.00 0

Test function details

Extended Summary

wazuh_min_version: 4.2.0
tier: 0
parameters:
- message:
type: fixture
brief: Message sent
- get_configuration:
type: fixture
brief: Get configurations from the module.
- configure_environment:
type: fixture
brief: Configure a custom environment for testing.
- restart_remoted:
type: fixture
brief: Restart 'wazuh-remoted' daemon in manager.
assertions:
- Verify the syslog message is received.
input_description: A configuration template (test_syslog_message) is contained in an external YAML file,
(wazuh_syslog.yaml). That template is combined with different test cases defined
in the module. Those include configuration settings for the 'wazuh-remoted' daemon
and agents info.
expected_output:
- r'Started : .* Listening on port .*'
- r'<.>.*'

Parameters

test_remoted/test_socket_communication/test_syslog_message.py:152: in test_syslog_message
wazuh_archives_log_monitor = remote.create_archives_log_monitor()
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/remote.py:329: in create_archives_log_monitor
truncate_file(ARCHIVES_LOG_PATH)
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/file.py:79: in truncate_file
with open(file_path, 'w'):
E FileNotFoundError: [Errno 2] No such file or directory: '/Library/Ossec/logs/archives/archives.log'
Failed 2023-06-23 12:08:24.134160 test_remoted/test_socket_communication/test_syslog_message.py::test_syslog_message[syslog_TCP_51000-failed_login_sshd_pri_header] description: Check if 'wazuh-remoted' can receive syslog messages through the socket. 0.00 0

Test function details

Extended Summary

wazuh_min_version: 4.2.0
tier: 0
parameters:
- message:
type: fixture
brief: Message sent
- get_configuration:
type: fixture
brief: Get configurations from the module.
- configure_environment:
type: fixture
brief: Configure a custom environment for testing.
- restart_remoted:
type: fixture
brief: Restart 'wazuh-remoted' daemon in manager.
assertions:
- Verify the syslog message is received.
input_description: A configuration template (test_syslog_message) is contained in an external YAML file,
(wazuh_syslog.yaml). That template is combined with different test cases defined
in the module. Those include configuration settings for the 'wazuh-remoted' daemon
and agents info.
expected_output:
- r'Started : .* Listening on port .*'
- r'<.>.*'

Parameters

test_remoted/test_socket_communication/test_syslog_message.py:152: in test_syslog_message
wazuh_archives_log_monitor = remote.create_archives_log_monitor()
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/remote.py:329: in create_archives_log_monitor
truncate_file(ARCHIVES_LOG_PATH)
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/file.py:79: in truncate_file
with open(file_path, 'w'):
E FileNotFoundError: [Errno 2] No such file or directory: '/Library/Ossec/logs/archives/archives.log'
Failed 2023-06-23 12:08:24.135427 test_remoted/test_socket_communication/test_syslog_message.py::test_syslog_message[syslog_TCP_51000-multi_log_failed_login_sshd_logon_success] description: Check if 'wazuh-remoted' can receive syslog messages through the socket. 0.00 0

Test function details

Extended Summary

wazuh_min_version: 4.2.0
tier: 0
parameters:
- message:
type: fixture
brief: Message sent
- get_configuration:
type: fixture
brief: Get configurations from the module.
- configure_environment:
type: fixture
brief: Configure a custom environment for testing.
- restart_remoted:
type: fixture
brief: Restart 'wazuh-remoted' daemon in manager.
assertions:
- Verify the syslog message is received.
input_description: A configuration template (test_syslog_message) is contained in an external YAML file,
(wazuh_syslog.yaml). That template is combined with different test cases defined
in the module. Those include configuration settings for the 'wazuh-remoted' daemon
and agents info.
expected_output:
- r'Started : .* Listening on port .*'
- r'<.>.*'

Parameters

test_remoted/test_socket_communication/test_syslog_message.py:152: in test_syslog_message
wazuh_archives_log_monitor = remote.create_archives_log_monitor()
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/remote.py:329: in create_archives_log_monitor
truncate_file(ARCHIVES_LOG_PATH)
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/file.py:79: in truncate_file
with open(file_path, 'w'):
E FileNotFoundError: [Errno 2] No such file or directory: '/Library/Ossec/logs/archives/archives.log'
Failed 2023-06-23 12:08:24.136833 test_remoted/test_socket_communication/test_syslog_message.py::test_syslog_message[syslog_TCP_51000-multi_log_failed_login_sshd_logon_success_pri_header] description: Check if 'wazuh-remoted' can receive syslog messages through the socket. 0.00 0

Test function details

Extended Summary

wazuh_min_version: 4.2.0
tier: 0
parameters:
- message:
type: fixture
brief: Message sent
- get_configuration:
type: fixture
brief: Get configurations from the module.
- configure_environment:
type: fixture
brief: Configure a custom environment for testing.
- restart_remoted:
type: fixture
brief: Restart 'wazuh-remoted' daemon in manager.
assertions:
- Verify the syslog message is received.
input_description: A configuration template (test_syslog_message) is contained in an external YAML file,
(wazuh_syslog.yaml). That template is combined with different test cases defined
in the module. Those include configuration settings for the 'wazuh-remoted' daemon
and agents info.
expected_output:
- r'Started : .* Listening on port .*'
- r'<.>.*'

Parameters

test_remoted/test_socket_communication/test_syslog_message.py:152: in test_syslog_message
wazuh_archives_log_monitor = remote.create_archives_log_monitor()
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/remote.py:329: in create_archives_log_monitor
truncate_file(ARCHIVES_LOG_PATH)
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/file.py:79: in truncate_file
with open(file_path, 'w'):
E FileNotFoundError: [Errno 2] No such file or directory: '/Library/Ossec/logs/archives/archives.log'
Failed 2023-06-23 12:08:24.138158 test_remoted/test_socket_communication/test_syslog_message.py::test_syslog_message[syslog_TCP_51000-multi_log_failed_login_sshd_logon_success_pri_header_mix_with_without] description: Check if 'wazuh-remoted' can receive syslog messages through the socket. 0.00 0

Test function details

Extended Summary

wazuh_min_version: 4.2.0
tier: 0
parameters:
- message:
type: fixture
brief: Message sent
- get_configuration:
type: fixture
brief: Get configurations from the module.
- configure_environment:
type: fixture
brief: Configure a custom environment for testing.
- restart_remoted:
type: fixture
brief: Restart 'wazuh-remoted' daemon in manager.
assertions:
- Verify the syslog message is received.
input_description: A configuration template (test_syslog_message) is contained in an external YAML file,
(wazuh_syslog.yaml). That template is combined with different test cases defined
in the module. Those include configuration settings for the 'wazuh-remoted' daemon
and agents info.
expected_output:
- r'Started : .* Listening on port .*'
- r'<.>.*'

Parameters

test_remoted/test_socket_communication/test_syslog_message.py:152: in test_syslog_message
wazuh_archives_log_monitor = remote.create_archives_log_monitor()
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/remote.py:329: in create_archives_log_monitor
truncate_file(ARCHIVES_LOG_PATH)
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/file.py:79: in truncate_file
with open(file_path, 'w'):
E FileNotFoundError: [Errno 2] No such file or directory: '/Library/Ossec/logs/archives/archives.log'
Failed 2023-06-23 12:08:24.139884 test_remoted/test_socket_communication/test_syslog_message.py::test_syslog_message[syslog_TCP_51000-multi_log_failed_login_sshd_logon_success_pri_header_mix_without_with] description: Check if 'wazuh-remoted' can receive syslog messages through the socket. 0.00 0

Test function details

Extended Summary

wazuh_min_version: 4.2.0
tier: 0
parameters:
- message:
type: fixture
brief: Message sent
- get_configuration:
type: fixture
brief: Get configurations from the module.
- configure_environment:
type: fixture
brief: Configure a custom environment for testing.
- restart_remoted:
type: fixture
brief: Restart 'wazuh-remoted' daemon in manager.
assertions:
- Verify the syslog message is received.
input_description: A configuration template (test_syslog_message) is contained in an external YAML file,
(wazuh_syslog.yaml). That template is combined with different test cases defined
in the module. Those include configuration settings for the 'wazuh-remoted' daemon
and agents info.
expected_output:
- r'Started : .* Listening on port .*'
- r'<.>.*'

Parameters

test_remoted/test_socket_communication/test_syslog_message.py:152: in test_syslog_message
wazuh_archives_log_monitor = remote.create_archives_log_monitor()
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/remote.py:329: in create_archives_log_monitor
truncate_file(ARCHIVES_LOG_PATH)
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/file.py:79: in truncate_file
with open(file_path, 'w'):
E FileNotFoundError: [Errno 2] No such file or directory: '/Library/Ossec/logs/archives/archives.log'
Failed 2023-06-23 12:08:24.141250 test_remoted/test_socket_communication/test_syslog_message.py::test_syslog_message[syslog_TCP_51000-dummy_pri_header] description: Check if 'wazuh-remoted' can receive syslog messages through the socket. 0.00 0

Test function details

Extended Summary

wazuh_min_version: 4.2.0
tier: 0
parameters:
- message:
type: fixture
brief: Message sent
- get_configuration:
type: fixture
brief: Get configurations from the module.
- configure_environment:
type: fixture
brief: Configure a custom environment for testing.
- restart_remoted:
type: fixture
brief: Restart 'wazuh-remoted' daemon in manager.
assertions:
- Verify the syslog message is received.
input_description: A configuration template (test_syslog_message) is contained in an external YAML file,
(wazuh_syslog.yaml). That template is combined with different test cases defined
in the module. Those include configuration settings for the 'wazuh-remoted' daemon
and agents info.
expected_output:
- r'Started : .* Listening on port .*'
- r'<.>.*'

Parameters

test_remoted/test_socket_communication/test_syslog_message.py:152: in test_syslog_message
wazuh_archives_log_monitor = remote.create_archives_log_monitor()
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/remote.py:329: in create_archives_log_monitor
truncate_file(ARCHIVES_LOG_PATH)
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/file.py:79: in truncate_file
with open(file_path, 'w'):
E FileNotFoundError: [Errno 2] No such file or directory: '/Library/Ossec/logs/archives/archives.log'
Failed 2023-06-23 12:08:24.143605 test_remoted/test_socket_communication/test_syslog_message.py::test_syslog_message[syslog_TCP_51000-dummy_bad_formatted_pri_header] description: Check if 'wazuh-remoted' can receive syslog messages through the socket. 0.00 0

Test function details

Extended Summary

wazuh_min_version: 4.2.0
tier: 0
parameters:
- message:
type: fixture
brief: Message sent
- get_configuration:
type: fixture
brief: Get configurations from the module.
- configure_environment:
type: fixture
brief: Configure a custom environment for testing.
- restart_remoted:
type: fixture
brief: Restart 'wazuh-remoted' daemon in manager.
assertions:
- Verify the syslog message is received.
input_description: A configuration template (test_syslog_message) is contained in an external YAML file,
(wazuh_syslog.yaml). That template is combined with different test cases defined
in the module. Those include configuration settings for the 'wazuh-remoted' daemon
and agents info.
expected_output:
- r'Started : .* Listening on port .*'
- r'<.>.*'

Parameters

test_remoted/test_socket_communication/test_syslog_message.py:152: in test_syslog_message
wazuh_archives_log_monitor = remote.create_archives_log_monitor()
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/remote.py:329: in create_archives_log_monitor
truncate_file(ARCHIVES_LOG_PATH)
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/file.py:79: in truncate_file
with open(file_path, 'w'):
E FileNotFoundError: [Errno 2] No such file or directory: '/Library/Ossec/logs/archives/archives.log'
Failed 2023-06-23 12:08:24.145063 test_remoted/test_socket_communication/test_syslog_message.py::test_syslog_message[syslog_udp_514-dummy] description: Check if 'wazuh-remoted' can receive syslog messages through the socket. 8.15 0

Test function details

Extended Summary

wazuh_min_version: 4.2.0
tier: 0
parameters:
- message:
type: fixture
brief: Message sent
- get_configuration:
type: fixture
brief: Get configurations from the module.
- configure_environment:
type: fixture
brief: Configure a custom environment for testing.
- restart_remoted:
type: fixture
brief: Restart 'wazuh-remoted' daemon in manager.
assertions:
- Verify the syslog message is received.
input_description: A configuration template (test_syslog_message) is contained in an external YAML file,
(wazuh_syslog.yaml). That template is combined with different test cases defined
in the module. Those include configuration settings for the 'wazuh-remoted' daemon
and agents info.
expected_output:
- r'Started : .* Listening on port .*'
- r'<.>.*'

Parameters

test_remoted/test_socket_communication/test_syslog_message.py:152: in test_syslog_message
wazuh_archives_log_monitor = remote.create_archives_log_monitor()
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/remote.py:329: in create_archives_log_monitor
truncate_file(ARCHIVES_LOG_PATH)
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/file.py:79: in truncate_file
with open(file_path, 'w'):
E FileNotFoundError: [Errno 2] No such file or directory: '/Library/Ossec/logs/archives/archives.log'
-----------------------------Captured stdout setup------------------------------
Fri Jun 23 12:07:52 UTC 2023 Killing wazuh-modulesd... Killing wazuh-logcollector... Killing wazuh-syscheckd... Killing wazuh-agentd... Killing wazuh-execd... Wazuh v4.4.4 Stopped Starting Wazuh v4.4.4... Started wazuh-execd... Started wazuh-agentd... Started wazuh-syscheckd... Started wazuh-logcollector... Started wazuh-modulesd... Completed.
-----------------------------Captured stderr setup------------------------------
2023/06/23 05:07:52 wazuh-agentd[7637] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/06/23 05:07:52 wazuh-agentd[7637] main.c:139 at main(): DEBUG: Wazuh home directory: /Library/Ossec 2023/06/23 05:07:52 wazuh-agentd[7637] main.c:141 at main(): DEBUG: Started (pid: 7637). 2023/06/23 05:07:52 wazuh-agentd[7637] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:07:52 wazuh-agentd[7637] agent_op.c:223 at os_read_agent_profile(): ERROR: (1103): Could not open file 'queue/sockets/.agent_info' due to [(2)-(No such file or directory)]. 2023/06/23 05:07:52 wazuh-agentd[7637] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:07:52 wazuh-agentd[7637] config.c:433 at ReadConfig(): DEBUG: but agent has a profile name. 2023/06/23 05:07:52 wazuh-agentd[7637] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:07:52 wazuh-agentd[7637] agent_op.c:223 at os_read_agent_profile(): ERROR: (1103): Could not open file 'queue/sockets/.agent_info' due to [(2)-(No such file or directory)]. 2023/06/23 05:07:52 wazuh-agentd[7637] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:07:52 wazuh-agentd[7637] config.c:433 at ReadConfig(): DEBUG: but agent has a profile name. 2023/06/23 05:07:52 wazuh-syscheckd[7638] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/06/23 05:07:52 wazuh-syscheckd[7638] config.c:33 at Read_Syscheck_Config(): DEBUG: (6287): Reading configuration file: 'etc/ossec.conf' 2023/06/23 05:07:52 wazuh-syscheckd[7638] syscheck-config.c:2421 at process_option_regex(): DEBUG: Found ignore regex node .log$|.swp$ 2023/06/23 05:07:52 wazuh-syscheckd[7638] syscheck-config.c:2428 at process_option_regex(): DEBUG: Found ignore regex node .log$|.swp$ OK? 2023/06/23 05:07:52 wazuh-syscheckd[7638] syscheck-config.c:2429 at process_option_regex(): DEBUG: Found ignore regex size 0 2023/06/23 05:07:52 wazuh-syscheckd[7638] config.c:41 at Read_Syscheck_Config(): DEBUG: (6208): Reading Client Configuration [etc/ossec.conf] 2023/06/23 05:07:52 wazuh-syscheckd[7638] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:07:52 wazuh-syscheckd[7638] agent_op.c:223 at os_read_agent_profile(): ERROR: (1103): Could not open file 'queue/sockets/.agent_info' due to [(2)-(No such file or directory)]. 2023/06/23 05:07:52 wazuh-syscheckd[7638] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:07:52 wazuh-syscheckd[7638] config.c:433 at ReadConfig(): DEBUG: but agent has a profile name. 2023/06/23 05:07:52 wazuh-syscheckd[7638] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:07:52 wazuh-syscheckd[7638] agent_op.c:223 at os_read_agent_profile(): ERROR: (1103): Could not open file 'queue/sockets/.agent_info' due to [(2)-(No such file or directory)]. 2023/06/23 05:07:52 wazuh-syscheckd[7638] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:07:52 wazuh-syscheckd[7638] config.c:433 at ReadConfig(): DEBUG: but agent has a profile name. 2023/06/23 05:07:52 wazuh-logcollector: ERROR: (1103): Could not open file 'queue/sockets/.agent_info' due to [(2)-(No such file or directory)]. 2023/06/23 05:07:52 wazuh-modulesd[7640] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/06/23 05:07:52 wazuh-modulesd[7640] main.c:77 at main(): DEBUG: Wazuh home directory: /Library/Ossec 2023/06/23 05:07:52 wazuh-modulesd[7640] wmodules-osquery-monitor.c:78 at wm_osquery_monitor_read(): DEBUG: Logpath read: /var/log/osquery/osqueryd.results.log 2023/06/23 05:07:52 wazuh-modulesd[7640] wmodules-osquery-monitor.c:84 at wm_osquery_monitor_read(): DEBUG: configPath read: /etc/osquery/osquery.conf 2023/06/23 05:07:52 wazuh-modulesd[7640] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:07:52 wazuh-modulesd[7640] agent_op.c:223 at os_read_agent_profile(): ERROR: (1103): Could not open file 'queue/sockets/.agent_info' due to [(2)-(No such file or directory)]. 2023/06/23 05:07:52 wazuh-modulesd[7640] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:07:52 wazuh-modulesd[7640] config.c:433 at ReadConfig(): DEBUG: but agent has a profile name. 2023/06/23 05:07:53 wazuh-agentd[7665] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/06/23 05:07:53 wazuh-agentd[7665] main.c:139 at main(): DEBUG: Wazuh home directory: /Library/Ossec 2023/06/23 05:07:53 wazuh-agentd[7665] main.c:141 at main(): DEBUG: Started (pid: 7665). 2023/06/23 05:07:53 wazuh-agentd[7665] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:07:53 wazuh-agentd[7665] agent_op.c:223 at os_read_agent_profile(): ERROR: (1103): Could not open file 'queue/sockets/.agent_info' due to [(2)-(No such file or directory)]. 2023/06/23 05:07:53 wazuh-agentd[7665] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:07:53 wazuh-agentd[7665] config.c:433 at ReadConfig(): DEBUG: but agent has a profile name. 2023/06/23 05:07:53 wazuh-agentd[7665] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:07:53 wazuh-agentd[7665] agent_op.c:223 at os_read_agent_profile(): ERROR: (1103): Could not open file 'queue/sockets/.agent_info' due to [(2)-(No such file or directory)]. 2023/06/23 05:07:53 wazuh-agentd[7665] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:07:53 wazuh-agentd[7665] config.c:433 at ReadConfig(): DEBUG: but agent has a profile name. 2023/06/23 05:07:55 wazuh-syscheckd[7683] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/06/23 05:07:54 wazuh-syscheckd[7683] config.c:33 at Read_Syscheck_Config(): DEBUG: (6287): Reading configuration file: 'etc/ossec.conf' 2023/06/23 05:07:55 wazuh-syscheckd[7683] syscheck-config.c:2421 at process_option_regex(): DEBUG: Found ignore regex node .log$|.swp$ 2023/06/23 05:07:55 wazuh-syscheckd[7683] syscheck-config.c:2428 at process_option_regex(): DEBUG: Found ignore regex node .log$|.swp$ OK? 2023/06/23 05:07:55 wazuh-syscheckd[7683] syscheck-config.c:2429 at process_option_regex(): DEBUG: Found ignore regex size 0 2023/06/23 05:07:55 wazuh-syscheckd[7683] config.c:41 at Read_Syscheck_Config(): DEBUG: (6208): Reading Client Configuration [etc/ossec.conf] 2023/06/23 05:07:55 wazuh-syscheckd[7683] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:07:55 wazuh-syscheckd[7683] agent_op.c:238 at os_read_agent_profile(): DEBUG: os_read_agent_profile() = [centos, centos7, centos7.4] 2023/06/23 05:07:55 wazuh-syscheckd[7683] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:07:55 wazuh-syscheckd[7683] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:07:55 wazuh-syscheckd[7683] agent_op.c:238 at os_read_agent_profile(): DEBUG: os_read_agent_profile() = [centos, centos7, centos7.4] 2023/06/23 05:07:55 wazuh-syscheckd[7683] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:07:55 rootcheck[7683] rootcheck.c:202 at rootcheck_init(): INFO: Rootcheck disabled. 2023/06/23 05:07:57 wazuh-modulesd[7706] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/06/23 05:07:57 wazuh-modulesd[7706] main.c:77 at main(): DEBUG: Wazuh home directory: /Library/Ossec 2023/06/23 05:07:57 wazuh-modulesd[7706] wmodules-osquery-monitor.c:78 at wm_osquery_monitor_read(): DEBUG: Logpath read: /var/log/osquery/osqueryd.results.log 2023/06/23 05:07:57 wazuh-modulesd[7706] wmodules-osquery-monitor.c:84 at wm_osquery_monitor_read(): DEBUG: configPath read: /etc/osquery/osquery.conf 2023/06/23 05:07:57 wazuh-modulesd[7706] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:07:57 wazuh-modulesd[7706] agent_op.c:238 at os_read_agent_profile(): DEBUG: os_read_agent_profile() = [centos, centos7, centos7.4] 2023/06/23 05:07:57 wazuh-modulesd[7706] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes.
Failed 2023-06-23 12:08:24.146332 test_remoted/test_socket_communication/test_syslog_message.py::test_syslog_message[syslog_udp_514-failed_login_sshd] description: Check if 'wazuh-remoted' can receive syslog messages through the socket. 0.00 0

Test function details

Extended Summary

wazuh_min_version: 4.2.0
tier: 0
parameters:
- message:
type: fixture
brief: Message sent
- get_configuration:
type: fixture
brief: Get configurations from the module.
- configure_environment:
type: fixture
brief: Configure a custom environment for testing.
- restart_remoted:
type: fixture
brief: Restart 'wazuh-remoted' daemon in manager.
assertions:
- Verify the syslog message is received.
input_description: A configuration template (test_syslog_message) is contained in an external YAML file,
(wazuh_syslog.yaml). That template is combined with different test cases defined
in the module. Those include configuration settings for the 'wazuh-remoted' daemon
and agents info.
expected_output:
- r'Started : .* Listening on port .*'
- r'<.>.*'

Parameters

test_remoted/test_socket_communication/test_syslog_message.py:152: in test_syslog_message
wazuh_archives_log_monitor = remote.create_archives_log_monitor()
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/remote.py:329: in create_archives_log_monitor
truncate_file(ARCHIVES_LOG_PATH)
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/file.py:79: in truncate_file
with open(file_path, 'w'):
E FileNotFoundError: [Errno 2] No such file or directory: '/Library/Ossec/logs/archives/archives.log'
Failed 2023-06-23 12:08:24.147784 test_remoted/test_socket_communication/test_syslog_message.py::test_syslog_message[syslog_udp_514-failed_login_sshd_pri_header] description: Check if 'wazuh-remoted' can receive syslog messages through the socket. 0.00 0

Test function details

Extended Summary

wazuh_min_version: 4.2.0
tier: 0
parameters:
- message:
type: fixture
brief: Message sent
- get_configuration:
type: fixture
brief: Get configurations from the module.
- configure_environment:
type: fixture
brief: Configure a custom environment for testing.
- restart_remoted:
type: fixture
brief: Restart 'wazuh-remoted' daemon in manager.
assertions:
- Verify the syslog message is received.
input_description: A configuration template (test_syslog_message) is contained in an external YAML file,
(wazuh_syslog.yaml). That template is combined with different test cases defined
in the module. Those include configuration settings for the 'wazuh-remoted' daemon
and agents info.
expected_output:
- r'Started : .* Listening on port .*'
- r'<.>.*'

Parameters

test_remoted/test_socket_communication/test_syslog_message.py:152: in test_syslog_message
wazuh_archives_log_monitor = remote.create_archives_log_monitor()
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/remote.py:329: in create_archives_log_monitor
truncate_file(ARCHIVES_LOG_PATH)
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/file.py:79: in truncate_file
with open(file_path, 'w'):
E FileNotFoundError: [Errno 2] No such file or directory: '/Library/Ossec/logs/archives/archives.log'
Failed 2023-06-23 12:08:24.149548 test_remoted/test_socket_communication/test_syslog_message.py::test_syslog_message[syslog_udp_514-dummy_pri_header] description: Check if 'wazuh-remoted' can receive syslog messages through the socket. 0.00 0

Test function details

Extended Summary

wazuh_min_version: 4.2.0
tier: 0
parameters:
- message:
type: fixture
brief: Message sent
- get_configuration:
type: fixture
brief: Get configurations from the module.
- configure_environment:
type: fixture
brief: Configure a custom environment for testing.
- restart_remoted:
type: fixture
brief: Restart 'wazuh-remoted' daemon in manager.
assertions:
- Verify the syslog message is received.
input_description: A configuration template (test_syslog_message) is contained in an external YAML file,
(wazuh_syslog.yaml). That template is combined with different test cases defined
in the module. Those include configuration settings for the 'wazuh-remoted' daemon
and agents info.
expected_output:
- r'Started : .* Listening on port .*'
- r'<.>.*'

Parameters

test_remoted/test_socket_communication/test_syslog_message.py:152: in test_syslog_message
wazuh_archives_log_monitor = remote.create_archives_log_monitor()
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/remote.py:329: in create_archives_log_monitor
truncate_file(ARCHIVES_LOG_PATH)
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/file.py:79: in truncate_file
with open(file_path, 'w'):
E FileNotFoundError: [Errno 2] No such file or directory: '/Library/Ossec/logs/archives/archives.log'
Failed 2023-06-23 12:08:24.151402 test_remoted/test_socket_communication/test_syslog_message.py::test_syslog_message[syslog_udp_514-dummy_bad_formatted_pri_header] description: Check if 'wazuh-remoted' can receive syslog messages through the socket. 0.00 0

Test function details

Extended Summary

wazuh_min_version: 4.2.0
tier: 0
parameters:
- message:
type: fixture
brief: Message sent
- get_configuration:
type: fixture
brief: Get configurations from the module.
- configure_environment:
type: fixture
brief: Configure a custom environment for testing.
- restart_remoted:
type: fixture
brief: Restart 'wazuh-remoted' daemon in manager.
assertions:
- Verify the syslog message is received.
input_description: A configuration template (test_syslog_message) is contained in an external YAML file,
(wazuh_syslog.yaml). That template is combined with different test cases defined
in the module. Those include configuration settings for the 'wazuh-remoted' daemon
and agents info.
expected_output:
- r'Started : .* Listening on port .*'
- r'<.>.*'

Parameters

test_remoted/test_socket_communication/test_syslog_message.py:152: in test_syslog_message
wazuh_archives_log_monitor = remote.create_archives_log_monitor()
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/remote.py:329: in create_archives_log_monitor
truncate_file(ARCHIVES_LOG_PATH)
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/file.py:79: in truncate_file
with open(file_path, 'w'):
E FileNotFoundError: [Errno 2] No such file or directory: '/Library/Ossec/logs/archives/archives.log'
Failed 2023-06-23 12:08:24.153127 test_remoted/test_socket_communication/test_syslog_message.py::test_syslog_message[syslog_udp_51000-dummy] description: Check if 'wazuh-remoted' can receive syslog messages through the socket. 8.13 0

Test function details

Extended Summary

wazuh_min_version: 4.2.0
tier: 0
parameters:
- message:
type: fixture
brief: Message sent
- get_configuration:
type: fixture
brief: Get configurations from the module.
- configure_environment:
type: fixture
brief: Configure a custom environment for testing.
- restart_remoted:
type: fixture
brief: Restart 'wazuh-remoted' daemon in manager.
assertions:
- Verify the syslog message is received.
input_description: A configuration template (test_syslog_message) is contained in an external YAML file,
(wazuh_syslog.yaml). That template is combined with different test cases defined
in the module. Those include configuration settings for the 'wazuh-remoted' daemon
and agents info.
expected_output:
- r'Started : .* Listening on port .*'
- r'<.>.*'

Parameters

test_remoted/test_socket_communication/test_syslog_message.py:152: in test_syslog_message
wazuh_archives_log_monitor = remote.create_archives_log_monitor()
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/remote.py:329: in create_archives_log_monitor
truncate_file(ARCHIVES_LOG_PATH)
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/file.py:79: in truncate_file
with open(file_path, 'w'):
E FileNotFoundError: [Errno 2] No such file or directory: '/Library/Ossec/logs/archives/archives.log'
-----------------------------Captured stdout setup------------------------------
Fri Jun 23 12:08:00 UTC 2023 Killing wazuh-modulesd... Killing wazuh-logcollector... Killing wazuh-syscheckd... Killing wazuh-agentd... Killing wazuh-execd... Wazuh v4.4.4 Stopped Starting Wazuh v4.4.4... Started wazuh-execd... Started wazuh-agentd... Started wazuh-syscheckd... Started wazuh-logcollector... Started wazuh-modulesd... Completed.
-----------------------------Captured stderr setup------------------------------
2023/06/23 05:08:00 wazuh-agentd[7807] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/06/23 05:08:00 wazuh-agentd[7807] main.c:139 at main(): DEBUG: Wazuh home directory: /Library/Ossec 2023/06/23 05:08:00 wazuh-agentd[7807] main.c:141 at main(): DEBUG: Started (pid: 7807). 2023/06/23 05:08:00 wazuh-agentd[7807] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:08:00 wazuh-agentd[7807] agent_op.c:223 at os_read_agent_profile(): ERROR: (1103): Could not open file 'queue/sockets/.agent_info' due to [(2)-(No such file or directory)]. 2023/06/23 05:08:00 wazuh-agentd[7807] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:08:00 wazuh-agentd[7807] config.c:433 at ReadConfig(): DEBUG: but agent has a profile name. 2023/06/23 05:08:00 wazuh-agentd[7807] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:08:00 wazuh-agentd[7807] agent_op.c:223 at os_read_agent_profile(): ERROR: (1103): Could not open file 'queue/sockets/.agent_info' due to [(2)-(No such file or directory)]. 2023/06/23 05:08:00 wazuh-agentd[7807] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:08:00 wazuh-agentd[7807] config.c:433 at ReadConfig(): DEBUG: but agent has a profile name. 2023/06/23 05:08:00 wazuh-syscheckd[7808] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/06/23 05:08:00 wazuh-syscheckd[7808] config.c:33 at Read_Syscheck_Config(): DEBUG: (6287): Reading configuration file: 'etc/ossec.conf' 2023/06/23 05:08:00 wazuh-syscheckd[7808] syscheck-config.c:2421 at process_option_regex(): DEBUG: Found ignore regex node .log$|.swp$ 2023/06/23 05:08:00 wazuh-syscheckd[7808] syscheck-config.c:2428 at process_option_regex(): DEBUG: Found ignore regex node .log$|.swp$ OK? 2023/06/23 05:08:00 wazuh-syscheckd[7808] syscheck-config.c:2429 at process_option_regex(): DEBUG: Found ignore regex size 0 2023/06/23 05:08:00 wazuh-syscheckd[7808] config.c:41 at Read_Syscheck_Config(): DEBUG: (6208): Reading Client Configuration [etc/ossec.conf] 2023/06/23 05:08:00 wazuh-syscheckd[7808] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:08:00 wazuh-syscheckd[7808] agent_op.c:223 at os_read_agent_profile(): ERROR: (1103): Could not open file 'queue/sockets/.agent_info' due to [(2)-(No such file or directory)]. 2023/06/23 05:08:00 wazuh-syscheckd[7808] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:08:00 wazuh-syscheckd[7808] config.c:433 at ReadConfig(): DEBUG: but agent has a profile name. 2023/06/23 05:08:00 wazuh-syscheckd[7808] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:08:00 wazuh-syscheckd[7808] agent_op.c:223 at os_read_agent_profile(): ERROR: (1103): Could not open file 'queue/sockets/.agent_info' due to [(2)-(No such file or directory)]. 2023/06/23 05:08:00 wazuh-syscheckd[7808] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:08:00 wazuh-syscheckd[7808] config.c:433 at ReadConfig(): DEBUG: but agent has a profile name. 2023/06/23 05:08:00 wazuh-logcollector: ERROR: (1103): Could not open file 'queue/sockets/.agent_info' due to [(2)-(No such file or directory)]. 2023/06/23 05:08:00 wazuh-modulesd[7810] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/06/23 05:08:00 wazuh-modulesd[7810] main.c:77 at main(): DEBUG: Wazuh home directory: /Library/Ossec 2023/06/23 05:08:00 wazuh-modulesd[7810] wmodules-osquery-monitor.c:78 at wm_osquery_monitor_read(): DEBUG: Logpath read: /var/log/osquery/osqueryd.results.log 2023/06/23 05:08:00 wazuh-modulesd[7810] wmodules-osquery-monitor.c:84 at wm_osquery_monitor_read(): DEBUG: configPath read: /etc/osquery/osquery.conf 2023/06/23 05:08:00 wazuh-modulesd[7810] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:08:00 wazuh-modulesd[7810] agent_op.c:223 at os_read_agent_profile(): ERROR: (1103): Could not open file 'queue/sockets/.agent_info' due to [(2)-(No such file or directory)]. 2023/06/23 05:08:00 wazuh-modulesd[7810] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:08:00 wazuh-modulesd[7810] config.c:433 at ReadConfig(): DEBUG: but agent has a profile name. 2023/06/23 05:08:01 wazuh-agentd[7835] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/06/23 05:08:01 wazuh-agentd[7835] main.c:139 at main(): DEBUG: Wazuh home directory: /Library/Ossec 2023/06/23 05:08:01 wazuh-agentd[7835] main.c:141 at main(): DEBUG: Started (pid: 7835). 2023/06/23 05:08:01 wazuh-agentd[7835] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:08:01 wazuh-agentd[7835] agent_op.c:223 at os_read_agent_profile(): ERROR: (1103): Could not open file 'queue/sockets/.agent_info' due to [(2)-(No such file or directory)]. 2023/06/23 05:08:01 wazuh-agentd[7835] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:08:01 wazuh-agentd[7835] config.c:433 at ReadConfig(): DEBUG: but agent has a profile name. 2023/06/23 05:08:01 wazuh-agentd[7835] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:08:01 wazuh-agentd[7835] agent_op.c:223 at os_read_agent_profile(): ERROR: (1103): Could not open file 'queue/sockets/.agent_info' due to [(2)-(No such file or directory)]. 2023/06/23 05:08:01 wazuh-agentd[7835] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:08:01 wazuh-agentd[7835] config.c:433 at ReadConfig(): DEBUG: but agent has a profile name. 2023/06/23 05:08:02 wazuh-syscheckd[7853] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/06/23 05:08:02 wazuh-syscheckd[7853] config.c:33 at Read_Syscheck_Config(): DEBUG: (6287): Reading configuration file: 'etc/ossec.conf' 2023/06/23 05:08:02 wazuh-syscheckd[7853] syscheck-config.c:2421 at process_option_regex(): DEBUG: Found ignore regex node .log$|.swp$ 2023/06/23 05:08:02 wazuh-syscheckd[7853] syscheck-config.c:2428 at process_option_regex(): DEBUG: Found ignore regex node .log$|.swp$ OK? 2023/06/23 05:08:02 wazuh-syscheckd[7853] syscheck-config.c:2429 at process_option_regex(): DEBUG: Found ignore regex size 0 2023/06/23 05:08:02 wazuh-syscheckd[7853] config.c:41 at Read_Syscheck_Config(): DEBUG: (6208): Reading Client Configuration [etc/ossec.conf] 2023/06/23 05:08:02 wazuh-syscheckd[7853] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:08:02 wazuh-syscheckd[7853] agent_op.c:238 at os_read_agent_profile(): DEBUG: os_read_agent_profile() = [centos, centos7, centos7.4] 2023/06/23 05:08:02 wazuh-syscheckd[7853] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:08:02 wazuh-syscheckd[7853] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:08:02 wazuh-syscheckd[7853] agent_op.c:238 at os_read_agent_profile(): DEBUG: os_read_agent_profile() = [centos, centos7, centos7.4] 2023/06/23 05:08:02 wazuh-syscheckd[7853] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:08:02 rootcheck[7853] rootcheck.c:202 at rootcheck_init(): INFO: Rootcheck disabled. 2023/06/23 05:08:05 wazuh-modulesd[7875] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/06/23 05:08:05 wazuh-modulesd[7875] main.c:77 at main(): DEBUG: Wazuh home directory: /Library/Ossec 2023/06/23 05:08:05 wazuh-modulesd[7875] wmodules-osquery-monitor.c:78 at wm_osquery_monitor_read(): DEBUG: Logpath read: /var/log/osquery/osqueryd.results.log 2023/06/23 05:08:05 wazuh-modulesd[7875] wmodules-osquery-monitor.c:84 at wm_osquery_monitor_read(): DEBUG: configPath read: /etc/osquery/osquery.conf 2023/06/23 05:08:05 wazuh-modulesd[7875] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:08:05 wazuh-modulesd[7875] agent_op.c:238 at os_read_agent_profile(): DEBUG: os_read_agent_profile() = [centos, centos7, centos7.4] 2023/06/23 05:08:05 wazuh-modulesd[7875] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes.
Failed 2023-06-23 12:08:24.154791 test_remoted/test_socket_communication/test_syslog_message.py::test_syslog_message[syslog_udp_51000-failed_login_sshd] description: Check if 'wazuh-remoted' can receive syslog messages through the socket. 0.00 0

Test function details

Extended Summary

wazuh_min_version: 4.2.0
tier: 0
parameters:
- message:
type: fixture
brief: Message sent
- get_configuration:
type: fixture
brief: Get configurations from the module.
- configure_environment:
type: fixture
brief: Configure a custom environment for testing.
- restart_remoted:
type: fixture
brief: Restart 'wazuh-remoted' daemon in manager.
assertions:
- Verify the syslog message is received.
input_description: A configuration template (test_syslog_message) is contained in an external YAML file,
(wazuh_syslog.yaml). That template is combined with different test cases defined
in the module. Those include configuration settings for the 'wazuh-remoted' daemon
and agents info.
expected_output:
- r'Started : .* Listening on port .*'
- r'<.>.*'

Parameters

test_remoted/test_socket_communication/test_syslog_message.py:152: in test_syslog_message
wazuh_archives_log_monitor = remote.create_archives_log_monitor()
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/remote.py:329: in create_archives_log_monitor
truncate_file(ARCHIVES_LOG_PATH)
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/file.py:79: in truncate_file
with open(file_path, 'w'):
E FileNotFoundError: [Errno 2] No such file or directory: '/Library/Ossec/logs/archives/archives.log'
Failed 2023-06-23 12:08:24.156070 test_remoted/test_socket_communication/test_syslog_message.py::test_syslog_message[syslog_udp_51000-failed_login_sshd_pri_header] description: Check if 'wazuh-remoted' can receive syslog messages through the socket. 0.00 0

Test function details

Extended Summary

wazuh_min_version: 4.2.0
tier: 0
parameters:
- message:
type: fixture
brief: Message sent
- get_configuration:
type: fixture
brief: Get configurations from the module.
- configure_environment:
type: fixture
brief: Configure a custom environment for testing.
- restart_remoted:
type: fixture
brief: Restart 'wazuh-remoted' daemon in manager.
assertions:
- Verify the syslog message is received.
input_description: A configuration template (test_syslog_message) is contained in an external YAML file,
(wazuh_syslog.yaml). That template is combined with different test cases defined
in the module. Those include configuration settings for the 'wazuh-remoted' daemon
and agents info.
expected_output:
- r'Started : .* Listening on port .*'
- r'<.>.*'

Parameters

test_remoted/test_socket_communication/test_syslog_message.py:152: in test_syslog_message
wazuh_archives_log_monitor = remote.create_archives_log_monitor()
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/remote.py:329: in create_archives_log_monitor
truncate_file(ARCHIVES_LOG_PATH)
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/file.py:79: in truncate_file
with open(file_path, 'w'):
E FileNotFoundError: [Errno 2] No such file or directory: '/Library/Ossec/logs/archives/archives.log'
Failed 2023-06-23 12:08:24.157965 test_remoted/test_socket_communication/test_syslog_message.py::test_syslog_message[syslog_udp_51000-dummy_pri_header] description: Check if 'wazuh-remoted' can receive syslog messages through the socket. 0.00 0

Test function details

Extended Summary

wazuh_min_version: 4.2.0
tier: 0
parameters:
- message:
type: fixture
brief: Message sent
- get_configuration:
type: fixture
brief: Get configurations from the module.
- configure_environment:
type: fixture
brief: Configure a custom environment for testing.
- restart_remoted:
type: fixture
brief: Restart 'wazuh-remoted' daemon in manager.
assertions:
- Verify the syslog message is received.
input_description: A configuration template (test_syslog_message) is contained in an external YAML file,
(wazuh_syslog.yaml). That template is combined with different test cases defined
in the module. Those include configuration settings for the 'wazuh-remoted' daemon
and agents info.
expected_output:
- r'Started : .* Listening on port .*'
- r'<.>.*'

Parameters

test_remoted/test_socket_communication/test_syslog_message.py:152: in test_syslog_message
wazuh_archives_log_monitor = remote.create_archives_log_monitor()
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/remote.py:329: in create_archives_log_monitor
truncate_file(ARCHIVES_LOG_PATH)
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/file.py:79: in truncate_file
with open(file_path, 'w'):
E FileNotFoundError: [Errno 2] No such file or directory: '/Library/Ossec/logs/archives/archives.log'
Failed 2023-06-23 12:08:24.159267 test_remoted/test_socket_communication/test_syslog_message.py::test_syslog_message[syslog_udp_51000-dummy_bad_formatted_pri_header] description: Check if 'wazuh-remoted' can receive syslog messages through the socket. 0.00 0

Test function details

Extended Summary

wazuh_min_version: 4.2.0
tier: 0
parameters:
- message:
type: fixture
brief: Message sent
- get_configuration:
type: fixture
brief: Get configurations from the module.
- configure_environment:
type: fixture
brief: Configure a custom environment for testing.
- restart_remoted:
type: fixture
brief: Restart 'wazuh-remoted' daemon in manager.
assertions:
- Verify the syslog message is received.
input_description: A configuration template (test_syslog_message) is contained in an external YAML file,
(wazuh_syslog.yaml). That template is combined with different test cases defined
in the module. Those include configuration settings for the 'wazuh-remoted' daemon
and agents info.
expected_output:
- r'Started : .* Listening on port .*'
- r'<.>.*'

Parameters

test_remoted/test_socket_communication/test_syslog_message.py:152: in test_syslog_message
wazuh_archives_log_monitor = remote.create_archives_log_monitor()
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/remote.py:329: in create_archives_log_monitor
truncate_file(ARCHIVES_LOG_PATH)
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/file.py:79: in truncate_file
with open(file_path, 'w'):
E FileNotFoundError: [Errno 2] No such file or directory: '/Library/Ossec/logs/archives/archives.log'
Failed 2023-06-23 12:08:24.160883 test_remoted/test_socket_communication/test_syslog_message.py::test_syslog_message[syslog_tcp_514-dummy] description: Check if 'wazuh-remoted' can receive syslog messages through the socket. 8.12 0

Test function details

Extended Summary

wazuh_min_version: 4.2.0
tier: 0
parameters:
- message:
type: fixture
brief: Message sent
- get_configuration:
type: fixture
brief: Get configurations from the module.
- configure_environment:
type: fixture
brief: Configure a custom environment for testing.
- restart_remoted:
type: fixture
brief: Restart 'wazuh-remoted' daemon in manager.
assertions:
- Verify the syslog message is received.
input_description: A configuration template (test_syslog_message) is contained in an external YAML file,
(wazuh_syslog.yaml). That template is combined with different test cases defined
in the module. Those include configuration settings for the 'wazuh-remoted' daemon
and agents info.
expected_output:
- r'Started : .* Listening on port .*'
- r'<.>.*'

Parameters

test_remoted/test_socket_communication/test_syslog_message.py:152: in test_syslog_message
wazuh_archives_log_monitor = remote.create_archives_log_monitor()
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/remote.py:329: in create_archives_log_monitor
truncate_file(ARCHIVES_LOG_PATH)
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/file.py:79: in truncate_file
with open(file_path, 'w'):
E FileNotFoundError: [Errno 2] No such file or directory: '/Library/Ossec/logs/archives/archives.log'
-----------------------------Captured stdout setup------------------------------
Fri Jun 23 12:08:08 UTC 2023 Killing wazuh-modulesd... Killing wazuh-logcollector... Killing wazuh-syscheckd... Killing wazuh-agentd... Killing wazuh-execd... Wazuh v4.4.4 Stopped Starting Wazuh v4.4.4... Started wazuh-execd... Started wazuh-agentd... Started wazuh-syscheckd... Started wazuh-logcollector... Started wazuh-modulesd... Completed.
-----------------------------Captured stderr setup------------------------------
2023/06/23 05:08:08 wazuh-agentd[7977] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/06/23 05:08:08 wazuh-agentd[7977] main.c:139 at main(): DEBUG: Wazuh home directory: /Library/Ossec 2023/06/23 05:08:08 wazuh-agentd[7977] main.c:141 at main(): DEBUG: Started (pid: 7977). 2023/06/23 05:08:08 wazuh-agentd[7977] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:08:08 wazuh-agentd[7977] agent_op.c:223 at os_read_agent_profile(): ERROR: (1103): Could not open file 'queue/sockets/.agent_info' due to [(2)-(No such file or directory)]. 2023/06/23 05:08:08 wazuh-agentd[7977] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:08:08 wazuh-agentd[7977] config.c:433 at ReadConfig(): DEBUG: but agent has a profile name. 2023/06/23 05:08:08 wazuh-agentd[7977] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:08:08 wazuh-agentd[7977] agent_op.c:223 at os_read_agent_profile(): ERROR: (1103): Could not open file 'queue/sockets/.agent_info' due to [(2)-(No such file or directory)]. 2023/06/23 05:08:08 wazuh-agentd[7977] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:08:08 wazuh-agentd[7977] config.c:433 at ReadConfig(): DEBUG: but agent has a profile name. 2023/06/23 05:08:08 wazuh-syscheckd[7978] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/06/23 05:08:08 wazuh-syscheckd[7978] config.c:33 at Read_Syscheck_Config(): DEBUG: (6287): Reading configuration file: 'etc/ossec.conf' 2023/06/23 05:08:08 wazuh-syscheckd[7978] syscheck-config.c:2421 at process_option_regex(): DEBUG: Found ignore regex node .log$|.swp$ 2023/06/23 05:08:08 wazuh-syscheckd[7978] syscheck-config.c:2428 at process_option_regex(): DEBUG: Found ignore regex node .log$|.swp$ OK? 2023/06/23 05:08:08 wazuh-syscheckd[7978] syscheck-config.c:2429 at process_option_regex(): DEBUG: Found ignore regex size 0 2023/06/23 05:08:08 wazuh-syscheckd[7978] config.c:41 at Read_Syscheck_Config(): DEBUG: (6208): Reading Client Configuration [etc/ossec.conf] 2023/06/23 05:08:08 wazuh-syscheckd[7978] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:08:08 wazuh-syscheckd[7978] agent_op.c:223 at os_read_agent_profile(): ERROR: (1103): Could not open file 'queue/sockets/.agent_info' due to [(2)-(No such file or directory)]. 2023/06/23 05:08:08 wazuh-syscheckd[7978] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:08:08 wazuh-syscheckd[7978] config.c:433 at ReadConfig(): DEBUG: but agent has a profile name. 2023/06/23 05:08:08 wazuh-syscheckd[7978] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:08:08 wazuh-syscheckd[7978] agent_op.c:223 at os_read_agent_profile(): ERROR: (1103): Could not open file 'queue/sockets/.agent_info' due to [(2)-(No such file or directory)]. 2023/06/23 05:08:08 wazuh-syscheckd[7978] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:08:08 wazuh-syscheckd[7978] config.c:433 at ReadConfig(): DEBUG: but agent has a profile name. 2023/06/23 05:08:08 wazuh-logcollector: ERROR: (1103): Could not open file 'queue/sockets/.agent_info' due to [(2)-(No such file or directory)]. 2023/06/23 05:08:08 wazuh-modulesd[7980] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/06/23 05:08:08 wazuh-modulesd[7980] main.c:77 at main(): DEBUG: Wazuh home directory: /Library/Ossec 2023/06/23 05:08:08 wazuh-modulesd[7980] wmodules-osquery-monitor.c:78 at wm_osquery_monitor_read(): DEBUG: Logpath read: /var/log/osquery/osqueryd.results.log 2023/06/23 05:08:08 wazuh-modulesd[7980] wmodules-osquery-monitor.c:84 at wm_osquery_monitor_read(): DEBUG: configPath read: /etc/osquery/osquery.conf 2023/06/23 05:08:08 wazuh-modulesd[7980] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:08:08 wazuh-modulesd[7980] agent_op.c:223 at os_read_agent_profile(): ERROR: (1103): Could not open file 'queue/sockets/.agent_info' due to [(2)-(No such file or directory)]. 2023/06/23 05:08:08 wazuh-modulesd[7980] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:08:08 wazuh-modulesd[7980] config.c:433 at ReadConfig(): DEBUG: but agent has a profile name. 2023/06/23 05:08:09 wazuh-agentd[8005] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/06/23 05:08:09 wazuh-agentd[8005] main.c:139 at main(): DEBUG: Wazuh home directory: /Library/Ossec 2023/06/23 05:08:09 wazuh-agentd[8005] main.c:141 at main(): DEBUG: Started (pid: 8005). 2023/06/23 05:08:09 wazuh-agentd[8005] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:08:09 wazuh-agentd[8005] agent_op.c:223 at os_read_agent_profile(): ERROR: (1103): Could not open file 'queue/sockets/.agent_info' due to [(2)-(No such file or directory)]. 2023/06/23 05:08:09 wazuh-agentd[8005] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:08:09 wazuh-agentd[8005] config.c:433 at ReadConfig(): DEBUG: but agent has a profile name. 2023/06/23 05:08:09 wazuh-agentd[8005] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:08:09 wazuh-agentd[8005] agent_op.c:223 at os_read_agent_profile(): ERROR: (1103): Could not open file 'queue/sockets/.agent_info' due to [(2)-(No such file or directory)]. 2023/06/23 05:08:09 wazuh-agentd[8005] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:08:09 wazuh-agentd[8005] config.c:433 at ReadConfig(): DEBUG: but agent has a profile name. 2023/06/23 05:08:10 wazuh-syscheckd[8023] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/06/23 05:08:10 wazuh-syscheckd[8023] config.c:33 at Read_Syscheck_Config(): DEBUG: (6287): Reading configuration file: 'etc/ossec.conf' 2023/06/23 05:08:10 wazuh-syscheckd[8023] syscheck-config.c:2421 at process_option_regex(): DEBUG: Found ignore regex node .log$|.swp$ 2023/06/23 05:08:10 wazuh-syscheckd[8023] syscheck-config.c:2428 at process_option_regex(): DEBUG: Found ignore regex node .log$|.swp$ OK? 2023/06/23 05:08:10 wazuh-syscheckd[8023] syscheck-config.c:2429 at process_option_regex(): DEBUG: Found ignore regex size 0 2023/06/23 05:08:10 wazuh-syscheckd[8023] config.c:41 at Read_Syscheck_Config(): DEBUG: (6208): Reading Client Configuration [etc/ossec.conf] 2023/06/23 05:08:10 wazuh-syscheckd[8023] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:08:10 wazuh-syscheckd[8023] agent_op.c:238 at os_read_agent_profile(): DEBUG: os_read_agent_profile() = [centos, centos7, centos7.4] 2023/06/23 05:08:10 wazuh-syscheckd[8023] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:08:10 wazuh-syscheckd[8023] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:08:10 wazuh-syscheckd[8023] agent_op.c:238 at os_read_agent_profile(): DEBUG: os_read_agent_profile() = [centos, centos7, centos7.4] 2023/06/23 05:08:10 wazuh-syscheckd[8023] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:08:10 rootcheck[8023] rootcheck.c:202 at rootcheck_init(): INFO: Rootcheck disabled. 2023/06/23 05:08:13 wazuh-modulesd[8045] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/06/23 05:08:13 wazuh-modulesd[8045] main.c:77 at main(): DEBUG: Wazuh home directory: /Library/Ossec 2023/06/23 05:08:13 wazuh-modulesd[8045] wmodules-osquery-monitor.c:78 at wm_osquery_monitor_read(): DEBUG: Logpath read: /var/log/osquery/osqueryd.results.log 2023/06/23 05:08:13 wazuh-modulesd[8045] wmodules-osquery-monitor.c:84 at wm_osquery_monitor_read(): DEBUG: configPath read: /etc/osquery/osquery.conf 2023/06/23 05:08:13 wazuh-modulesd[8045] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:08:13 wazuh-modulesd[8045] agent_op.c:238 at os_read_agent_profile(): DEBUG: os_read_agent_profile() = [centos, centos7, centos7.4] 2023/06/23 05:08:13 wazuh-modulesd[8045] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes.
Failed 2023-06-23 12:08:24.162445 test_remoted/test_socket_communication/test_syslog_message.py::test_syslog_message[syslog_tcp_514-failed_login_sshd] description: Check if 'wazuh-remoted' can receive syslog messages through the socket. 0.00 0

Test function details

Extended Summary

wazuh_min_version: 4.2.0
tier: 0
parameters:
- message:
type: fixture
brief: Message sent
- get_configuration:
type: fixture
brief: Get configurations from the module.
- configure_environment:
type: fixture
brief: Configure a custom environment for testing.
- restart_remoted:
type: fixture
brief: Restart 'wazuh-remoted' daemon in manager.
assertions:
- Verify the syslog message is received.
input_description: A configuration template (test_syslog_message) is contained in an external YAML file,
(wazuh_syslog.yaml). That template is combined with different test cases defined
in the module. Those include configuration settings for the 'wazuh-remoted' daemon
and agents info.
expected_output:
- r'Started : .* Listening on port .*'
- r'<.>.*'

Parameters

test_remoted/test_socket_communication/test_syslog_message.py:152: in test_syslog_message
wazuh_archives_log_monitor = remote.create_archives_log_monitor()
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/remote.py:329: in create_archives_log_monitor
truncate_file(ARCHIVES_LOG_PATH)
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/file.py:79: in truncate_file
with open(file_path, 'w'):
E FileNotFoundError: [Errno 2] No such file or directory: '/Library/Ossec/logs/archives/archives.log'
Failed 2023-06-23 12:08:24.163786 test_remoted/test_socket_communication/test_syslog_message.py::test_syslog_message[syslog_tcp_514-failed_login_sshd_pri_header] description: Check if 'wazuh-remoted' can receive syslog messages through the socket. 0.00 0

Test function details

Extended Summary

wazuh_min_version: 4.2.0
tier: 0
parameters:
- message:
type: fixture
brief: Message sent
- get_configuration:
type: fixture
brief: Get configurations from the module.
- configure_environment:
type: fixture
brief: Configure a custom environment for testing.
- restart_remoted:
type: fixture
brief: Restart 'wazuh-remoted' daemon in manager.
assertions:
- Verify the syslog message is received.
input_description: A configuration template (test_syslog_message) is contained in an external YAML file,
(wazuh_syslog.yaml). That template is combined with different test cases defined
in the module. Those include configuration settings for the 'wazuh-remoted' daemon
and agents info.
expected_output:
- r'Started : .* Listening on port .*'
- r'<.>.*'

Parameters

test_remoted/test_socket_communication/test_syslog_message.py:152: in test_syslog_message
wazuh_archives_log_monitor = remote.create_archives_log_monitor()
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/remote.py:329: in create_archives_log_monitor
truncate_file(ARCHIVES_LOG_PATH)
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/file.py:79: in truncate_file
with open(file_path, 'w'):
E FileNotFoundError: [Errno 2] No such file or directory: '/Library/Ossec/logs/archives/archives.log'
Failed 2023-06-23 12:08:24.165304 test_remoted/test_socket_communication/test_syslog_message.py::test_syslog_message[syslog_tcp_514-multi_log_failed_login_sshd_logon_success] description: Check if 'wazuh-remoted' can receive syslog messages through the socket. 0.00 0

Test function details

Extended Summary

wazuh_min_version: 4.2.0
tier: 0
parameters:
- message:
type: fixture
brief: Message sent
- get_configuration:
type: fixture
brief: Get configurations from the module.
- configure_environment:
type: fixture
brief: Configure a custom environment for testing.
- restart_remoted:
type: fixture
brief: Restart 'wazuh-remoted' daemon in manager.
assertions:
- Verify the syslog message is received.
input_description: A configuration template (test_syslog_message) is contained in an external YAML file,
(wazuh_syslog.yaml). That template is combined with different test cases defined
in the module. Those include configuration settings for the 'wazuh-remoted' daemon
and agents info.
expected_output:
- r'Started : .* Listening on port .*'
- r'<.>.*'

Parameters

test_remoted/test_socket_communication/test_syslog_message.py:152: in test_syslog_message
wazuh_archives_log_monitor = remote.create_archives_log_monitor()
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/remote.py:329: in create_archives_log_monitor
truncate_file(ARCHIVES_LOG_PATH)
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/file.py:79: in truncate_file
with open(file_path, 'w'):
E FileNotFoundError: [Errno 2] No such file or directory: '/Library/Ossec/logs/archives/archives.log'
Failed 2023-06-23 12:08:24.166919 test_remoted/test_socket_communication/test_syslog_message.py::test_syslog_message[syslog_tcp_514-multi_log_failed_login_sshd_logon_success_pri_header] description: Check if 'wazuh-remoted' can receive syslog messages through the socket. 0.00 0

Test function details

Extended Summary

wazuh_min_version: 4.2.0
tier: 0
parameters:
- message:
type: fixture
brief: Message sent
- get_configuration:
type: fixture
brief: Get configurations from the module.
- configure_environment:
type: fixture
brief: Configure a custom environment for testing.
- restart_remoted:
type: fixture
brief: Restart 'wazuh-remoted' daemon in manager.
assertions:
- Verify the syslog message is received.
input_description: A configuration template (test_syslog_message) is contained in an external YAML file,
(wazuh_syslog.yaml). That template is combined with different test cases defined
in the module. Those include configuration settings for the 'wazuh-remoted' daemon
and agents info.
expected_output:
- r'Started : .* Listening on port .*'
- r'<.>.*'

Parameters

test_remoted/test_socket_communication/test_syslog_message.py:152: in test_syslog_message
wazuh_archives_log_monitor = remote.create_archives_log_monitor()
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/remote.py:329: in create_archives_log_monitor
truncate_file(ARCHIVES_LOG_PATH)
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/file.py:79: in truncate_file
with open(file_path, 'w'):
E FileNotFoundError: [Errno 2] No such file or directory: '/Library/Ossec/logs/archives/archives.log'
Failed 2023-06-23 12:08:24.168609 test_remoted/test_socket_communication/test_syslog_message.py::test_syslog_message[syslog_tcp_514-multi_log_failed_login_sshd_logon_success_pri_header_mix_with_without] description: Check if 'wazuh-remoted' can receive syslog messages through the socket. 0.00 0

Test function details

Extended Summary

wazuh_min_version: 4.2.0
tier: 0
parameters:
- message:
type: fixture
brief: Message sent
- get_configuration:
type: fixture
brief: Get configurations from the module.
- configure_environment:
type: fixture
brief: Configure a custom environment for testing.
- restart_remoted:
type: fixture
brief: Restart 'wazuh-remoted' daemon in manager.
assertions:
- Verify the syslog message is received.
input_description: A configuration template (test_syslog_message) is contained in an external YAML file,
(wazuh_syslog.yaml). That template is combined with different test cases defined
in the module. Those include configuration settings for the 'wazuh-remoted' daemon
and agents info.
expected_output:
- r'Started : .* Listening on port .*'
- r'<.>.*'

Parameters

test_remoted/test_socket_communication/test_syslog_message.py:152: in test_syslog_message
wazuh_archives_log_monitor = remote.create_archives_log_monitor()
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/remote.py:329: in create_archives_log_monitor
truncate_file(ARCHIVES_LOG_PATH)
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/file.py:79: in truncate_file
with open(file_path, 'w'):
E FileNotFoundError: [Errno 2] No such file or directory: '/Library/Ossec/logs/archives/archives.log'
Failed 2023-06-23 12:08:24.170251 test_remoted/test_socket_communication/test_syslog_message.py::test_syslog_message[syslog_tcp_514-multi_log_failed_login_sshd_logon_success_pri_header_mix_without_with] description: Check if 'wazuh-remoted' can receive syslog messages through the socket. 0.00 0

Test function details

Extended Summary

wazuh_min_version: 4.2.0
tier: 0
parameters:
- message:
type: fixture
brief: Message sent
- get_configuration:
type: fixture
brief: Get configurations from the module.
- configure_environment:
type: fixture
brief: Configure a custom environment for testing.
- restart_remoted:
type: fixture
brief: Restart 'wazuh-remoted' daemon in manager.
assertions:
- Verify the syslog message is received.
input_description: A configuration template (test_syslog_message) is contained in an external YAML file,
(wazuh_syslog.yaml). That template is combined with different test cases defined
in the module. Those include configuration settings for the 'wazuh-remoted' daemon
and agents info.
expected_output:
- r'Started : .* Listening on port .*'
- r'<.>.*'

Parameters

test_remoted/test_socket_communication/test_syslog_message.py:152: in test_syslog_message
wazuh_archives_log_monitor = remote.create_archives_log_monitor()
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/remote.py:329: in create_archives_log_monitor
truncate_file(ARCHIVES_LOG_PATH)
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/file.py:79: in truncate_file
with open(file_path, 'w'):
E FileNotFoundError: [Errno 2] No such file or directory: '/Library/Ossec/logs/archives/archives.log'
Failed 2023-06-23 12:08:24.172228 test_remoted/test_socket_communication/test_syslog_message.py::test_syslog_message[syslog_tcp_514-dummy_pri_header] description: Check if 'wazuh-remoted' can receive syslog messages through the socket. 0.00 0

Test function details

Extended Summary

wazuh_min_version: 4.2.0
tier: 0
parameters:
- message:
type: fixture
brief: Message sent
- get_configuration:
type: fixture
brief: Get configurations from the module.
- configure_environment:
type: fixture
brief: Configure a custom environment for testing.
- restart_remoted:
type: fixture
brief: Restart 'wazuh-remoted' daemon in manager.
assertions:
- Verify the syslog message is received.
input_description: A configuration template (test_syslog_message) is contained in an external YAML file,
(wazuh_syslog.yaml). That template is combined with different test cases defined
in the module. Those include configuration settings for the 'wazuh-remoted' daemon
and agents info.
expected_output:
- r'Started : .* Listening on port .*'
- r'<.>.*'

Parameters

test_remoted/test_socket_communication/test_syslog_message.py:152: in test_syslog_message
wazuh_archives_log_monitor = remote.create_archives_log_monitor()
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/remote.py:329: in create_archives_log_monitor
truncate_file(ARCHIVES_LOG_PATH)
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/file.py:79: in truncate_file
with open(file_path, 'w'):
E FileNotFoundError: [Errno 2] No such file or directory: '/Library/Ossec/logs/archives/archives.log'
Failed 2023-06-23 12:08:24.173563 test_remoted/test_socket_communication/test_syslog_message.py::test_syslog_message[syslog_tcp_514-dummy_bad_formatted_pri_header] description: Check if 'wazuh-remoted' can receive syslog messages through the socket. 0.00 0

Test function details

Extended Summary

wazuh_min_version: 4.2.0
tier: 0
parameters:
- message:
type: fixture
brief: Message sent
- get_configuration:
type: fixture
brief: Get configurations from the module.
- configure_environment:
type: fixture
brief: Configure a custom environment for testing.
- restart_remoted:
type: fixture
brief: Restart 'wazuh-remoted' daemon in manager.
assertions:
- Verify the syslog message is received.
input_description: A configuration template (test_syslog_message) is contained in an external YAML file,
(wazuh_syslog.yaml). That template is combined with different test cases defined
in the module. Those include configuration settings for the 'wazuh-remoted' daemon
and agents info.
expected_output:
- r'Started : .* Listening on port .*'
- r'<.>.*'

Parameters

test_remoted/test_socket_communication/test_syslog_message.py:152: in test_syslog_message
wazuh_archives_log_monitor = remote.create_archives_log_monitor()
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/remote.py:329: in create_archives_log_monitor
truncate_file(ARCHIVES_LOG_PATH)
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/file.py:79: in truncate_file
with open(file_path, 'w'):
E FileNotFoundError: [Errno 2] No such file or directory: '/Library/Ossec/logs/archives/archives.log'
Failed 2023-06-23 12:08:24.175173 test_remoted/test_socket_communication/test_syslog_message.py::test_syslog_message[syslog_tcp_51000-dummy] description: Check if 'wazuh-remoted' can receive syslog messages through the socket. 8.12 0

Test function details

Extended Summary

wazuh_min_version: 4.2.0
tier: 0
parameters:
- message:
type: fixture
brief: Message sent
- get_configuration:
type: fixture
brief: Get configurations from the module.
- configure_environment:
type: fixture
brief: Configure a custom environment for testing.
- restart_remoted:
type: fixture
brief: Restart 'wazuh-remoted' daemon in manager.
assertions:
- Verify the syslog message is received.
input_description: A configuration template (test_syslog_message) is contained in an external YAML file,
(wazuh_syslog.yaml). That template is combined with different test cases defined
in the module. Those include configuration settings for the 'wazuh-remoted' daemon
and agents info.
expected_output:
- r'Started : .* Listening on port .*'
- r'<.>.*'

Parameters

test_remoted/test_socket_communication/test_syslog_message.py:152: in test_syslog_message
wazuh_archives_log_monitor = remote.create_archives_log_monitor()
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/remote.py:329: in create_archives_log_monitor
truncate_file(ARCHIVES_LOG_PATH)
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/file.py:79: in truncate_file
with open(file_path, 'w'):
E FileNotFoundError: [Errno 2] No such file or directory: '/Library/Ossec/logs/archives/archives.log'
-----------------------------Captured stdout setup------------------------------
Fri Jun 23 12:08:16 UTC 2023 Killing wazuh-modulesd... Killing wazuh-logcollector... Killing wazuh-syscheckd... Killing wazuh-agentd... Killing wazuh-execd... Wazuh v4.4.4 Stopped Starting Wazuh v4.4.4... Started wazuh-execd... Started wazuh-agentd... Started wazuh-syscheckd... Started wazuh-logcollector... Started wazuh-modulesd... Completed.
-----------------------------Captured stderr setup------------------------------
2023/06/23 05:08:16 wazuh-agentd[8139] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/06/23 05:08:16 wazuh-agentd[8139] main.c:139 at main(): DEBUG: Wazuh home directory: /Library/Ossec 2023/06/23 05:08:16 wazuh-agentd[8139] main.c:141 at main(): DEBUG: Started (pid: 8139). 2023/06/23 05:08:16 wazuh-agentd[8139] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:08:16 wazuh-agentd[8139] agent_op.c:223 at os_read_agent_profile(): ERROR: (1103): Could not open file 'queue/sockets/.agent_info' due to [(2)-(No such file or directory)]. 2023/06/23 05:08:16 wazuh-agentd[8139] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:08:16 wazuh-agentd[8139] config.c:433 at ReadConfig(): DEBUG: but agent has a profile name. 2023/06/23 05:08:16 wazuh-agentd[8139] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:08:16 wazuh-agentd[8139] agent_op.c:223 at os_read_agent_profile(): ERROR: (1103): Could not open file 'queue/sockets/.agent_info' due to [(2)-(No such file or directory)]. 2023/06/23 05:08:16 wazuh-agentd[8139] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:08:16 wazuh-agentd[8139] config.c:433 at ReadConfig(): DEBUG: but agent has a profile name. 2023/06/23 05:08:16 wazuh-syscheckd[8140] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/06/23 05:08:16 wazuh-syscheckd[8140] config.c:33 at Read_Syscheck_Config(): DEBUG: (6287): Reading configuration file: 'etc/ossec.conf' 2023/06/23 05:08:16 wazuh-syscheckd[8140] syscheck-config.c:2421 at process_option_regex(): DEBUG: Found ignore regex node .log$|.swp$ 2023/06/23 05:08:16 wazuh-syscheckd[8140] syscheck-config.c:2428 at process_option_regex(): DEBUG: Found ignore regex node .log$|.swp$ OK? 2023/06/23 05:08:16 wazuh-syscheckd[8140] syscheck-config.c:2429 at process_option_regex(): DEBUG: Found ignore regex size 0 2023/06/23 05:08:16 wazuh-syscheckd[8140] config.c:41 at Read_Syscheck_Config(): DEBUG: (6208): Reading Client Configuration [etc/ossec.conf] 2023/06/23 05:08:16 wazuh-syscheckd[8140] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:08:16 wazuh-syscheckd[8140] agent_op.c:223 at os_read_agent_profile(): ERROR: (1103): Could not open file 'queue/sockets/.agent_info' due to [(2)-(No such file or directory)]. 2023/06/23 05:08:16 wazuh-syscheckd[8140] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:08:16 wazuh-syscheckd[8140] config.c:433 at ReadConfig(): DEBUG: but agent has a profile name. 2023/06/23 05:08:16 wazuh-syscheckd[8140] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:08:16 wazuh-syscheckd[8140] agent_op.c:223 at os_read_agent_profile(): ERROR: (1103): Could not open file 'queue/sockets/.agent_info' due to [(2)-(No such file or directory)]. 2023/06/23 05:08:16 wazuh-syscheckd[8140] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:08:16 wazuh-syscheckd[8140] config.c:433 at ReadConfig(): DEBUG: but agent has a profile name. 2023/06/23 05:08:16 wazuh-logcollector: ERROR: (1103): Could not open file 'queue/sockets/.agent_info' due to [(2)-(No such file or directory)]. 2023/06/23 05:08:16 wazuh-modulesd[8142] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/06/23 05:08:16 wazuh-modulesd[8142] main.c:77 at main(): DEBUG: Wazuh home directory: /Library/Ossec 2023/06/23 05:08:16 wazuh-modulesd[8142] wmodules-osquery-monitor.c:78 at wm_osquery_monitor_read(): DEBUG: Logpath read: /var/log/osquery/osqueryd.results.log 2023/06/23 05:08:16 wazuh-modulesd[8142] wmodules-osquery-monitor.c:84 at wm_osquery_monitor_read(): DEBUG: configPath read: /etc/osquery/osquery.conf 2023/06/23 05:08:16 wazuh-modulesd[8142] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:08:16 wazuh-modulesd[8142] agent_op.c:223 at os_read_agent_profile(): ERROR: (1103): Could not open file 'queue/sockets/.agent_info' due to [(2)-(No such file or directory)]. 2023/06/23 05:08:16 wazuh-modulesd[8142] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:08:16 wazuh-modulesd[8142] config.c:433 at ReadConfig(): DEBUG: but agent has a profile name. 2023/06/23 05:08:17 wazuh-agentd[8167] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/06/23 05:08:17 wazuh-agentd[8167] main.c:139 at main(): DEBUG: Wazuh home directory: /Library/Ossec 2023/06/23 05:08:17 wazuh-agentd[8167] main.c:141 at main(): DEBUG: Started (pid: 8167). 2023/06/23 05:08:17 wazuh-agentd[8167] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:08:17 wazuh-agentd[8167] agent_op.c:223 at os_read_agent_profile(): ERROR: (1103): Could not open file 'queue/sockets/.agent_info' due to [(2)-(No such file or directory)]. 2023/06/23 05:08:17 wazuh-agentd[8167] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:08:17 wazuh-agentd[8167] config.c:433 at ReadConfig(): DEBUG: but agent has a profile name. 2023/06/23 05:08:17 wazuh-agentd[8167] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:08:17 wazuh-agentd[8167] agent_op.c:223 at os_read_agent_profile(): ERROR: (1103): Could not open file 'queue/sockets/.agent_info' due to [(2)-(No such file or directory)]. 2023/06/23 05:08:17 wazuh-agentd[8167] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:08:17 wazuh-agentd[8167] config.c:433 at ReadConfig(): DEBUG: but agent has a profile name. 2023/06/23 05:08:18 wazuh-syscheckd[8193] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/06/23 05:08:18 wazuh-syscheckd[8193] config.c:33 at Read_Syscheck_Config(): DEBUG: (6287): Reading configuration file: 'etc/ossec.conf' 2023/06/23 05:08:18 wazuh-syscheckd[8193] syscheck-config.c:2421 at process_option_regex(): DEBUG: Found ignore regex node .log$|.swp$ 2023/06/23 05:08:18 wazuh-syscheckd[8193] syscheck-config.c:2428 at process_option_regex(): DEBUG: Found ignore regex node .log$|.swp$ OK? 2023/06/23 05:08:18 wazuh-syscheckd[8193] syscheck-config.c:2429 at process_option_regex(): DEBUG: Found ignore regex size 0 2023/06/23 05:08:18 wazuh-syscheckd[8193] config.c:41 at Read_Syscheck_Config(): DEBUG: (6208): Reading Client Configuration [etc/ossec.conf] 2023/06/23 05:08:18 wazuh-syscheckd[8193] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:08:18 wazuh-syscheckd[8193] agent_op.c:238 at os_read_agent_profile(): DEBUG: os_read_agent_profile() = [centos, centos7, centos7.4] 2023/06/23 05:08:18 wazuh-syscheckd[8193] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:08:18 wazuh-syscheckd[8193] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:08:18 wazuh-syscheckd[8193] agent_op.c:238 at os_read_agent_profile(): DEBUG: os_read_agent_profile() = [centos, centos7, centos7.4] 2023/06/23 05:08:18 wazuh-syscheckd[8193] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes. 2023/06/23 05:08:18 rootcheck[8193] rootcheck.c:202 at rootcheck_init(): INFO: Rootcheck disabled. 2023/06/23 05:08:21 wazuh-modulesd[8215] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized 2023/06/23 05:08:21 wazuh-modulesd[8215] main.c:77 at main(): DEBUG: Wazuh home directory: /Library/Ossec 2023/06/23 05:08:21 wazuh-modulesd[8215] wmodules-osquery-monitor.c:78 at wm_osquery_monitor_read(): DEBUG: Logpath read: /var/log/osquery/osqueryd.results.log 2023/06/23 05:08:21 wazuh-modulesd[8215] wmodules-osquery-monitor.c:84 at wm_osquery_monitor_read(): DEBUG: configPath read: /etc/osquery/osquery.conf 2023/06/23 05:08:21 wazuh-modulesd[8215] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile(). 2023/06/23 05:08:21 wazuh-modulesd[8215] agent_op.c:238 at os_read_agent_profile(): DEBUG: os_read_agent_profile() = [centos, centos7, centos7.4] 2023/06/23 05:08:21 wazuh-modulesd[8215] config.c:424 at ReadConfig(): DEBUG: agent_config element does not have any attributes.
Failed 2023-06-23 12:08:24.176827 test_remoted/test_socket_communication/test_syslog_message.py::test_syslog_message[syslog_tcp_51000-failed_login_sshd] description: Check if 'wazuh-remoted' can receive syslog messages through the socket. 0.00 0

Test function details

Extended Summary

wazuh_min_version: 4.2.0
tier: 0
parameters:
- message:
type: fixture
brief: Message sent
- get_configuration:
type: fixture
brief: Get configurations from the module.
- configure_environment:
type: fixture
brief: Configure a custom environment for testing.
- restart_remoted:
type: fixture
brief: Restart 'wazuh-remoted' daemon in manager.
assertions:
- Verify the syslog message is received.
input_description: A configuration template (test_syslog_message) is contained in an external YAML file,
(wazuh_syslog.yaml). That template is combined with different test cases defined
in the module. Those include configuration settings for the 'wazuh-remoted' daemon
and agents info.
expected_output:
- r'Started : .* Listening on port .*'
- r'<.>.*'

Parameters

test_remoted/test_socket_communication/test_syslog_message.py:152: in test_syslog_message
wazuh_archives_log_monitor = remote.create_archives_log_monitor()
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/remote.py:329: in create_archives_log_monitor
truncate_file(ARCHIVES_LOG_PATH)
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/file.py:79: in truncate_file
with open(file_path, 'w'):
E FileNotFoundError: [Errno 2] No such file or directory: '/Library/Ossec/logs/archives/archives.log'
Failed 2023-06-23 12:08:24.178286 test_remoted/test_socket_communication/test_syslog_message.py::test_syslog_message[syslog_tcp_51000-failed_login_sshd_pri_header] description: Check if 'wazuh-remoted' can receive syslog messages through the socket. 0.00 0

Test function details

Extended Summary

wazuh_min_version: 4.2.0
tier: 0
parameters:
- message:
type: fixture
brief: Message sent
- get_configuration:
type: fixture
brief: Get configurations from the module.
- configure_environment:
type: fixture
brief: Configure a custom environment for testing.
- restart_remoted:
type: fixture
brief: Restart 'wazuh-remoted' daemon in manager.
assertions:
- Verify the syslog message is received.
input_description: A configuration template (test_syslog_message) is contained in an external YAML file,
(wazuh_syslog.yaml). That template is combined with different test cases defined
in the module. Those include configuration settings for the 'wazuh-remoted' daemon
and agents info.
expected_output:
- r'Started : .* Listening on port .*'
- r'<.>.*'

Parameters

test_remoted/test_socket_communication/test_syslog_message.py:152: in test_syslog_message
wazuh_archives_log_monitor = remote.create_archives_log_monitor()
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/remote.py:329: in create_archives_log_monitor
truncate_file(ARCHIVES_LOG_PATH)
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/file.py:79: in truncate_file
with open(file_path, 'w'):
E FileNotFoundError: [Errno 2] No such file or directory: '/Library/Ossec/logs/archives/archives.log'
Failed 2023-06-23 12:08:24.179631 test_remoted/test_socket_communication/test_syslog_message.py::test_syslog_message[syslog_tcp_51000-multi_log_failed_login_sshd_logon_success] description: Check if 'wazuh-remoted' can receive syslog messages through the socket. 0.00 0

Test function details

Extended Summary

wazuh_min_version: 4.2.0
tier: 0
parameters:
- message:
type: fixture
brief: Message sent
- get_configuration:
type: fixture
brief: Get configurations from the module.
- configure_environment:
type: fixture
brief: Configure a custom environment for testing.
- restart_remoted:
type: fixture
brief: Restart 'wazuh-remoted' daemon in manager.
assertions:
- Verify the syslog message is received.
input_description: A configuration template (test_syslog_message) is contained in an external YAML file,
(wazuh_syslog.yaml). That template is combined with different test cases defined
in the module. Those include configuration settings for the 'wazuh-remoted' daemon
and agents info.
expected_output:
- r'Started : .* Listening on port .*'
- r'<.>.*'

Parameters

test_remoted/test_socket_communication/test_syslog_message.py:152: in test_syslog_message
wazuh_archives_log_monitor = remote.create_archives_log_monitor()
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/remote.py:329: in create_archives_log_monitor
truncate_file(ARCHIVES_LOG_PATH)
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/file.py:79: in truncate_file
with open(file_path, 'w'):
E FileNotFoundError: [Errno 2] No such file or directory: '/Library/Ossec/logs/archives/archives.log'
Failed 2023-06-23 12:08:24.180932 test_remoted/test_socket_communication/test_syslog_message.py::test_syslog_message[syslog_tcp_51000-multi_log_failed_login_sshd_logon_success_pri_header] description: Check if 'wazuh-remoted' can receive syslog messages through the socket. 0.00 0

Test function details

Extended Summary

wazuh_min_version: 4.2.0
tier: 0
parameters:
- message:
type: fixture
brief: Message sent
- get_configuration:
type: fixture
brief: Get configurations from the module.
- configure_environment:
type: fixture
brief: Configure a custom environment for testing.
- restart_remoted:
type: fixture
brief: Restart 'wazuh-remoted' daemon in manager.
assertions:
- Verify the syslog message is received.
input_description: A configuration template (test_syslog_message) is contained in an external YAML file,
(wazuh_syslog.yaml). That template is combined with different test cases defined
in the module. Those include configuration settings for the 'wazuh-remoted' daemon
and agents info.
expected_output:
- r'Started : .* Listening on port .*'
- r'<.>.*'

Parameters

test_remoted/test_socket_communication/test_syslog_message.py:152: in test_syslog_message
wazuh_archives_log_monitor = remote.create_archives_log_monitor()
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/remote.py:329: in create_archives_log_monitor
truncate_file(ARCHIVES_LOG_PATH)
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/file.py:79: in truncate_file
with open(file_path, 'w'):
E FileNotFoundError: [Errno 2] No such file or directory: '/Library/Ossec/logs/archives/archives.log'
Failed 2023-06-23 12:08:24.183109 test_remoted/test_socket_communication/test_syslog_message.py::test_syslog_message[syslog_tcp_51000-multi_log_failed_login_sshd_logon_success_pri_header_mix_with_without] description: Check if 'wazuh-remoted' can receive syslog messages through the socket. 0.00 0

Test function details

Extended Summary

wazuh_min_version: 4.2.0
tier: 0
parameters:
- message:
type: fixture
brief: Message sent
- get_configuration:
type: fixture
brief: Get configurations from the module.
- configure_environment:
type: fixture
brief: Configure a custom environment for testing.
- restart_remoted:
type: fixture
brief: Restart 'wazuh-remoted' daemon in manager.
assertions:
- Verify the syslog message is received.
input_description: A configuration template (test_syslog_message) is contained in an external YAML file,
(wazuh_syslog.yaml). That template is combined with different test cases defined
in the module. Those include configuration settings for the 'wazuh-remoted' daemon
and agents info.
expected_output:
- r'Started : .* Listening on port .*'
- r'<.>.*'

Parameters

test_remoted/test_socket_communication/test_syslog_message.py:152: in test_syslog_message
wazuh_archives_log_monitor = remote.create_archives_log_monitor()
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/remote.py:329: in create_archives_log_monitor
truncate_file(ARCHIVES_LOG_PATH)
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/file.py:79: in truncate_file
with open(file_path, 'w'):
E FileNotFoundError: [Errno 2] No such file or directory: '/Library/Ossec/logs/archives/archives.log'
Failed 2023-06-23 12:08:24.184841 test_remoted/test_socket_communication/test_syslog_message.py::test_syslog_message[syslog_tcp_51000-multi_log_failed_login_sshd_logon_success_pri_header_mix_without_with] description: Check if 'wazuh-remoted' can receive syslog messages through the socket. 0.00 0

Test function details

Extended Summary

wazuh_min_version: 4.2.0
tier: 0
parameters:
- message:
type: fixture
brief: Message sent
- get_configuration:
type: fixture
brief: Get configurations from the module.
- configure_environment:
type: fixture
brief: Configure a custom environment for testing.
- restart_remoted:
type: fixture
brief: Restart 'wazuh-remoted' daemon in manager.
assertions:
- Verify the syslog message is received.
input_description: A configuration template (test_syslog_message) is contained in an external YAML file,
(wazuh_syslog.yaml). That template is combined with different test cases defined
in the module. Those include configuration settings for the 'wazuh-remoted' daemon
and agents info.
expected_output:
- r'Started : .* Listening on port .*'
- r'<.>.*'

Parameters

test_remoted/test_socket_communication/test_syslog_message.py:152: in test_syslog_message
wazuh_archives_log_monitor = remote.create_archives_log_monitor()
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/remote.py:329: in create_archives_log_monitor
truncate_file(ARCHIVES_LOG_PATH)
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/file.py:79: in truncate_file
with open(file_path, 'w'):
E FileNotFoundError: [Errno 2] No such file or directory: '/Library/Ossec/logs/archives/archives.log'
Failed 2023-06-23 12:08:24.186749 test_remoted/test_socket_communication/test_syslog_message.py::test_syslog_message[syslog_tcp_51000-dummy_pri_header] description: Check if 'wazuh-remoted' can receive syslog messages through the socket. 0.00 0

Test function details

Extended Summary

wazuh_min_version: 4.2.0
tier: 0
parameters:
- message:
type: fixture
brief: Message sent
- get_configuration:
type: fixture
brief: Get configurations from the module.
- configure_environment:
type: fixture
brief: Configure a custom environment for testing.
- restart_remoted:
type: fixture
brief: Restart 'wazuh-remoted' daemon in manager.
assertions:
- Verify the syslog message is received.
input_description: A configuration template (test_syslog_message) is contained in an external YAML file,
(wazuh_syslog.yaml). That template is combined with different test cases defined
in the module. Those include configuration settings for the 'wazuh-remoted' daemon
and agents info.
expected_output:
- r'Started : .* Listening on port .*'
- r'<.>.*'

Parameters

test_remoted/test_socket_communication/test_syslog_message.py:152: in test_syslog_message
wazuh_archives_log_monitor = remote.create_archives_log_monitor()
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/remote.py:329: in create_archives_log_monitor
truncate_file(ARCHIVES_LOG_PATH)
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/file.py:79: in truncate_file
with open(file_path, 'w'):
E FileNotFoundError: [Errno 2] No such file or directory: '/Library/Ossec/logs/archives/archives.log'
Failed 2023-06-23 12:08:24.188543 test_remoted/test_socket_communication/test_syslog_message.py::test_syslog_message[syslog_tcp_51000-dummy_bad_formatted_pri_header] description: Check if 'wazuh-remoted' can receive syslog messages through the socket. 0.02 0

Test function details

Extended Summary

wazuh_min_version: 4.2.0
tier: 0
parameters:
- message:
type: fixture
brief: Message sent
- get_configuration:
type: fixture
brief: Get configurations from the module.
- configure_environment:
type: fixture
brief: Configure a custom environment for testing.
- restart_remoted:
type: fixture
brief: Restart 'wazuh-remoted' daemon in manager.
assertions:
- Verify the syslog message is received.
input_description: A configuration template (test_syslog_message) is contained in an external YAML file,
(wazuh_syslog.yaml). That template is combined with different test cases defined
in the module. Those include configuration settings for the 'wazuh-remoted' daemon
and agents info.
expected_output:
- r'Started : .* Listening on port .*'
- r'<.>.*'

Parameters

test_remoted/test_socket_communication/test_syslog_message.py:152: in test_syslog_message
wazuh_archives_log_monitor = remote.create_archives_log_monitor()
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/remote.py:329: in create_archives_log_monitor
truncate_file(ARCHIVES_LOG_PATH)
/Library/Python/3.7/site-packages/wazuh_testing-4.4.4-py3.7.egg/wazuh_testing/tools/file.py:79: in truncate_file
with open(file_path, 'w'):
E FileNotFoundError: [Errno 2] No such file or directory: '/Library/Ossec/logs/archives/archives.log'
----------------------------Captured stdout teardown----------------------------
Fri Jun 23 12:08:24 UTC 2023
Skipped 2023-06-23 12:08:24.064150 test_remoted/test_active_response/test_active_response_send_ar.py::test_active_response_ar_sending[TCP_1514] description: Check if the 'wazuh-remoted' daemon sends active response commands to the Wazuh agent.. For this purpose, the test will establish a connection with a simulated agent using. different ports and transport protocols. Then, it will send an active response to that. agent, and finally, the test will verify that the events indicating that the active. response has been sent by the manager and received it by the agent are generated. 0.00 skip 1
('/private/tmp/Test_integration_B40483_20230623122253/tests/integration/test_remoted/test_active_response/test_active_response_send_ar.py', 95, "Skipped: It requires review and a rework for the agent simulator.Sometimes it doesn't work properly when it sends keepalives messages causing the agent to never being in active status.")
Skipped 2023-06-23 12:08:24.064294 test_remoted/test_active_response/test_active_response_send_ar.py::test_active_response_ar_sending[UDP_1514] description: Check if the 'wazuh-remoted' daemon sends active response commands to the Wazuh agent.. For this purpose, the test will establish a connection with a simulated agent using. different ports and transport protocols. Then, it will send an active response to that. agent, and finally, the test will verify that the events indicating that the active. response has been sent by the manager and received it by the agent are generated. 0.00 skip 1
('/private/tmp/Test_integration_B40483_20230623122253/tests/integration/test_remoted/test_active_response/test_active_response_send_ar.py', 95, "Skipped: It requires review and a rework for the agent simulator.Sometimes it doesn't work properly when it sends keepalives messages causing the agent to never being in active status.")
Skipped 2023-06-23 12:08:24.064402 test_remoted/test_active_response/test_active_response_send_ar.py::test_active_response_ar_sending[TCP,UDP_1514] description: Check if the 'wazuh-remoted' daemon sends active response commands to the Wazuh agent.. For this purpose, the test will establish a connection with a simulated agent using. different ports and transport protocols. Then, it will send an active response to that. agent, and finally, the test will verify that the events indicating that the active. response has been sent by the manager and received it by the agent are generated. 0.00 skip 1
('/private/tmp/Test_integration_B40483_20230623122253/tests/integration/test_remoted/test_active_response/test_active_response_send_ar.py', 95, "Skipped: It requires review and a rework for the agent simulator.Sometimes it doesn't work properly when it sends keepalives messages causing the agent to never being in active status.")
Skipped 2023-06-23 12:08:24.064491 test_remoted/test_active_response/test_active_response_send_ar.py::test_active_response_ar_sending[TCP_4565] description: Check if the 'wazuh-remoted' daemon sends active response commands to the Wazuh agent.. For this purpose, the test will establish a connection with a simulated agent using. different ports and transport protocols. Then, it will send an active response to that. agent, and finally, the test will verify that the events indicating that the active. response has been sent by the manager and received it by the agent are generated. 0.00 skip 1
('/private/tmp/Test_integration_B40483_20230623122253/tests/integration/test_remoted/test_active_response/test_active_response_send_ar.py', 95, "Skipped: It requires review and a rework for the agent simulator.Sometimes it doesn't work properly when it sends keepalives messages causing the agent to never being in active status.")
Skipped 2023-06-23 12:08:24.064585 test_remoted/test_active_response/test_active_response_send_ar.py::test_active_response_ar_sending[UDP_4565] description: Check if the 'wazuh-remoted' daemon sends active response commands to the Wazuh agent.. For this purpose, the test will establish a connection with a simulated agent using. different ports and transport protocols. Then, it will send an active response to that. agent, and finally, the test will verify that the events indicating that the active. response has been sent by the manager and received it by the agent are generated. 0.00 skip 1
('/private/tmp/Test_integration_B40483_20230623122253/tests/integration/test_remoted/test_active_response/test_active_response_send_ar.py', 95, "Skipped: It requires review and a rework for the agent simulator.Sometimes it doesn't work properly when it sends keepalives messages causing the agent to never being in active status.")
Skipped 2023-06-23 12:08:24.064677 test_remoted/test_active_response/test_active_response_send_ar.py::test_active_response_ar_sending[TCP,UDP_4565] description: Check if the 'wazuh-remoted' daemon sends active response commands to the Wazuh agent.. For this purpose, the test will establish a connection with a simulated agent using. different ports and transport protocols. Then, it will send an active response to that. agent, and finally, the test will verify that the events indicating that the active. response has been sent by the manager and received it by the agent are generated. 0.00 skip 1
('/private/tmp/Test_integration_B40483_20230623122253/tests/integration/test_remoted/test_active_response/test_active_response_send_ar.py', 95, "Skipped: It requires review and a rework for the agent simulator.Sometimes it doesn't work properly when it sends keepalives messages causing the agent to never being in active status.")
Skipped 2023-06-23 12:08:24.086855 test_remoted/test_agent_communication/test_multi_agent_status.py::test_protocols_communication[TCP_1514] description: Check multiple agents status after sending the start-up and keep-alive events via TCP, UDP or both.. For this purpose, the test will create all the agents and select the protocol using Round-Robin. Then,. every agent uses a sender and it waits until 'active' status appears after an startup and keep-alive. events, for each one.. It requires review and a rework for the agent simulator. Sometimes it does not work properly when it. sends keep-alives messages causing the agent to never being in active status. 0.00 skip 2
('/private/tmp/Test_integration_B40483_20230623122253/tests/integration/test_remoted/test_agent_communication/test_multi_agent_status.py', 161, "Skipped: It requires review and a rework for the agent simulator.Sometimes it doesn't work properly when it sends keepalives messages causing the agent to never being in active status.")
Skipped 2023-06-23 12:08:24.086952 test_remoted/test_agent_communication/test_multi_agent_status.py::test_protocols_communication[TCP_56000] description: Check multiple agents status after sending the start-up and keep-alive events via TCP, UDP or both.. For this purpose, the test will create all the agents and select the protocol using Round-Robin. Then,. every agent uses a sender and it waits until 'active' status appears after an startup and keep-alive. events, for each one.. It requires review and a rework for the agent simulator. Sometimes it does not work properly when it. sends keep-alives messages causing the agent to never being in active status. 0.00 skip 2
('/private/tmp/Test_integration_B40483_20230623122253/tests/integration/test_remoted/test_agent_communication/test_multi_agent_status.py', 161, "Skipped: It requires review and a rework for the agent simulator.Sometimes it doesn't work properly when it sends keepalives messages causing the agent to never being in active status.")
Skipped 2023-06-23 12:08:24.087042 test_remoted/test_agent_communication/test_multi_agent_status.py::test_protocols_communication[UDP_1514] description: Check multiple agents status after sending the start-up and keep-alive events via TCP, UDP or both.. For this purpose, the test will create all the agents and select the protocol using Round-Robin. Then,. every agent uses a sender and it waits until 'active' status appears after an startup and keep-alive. events, for each one.. It requires review and a rework for the agent simulator. Sometimes it does not work properly when it. sends keep-alives messages causing the agent to never being in active status. 0.00 skip 2
('/private/tmp/Test_integration_B40483_20230623122253/tests/integration/test_remoted/test_agent_communication/test_multi_agent_status.py', 161, "Skipped: It requires review and a rework for the agent simulator.Sometimes it doesn't work properly when it sends keepalives messages causing the agent to never being in active status.")
Skipped 2023-06-23 12:08:24.087131 test_remoted/test_agent_communication/test_multi_agent_status.py::test_protocols_communication[UDP_56000] description: Check multiple agents status after sending the start-up and keep-alive events via TCP, UDP or both.. For this purpose, the test will create all the agents and select the protocol using Round-Robin. Then,. every agent uses a sender and it waits until 'active' status appears after an startup and keep-alive. events, for each one.. It requires review and a rework for the agent simulator. Sometimes it does not work properly when it. sends keep-alives messages causing the agent to never being in active status. 0.00 skip 2
('/private/tmp/Test_integration_B40483_20230623122253/tests/integration/test_remoted/test_agent_communication/test_multi_agent_status.py', 161, "Skipped: It requires review and a rework for the agent simulator.Sometimes it doesn't work properly when it sends keepalives messages causing the agent to never being in active status.")
Skipped 2023-06-23 12:08:24.087218 test_remoted/test_agent_communication/test_multi_agent_status.py::test_protocols_communication[TCP,UDP_1514] description: Check multiple agents status after sending the start-up and keep-alive events via TCP, UDP or both.. For this purpose, the test will create all the agents and select the protocol using Round-Robin. Then,. every agent uses a sender and it waits until 'active' status appears after an startup and keep-alive. events, for each one.. It requires review and a rework for the agent simulator. Sometimes it does not work properly when it. sends keep-alives messages causing the agent to never being in active status. 0.00 skip 2
('/private/tmp/Test_integration_B40483_20230623122253/tests/integration/test_remoted/test_agent_communication/test_multi_agent_status.py', 161, "Skipped: It requires review and a rework for the agent simulator.Sometimes it doesn't work properly when it sends keepalives messages causing the agent to never being in active status.")
Skipped 2023-06-23 12:08:24.087313 test_remoted/test_agent_communication/test_multi_agent_status.py::test_protocols_communication[TCP,UDP_56000] description: Check multiple agents status after sending the start-up and keep-alive events via TCP, UDP or both.. For this purpose, the test will create all the agents and select the protocol using Round-Robin. Then,. every agent uses a sender and it waits until 'active' status appears after an startup and keep-alive. events, for each one.. It requires review and a rework for the agent simulator. Sometimes it does not work properly when it. sends keep-alives messages causing the agent to never being in active status. 0.00 skip 2
('/private/tmp/Test_integration_B40483_20230623122253/tests/integration/test_remoted/test_agent_communication/test_multi_agent_status.py', 161, "Skipped: It requires review and a rework for the agent simulator.Sometimes it doesn't work properly when it sends keepalives messages causing the agent to never being in active status.")
Skipped 2023-06-23 12:08:24.101191 test_remoted/test_socket_communication/test_syslog_message.py::test_syslog_message[syslog_UDP_514-multi_log_failed_login_sshd_logon_success] description: Check if 'wazuh-remoted' can receive syslog messages through the socket. 0.00 0
('/private/tmp/Test_integration_B40483_20230623122253/tests/integration/test_remoted/test_socket_communication/test_syslog_message.py', 149, 'Skipped: UDP only supports one message per datagram.')
Skipped 2023-06-23 12:08:24.101306 test_remoted/test_socket_communication/test_syslog_message.py::test_syslog_message[syslog_UDP_514-multi_log_failed_login_sshd_logon_success_pri_header] description: Check if 'wazuh-remoted' can receive syslog messages through the socket. 0.00 0
('/private/tmp/Test_integration_B40483_20230623122253/tests/integration/test_remoted/test_socket_communication/test_syslog_message.py', 149, 'Skipped: UDP only supports one message per datagram.')
Skipped 2023-06-23 12:08:24.101514 test_remoted/test_socket_communication/test_syslog_message.py::test_syslog_message[syslog_UDP_514-multi_log_failed_login_sshd_logon_success_pri_header_mix_with_without] description: Check if 'wazuh-remoted' can receive syslog messages through the socket. 0.00 0
('/private/tmp/Test_integration_B40483_20230623122253/tests/integration/test_remoted/test_socket_communication/test_syslog_message.py', 149, 'Skipped: UDP only supports one message per datagram.')
Skipped 2023-06-23 12:08:24.101635 test_remoted/test_socket_communication/test_syslog_message.py::test_syslog_message[syslog_UDP_514-multi_log_failed_login_sshd_logon_success_pri_header_mix_without_with] description: Check if 'wazuh-remoted' can receive syslog messages through the socket. 0.00 0
('/private/tmp/Test_integration_B40483_20230623122253/tests/integration/test_remoted/test_socket_communication/test_syslog_message.py', 149, 'Skipped: UDP only supports one message per datagram.')
Skipped 2023-06-23 12:08:24.110116 test_remoted/test_socket_communication/test_syslog_message.py::test_syslog_message[syslog_UDP_51000-multi_log_failed_login_sshd_logon_success] description: Check if 'wazuh-remoted' can receive syslog messages through the socket. 0.00 0
('/private/tmp/Test_integration_B40483_20230623122253/tests/integration/test_remoted/test_socket_communication/test_syslog_message.py', 149, 'Skipped: UDP only supports one message per datagram.')
Skipped 2023-06-23 12:08:24.110234 test_remoted/test_socket_communication/test_syslog_message.py::test_syslog_message[syslog_UDP_51000-multi_log_failed_login_sshd_logon_success_pri_header] description: Check if 'wazuh-remoted' can receive syslog messages through the socket. 0.00 0
('/private/tmp/Test_integration_B40483_20230623122253/tests/integration/test_remoted/test_socket_communication/test_syslog_message.py', 149, 'Skipped: UDP only supports one message per datagram.')
Skipped 2023-06-23 12:08:24.110332 test_remoted/test_socket_communication/test_syslog_message.py::test_syslog_message[syslog_UDP_51000-multi_log_failed_login_sshd_logon_success_pri_header_mix_with_without] description: Check if 'wazuh-remoted' can receive syslog messages through the socket. 0.00 0
('/private/tmp/Test_integration_B40483_20230623122253/tests/integration/test_remoted/test_socket_communication/test_syslog_message.py', 149, 'Skipped: UDP only supports one message per datagram.')
Skipped 2023-06-23 12:08:24.110432 test_remoted/test_socket_communication/test_syslog_message.py::test_syslog_message[syslog_UDP_51000-multi_log_failed_login_sshd_logon_success_pri_header_mix_without_with] description: Check if 'wazuh-remoted' can receive syslog messages through the socket. 0.00 0
('/private/tmp/Test_integration_B40483_20230623122253/tests/integration/test_remoted/test_socket_communication/test_syslog_message.py', 149, 'Skipped: UDP only supports one message per datagram.')
Skipped 2023-06-23 12:08:24.147907 test_remoted/test_socket_communication/test_syslog_message.py::test_syslog_message[syslog_udp_514-multi_log_failed_login_sshd_logon_success] description: Check if 'wazuh-remoted' can receive syslog messages through the socket. 0.00 0
('/private/tmp/Test_integration_B40483_20230623122253/tests/integration/test_remoted/test_socket_communication/test_syslog_message.py', 149, 'Skipped: UDP only supports one message per datagram.')
Skipped 2023-06-23 12:08:24.148019 test_remoted/test_socket_communication/test_syslog_message.py::test_syslog_message[syslog_udp_514-multi_log_failed_login_sshd_logon_success_pri_header] description: Check if 'wazuh-remoted' can receive syslog messages through the socket. 0.00 0
('/private/tmp/Test_integration_B40483_20230623122253/tests/integration/test_remoted/test_socket_communication/test_syslog_message.py', 149, 'Skipped: UDP only supports one message per datagram.')
Skipped 2023-06-23 12:08:24.148193 test_remoted/test_socket_communication/test_syslog_message.py::test_syslog_message[syslog_udp_514-multi_log_failed_login_sshd_logon_success_pri_header_mix_with_without] description: Check if 'wazuh-remoted' can receive syslog messages through the socket. 0.00 0
('/private/tmp/Test_integration_B40483_20230623122253/tests/integration/test_remoted/test_socket_communication/test_syslog_message.py', 149, 'Skipped: UDP only supports one message per datagram.')
Skipped 2023-06-23 12:08:24.148300 test_remoted/test_socket_communication/test_syslog_message.py::test_syslog_message[syslog_udp_514-multi_log_failed_login_sshd_logon_success_pri_header_mix_without_with] description: Check if 'wazuh-remoted' can receive syslog messages through the socket. 0.00 0
('/private/tmp/Test_integration_B40483_20230623122253/tests/integration/test_remoted/test_socket_communication/test_syslog_message.py', 149, 'Skipped: UDP only supports one message per datagram.')
Skipped 2023-06-23 12:08:24.156193 test_remoted/test_socket_communication/test_syslog_message.py::test_syslog_message[syslog_udp_51000-multi_log_failed_login_sshd_logon_success] description: Check if 'wazuh-remoted' can receive syslog messages through the socket. 0.00 0
('/private/tmp/Test_integration_B40483_20230623122253/tests/integration/test_remoted/test_socket_communication/test_syslog_message.py', 149, 'Skipped: UDP only supports one message per datagram.')
Skipped 2023-06-23 12:08:24.156300 test_remoted/test_socket_communication/test_syslog_message.py::test_syslog_message[syslog_udp_51000-multi_log_failed_login_sshd_logon_success_pri_header] description: Check if 'wazuh-remoted' can receive syslog messages through the socket. 0.00 0
('/private/tmp/Test_integration_B40483_20230623122253/tests/integration/test_remoted/test_socket_communication/test_syslog_message.py', 149, 'Skipped: UDP only supports one message per datagram.')
Skipped 2023-06-23 12:08:24.156417 test_remoted/test_socket_communication/test_syslog_message.py::test_syslog_message[syslog_udp_51000-multi_log_failed_login_sshd_logon_success_pri_header_mix_with_without] description: Check if 'wazuh-remoted' can receive syslog messages through the socket. 0.00 0
('/private/tmp/Test_integration_B40483_20230623122253/tests/integration/test_remoted/test_socket_communication/test_syslog_message.py', 149, 'Skipped: UDP only supports one message per datagram.')
Skipped 2023-06-23 12:08:24.156531 test_remoted/test_socket_communication/test_syslog_message.py::test_syslog_message[syslog_udp_51000-multi_log_failed_login_sshd_logon_success_pri_header_mix_without_with] description: Check if 'wazuh-remoted' can receive syslog messages through the socket. 0.00 0
('/private/tmp/Test_integration_B40483_20230623122253/tests/integration/test_remoted/test_socket_communication/test_syslog_message.py', 149, 'Skipped: UDP only supports one message per datagram.')