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 (T0): The agent with state different than never_connected is added to a "Y" group by CLI #2507

Closed
Tracked by #2504
damarisg opened this issue Jan 31, 2022 · 2 comments · Fixed by #2652

Comments

@damarisg
Copy link
Member

damarisg commented Jan 31, 2022

Description

The aim here is to verify if the agent has a state other than never_connected and is added to a Y group by CLI tools. The nodes have registered the agent with group Y.

Test Details

Case 1:

Given a configured master
And two workers configured
And an agent connects to the master node
And the agent with state Active
When the agent is add to new group Y by agent_groups CLI.
Then each node has the agent with its Y group after X seconds

Case 2:

Given a configured master
And two workers configured
And an agent connects to the master node
And the agent with state Disconnected
When the agent is add to new group Y by agent_groups CLI.
Then each node has the agent with its Y group after X seconds

Case 3:

Given a configured master
And two workers configured
And an agent connects to the worker nodes
And the agent with state Active
When the agent is add to new group Y by agent_groups CLI.
Then each node has the agent with its Y group after X seconds

Case 4:

Given a configured master
And two workers configured
And an agent connects to the worker nodes
And the agent with state Disconnected
When the agent is add to new group Y by agent_groups CLI.
Then each node has the agent with its Y group after 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 ST: WazuhDB - Tier 0: Verify that the agent with group "Y" is added to the nodes, if the agent status is different than "never_connected", and is assigned to group "Y" by CLI. System Test - Wazuh DB (T0): The agent with state different than never_connected is added to a "Y" group by CLI Jan 31, 2022
@CamiRomero
Copy link
Contributor

These tests were applied on the 2507_system_test_assign_agent_to_a_group branch. The issue will be moved to the blocking state until the merge of core branch to master

@damarisg
Copy link
Member Author

It was merged on qa-10771-agent-groups-files-to-wazuh-db branch and closed.

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