-
Notifications
You must be signed in to change notification settings - Fork 32
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
New integration tests development: RBAC database upgrade and migration #2913
Comments
Issue UpdateThe first approach will be to test the current ITs and UTs to understand the current reach and status of tests, then a first mock-up of the design for the migration test. I will be testing on a fresh ec2 installation to have records or logs from scratch. |
A Meeting has been scheduled to begin with the design and first implementation of the ITs. |
Issue UpdateAfter Analyzing with the help of the team the proposed use cases for the tests it was decided that instead of creating them inside API/test and following the tavern framework specifications, system tests will be developed instead. The reason behind this decision is that to test all the use cases we will need to constantly upgrade and downgrade the manager to specific versions and since downgrading is not currently supported it would be extremely inefficient to build multiple containers instead of using only one. System tests will allow us to design the test to address this issue and install the version needed for every use case. |
We decided to close them. |
Introduction
Wazuh version
4.5.0
applies some modifications to the existingRBAC.db
.Considering that the user may have applied some changes to the database, like adding new roles, policies, etc.
As a QA team we must verify that the migration process applies the new changes without affecting the existing information stored in the database.
Our team must develop new integration tests to cover these changes.
This issue is part of wazuh/wazuh#13109 and wazuh/wazuh#13110.
Development stage
Use cases
DEFAULT
in the new version. The policy should be migrated to a new ID range along with its relationships.DEFAULT
resources. These resources must be related to otherUSER
ones. When migrated, those relationships should disappear.DEFAULT
resources. These resources must be related to otherUSER
ones. Relationships must be kept.DEFAULT
resource and adding a new one with the same ID. This resource must be related to otherUSER
one. After the migration, previous relationships should be deleted as the resources are not the same.Note
Cases proposed by the framework team, but we need to check if there are new cases to add.
Related Issues
The text was updated successfully, but these errors were encountered: