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

IT 2532- Test get-groups-integrity WDB command #2606

Closed
wants to merge 18 commits into from

Conversation

Deblintrake09
Copy link
Contributor

@Deblintrake09 Deblintrake09 commented Feb 24, 2022

Description

In this PR the test suite for get-gourps-integrity command is added. A total of 7 new test cases are added.

Related issues #2532 #10771 (Wazuh)

Cases for get-groups-integrity command:

  • Valid Hash
    - No Agents Registered - No Hash - Error
    - Two Agents Registered - Valid Hash - Both Synced => Synced
    - Two Agents Registered - Valid Hash - Both Syncreq => Syncreq
    - Two Agents Registered - Valid Hash - Syncreq and Synced => Syncreq
  • Invalid Hash
    - Two Agents Registered - Invalid Hash length. => error hash Less than 40 chars
    - Two Agents Registered - Both Synced - Hash does not match DB Hash => hash_mismatch
    - Two Agents Registered - Syncreq - Hash does not match DB Hash => syncreq

Note: Form more case details, it can be checked in get_groups_integrity_messages.yaml file.


Configuration options

OS Version Branch Type
Centos 4.4.0 dev-10771-agent-groups-files-to-wazuh-db Manager

Local Internal Options: No Local Internal Options used


Tests Results

Test Path Os/Type Execution Type Results Date By
test_wazuh_db/test_set_agent_groups Manager Local 🟢 🟢 🟢 2022/02/24 @Deblintrake09
test_wazuh_db/test_set_agent_groups Manager Jenkins 🟢 🟢 🟢 2022/02/24 @Deblintrake09

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.

@damarisg damarisg removed the request for review from DProvinciani February 25, 2022 13:40
@damarisg
Copy link
Member

PR created incorrectly. It will be closed. So, it will work fine in #2607.

@damarisg damarisg closed this Feb 25, 2022
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.

IT - Wazuh DB (T0): Successful behavior of wazuh DB commands
2 participants