IT 2532- Test get-groups-integrity WDB command #2606
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
In this PR the test suite for
get-gourps-integrity
command is added. A total of 7 new test cases are added.Cases for
get-groups-integrity
command:- 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
- 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
Local Internal Options: No Local Internal Options used
Tests Results
Required
pycodestyle --max-line-length=120 --show-source --show-pep8 file.py
.