-
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
System Test: Module (WAZUH-DB) - Adds a new node to a synchronized environment #2670
System Test: Module (WAZUH-DB) - Adds a new node to a synchronized environment #2670
Conversation
…511-test-agent-groups-new-cluster-node
…511-test-agent-groups-new-cluster-node
…/github.com/wazuh/wazuh-qa into tmp-2511-test-agent-groups-new-cluster-node
tests/system/provisioning/four_manager_disconnected_node/README.md
Outdated
Show resolved
Hide resolved
tests/system/provisioning/four_manager_disconnected_node/README.md
Outdated
Show resolved
Hide resolved
tests/system/provisioning/four_manager_disconnected_node/README.md
Outdated
Show resolved
Hide resolved
tests/system/provisioning/four_manager_disconnected_node/README.md
Outdated
Show resolved
Hide resolved
tests/system/provisioning/four_manager_disconnected_node/README.md
Outdated
Show resolved
Hide resolved
</wodle> | ||
|
||
<sca> | ||
<enabled>yes</enabled> |
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.
Why isn't it disabled?
|
||
<!-- System inventory --> | ||
<wodle name="syscollector"> | ||
<disabled>no</disabled> |
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.
Why isn't it disabled?
tests/system/test_cluster/test_agent_groups/test_agent_groups_new_cluster_node.py
Outdated
Show resolved
Hide resolved
tests/system/test_cluster/test_agent_groups/test_agent_groups_new_cluster_node.py
Outdated
Show resolved
Hide resolved
check_agent_groups(agent2_data[1], agent_groups[1], test_infra_managers, host_manager) | ||
|
||
restart_cluster(test_infra_new_nodes, host_manager) | ||
time.sleep(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.
Add a comment to clarify that this time to wait is the default time defined.
Co-authored-by: Dámaris <[email protected]>
tests/system/test_cluster/test_agent_groups/test_agent_groups_new_cluster_node.py
Outdated
Show resolved
Hide resolved
…new_cluster_node.py Co-authored-by: Dámaris <[email protected]>
In this PR the test suite for
Adds a new node to a synchronized environment
is added. A total of 2 new test cases covering different modes and combinations of options.Cases:
- The agent on active status and connect to
master
node has the default group- The agent on active status and connect to
worker
node has the default groupConfiguration options
In order to run the test, first the environment located in
/test/system/provisioning/four_manager_disconnected_node)
must be enabled with:sudo ansible-playbook -i inventory.yml playbook.yml --extra-vars='{"wazuh_branch": "dev-10771-agent-groups-files-to-wazuh-db"}'
Local Internal Options: No Local Internal Options used
Tests Results
Required
pycodestyle --max-line-length=120 --show-source --show-pep8 file.py
.