wazuh-qa
wazuh-qa copied to clipboard
System test: Check files after WPK upgrade roollback
Description
It was detected that the installation restoring process or rollback, performed after a WPK upgrade fail, was not working as expected.
Currently, there are defined tests for checking the WPK upgrade rollback. The test_wpk_agent
has a test case for ensuring the correct behaviour of the rollback. However, this does not check the Wazuh internal files after rollback and it uses deprecated RemotedSimulator
and AuthdSimulator
. For this reason, it is necessary to implement a new system test to check the correct behaviour of the rollback in Windows and Linux agents.
These new tests should use the existing tools developed for https://github.com/wazuh/wazuh-qa/issues/2231.
Test requirements
- Windows/Linux support
- Check former files are correctly restored, none is lost, they have the same user; group and permissions as before and, if it applies, they should preserve its file size.
- Agent reconnects automatically to the manager after being restored.
- Wazuh service is configured and the process starts automatically when rebooting the system.
- The permissions, owners and groups of the following directories do NOT change:
-
/
-
/var/
-
/usr/ /usr/lib/ /usr/lib/systemd/ /usr/lib/systemd/system/
-
/etc / /etc/systemd/ /etc/systemd/system/ /etc/init.d/ /etc/rc.d/init.d/
-