-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Syncronization testing after group deletingv3 #4143
Conversation
a6f1215
to
d7ec119
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Review the clonflicts
tests/system/test_cluster/test_agent_groups/test_group_sync_status.py
Outdated
Show resolved
Hide resolved
@pytest.fixture() | ||
def wait_end_initial_syncreq(): | ||
result = execute_wdb_query(query, test_infra_hosts[0], host_manager) | ||
while 'syncreq' in result: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to add a timeout
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Timeout created in 6c2985d
Description
Wazuh manager handles agent groups.
If a group is deleted from a master cluster, there will be an instance where the agents require resynchronization (syncreq).
If the group is deleted from a worker cluster, the cluster master will take care of reestablishing the group structure without the need for resynchronization.
This test suite tests the correct functioning of the mentioned use case.
Updated
-test_group_sync delete_folder_master_agent_all
-test_group_sync delete_folder_worker1_agent_all
-test_group_sync delete_folder_worker2_agent_all
-test_group_sync delete_folder_master_agent_agent1
-test_group_sync delete_folder_worker1_agent1
-test_group_sync delete_folder_worker2_agent1
-test_group_sync delete_folder_master_agent_agent2
-test_group_sync delete_folder_worker1__agent2
-test_group_sync delete_folder_worker2_agent2
Each test has 3 scenarios where groups are created and agents are assigned to groups from wazuh-master, wazuh-worker1 and wazuh-worker2
Testing performed