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

DTT2 - Testing Module. Redesign/refactor WazuhAgent class in agent.py #5293

Open
mhamra opened this issue Apr 25, 2024 · 0 comments
Open

DTT2 - Testing Module. Redesign/refactor WazuhAgent class in agent.py #5293

mhamra opened this issue Apr 25, 2024 · 0 comments

Comments

@mhamra
Copy link
Contributor

mhamra commented Apr 25, 2024

Target version Related issue Related PR/dev branch
4.9.0 4495-dtt1-release

The current code of the WazuhAgent class has many if statements based on the os_type, distribution, and architecture taken from the inventory. Creating an inheritance hierarchy will make the code more organized and easy to maintain.

Each inherited Agent class can reimplement functions like install, download, restart, etc.

@juliamagan juliamagan changed the title DTT1- Testing Module. Redesign/refactor WazuhAgent class in agent.py DTT2 - Testing Module. Redesign/refactor WazuhAgent class in agent.py Jul 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant