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): Agent registered with group Y (enrollment - connected) #2510

Closed
Tracked by #2504
damarisg opened this issue Jan 31, 2022 · 1 comment · Fixed by #2686
Closed
Tracked by #2504

Comments

@damarisg
Copy link
Member

damarisg commented Jan 31, 2022

Description

Here we want to register an agent with an inscription and that is to connect with the worker assigned. This is to test if it can happen that the client.keys are previously synchronized from the master to the worker (the moment that the agent connects). And, in the worker, the group is guessed (by default it will put default) and from the master then it arrives the info of the DB for the agent (it comes with the group with which it was registered!= default )

Test Details

Case 1:

Given a configured master
And two workers configured
When register an agent with enrollment method specifying a group Y
Then the master synchronizes the key before the agent-groups information
And the worker guess the default group for the agent
And the master sends the Y group of the agent to each node
And each node has the agent with its Y group 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
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