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) - Agent never_connected is added to a group with tool after the sync completes #2658

Merged

Conversation

CamiRomero
Copy link
Contributor

@CamiRomero CamiRomero commented Mar 9, 2022

In this PR the test suite for Agent never_connected is added to a group with tool after the sync completes is added. A total of 2 new test cases covering different modes and combinations of options.

Related issues #2513 #10771

Cases:

  • Agent registered with group Y:
    - The agent is never_connected and registers with group to the master node using CLI
    - The agent is never_connected and registers with group to the worker node using CLI

Configuration options

In order to run the test, first the environment located in /test/system/provisioning/enrollment_cluster 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_assign_agent_to_a_group.py CentOS - Manager Local 🟢🟢🟢 09/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.
  • The test is documented in wazuh-qa/docs.

@Deblintrake09
Copy link
Contributor

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 🟢🟢🟢 09/03/2022 @Deblintrake09

@Deblintrake09
Copy link
Contributor

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 🟢 15/03/2022 @Deblintrake09

@damarisg damarisg merged commit 018af02 into system_test_wazuh_db Mar 15, 2022
@damarisg damarisg deleted the 2513_system_test_never_connected_assign_group branch March 15, 2022 17:08
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 (T1): Agent never_connected is added to a group with tool after the sync completes
3 participants