-
Notifications
You must be signed in to change notification settings - Fork 19
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
Adapt command structure to new definition #408
base: master
Are you sure you want to change the base?
Adapt command structure to new definition #408
Conversation
The `getCommandFromQueue` function has been updated to parse commands according to the new definition. Additionally, the related tests have been fixed.
A function is added to validate commands, ensuring their arguments are also valid when required, and assigning the corresponding module. A map is created containing the valid commands, their associated module, and whether argument validation is needed.
The argument parsing method in the centralized configuration is updated, and the related tests are fixed.
9af90e2
to
a1fc379
Compare
The mock server created with Imposter has been updated with the latest changes related to commands. Some test cases have been added.
def command = [ | ||
"document_id": generateUUIDv7(), | ||
"action": action, | ||
"target": ["type": "agent", "id": "agentID"], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is agentID
? Does it need to be manually edited?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's just a trivial value; it doesn't need to be edited since the mock will send all commands to the agent that made the request.
Description
This PR aims to complete the necessary changes to adapt command processing to the newly defined structure received by the agent.