R1-test-assign-groups-guess.html

Report generated on 03-Mar-2023 at 11:56:07 by pytest-html v3.1.1

Environment

Packages {"pluggy": "0.13.1", "pytest": "6.2.2"}
Platform Linux-6.0.12-76060006-generic-x86_64-with-glibc2.35
Plugins {"html": "3.1.1", "metadata": "2.0.4", "testinfra": "5.0.0"}
Python 3.9.7

Summary

12 tests ran in 2561.07 seconds.

12 passed, 0 skipped, 0 failed, 0 errors, 0 expected failures, 0 unexpected passes
Tests Failed Success XFail Error
test_cluster/test_agent_groups/test_assign_groups_guess.py 0 12 0 0

Results

Result Time Test Description Duration Markers Links Tier
Passed 2023-03-03 10:56:07.854759 test_cluster/test_agent_groups/test_assign_groups_guess.py::test_guess_single_group[wazuh-master-0] description: Check that when an agent registered in the manager and assigned to group is removed, performs a. guessing operation and determinates the groups to with the agent was assigned.. wazuh_min_version: 4.4.0. parameters:. - target_node:. type: String. brief: Name of the host where the agent will register.. - status_guess_agent_group. type: String. brief: Determine if the group guessing mechanism is enabled or disabled.. - clean_enviroment:. type: Fixture. brief: Reset the wazuh log files at the start of the test. Remove all registered agents from master.. - modify_internal_options:. type: Fixture. brief: Add internal options in local_internal_options.conf. assertions:. - Verify that after registering the agent key file exists in all nodes.. - Verify that after registering the agent appears as never_connected in all nodes.. - Verify that after registering it has the 'Null' group assigned.. - Verify that after assign group with agent-groups the change is sync with the cluster.. expected_output:. - The agent 'Agent_name' with ID 'Agent_id' belongs to groups: group_test." 195.29 cluster, enrollment_cluster_env
------------------------------Captured stderr call------------------------------
2023-03-03 11:16:19,122 - wazuh_testing - DEBUG - Add new file composer process for wazuh-master and path: /var/ossec/logs/ossec.log 2023-03-03 11:16:19,123 - wazuh_testing - DEBUG - Add new file monitor process for wazuh-master and path: /var/ossec/logs/ossec.log 2023-03-03 11:16:19,123 - wazuh_testing - DEBUG - Starting file composer for wazuh-master and path: /var/ossec/logs/ossec.log. Composite file in /home/juliamagan/Desktop/QA/3913/wazuh-qa/tests/system/test_cluster/test_agent_groups/tmp/wazuh-master_ossec.log.tmp 2023-03-03 11:16:19,123 - wazuh_testing - DEBUG - Add new file composer process for wazuh-master and path: var/ossec/logs/ossec.log 2023-03-03 11:16:19,124 - wazuh_testing - DEBUG - Add new file monitor process for wazuh-master and path: var/ossec/logs/ossec.log 2023-03-03 11:16:19,126 - wazuh_testing - DEBUG - Starting file composer for wazuh-master and path: var/ossec/logs/ossec.log. Composite file in /home/juliamagan/Desktop/QA/3913/wazuh-qa/tests/system/test_cluster/test_agent_groups/tmp/wazuh-master_ossec.log.tmp 2023-03-03 11:16:19,126 - wazuh_testing - DEBUG - Starting QueueMonitor for wazuh-master and message: .*Group assigned: 'default' 2023-03-03 11:16:19,126 - wazuh_testing - DEBUG - Starting QueueMonitor for wazuh-master and message: .*Agent '002' with file 'merged.mg' MD5 .* 2023-03-03 11:16:20,160 - wazuh_testing - DEBUG - Finishing QueueMonitor for wazuh-master and message: .*Group assigned: 'default' 2023-03-03 11:16:20,160 - wazuh_testing - DEBUG - Starting QueueMonitor for wazuh-master and message: .*Agent '002' group is 'default' 2023-03-03 11:16:20,403 - wazuh_testing - DEBUG - Finishing QueueMonitor for wazuh-master and message: .*Agent '002' with file 'merged.mg' MD5 .* 2023-03-03 11:16:20,445 - wazuh_testing - DEBUG - Finishing QueueMonitor for wazuh-master and message: .*Agent '002' group is 'default' 2023-03-03 11:16:21,139 - wazuh_testing - DEBUG - Cleaning temporal files... 2023-03-03 11:16:21,140 - wazuh_testing - DEBUG - Checking results... 2023-03-03 11:16:21,142 - wazuh_testing - DEBUG - Received from wazuh-master the expected message: True 2023-03-03 11:16:21,142 - wazuh_testing - DEBUG - Received from wazuh-master the expected message: True 2023-03-03 11:16:21,143 - wazuh_testing - DEBUG - Received from wazuh-master the expected message: True
-------------------------------Captured log call--------------------------------
DEBUG wazuh_testing:monitoring.py:921 Add new file composer process for wazuh-master and path: /var/ossec/logs/ossec.log DEBUG wazuh_testing:monitoring.py:925 Add new file monitor process for wazuh-master and path: /var/ossec/logs/ossec.log DEBUG wazuh_testing:monitoring.py:921 Add new file composer process for wazuh-master and path: var/ossec/logs/ossec.log DEBUG wazuh_testing:monitoring.py:925 Add new file monitor process for wazuh-master and path: var/ossec/logs/ossec.log DEBUG wazuh_testing:monitoring.py:1028 Cleaning temporal files... DEBUG wazuh_testing:monitoring.py:1017 Checking results... DEBUG wazuh_testing:monitoring.py:1023 Received from wazuh-master the expected message: True DEBUG wazuh_testing:monitoring.py:1023 Received from wazuh-master the expected message: True DEBUG wazuh_testing:monitoring.py:1023 Received from wazuh-master the expected message: True
Passed 2023-03-03 10:56:07.854890 test_cluster/test_agent_groups/test_assign_groups_guess.py::test_guess_single_group[wazuh-master-1] description: Check that when an agent registered in the manager and assigned to group is removed, performs a. guessing operation and determinates the groups to with the agent was assigned.. wazuh_min_version: 4.4.0. parameters:. - target_node:. type: String. brief: Name of the host where the agent will register.. - status_guess_agent_group. type: String. brief: Determine if the group guessing mechanism is enabled or disabled.. - clean_enviroment:. type: Fixture. brief: Reset the wazuh log files at the start of the test. Remove all registered agents from master.. - modify_internal_options:. type: Fixture. brief: Add internal options in local_internal_options.conf. assertions:. - Verify that after registering the agent key file exists in all nodes.. - Verify that after registering the agent appears as never_connected in all nodes.. - Verify that after registering it has the 'Null' group assigned.. - Verify that after assign group with agent-groups the change is sync with the cluster.. expected_output:. - The agent 'Agent_name' with ID 'Agent_id' belongs to groups: group_test." 199.37 cluster, enrollment_cluster_env
------------------------------Captured stderr call------------------------------
2023-03-03 11:19:35,781 - wazuh_testing - DEBUG - Add new file composer process for wazuh-master and path: /var/ossec/logs/ossec.log 2023-03-03 11:19:35,782 - wazuh_testing - DEBUG - Add new file monitor process for wazuh-master and path: /var/ossec/logs/ossec.log 2023-03-03 11:19:35,782 - wazuh_testing - DEBUG - Starting file composer for wazuh-master and path: /var/ossec/logs/ossec.log. Composite file in /home/juliamagan/Desktop/QA/3913/wazuh-qa/tests/system/test_cluster/test_agent_groups/tmp/wazuh-master_ossec.log.tmp 2023-03-03 11:19:35,783 - wazuh_testing - DEBUG - Add new file composer process for wazuh-master and path: var/ossec/logs/ossec.log 2023-03-03 11:19:35,783 - wazuh_testing - DEBUG - Starting QueueMonitor for wazuh-master and message: .*Group assigned: 'group_test' 2023-03-03 11:19:35,783 - wazuh_testing - DEBUG - Add new file monitor process for wazuh-master and path: var/ossec/logs/ossec.log 2023-03-03 11:19:35,785 - wazuh_testing - DEBUG - Starting QueueMonitor for wazuh-master and message: .*Agent '002' with file 'merged.mg' MD5 .* 2023-03-03 11:19:35,785 - wazuh_testing - DEBUG - Starting file composer for wazuh-master and path: var/ossec/logs/ossec.log. Composite file in /home/juliamagan/Desktop/QA/3913/wazuh-qa/tests/system/test_cluster/test_agent_groups/tmp/wazuh-master_ossec.log.tmp 2023-03-03 11:19:36,958 - wazuh_testing - DEBUG - Finishing QueueMonitor for wazuh-master and message: .*Agent '002' with file 'merged.mg' MD5 .* 2023-03-03 11:19:36,977 - wazuh_testing - DEBUG - Finishing QueueMonitor for wazuh-master and message: .*Group assigned: 'group_test' 2023-03-03 11:19:36,977 - wazuh_testing - DEBUG - Starting QueueMonitor for wazuh-master and message: .*Agent '002' group is 'group_test' 2023-03-03 11:19:37,173 - wazuh_testing - DEBUG - Finishing QueueMonitor for wazuh-master and message: .*Agent '002' group is 'group_test' 2023-03-03 11:19:37,796 - wazuh_testing - DEBUG - Cleaning temporal files... 2023-03-03 11:19:37,797 - wazuh_testing - DEBUG - Checking results... 2023-03-03 11:19:37,799 - wazuh_testing - DEBUG - Received from wazuh-master the expected message: True 2023-03-03 11:19:37,799 - wazuh_testing - DEBUG - Received from wazuh-master the expected message: True 2023-03-03 11:19:37,800 - wazuh_testing - DEBUG - Received from wazuh-master the expected message: True
-------------------------------Captured log call--------------------------------
DEBUG wazuh_testing:monitoring.py:921 Add new file composer process for wazuh-master and path: /var/ossec/logs/ossec.log DEBUG wazuh_testing:monitoring.py:925 Add new file monitor process for wazuh-master and path: /var/ossec/logs/ossec.log DEBUG wazuh_testing:monitoring.py:921 Add new file composer process for wazuh-master and path: var/ossec/logs/ossec.log DEBUG wazuh_testing:monitoring.py:925 Add new file monitor process for wazuh-master and path: var/ossec/logs/ossec.log DEBUG wazuh_testing:monitoring.py:1028 Cleaning temporal files... DEBUG wazuh_testing:monitoring.py:1017 Checking results... DEBUG wazuh_testing:monitoring.py:1023 Received from wazuh-master the expected message: True DEBUG wazuh_testing:monitoring.py:1023 Received from wazuh-master the expected message: True DEBUG wazuh_testing:monitoring.py:1023 Received from wazuh-master the expected message: True
Passed 2023-03-03 10:56:07.854979 test_cluster/test_agent_groups/test_assign_groups_guess.py::test_guess_single_group[wazuh-worker1-0] description: Check that when an agent registered in the manager and assigned to group is removed, performs a. guessing operation and determinates the groups to with the agent was assigned.. wazuh_min_version: 4.4.0. parameters:. - target_node:. type: String. brief: Name of the host where the agent will register.. - status_guess_agent_group. type: String. brief: Determine if the group guessing mechanism is enabled or disabled.. - clean_enviroment:. type: Fixture. brief: Reset the wazuh log files at the start of the test. Remove all registered agents from master.. - modify_internal_options:. type: Fixture. brief: Add internal options in local_internal_options.conf. assertions:. - Verify that after registering the agent key file exists in all nodes.. - Verify that after registering the agent appears as never_connected in all nodes.. - Verify that after registering it has the 'Null' group assigned.. - Verify that after assign group with agent-groups the change is sync with the cluster.. expected_output:. - The agent 'Agent_name' with ID 'Agent_id' belongs to groups: group_test." 202.64 cluster, enrollment_cluster_env
------------------------------Captured stderr call------------------------------
2023-03-03 11:23:01,804 - wazuh_testing - DEBUG - Add new file composer process for wazuh-worker1 and path: /var/ossec/logs/ossec.log 2023-03-03 11:23:01,805 - wazuh_testing - DEBUG - Add new file monitor process for wazuh-worker1 and path: /var/ossec/logs/ossec.log 2023-03-03 11:23:01,806 - wazuh_testing - DEBUG - Add new file composer process for wazuh-master and path: /var/ossec/logs/ossec.log 2023-03-03 11:23:01,807 - wazuh_testing - DEBUG - Starting file composer for wazuh-worker1 and path: /var/ossec/logs/ossec.log. Composite file in /home/juliamagan/Desktop/QA/3913/wazuh-qa/tests/system/test_cluster/test_agent_groups/tmp/wazuh-worker1_ossec.log.tmp 2023-03-03 11:23:01,807 - wazuh_testing - DEBUG - Starting QueueMonitor for wazuh-worker1 and message: .*Sending message to master node: '{"daemon_name":"remoted","message":{"command":"assigngroup","parameters":{"agent":"003","md5":.* 2023-03-03 11:23:01,807 - wazuh_testing - DEBUG - Add new file monitor process for wazuh-master and path: /var/ossec/logs/ossec.log 2023-03-03 11:23:01,807 - wazuh_testing - DEBUG - Starting file composer for wazuh-master and path: /var/ossec/logs/ossec.log. Composite file in /home/juliamagan/Desktop/QA/3913/wazuh-qa/tests/system/test_cluster/test_agent_groups/tmp/wazuh-master_ossec.log.tmp 2023-03-03 11:23:01,810 - wazuh_testing - DEBUG - Starting QueueMonitor for wazuh-master and message: .*Agent '003' with file 'merged.mg' MD5 .* 2023-03-03 11:23:02,889 - wazuh_testing - DEBUG - Finishing QueueMonitor for wazuh-worker1 and message: .*Sending message to master node: '{"daemon_name":"remoted","message":{"command":"assigngroup","parameters":{"agent":"003","md5":.* 2023-03-03 11:23:02,889 - wazuh_testing - DEBUG - Starting QueueMonitor for wazuh-worker1 and message: .*Message received from master node: '{"error":0,"message":"ok","data":{"group":"default"}}' 2023-03-03 11:23:02,899 - wazuh_testing - DEBUG - Finishing QueueMonitor for wazuh-worker1 and message: .*Message received from master node: '{"error":0,"message":"ok","data":{"group":"default"}}' 2023-03-03 11:23:02,899 - wazuh_testing - DEBUG - Starting QueueMonitor for wazuh-worker1 and message: .*Agent '003' group is 'default' 2023-03-03 11:23:02,940 - wazuh_testing - DEBUG - Finishing QueueMonitor for wazuh-master and message: .*Agent '003' with file 'merged.mg' MD5 .* 2023-03-03 11:23:02,940 - wazuh_testing - DEBUG - Starting QueueMonitor for wazuh-master and message: .*Group assigned: 'default' 2023-03-03 11:23:02,992 - wazuh_testing - DEBUG - Finishing QueueMonitor for wazuh-master and message: .*Group assigned: 'default' 2023-03-03 11:23:03,025 - wazuh_testing - DEBUG - Finishing QueueMonitor for wazuh-worker1 and message: .*Agent '003' group is 'default' 2023-03-03 11:23:03,815 - wazuh_testing - DEBUG - Cleaning temporal files... 2023-03-03 11:23:03,816 - wazuh_testing - DEBUG - Checking results... 2023-03-03 11:23:03,816 - wazuh_testing - DEBUG - Received from wazuh-worker1 the expected message: True 2023-03-03 11:23:03,816 - wazuh_testing - DEBUG - Received from wazuh-worker1 the expected message: True 2023-03-03 11:23:03,816 - wazuh_testing - DEBUG - Received from wazuh-master the expected message: True 2023-03-03 11:23:03,817 - wazuh_testing - DEBUG - Received from wazuh-master the expected message: True 2023-03-03 11:23:03,817 - wazuh_testing - DEBUG - Received from wazuh-worker1 the expected message: True
-------------------------------Captured log call--------------------------------
DEBUG wazuh_testing:monitoring.py:921 Add new file composer process for wazuh-worker1 and path: /var/ossec/logs/ossec.log DEBUG wazuh_testing:monitoring.py:925 Add new file monitor process for wazuh-worker1 and path: /var/ossec/logs/ossec.log DEBUG wazuh_testing:monitoring.py:921 Add new file composer process for wazuh-master and path: /var/ossec/logs/ossec.log DEBUG wazuh_testing:monitoring.py:925 Add new file monitor process for wazuh-master and path: /var/ossec/logs/ossec.log DEBUG wazuh_testing:monitoring.py:1028 Cleaning temporal files... DEBUG wazuh_testing:monitoring.py:1017 Checking results... DEBUG wazuh_testing:monitoring.py:1023 Received from wazuh-worker1 the expected message: True DEBUG wazuh_testing:monitoring.py:1023 Received from wazuh-worker1 the expected message: True DEBUG wazuh_testing:monitoring.py:1023 Received from wazuh-master the expected message: True DEBUG wazuh_testing:monitoring.py:1023 Received from wazuh-master the expected message: True DEBUG wazuh_testing:monitoring.py:1023 Received from wazuh-worker1 the expected message: True
Passed 2023-03-03 10:56:07.855057 test_cluster/test_agent_groups/test_assign_groups_guess.py::test_guess_single_group[wazuh-worker1-1] description: Check that when an agent registered in the manager and assigned to group is removed, performs a. guessing operation and determinates the groups to with the agent was assigned.. wazuh_min_version: 4.4.0. parameters:. - target_node:. type: String. brief: Name of the host where the agent will register.. - status_guess_agent_group. type: String. brief: Determine if the group guessing mechanism is enabled or disabled.. - clean_enviroment:. type: Fixture. brief: Reset the wazuh log files at the start of the test. Remove all registered agents from master.. - modify_internal_options:. type: Fixture. brief: Add internal options in local_internal_options.conf. assertions:. - Verify that after registering the agent key file exists in all nodes.. - Verify that after registering the agent appears as never_connected in all nodes.. - Verify that after registering it has the 'Null' group assigned.. - Verify that after assign group with agent-groups the change is sync with the cluster.. expected_output:. - The agent 'Agent_name' with ID 'Agent_id' belongs to groups: group_test." 195.50 cluster, enrollment_cluster_env
------------------------------Captured stderr call------------------------------
2023-03-03 11:26:17,530 - wazuh_testing - DEBUG - Add new file composer process for wazuh-worker1 and path: /var/ossec/logs/ossec.log 2023-03-03 11:26:17,531 - wazuh_testing - DEBUG - Add new file monitor process for wazuh-worker1 and path: /var/ossec/logs/ossec.log 2023-03-03 11:26:17,532 - wazuh_testing - DEBUG - Add new file composer process for wazuh-master and path: /var/ossec/logs/ossec.log 2023-03-03 11:26:17,533 - wazuh_testing - DEBUG - Add new file monitor process for wazuh-master and path: /var/ossec/logs/ossec.log 2023-03-03 11:26:17,533 - wazuh_testing - DEBUG - Starting file composer for wazuh-worker1 and path: /var/ossec/logs/ossec.log. Composite file in /home/juliamagan/Desktop/QA/3913/wazuh-qa/tests/system/test_cluster/test_agent_groups/tmp/wazuh-worker1_ossec.log.tmp 2023-03-03 11:26:17,534 - wazuh_testing - DEBUG - Starting file composer for wazuh-master and path: /var/ossec/logs/ossec.log. Composite file in /home/juliamagan/Desktop/QA/3913/wazuh-qa/tests/system/test_cluster/test_agent_groups/tmp/wazuh-master_ossec.log.tmp 2023-03-03 11:26:17,534 - wazuh_testing - DEBUG - Starting QueueMonitor for wazuh-worker1 and message: .*Sending message to master node: '{"daemon_name":"remoted","message":{"command":"assigngroup","parameters":{"agent":"002","md5":.* 2023-03-03 11:26:17,535 - wazuh_testing - DEBUG - Starting QueueMonitor for wazuh-master and message: .*Agent '002' with file 'merged.mg' MD5 .* 2023-03-03 11:26:18,628 - wazuh_testing - DEBUG - Finishing QueueMonitor for wazuh-master and message: .*Agent '002' with file 'merged.mg' MD5 .* 2023-03-03 11:26:18,628 - wazuh_testing - DEBUG - Starting QueueMonitor for wazuh-master and message: .*Group assigned: 'group_test' 2023-03-03 11:26:18,636 - wazuh_testing - DEBUG - Finishing QueueMonitor for wazuh-worker1 and message: .*Sending message to master node: '{"daemon_name":"remoted","message":{"command":"assigngroup","parameters":{"agent":"002","md5":.* 2023-03-03 11:26:18,636 - wazuh_testing - DEBUG - Starting QueueMonitor for wazuh-worker1 and message: .*Message received from master node: '{"error":0,"message":"ok","data":{"group":"group_test"}}' 2023-03-03 11:26:18,684 - wazuh_testing - DEBUG - Finishing QueueMonitor for wazuh-master and message: .*Group assigned: 'group_test' 2023-03-03 11:26:18,715 - wazuh_testing - DEBUG - Finishing QueueMonitor for wazuh-worker1 and message: .*Message received from master node: '{"error":0,"message":"ok","data":{"group":"group_test"}}' 2023-03-03 11:26:18,715 - wazuh_testing - DEBUG - Starting QueueMonitor for wazuh-worker1 and message: .*Agent '002' group is 'group_test' 2023-03-03 11:26:18,807 - wazuh_testing - DEBUG - Finishing QueueMonitor for wazuh-worker1 and message: .*Agent '002' group is 'group_test' 2023-03-03 11:26:19,541 - wazuh_testing - DEBUG - Cleaning temporal files... 2023-03-03 11:26:19,541 - wazuh_testing - DEBUG - Checking results... 2023-03-03 11:26:19,542 - wazuh_testing - DEBUG - Received from wazuh-master the expected message: True 2023-03-03 11:26:19,542 - wazuh_testing - DEBUG - Received from wazuh-worker1 the expected message: True 2023-03-03 11:26:19,542 - wazuh_testing - DEBUG - Received from wazuh-master the expected message: True 2023-03-03 11:26:19,542 - wazuh_testing - DEBUG - Received from wazuh-worker1 the expected message: True 2023-03-03 11:26:19,543 - wazuh_testing - DEBUG - Received from wazuh-worker1 the expected message: True
-------------------------------Captured log call--------------------------------
DEBUG wazuh_testing:monitoring.py:921 Add new file composer process for wazuh-worker1 and path: /var/ossec/logs/ossec.log DEBUG wazuh_testing:monitoring.py:925 Add new file monitor process for wazuh-worker1 and path: /var/ossec/logs/ossec.log DEBUG wazuh_testing:monitoring.py:921 Add new file composer process for wazuh-master and path: /var/ossec/logs/ossec.log DEBUG wazuh_testing:monitoring.py:925 Add new file monitor process for wazuh-master and path: /var/ossec/logs/ossec.log DEBUG wazuh_testing:monitoring.py:1028 Cleaning temporal files... DEBUG wazuh_testing:monitoring.py:1017 Checking results... DEBUG wazuh_testing:monitoring.py:1023 Received from wazuh-master the expected message: True DEBUG wazuh_testing:monitoring.py:1023 Received from wazuh-worker1 the expected message: True DEBUG wazuh_testing:monitoring.py:1023 Received from wazuh-master the expected message: True DEBUG wazuh_testing:monitoring.py:1023 Received from wazuh-worker1 the expected message: True DEBUG wazuh_testing:monitoring.py:1023 Received from wazuh-worker1 the expected message: True
Passed 2023-03-03 10:56:07.855131 test_cluster/test_agent_groups/test_assign_groups_guess.py::test_guess_multigroups[wazuh-master-0-1] description: Check that when an agent registered in the manager and assigned to group is removed, performs a. guessing operation and determinates the groups to with the agent was assigned.. wazuh_min_version: 4.4.0. parameters:. - n_agents:. type: Int. brief: Number of agents to register.. - target_node:. type: String. brief: Name of the host where the agent will register.. - status_guess_agent_group. type: String. brief: Determine if the group guessing mechanism is enabled or disabled.. - clean_enviroment:. type: Fixture. brief: Reset the wazuh log files at the start of the test. Remove all registered agents from master.. - modify_internal_options:. type: Fixture. brief: Add internal options in local_internal_options.conf. assertions:. - Verify that after registering the agent key file exists in all nodes.. - Verify that after registering the agent appears as never_connected in all nodes.. - Verify that after registering it has the 'Null' group assigned.. - Verify that after assign group with agent-groups the change is sync with the cluster.. expected_output:. - The agent 'Agent_name' with ID 'Agent_id' belongs to groups: group_test." 216.37 cluster, enrollment_cluster_env
------------------------------Captured stderr call------------------------------
2023-03-03 11:29:50,850 - wazuh_testing - DEBUG - Add new file composer process for wazuh-master and path: /var/ossec/logs/ossec.log 2023-03-03 11:29:50,852 - wazuh_testing - DEBUG - Starting file composer for wazuh-master and path: /var/ossec/logs/ossec.log. Composite file in /home/juliamagan/Desktop/QA/3913/wazuh-qa/tests/system/test_cluster/test_agent_groups/tmp/wazuh-master_ossec.log.tmp 2023-03-03 11:29:50,852 - wazuh_testing - DEBUG - Add new file monitor process for wazuh-master and path: /var/ossec/logs/ossec.log 2023-03-03 11:29:50,854 - wazuh_testing - DEBUG - Starting QueueMonitor for wazuh-master and message: .*Group assigned: 'default' 2023-03-03 11:29:50,854 - wazuh_testing - DEBUG - Add new file composer process for wazuh-master and path: var/ossec/logs/ossec.log 2023-03-03 11:29:50,856 - wazuh_testing - DEBUG - Starting file composer for wazuh-master and path: var/ossec/logs/ossec.log. Composite file in /home/juliamagan/Desktop/QA/3913/wazuh-qa/tests/system/test_cluster/test_agent_groups/tmp/wazuh-master_ossec.log.tmp 2023-03-03 11:29:50,857 - wazuh_testing - DEBUG - Add new file monitor process for wazuh-master and path: var/ossec/logs/ossec.log 2023-03-03 11:29:50,858 - wazuh_testing - DEBUG - Starting QueueMonitor for wazuh-master and message: .*Agent '003' with file 'merged.mg' MD5 .* 2023-03-03 11:29:51,921 - wazuh_testing - DEBUG - Finishing QueueMonitor for wazuh-master and message: .*Group assigned: 'default' 2023-03-03 11:29:51,921 - wazuh_testing - DEBUG - Starting QueueMonitor for wazuh-master and message: .*Agent '003' group is 'default' 2023-03-03 11:29:52,056 - wazuh_testing - DEBUG - Finishing QueueMonitor for wazuh-master and message: .*Agent '003' with file 'merged.mg' MD5 .* 2023-03-03 11:29:52,151 - wazuh_testing - DEBUG - Finishing QueueMonitor for wazuh-master and message: .*Agent '003' group is 'default' 2023-03-03 11:29:52,868 - wazuh_testing - DEBUG - Cleaning temporal files... 2023-03-03 11:29:52,869 - wazuh_testing - DEBUG - Checking results... 2023-03-03 11:29:52,872 - wazuh_testing - DEBUG - Received from wazuh-master the expected message: True 2023-03-03 11:29:52,872 - wazuh_testing - DEBUG - Received from wazuh-master the expected message: True 2023-03-03 11:29:52,872 - wazuh_testing - DEBUG - Received from wazuh-master the expected message: True
-------------------------------Captured log call--------------------------------
DEBUG wazuh_testing:monitoring.py:921 Add new file composer process for wazuh-master and path: /var/ossec/logs/ossec.log DEBUG wazuh_testing:monitoring.py:925 Add new file monitor process for wazuh-master and path: /var/ossec/logs/ossec.log DEBUG wazuh_testing:monitoring.py:921 Add new file composer process for wazuh-master and path: var/ossec/logs/ossec.log DEBUG wazuh_testing:monitoring.py:925 Add new file monitor process for wazuh-master and path: var/ossec/logs/ossec.log DEBUG wazuh_testing:monitoring.py:1028 Cleaning temporal files... DEBUG wazuh_testing:monitoring.py:1017 Checking results... DEBUG wazuh_testing:monitoring.py:1023 Received from wazuh-master the expected message: True DEBUG wazuh_testing:monitoring.py:1023 Received from wazuh-master the expected message: True DEBUG wazuh_testing:monitoring.py:1023 Received from wazuh-master the expected message: True
Passed 2023-03-03 10:56:07.855205 test_cluster/test_agent_groups/test_assign_groups_guess.py::test_guess_multigroups[wazuh-master-0-2] description: Check that when an agent registered in the manager and assigned to group is removed, performs a. guessing operation and determinates the groups to with the agent was assigned.. wazuh_min_version: 4.4.0. parameters:. - n_agents:. type: Int. brief: Number of agents to register.. - target_node:. type: String. brief: Name of the host where the agent will register.. - status_guess_agent_group. type: String. brief: Determine if the group guessing mechanism is enabled or disabled.. - clean_enviroment:. type: Fixture. brief: Reset the wazuh log files at the start of the test. Remove all registered agents from master.. - modify_internal_options:. type: Fixture. brief: Add internal options in local_internal_options.conf. assertions:. - Verify that after registering the agent key file exists in all nodes.. - Verify that after registering the agent appears as never_connected in all nodes.. - Verify that after registering it has the 'Null' group assigned.. - Verify that after assign group with agent-groups the change is sync with the cluster.. expected_output:. - The agent 'Agent_name' with ID 'Agent_id' belongs to groups: group_test." 225.70 cluster, enrollment_cluster_env
------------------------------Captured stderr call------------------------------
2023-03-03 11:33:28,778 - wazuh_testing - DEBUG - Add new file composer process for wazuh-master and path: /var/ossec/logs/ossec.log 2023-03-03 11:33:28,779 - wazuh_testing - DEBUG - Starting file composer for wazuh-master and path: /var/ossec/logs/ossec.log. Composite file in /home/juliamagan/Desktop/QA/3913/wazuh-qa/tests/system/test_cluster/test_agent_groups/tmp/wazuh-master_ossec.log.tmp 2023-03-03 11:33:28,780 - wazuh_testing - DEBUG - Add new file monitor process for wazuh-master and path: /var/ossec/logs/ossec.log 2023-03-03 11:33:28,781 - wazuh_testing - DEBUG - Starting QueueMonitor for wazuh-master and message: .*Group assigned: 'default' 2023-03-03 11:33:28,781 - wazuh_testing - DEBUG - Add new file composer process for wazuh-master and path: var/ossec/logs/ossec.log 2023-03-03 11:33:28,782 - wazuh_testing - DEBUG - Starting file composer for wazuh-master and path: var/ossec/logs/ossec.log. Composite file in /home/juliamagan/Desktop/QA/3913/wazuh-qa/tests/system/test_cluster/test_agent_groups/tmp/wazuh-master_ossec.log.tmp 2023-03-03 11:33:28,783 - wazuh_testing - DEBUG - Add new file monitor process for wazuh-master and path: var/ossec/logs/ossec.log 2023-03-03 11:33:28,784 - wazuh_testing - DEBUG - Starting QueueMonitor for wazuh-master and message: .*Agent '003' with file 'merged.mg' MD5 .* 2023-03-03 11:33:29,851 - wazuh_testing - DEBUG - Finishing QueueMonitor for wazuh-master and message: .*Group assigned: 'default' 2023-03-03 11:33:29,851 - wazuh_testing - DEBUG - Starting QueueMonitor for wazuh-master and message: .*Agent '003' group is 'default' 2023-03-03 11:33:30,255 - wazuh_testing - DEBUG - Finishing QueueMonitor for wazuh-master and message: .*Agent '003' with file 'merged.mg' MD5 .* 2023-03-03 11:33:30,310 - wazuh_testing - DEBUG - Finishing QueueMonitor for wazuh-master and message: .*Agent '003' group is 'default' 2023-03-03 11:33:31,298 - wazuh_testing - DEBUG - Cleaning temporal files... 2023-03-03 11:33:31,299 - wazuh_testing - DEBUG - Checking results... 2023-03-03 11:33:31,301 - wazuh_testing - DEBUG - Received from wazuh-master the expected message: True 2023-03-03 11:33:31,302 - wazuh_testing - DEBUG - Received from wazuh-master the expected message: True 2023-03-03 11:33:31,302 - wazuh_testing - DEBUG - Received from wazuh-master the expected message: True
-------------------------------Captured log call--------------------------------
DEBUG wazuh_testing:monitoring.py:921 Add new file composer process for wazuh-master and path: /var/ossec/logs/ossec.log DEBUG wazuh_testing:monitoring.py:925 Add new file monitor process for wazuh-master and path: /var/ossec/logs/ossec.log DEBUG wazuh_testing:monitoring.py:921 Add new file composer process for wazuh-master and path: var/ossec/logs/ossec.log DEBUG wazuh_testing:monitoring.py:925 Add new file monitor process for wazuh-master and path: var/ossec/logs/ossec.log DEBUG wazuh_testing:monitoring.py:1028 Cleaning temporal files... DEBUG wazuh_testing:monitoring.py:1017 Checking results... DEBUG wazuh_testing:monitoring.py:1023 Received from wazuh-master the expected message: True DEBUG wazuh_testing:monitoring.py:1023 Received from wazuh-master the expected message: True DEBUG wazuh_testing:monitoring.py:1023 Received from wazuh-master the expected message: True
Passed 2023-03-03 10:56:07.855278 test_cluster/test_agent_groups/test_assign_groups_guess.py::test_guess_multigroups[wazuh-master-1-1] description: Check that when an agent registered in the manager and assigned to group is removed, performs a. guessing operation and determinates the groups to with the agent was assigned.. wazuh_min_version: 4.4.0. parameters:. - n_agents:. type: Int. brief: Number of agents to register.. - target_node:. type: String. brief: Name of the host where the agent will register.. - status_guess_agent_group. type: String. brief: Determine if the group guessing mechanism is enabled or disabled.. - clean_enviroment:. type: Fixture. brief: Reset the wazuh log files at the start of the test. Remove all registered agents from master.. - modify_internal_options:. type: Fixture. brief: Add internal options in local_internal_options.conf. assertions:. - Verify that after registering the agent key file exists in all nodes.. - Verify that after registering the agent appears as never_connected in all nodes.. - Verify that after registering it has the 'Null' group assigned.. - Verify that after assign group with agent-groups the change is sync with the cluster.. expected_output:. - The agent 'Agent_name' with ID 'Agent_id' belongs to groups: group_test." 212.80 cluster, enrollment_cluster_env
------------------------------Captured stderr call------------------------------
2023-03-03 11:37:10,314 - wazuh_testing - DEBUG - Add new file composer process for wazuh-master and path: /var/ossec/logs/ossec.log 2023-03-03 11:37:10,315 - wazuh_testing - DEBUG - Starting file composer for wazuh-master and path: /var/ossec/logs/ossec.log. Composite file in /home/juliamagan/Desktop/QA/3913/wazuh-qa/tests/system/test_cluster/test_agent_groups/tmp/wazuh-master_ossec.log.tmp 2023-03-03 11:37:10,316 - wazuh_testing - DEBUG - Add new file monitor process for wazuh-master and path: /var/ossec/logs/ossec.log 2023-03-03 11:37:10,318 - wazuh_testing - DEBUG - Starting QueueMonitor for wazuh-master and message: .*Group assigned: 'default' 2023-03-03 11:37:10,318 - wazuh_testing - DEBUG - Add new file composer process for wazuh-master and path: var/ossec/logs/ossec.log 2023-03-03 11:37:10,319 - wazuh_testing - DEBUG - Starting file composer for wazuh-master and path: var/ossec/logs/ossec.log. Composite file in /home/juliamagan/Desktop/QA/3913/wazuh-qa/tests/system/test_cluster/test_agent_groups/tmp/wazuh-master_ossec.log.tmp 2023-03-03 11:37:10,320 - wazuh_testing - DEBUG - Add new file monitor process for wazuh-master and path: var/ossec/logs/ossec.log 2023-03-03 11:37:10,322 - wazuh_testing - DEBUG - Starting QueueMonitor for wazuh-master and message: .*Agent '003' with file 'merged.mg' MD5 .* 2023-03-03 11:37:11,357 - wazuh_testing - DEBUG - Finishing QueueMonitor for wazuh-master and message: .*Group assigned: 'default' 2023-03-03 11:37:11,357 - wazuh_testing - DEBUG - Starting QueueMonitor for wazuh-master and message: .*Agent '003' group is 'default' 2023-03-03 11:37:11,610 - wazuh_testing - DEBUG - Finishing QueueMonitor for wazuh-master and message: .*Agent '003' with file 'merged.mg' MD5 .* 2023-03-03 11:37:11,644 - wazuh_testing - DEBUG - Finishing QueueMonitor for wazuh-master and message: .*Agent '003' group is 'default' 2023-03-03 11:37:12,331 - wazuh_testing - DEBUG - Cleaning temporal files... 2023-03-03 11:37:12,333 - wazuh_testing - DEBUG - Checking results... 2023-03-03 11:37:12,334 - wazuh_testing - DEBUG - Received from wazuh-master the expected message: True 2023-03-03 11:37:12,335 - wazuh_testing - DEBUG - Received from wazuh-master the expected message: True 2023-03-03 11:37:12,335 - wazuh_testing - DEBUG - Received from wazuh-master the expected message: True
-------------------------------Captured log call--------------------------------
DEBUG wazuh_testing:monitoring.py:921 Add new file composer process for wazuh-master and path: /var/ossec/logs/ossec.log DEBUG wazuh_testing:monitoring.py:925 Add new file monitor process for wazuh-master and path: /var/ossec/logs/ossec.log DEBUG wazuh_testing:monitoring.py:921 Add new file composer process for wazuh-master and path: var/ossec/logs/ossec.log DEBUG wazuh_testing:monitoring.py:925 Add new file monitor process for wazuh-master and path: var/ossec/logs/ossec.log DEBUG wazuh_testing:monitoring.py:1028 Cleaning temporal files... DEBUG wazuh_testing:monitoring.py:1017 Checking results... DEBUG wazuh_testing:monitoring.py:1023 Received from wazuh-master the expected message: True DEBUG wazuh_testing:monitoring.py:1023 Received from wazuh-master the expected message: True DEBUG wazuh_testing:monitoring.py:1023 Received from wazuh-master the expected message: True
Passed 2023-03-03 10:56:07.855351 test_cluster/test_agent_groups/test_assign_groups_guess.py::test_guess_multigroups[wazuh-master-1-2] description: Check that when an agent registered in the manager and assigned to group is removed, performs a. guessing operation and determinates the groups to with the agent was assigned.. wazuh_min_version: 4.4.0. parameters:. - n_agents:. type: Int. brief: Number of agents to register.. - target_node:. type: String. brief: Name of the host where the agent will register.. - status_guess_agent_group. type: String. brief: Determine if the group guessing mechanism is enabled or disabled.. - clean_enviroment:. type: Fixture. brief: Reset the wazuh log files at the start of the test. Remove all registered agents from master.. - modify_internal_options:. type: Fixture. brief: Add internal options in local_internal_options.conf. assertions:. - Verify that after registering the agent key file exists in all nodes.. - Verify that after registering the agent appears as never_connected in all nodes.. - Verify that after registering it has the 'Null' group assigned.. - Verify that after assign group with agent-groups the change is sync with the cluster.. expected_output:. - The agent 'Agent_name' with ID 'Agent_id' belongs to groups: group_test." 223.64 cluster, enrollment_cluster_env
------------------------------Captured stderr call------------------------------
2023-03-03 11:40:46,190 - wazuh_testing - DEBUG - Add new file composer process for wazuh-master and path: /var/ossec/logs/ossec.log 2023-03-03 11:40:46,192 - wazuh_testing - DEBUG - Starting file composer for wazuh-master and path: /var/ossec/logs/ossec.log. Composite file in /home/juliamagan/Desktop/QA/3913/wazuh-qa/tests/system/test_cluster/test_agent_groups/tmp/wazuh-master_ossec.log.tmp 2023-03-03 11:40:46,192 - wazuh_testing - DEBUG - Add new file monitor process for wazuh-master and path: /var/ossec/logs/ossec.log 2023-03-03 11:40:46,194 - wazuh_testing - DEBUG - Starting QueueMonitor for wazuh-master and message: .*Group assigned: 'default,group_test' 2023-03-03 11:40:46,195 - wazuh_testing - DEBUG - Add new file composer process for wazuh-master and path: var/ossec/logs/ossec.log 2023-03-03 11:40:46,196 - wazuh_testing - DEBUG - Starting file composer for wazuh-master and path: var/ossec/logs/ossec.log. Composite file in /home/juliamagan/Desktop/QA/3913/wazuh-qa/tests/system/test_cluster/test_agent_groups/tmp/wazuh-master_ossec.log.tmp 2023-03-03 11:40:46,197 - wazuh_testing - DEBUG - Add new file monitor process for wazuh-master and path: var/ossec/logs/ossec.log 2023-03-03 11:40:46,198 - wazuh_testing - DEBUG - Starting QueueMonitor for wazuh-master and message: .*Agent '003' with file 'merged.mg' MD5 .* 2023-03-03 11:40:47,623 - wazuh_testing - DEBUG - Finishing QueueMonitor for wazuh-master and message: .*Agent '003' with file 'merged.mg' MD5 .* 2023-03-03 11:40:47,654 - wazuh_testing - DEBUG - Finishing QueueMonitor for wazuh-master and message: .*Group assigned: 'default,group_test' 2023-03-03 11:40:47,654 - wazuh_testing - DEBUG - Starting QueueMonitor for wazuh-master and message: .*Agent '003' group is 'default,group_test' 2023-03-03 11:40:48,101 - wazuh_testing - DEBUG - Finishing QueueMonitor for wazuh-master and message: .*Agent '003' group is 'default,group_test' 2023-03-03 11:40:48,704 - wazuh_testing - DEBUG - Cleaning temporal files... 2023-03-03 11:40:48,705 - wazuh_testing - DEBUG - Checking results... 2023-03-03 11:40:48,706 - wazuh_testing - DEBUG - Received from wazuh-master the expected message: True 2023-03-03 11:40:48,707 - wazuh_testing - DEBUG - Received from wazuh-master the expected message: True 2023-03-03 11:40:48,707 - wazuh_testing - DEBUG - Received from wazuh-master the expected message: True
-------------------------------Captured log call--------------------------------
DEBUG wazuh_testing:monitoring.py:921 Add new file composer process for wazuh-master and path: /var/ossec/logs/ossec.log DEBUG wazuh_testing:monitoring.py:925 Add new file monitor process for wazuh-master and path: /var/ossec/logs/ossec.log DEBUG wazuh_testing:monitoring.py:921 Add new file composer process for wazuh-master and path: var/ossec/logs/ossec.log DEBUG wazuh_testing:monitoring.py:925 Add new file monitor process for wazuh-master and path: var/ossec/logs/ossec.log DEBUG wazuh_testing:monitoring.py:1028 Cleaning temporal files... DEBUG wazuh_testing:monitoring.py:1017 Checking results... DEBUG wazuh_testing:monitoring.py:1023 Received from wazuh-master the expected message: True DEBUG wazuh_testing:monitoring.py:1023 Received from wazuh-master the expected message: True DEBUG wazuh_testing:monitoring.py:1023 Received from wazuh-master the expected message: True
Passed 2023-03-03 10:56:07.855429 test_cluster/test_agent_groups/test_assign_groups_guess.py::test_guess_multigroups[wazuh-worker1-0-1] description: Check that when an agent registered in the manager and assigned to group is removed, performs a. guessing operation and determinates the groups to with the agent was assigned.. wazuh_min_version: 4.4.0. parameters:. - n_agents:. type: Int. brief: Number of agents to register.. - target_node:. type: String. brief: Name of the host where the agent will register.. - status_guess_agent_group. type: String. brief: Determine if the group guessing mechanism is enabled or disabled.. - clean_enviroment:. type: Fixture. brief: Reset the wazuh log files at the start of the test. Remove all registered agents from master.. - modify_internal_options:. type: Fixture. brief: Add internal options in local_internal_options.conf. assertions:. - Verify that after registering the agent key file exists in all nodes.. - Verify that after registering the agent appears as never_connected in all nodes.. - Verify that after registering it has the 'Null' group assigned.. - Verify that after assign group with agent-groups the change is sync with the cluster.. expected_output:. - The agent 'Agent_name' with ID 'Agent_id' belongs to groups: group_test." 213.50 cluster, enrollment_cluster_env
------------------------------Captured stderr call------------------------------
2023-03-03 11:44:28,435 - wazuh_testing - DEBUG - Add new file composer process for wazuh-worker1 and path: /var/ossec/logs/ossec.log 2023-03-03 11:44:28,436 - wazuh_testing - DEBUG - Starting file composer for wazuh-worker1 and path: /var/ossec/logs/ossec.log. Composite file in /home/juliamagan/Desktop/QA/3913/wazuh-qa/tests/system/test_cluster/test_agent_groups/tmp/wazuh-worker1_ossec.log.tmp 2023-03-03 11:44:28,437 - wazuh_testing - DEBUG - Add new file monitor process for wazuh-worker1 and path: /var/ossec/logs/ossec.log 2023-03-03 11:44:28,438 - wazuh_testing - DEBUG - Starting QueueMonitor for wazuh-worker1 and message: .*Sending message to master node: '{"daemon_name":"remoted","message":{"command":"assigngroup","parameters":{"agent":"003","md5":.* 2023-03-03 11:44:28,439 - wazuh_testing - DEBUG - Add new file composer process for wazuh-master and path: /var/ossec/logs/ossec.log 2023-03-03 11:44:28,440 - wazuh_testing - DEBUG - Starting file composer for wazuh-master and path: /var/ossec/logs/ossec.log. Composite file in /home/juliamagan/Desktop/QA/3913/wazuh-qa/tests/system/test_cluster/test_agent_groups/tmp/wazuh-master_ossec.log.tmp 2023-03-03 11:44:28,441 - wazuh_testing - DEBUG - Add new file monitor process for wazuh-master and path: /var/ossec/logs/ossec.log 2023-03-03 11:44:28,443 - wazuh_testing - DEBUG - Starting QueueMonitor for wazuh-master and message: .*Agent '003' with file 'merged.mg' MD5 .* 2023-03-03 11:44:29,530 - wazuh_testing - DEBUG - Finishing QueueMonitor for wazuh-worker1 and message: .*Sending message to master node: '{"daemon_name":"remoted","message":{"command":"assigngroup","parameters":{"agent":"003","md5":.* 2023-03-03 11:44:29,530 - wazuh_testing - DEBUG - Starting QueueMonitor for wazuh-worker1 and message: .*Message received from master node: '{"error":0,"message":"ok","data":{"group":"default"}}' 2023-03-03 11:44:29,536 - wazuh_testing - DEBUG - Finishing QueueMonitor for wazuh-worker1 and message: .*Message received from master node: '{"error":0,"message":"ok","data":{"group":"default"}}' 2023-03-03 11:44:29,536 - wazuh_testing - DEBUG - Starting QueueMonitor for wazuh-worker1 and message: .*Agent '003' group is 'default' 2023-03-03 11:44:29,588 - wazuh_testing - DEBUG - Finishing QueueMonitor for wazuh-master and message: .*Agent '003' with file 'merged.mg' MD5 .* 2023-03-03 11:44:29,588 - wazuh_testing - DEBUG - Starting QueueMonitor for wazuh-master and message: .*Group assigned: 'default' 2023-03-03 11:44:29,600 - wazuh_testing - DEBUG - Finishing QueueMonitor for wazuh-worker1 and message: .*Agent '003' group is 'default' 2023-03-03 11:44:29,613 - wazuh_testing - DEBUG - Finishing QueueMonitor for wazuh-master and message: .*Group assigned: 'default' 2023-03-03 11:44:30,446 - wazuh_testing - DEBUG - Cleaning temporal files... 2023-03-03 11:44:30,447 - wazuh_testing - DEBUG - Checking results... 2023-03-03 11:44:30,448 - wazuh_testing - DEBUG - Received from wazuh-worker1 the expected message: True 2023-03-03 11:44:30,448 - wazuh_testing - DEBUG - Received from wazuh-worker1 the expected message: True 2023-03-03 11:44:30,448 - wazuh_testing - DEBUG - Received from wazuh-master the expected message: True 2023-03-03 11:44:30,448 - wazuh_testing - DEBUG - Received from wazuh-worker1 the expected message: True 2023-03-03 11:44:30,448 - wazuh_testing - DEBUG - Received from wazuh-master the expected message: True
-------------------------------Captured log call--------------------------------
DEBUG wazuh_testing:monitoring.py:921 Add new file composer process for wazuh-worker1 and path: /var/ossec/logs/ossec.log DEBUG wazuh_testing:monitoring.py:925 Add new file monitor process for wazuh-worker1 and path: /var/ossec/logs/ossec.log DEBUG wazuh_testing:monitoring.py:921 Add new file composer process for wazuh-master and path: /var/ossec/logs/ossec.log DEBUG wazuh_testing:monitoring.py:925 Add new file monitor process for wazuh-master and path: /var/ossec/logs/ossec.log DEBUG wazuh_testing:monitoring.py:1028 Cleaning temporal files... DEBUG wazuh_testing:monitoring.py:1017 Checking results... DEBUG wazuh_testing:monitoring.py:1023 Received from wazuh-worker1 the expected message: True DEBUG wazuh_testing:monitoring.py:1023 Received from wazuh-worker1 the expected message: True DEBUG wazuh_testing:monitoring.py:1023 Received from wazuh-master the expected message: True DEBUG wazuh_testing:monitoring.py:1023 Received from wazuh-worker1 the expected message: True DEBUG wazuh_testing:monitoring.py:1023 Received from wazuh-master the expected message: True
Passed 2023-03-03 10:56:07.855509 test_cluster/test_agent_groups/test_assign_groups_guess.py::test_guess_multigroups[wazuh-worker1-0-2] description: Check that when an agent registered in the manager and assigned to group is removed, performs a. guessing operation and determinates the groups to with the agent was assigned.. wazuh_min_version: 4.4.0. parameters:. - n_agents:. type: Int. brief: Number of agents to register.. - target_node:. type: String. brief: Name of the host where the agent will register.. - status_guess_agent_group. type: String. brief: Determine if the group guessing mechanism is enabled or disabled.. - clean_enviroment:. type: Fixture. brief: Reset the wazuh log files at the start of the test. Remove all registered agents from master.. - modify_internal_options:. type: Fixture. brief: Add internal options in local_internal_options.conf. assertions:. - Verify that after registering the agent key file exists in all nodes.. - Verify that after registering the agent appears as never_connected in all nodes.. - Verify that after registering it has the 'Null' group assigned.. - Verify that after assign group with agent-groups the change is sync with the cluster.. expected_output:. - The agent 'Agent_name' with ID 'Agent_id' belongs to groups: group_test." 228.76 cluster, enrollment_cluster_env
------------------------------Captured stderr call------------------------------
2023-03-03 11:48:09,516 - wazuh_testing - DEBUG - Add new file composer process for wazuh-worker1 and path: /var/ossec/logs/ossec.log 2023-03-03 11:48:09,517 - wazuh_testing - DEBUG - Starting file composer for wazuh-worker1 and path: /var/ossec/logs/ossec.log. Composite file in /home/juliamagan/Desktop/QA/3913/wazuh-qa/tests/system/test_cluster/test_agent_groups/tmp/wazuh-worker1_ossec.log.tmp 2023-03-03 11:48:09,518 - wazuh_testing - DEBUG - Add new file monitor process for wazuh-worker1 and path: /var/ossec/logs/ossec.log 2023-03-03 11:48:09,519 - wazuh_testing - DEBUG - Starting QueueMonitor for wazuh-worker1 and message: .*Sending message to master node: '{"daemon_name":"remoted","message":{"command":"assigngroup","parameters":{"agent":"003","md5":.* 2023-03-03 11:48:09,520 - wazuh_testing - DEBUG - Add new file composer process for wazuh-master and path: /var/ossec/logs/ossec.log 2023-03-03 11:48:09,521 - wazuh_testing - DEBUG - Starting file composer for wazuh-master and path: /var/ossec/logs/ossec.log. Composite file in /home/juliamagan/Desktop/QA/3913/wazuh-qa/tests/system/test_cluster/test_agent_groups/tmp/wazuh-master_ossec.log.tmp 2023-03-03 11:48:09,522 - wazuh_testing - DEBUG - Add new file monitor process for wazuh-master and path: /var/ossec/logs/ossec.log 2023-03-03 11:48:09,523 - wazuh_testing - DEBUG - Starting QueueMonitor for wazuh-master and message: .*Agent '003' with file 'merged.mg' MD5 .* 2023-03-03 11:48:10,594 - wazuh_testing - DEBUG - Finishing QueueMonitor for wazuh-master and message: .*Agent '003' with file 'merged.mg' MD5 .* 2023-03-03 11:48:10,594 - wazuh_testing - DEBUG - Starting QueueMonitor for wazuh-master and message: .*Group assigned: 'default' 2023-03-03 11:48:10,625 - wazuh_testing - DEBUG - Finishing QueueMonitor for wazuh-master and message: .*Group assigned: 'default' 2023-03-03 11:48:10,725 - wazuh_testing - DEBUG - Finishing QueueMonitor for wazuh-worker1 and message: .*Sending message to master node: '{"daemon_name":"remoted","message":{"command":"assigngroup","parameters":{"agent":"003","md5":.* 2023-03-03 11:48:10,726 - wazuh_testing - DEBUG - Starting QueueMonitor for wazuh-worker1 and message: .*Message received from master node: '{"error":0,"message":"ok","data":{"group":"default"}}' 2023-03-03 11:48:10,733 - wazuh_testing - DEBUG - Finishing QueueMonitor for wazuh-worker1 and message: .*Message received from master node: '{"error":0,"message":"ok","data":{"group":"default"}}' 2023-03-03 11:48:10,733 - wazuh_testing - DEBUG - Starting QueueMonitor for wazuh-worker1 and message: .*Agent '003' group is 'default' 2023-03-03 11:48:10,977 - wazuh_testing - DEBUG - Finishing QueueMonitor for wazuh-worker1 and message: .*Agent '003' group is 'default' 2023-03-03 11:48:11,528 - wazuh_testing - DEBUG - Cleaning temporal files... 2023-03-03 11:48:11,528 - wazuh_testing - DEBUG - Checking results... 2023-03-03 11:48:11,558 - wazuh_testing - DEBUG - Received from wazuh-master the expected message: True 2023-03-03 11:48:11,559 - wazuh_testing - DEBUG - Received from wazuh-master the expected message: True 2023-03-03 11:48:11,559 - wazuh_testing - DEBUG - Received from wazuh-worker1 the expected message: True 2023-03-03 11:48:11,559 - wazuh_testing - DEBUG - Received from wazuh-worker1 the expected message: True 2023-03-03 11:48:11,559 - wazuh_testing - DEBUG - Received from wazuh-worker1 the expected message: True
-------------------------------Captured log call--------------------------------
DEBUG wazuh_testing:monitoring.py:921 Add new file composer process for wazuh-worker1 and path: /var/ossec/logs/ossec.log DEBUG wazuh_testing:monitoring.py:925 Add new file monitor process for wazuh-worker1 and path: /var/ossec/logs/ossec.log DEBUG wazuh_testing:monitoring.py:921 Add new file composer process for wazuh-master and path: /var/ossec/logs/ossec.log DEBUG wazuh_testing:monitoring.py:925 Add new file monitor process for wazuh-master and path: /var/ossec/logs/ossec.log DEBUG wazuh_testing:monitoring.py:1028 Cleaning temporal files... DEBUG wazuh_testing:monitoring.py:1017 Checking results... DEBUG wazuh_testing:monitoring.py:1023 Received from wazuh-master the expected message: True DEBUG wazuh_testing:monitoring.py:1023 Received from wazuh-master the expected message: True DEBUG wazuh_testing:monitoring.py:1023 Received from wazuh-worker1 the expected message: True DEBUG wazuh_testing:monitoring.py:1023 Received from wazuh-worker1 the expected message: True DEBUG wazuh_testing:monitoring.py:1023 Received from wazuh-worker1 the expected message: True
Passed 2023-03-03 10:56:07.855621 test_cluster/test_agent_groups/test_assign_groups_guess.py::test_guess_multigroups[wazuh-worker1-1-1] description: Check that when an agent registered in the manager and assigned to group is removed, performs a. guessing operation and determinates the groups to with the agent was assigned.. wazuh_min_version: 4.4.0. parameters:. - n_agents:. type: Int. brief: Number of agents to register.. - target_node:. type: String. brief: Name of the host where the agent will register.. - status_guess_agent_group. type: String. brief: Determine if the group guessing mechanism is enabled or disabled.. - clean_enviroment:. type: Fixture. brief: Reset the wazuh log files at the start of the test. Remove all registered agents from master.. - modify_internal_options:. type: Fixture. brief: Add internal options in local_internal_options.conf. assertions:. - Verify that after registering the agent key file exists in all nodes.. - Verify that after registering the agent appears as never_connected in all nodes.. - Verify that after registering it has the 'Null' group assigned.. - Verify that after assign group with agent-groups the change is sync with the cluster.. expected_output:. - The agent 'Agent_name' with ID 'Agent_id' belongs to groups: group_test." 215.86 cluster, enrollment_cluster_env
------------------------------Captured stderr call------------------------------
2023-03-03 11:51:52,787 - wazuh_testing - DEBUG - Add new file composer process for wazuh-worker1 and path: /var/ossec/logs/ossec.log 2023-03-03 11:51:52,790 - wazuh_testing - DEBUG - Starting file composer for wazuh-worker1 and path: /var/ossec/logs/ossec.log. Composite file in /home/juliamagan/Desktop/QA/3913/wazuh-qa/tests/system/test_cluster/test_agent_groups/tmp/wazuh-worker1_ossec.log.tmp 2023-03-03 11:51:52,790 - wazuh_testing - DEBUG - Add new file monitor process for wazuh-worker1 and path: /var/ossec/logs/ossec.log 2023-03-03 11:51:52,791 - wazuh_testing - DEBUG - Starting QueueMonitor for wazuh-worker1 and message: .*Sending message to master node: '{"daemon_name":"remoted","message":{"command":"assigngroup","parameters":{"agent":"003","md5":.* 2023-03-03 11:51:52,792 - wazuh_testing - DEBUG - Add new file composer process for wazuh-master and path: /var/ossec/logs/ossec.log 2023-03-03 11:51:52,794 - wazuh_testing - DEBUG - Starting file composer for wazuh-master and path: /var/ossec/logs/ossec.log. Composite file in /home/juliamagan/Desktop/QA/3913/wazuh-qa/tests/system/test_cluster/test_agent_groups/tmp/wazuh-master_ossec.log.tmp 2023-03-03 11:51:52,794 - wazuh_testing - DEBUG - Add new file monitor process for wazuh-master and path: /var/ossec/logs/ossec.log 2023-03-03 11:51:52,795 - wazuh_testing - DEBUG - Starting QueueMonitor for wazuh-master and message: .*Agent '003' with file 'merged.mg' MD5 .* 2023-03-03 11:51:53,911 - wazuh_testing - DEBUG - Finishing QueueMonitor for wazuh-master and message: .*Agent '003' with file 'merged.mg' MD5 .* 2023-03-03 11:51:53,911 - wazuh_testing - DEBUG - Starting QueueMonitor for wazuh-master and message: .*Group assigned: 'default' 2023-03-03 11:51:53,933 - wazuh_testing - DEBUG - Finishing QueueMonitor for wazuh-worker1 and message: .*Sending message to master node: '{"daemon_name":"remoted","message":{"command":"assigngroup","parameters":{"agent":"003","md5":.* 2023-03-03 11:51:53,934 - wazuh_testing - DEBUG - Starting QueueMonitor for wazuh-worker1 and message: .*Message received from master node: '{"error":0,"message":"ok","data":{"group":"default"}}' 2023-03-03 11:51:53,940 - wazuh_testing - DEBUG - Finishing QueueMonitor for wazuh-worker1 and message: .*Message received from master node: '{"error":0,"message":"ok","data":{"group":"default"}}' 2023-03-03 11:51:53,940 - wazuh_testing - DEBUG - Starting QueueMonitor for wazuh-worker1 and message: .*Agent '003' group is 'default' 2023-03-03 11:51:53,942 - wazuh_testing - DEBUG - Finishing QueueMonitor for wazuh-master and message: .*Group assigned: 'default' 2023-03-03 11:51:54,105 - wazuh_testing - DEBUG - Finishing QueueMonitor for wazuh-worker1 and message: .*Agent '003' group is 'default' 2023-03-03 11:51:54,806 - wazuh_testing - DEBUG - Cleaning temporal files... 2023-03-03 11:51:54,807 - wazuh_testing - DEBUG - Checking results... 2023-03-03 11:51:54,808 - wazuh_testing - DEBUG - Received from wazuh-master the expected message: True 2023-03-03 11:51:54,808 - wazuh_testing - DEBUG - Received from wazuh-worker1 the expected message: True 2023-03-03 11:51:54,808 - wazuh_testing - DEBUG - Received from wazuh-worker1 the expected message: True 2023-03-03 11:51:54,808 - wazuh_testing - DEBUG - Received from wazuh-master the expected message: True 2023-03-03 11:51:54,808 - wazuh_testing - DEBUG - Received from wazuh-worker1 the expected message: True
-------------------------------Captured log call--------------------------------
DEBUG wazuh_testing:monitoring.py:921 Add new file composer process for wazuh-worker1 and path: /var/ossec/logs/ossec.log DEBUG wazuh_testing:monitoring.py:925 Add new file monitor process for wazuh-worker1 and path: /var/ossec/logs/ossec.log DEBUG wazuh_testing:monitoring.py:921 Add new file composer process for wazuh-master and path: /var/ossec/logs/ossec.log DEBUG wazuh_testing:monitoring.py:925 Add new file monitor process for wazuh-master and path: /var/ossec/logs/ossec.log DEBUG wazuh_testing:monitoring.py:1028 Cleaning temporal files... DEBUG wazuh_testing:monitoring.py:1017 Checking results... DEBUG wazuh_testing:monitoring.py:1023 Received from wazuh-master the expected message: True DEBUG wazuh_testing:monitoring.py:1023 Received from wazuh-worker1 the expected message: True DEBUG wazuh_testing:monitoring.py:1023 Received from wazuh-worker1 the expected message: True DEBUG wazuh_testing:monitoring.py:1023 Received from wazuh-master the expected message: True DEBUG wazuh_testing:monitoring.py:1023 Received from wazuh-worker1 the expected message: True
Passed 2023-03-03 10:56:07.855697 test_cluster/test_agent_groups/test_assign_groups_guess.py::test_guess_multigroups[wazuh-worker1-1-2] description: Check that when an agent registered in the manager and assigned to group is removed, performs a. guessing operation and determinates the groups to with the agent was assigned.. wazuh_min_version: 4.4.0. parameters:. - n_agents:. type: Int. brief: Number of agents to register.. - target_node:. type: String. brief: Name of the host where the agent will register.. - status_guess_agent_group. type: String. brief: Determine if the group guessing mechanism is enabled or disabled.. - clean_enviroment:. type: Fixture. brief: Reset the wazuh log files at the start of the test. Remove all registered agents from master.. - modify_internal_options:. type: Fixture. brief: Add internal options in local_internal_options.conf. assertions:. - Verify that after registering the agent key file exists in all nodes.. - Verify that after registering the agent appears as never_connected in all nodes.. - Verify that after registering it has the 'Null' group assigned.. - Verify that after assign group with agent-groups the change is sync with the cluster.. expected_output:. - The agent 'Agent_name' with ID 'Agent_id' belongs to groups: group_test." 226.20 cluster, enrollment_cluster_env
------------------------------Captured stderr call------------------------------
2023-03-03 11:55:32,672 - wazuh_testing - DEBUG - Add new file composer process for wazuh-worker1 and path: /var/ossec/logs/ossec.log 2023-03-03 11:55:32,673 - wazuh_testing - DEBUG - Add new file monitor process for wazuh-worker1 and path: /var/ossec/logs/ossec.log 2023-03-03 11:55:32,674 - wazuh_testing - DEBUG - Starting file composer for wazuh-worker1 and path: /var/ossec/logs/ossec.log. Composite file in /home/juliamagan/Desktop/QA/3913/wazuh-qa/tests/system/test_cluster/test_agent_groups/tmp/wazuh-worker1_ossec.log.tmp 2023-03-03 11:55:32,674 - wazuh_testing - DEBUG - Add new file composer process for wazuh-master and path: /var/ossec/logs/ossec.log 2023-03-03 11:55:32,675 - wazuh_testing - DEBUG - Starting QueueMonitor for wazuh-worker1 and message: .*Sending message to master node: '{"daemon_name":"remoted","message":{"command":"assigngroup","parameters":{"agent":"003","md5":.* 2023-03-03 11:55:32,675 - wazuh_testing - DEBUG - Add new file monitor process for wazuh-master and path: /var/ossec/logs/ossec.log 2023-03-03 11:55:32,675 - wazuh_testing - DEBUG - Starting file composer for wazuh-master and path: /var/ossec/logs/ossec.log. Composite file in /home/juliamagan/Desktop/QA/3913/wazuh-qa/tests/system/test_cluster/test_agent_groups/tmp/wazuh-master_ossec.log.tmp 2023-03-03 11:55:32,678 - wazuh_testing - DEBUG - Starting QueueMonitor for wazuh-master and message: .*Agent '003' with file 'merged.mg' MD5 .* 2023-03-03 11:55:33,780 - wazuh_testing - DEBUG - Finishing QueueMonitor for wazuh-master and message: .*Agent '003' with file 'merged.mg' MD5 .* 2023-03-03 11:55:33,780 - wazuh_testing - DEBUG - Starting QueueMonitor for wazuh-master and message: .*Group assigned: 'default,group_test' 2023-03-03 11:55:33,871 - wazuh_testing - DEBUG - Finishing QueueMonitor for wazuh-master and message: .*Group assigned: 'default,group_test' 2023-03-03 11:55:33,942 - wazuh_testing - DEBUG - Finishing QueueMonitor for wazuh-worker1 and message: .*Sending message to master node: '{"daemon_name":"remoted","message":{"command":"assigngroup","parameters":{"agent":"003","md5":.* 2023-03-03 11:55:33,942 - wazuh_testing - DEBUG - Starting QueueMonitor for wazuh-worker1 and message: .*Message received from master node: '{"error":0,"message":"ok","data":{"group":"default,group_test"}}' 2023-03-03 11:55:34,204 - wazuh_testing - DEBUG - Finishing QueueMonitor for wazuh-worker1 and message: .*Message received from master node: '{"error":0,"message":"ok","data":{"group":"default,group_test"}}' 2023-03-03 11:55:34,204 - wazuh_testing - DEBUG - Starting QueueMonitor for wazuh-worker1 and message: .*Agent '003' group is 'default,group_test' 2023-03-03 11:55:34,537 - wazuh_testing - DEBUG - Finishing QueueMonitor for wazuh-worker1 and message: .*Agent '003' group is 'default,group_test' 2023-03-03 11:55:35,188 - wazuh_testing - DEBUG - Cleaning temporal files... 2023-03-03 11:55:35,189 - wazuh_testing - DEBUG - Checking results... 2023-03-03 11:55:35,190 - wazuh_testing - DEBUG - Received from wazuh-master the expected message: True 2023-03-03 11:55:35,190 - wazuh_testing - DEBUG - Received from wazuh-master the expected message: True 2023-03-03 11:55:35,190 - wazuh_testing - DEBUG - Received from wazuh-worker1 the expected message: True 2023-03-03 11:55:35,190 - wazuh_testing - DEBUG - Received from wazuh-worker1 the expected message: True 2023-03-03 11:55:35,190 - wazuh_testing - DEBUG - Received from wazuh-worker1 the expected message: True
-------------------------------Captured log call--------------------------------
DEBUG wazuh_testing:monitoring.py:921 Add new file composer process for wazuh-worker1 and path: /var/ossec/logs/ossec.log DEBUG wazuh_testing:monitoring.py:925 Add new file monitor process for wazuh-worker1 and path: /var/ossec/logs/ossec.log DEBUG wazuh_testing:monitoring.py:921 Add new file composer process for wazuh-master and path: /var/ossec/logs/ossec.log DEBUG wazuh_testing:monitoring.py:925 Add new file monitor process for wazuh-master and path: /var/ossec/logs/ossec.log DEBUG wazuh_testing:monitoring.py:1028 Cleaning temporal files... DEBUG wazuh_testing:monitoring.py:1017 Checking results... DEBUG wazuh_testing:monitoring.py:1023 Received from wazuh-master the expected message: True DEBUG wazuh_testing:monitoring.py:1023 Received from wazuh-master the expected message: True DEBUG wazuh_testing:monitoring.py:1023 Received from wazuh-worker1 the expected message: True DEBUG wazuh_testing:monitoring.py:1023 Received from wazuh-worker1 the expected message: True DEBUG wazuh_testing:monitoring.py:1023 Received from wazuh-worker1 the expected message: True