Closed pro-akim closed 1 year ago
We need to discuss if the requests/executions require validations. Checking if the request/execution are valid or verifying the rc
/stderr
that returns the run_command
method and using WazuhAPIResponse
.
Also, I think we should support the (groups) GET
method and all its endpoints.
Besides, we could add an Endpoint
class that contains Authorizations
, Query Parameters
, Path Parameters
, Responses
, Request Body schema
, etc.
Some fixes were done. It will be important to have some communication with the team in order to define if validations are required
These are some Tests performed
Status will be left on hold.
After a conversation with the team about adding features to check the previous existence of groups or assigned agents, a new parameter was added in each method in order to check or not previous existences. Tests performed OK
Changes after review done.
It has to be created
Additionally, parallel, check_group functions added and checked.
Small fixes done after conflicts were fixed.
Tests:
Linter is highlighting untouched script lines.
We have identified certain instances of misbehavior in the course of this development. The necessary corrections will be addressed through the resolution of the following issue: https://github.com/wazuh/qa-system-framework/issues/76.
Description
This PR includes methods for assign, unassign, create and remove groups as check existence of agent in a group.
Evidences
Running:
Results: