Wrap outdated agents query with parenthesis#24946
Conversation
047a98b to
9069e9a
Compare
javiersanchz
left a comment
There was a problem hiding this comment.
Update
The changes in the code are correct.
The response from the endpoint looks good.
Regarding the checks, the Integration API endpoints tests failed:
-
The
test_agent_GET_endpointsfailed, which is expected due to #24904 -
The
test_rbac_white_agent_endpointsalso all of them failed, and it seems like the environment did not run.
Please review it or check its proper functioning locally.
The E Exception: Error obtaining login token: {'title': 'Bad Request', 'detail': 'Some Wazuh daemons are not ready yet in node "master-node" (wazuh-modulesd->stopped)', 'dapi_errors': {'master-node': {'error': 'Some Wazuh daemons are not ready yet in node "master-node" (wazuh-modulesd->stopped)'}}, 'error': 1017}On the other hand, the Therefore, we can confirm that the errors are not related to the changes introduced and this PR is ready to be reviewed again. |
Description
Wraps the
GET /agents/outdatedendpoint query with parenthesis to avoid discarding the first part of it which is used to validate that the agent has a different version than the manager.Tests
Request
GET /agents/outdated?q=id=002,id=001{ "data": { "affected_items": [], "total_affected_items": 0, "total_failed_items": 0, "failed_items": [] }, "message": "No agent information was returned", "error": 0 }test_agent_GET_endpoints.tavern.yaml