wazuh-qa
wazuh-qa copied to clipboard
Add a system test to check acceptance of agents with higher version
| Target version | Related issue | Related PR/dev branch |
|---|---|---|
| https://github.com/wazuh/wazuh/issues/18138 |
Description
The issue above asks for the agent version accepting filter to be optional. We need to check this feature.
Configurations
The configuration is shown at https://github.com/wazuh/wazuh/issues/18138.
Proposed test cases
Let this case list be a suggestion:
With <allow_higher_versions> set to yes:
- [ ] The manager shall accept agents with version< manager (4.5.2).
- [ ] The manager shall accept agents with version = manager (4.6.0).
- [ ] The manager shall accept agents with minor = manager and patch > manager (4.6.1).
- [ ] The manager shall accept agents with minor > manager (4.7.0).
With <allow_higher_versions> set to no:
- [ ] The manager shall accept agents with version < manager (4.5.2).
- [ ] The manager shall accept agents with version = manager (4.6.0).
- [ ] The manager shall accept agents with minor = manager and patch > manager (4.6.1).
- [ ] The manager shall reject agents with minor > manager (4.7.0).
Considerations
In conclusion:
- With
<allow_higher_versions>set toyes, the filter is disabled. Thus, all versions must be accepted. - With
<allow_higher_versions>set tono:- Older versions of agents are always accepted.
- The same major.minor version is always allowed, no matter the patch version.
- The acceptance of higher major versions is unchecked (unknown).