Skip to content
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

System Test - Wazuh DB (T2): Agent never_connected connects (guesses a different group by default) #2516

Closed
damarisg opened this issue Feb 1, 2022 · 4 comments · Fixed by #2664

Comments

@damarisg
Copy link
Member

damarisg commented Feb 1, 2022

Description

Here we want to verify that when the guessing mechanism is activated, the group of a new agent is guessed (comparison of cks), the guessed group is different from the default, this change in the DB is synchronized to all nodes. To activate the guess, the Core team can help us.

Test Details

Case 1:

Given a master set to master
AND a configured worker worker1
AND a configured worker worker2
When the guessing mechanism is activated
AND an agent agent1 connects to the master node
AND Agent 'agent1' registers with a different 'Guess' group than the 'default' group.
Then each node has agent agent1 with its group Guess in no less than X seconds.

Case 2:

Given a master set to master
AND a configured worker worker1
AND a configured worker worker2
When the guessing mechanism is activated
AND an agent agent1 connects to the worker1 worker node
AND Agent 'agent1' registers with a different 'Guess' group than the 'default' group.
Then each node has agent agent1 with its group Guess in no less than X seconds.

Note:

  • X: Estimated time for complete information synchronization, minimum 2*Z --- worker1 -> master -> worker1/2
  • Z: Cluster synchronization period (default 10 seconds)
@damarisg damarisg changed the title System Test - Wazuh DB (T2): Agent with never_connected state connects (guesses a different group by default) System Test - Wazuh DB (T2): Agent never_connected connects (guesses a different group by default) Feb 1, 2022
@CamiRomero CamiRomero self-assigned this Feb 16, 2022
@CamiRomero
Copy link
Contributor

Blocked by Issue 13054

@Deblintrake09
Copy link
Contributor

Deblintrake09 commented Apr 7, 2022

Tests Results

Test Path Os/Type Execution Type Results Date By
test/system/test_cluster/test_agent_groups/test_assign_agent_to_a_group.py CentOS - Manager Local 🟢 🟢 🟢 🟢 07/04/2022 @Deblintrake09

@damarisg
Copy link
Member Author

This issue is blocked by wazuh/wazuh#13172, once a time that it is resolved we need to run the test from the branch qa-10771-agent-groups-files-to-wazuh-db

@CamiRomero
Copy link
Contributor

CamiRomero commented Apr 21, 2022

Tests Results

Test Path Os/Type Execution Type Results Date By
test/system/test_cluster/test_agent_groups/test_assign_groups_guess.py CentOS - Manager Local 🟢 21/04/2022 @CamiRomero

The changes are in the branch qa-10771-agent-groups-files-to-wazuh-db

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants