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: Module (WAZUH-DB) - Adds a new node to a synchronized environment #2670

Merged

Conversation

CamiRomero
Copy link
Contributor

@CamiRomero CamiRomero commented Mar 11, 2022

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.

Related issues #2511 #10771

Cases:

  • Adds a new node to a synchronized environment:
    - 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 group

Configuration 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

Test Path Os/Type Execution Type Results Date By
test/system/test_cluster/test_agent_groups/test_agent_groups_default.py CentOS - Manager Local 🟢[:large_blue_circle:])[:large_blue_circle:] 11/03/2022 @CamiRomero

Required

  • Proven that tests pass when they have to pass.
  • Proven that tests fail when they have to fail.
  • Python codebase satisfies PEP-8 style style guide. pycodestyle --max-line-length=120 --show-source --show-pep8 file.py.
  • Python codebase is documented following the Google Style for Python docstrings.

</wodle>

<sca>
<enabled>yes</enabled>
Copy link
Member

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>
Copy link
Member

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?

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)
Copy link
Member

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.

@damarisg damarisg merged commit 6d40dbd into system_test_wazuh_db Mar 17, 2022
@damarisg damarisg deleted the tmp-2511-test-agent-groups-new-cluster-node branch March 17, 2022 18:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

System Test - Wazuh DB (T0): Adds a new node to a synchronized environment.
3 participants