-
Notifications
You must be signed in to change notification settings - Fork 59
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
Disable cache in POST requests (agents) #403
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Tests performedMocha testsAgents# mocha test/test_agents.js --timeout=10000
Agents
GET/agents
✓ Request (233ms)
✓ Pagination (275ms)
✓ Retrieve all elements with limit=0 (271ms)
✓ Sort (277ms)
✓ Wrong Sort (245ms)
✓ Search (283ms)
✓ Selector (253ms)
✓ Not allowed selector (246ms)
✓ Version (260ms)
✓ Os.platform (268ms)
✓ Os.version (273ms)
✓ ManagerHost (250ms)
✓ Filters: status (259ms)
✓ Filters: status 2 (250ms)
✓ Filters: Invalid filter
✓ Filters: Invalid filter - Extra field
✓ Filters: older_than (257ms)
✓ Filters: group (238ms)
✓ Select: single field (243ms)
✓ Select: multiple fields (262ms)
✓ Select: wrong field (259ms)
✓ Select: invalid character
✓ Filters: query (242ms)
GET/agents/summary
✓ Request (235ms)
GET/agents/summary/os
✓ Request (279ms)
GET/agents/outdated
✓ Request (228ms)
GET/agents/:agent_id
✓ Request (manager) (261ms)
✓ Request (agent) (273ms)
✓ Selector (267ms)
✓ Not allowed selector (237ms)
✓ Params: Bad agent id
✓ Errors: No agent (239ms)
✓ Select (287ms)
✓ Select: wrong field (306ms)
GET/agents/name/:agent_name
✓ Request (221ms)
✓ Wrong name (270ms)
✓ Selector (280ms)
✓ Not allowed selector (243ms)
GET/agents/:agent_id/key
✓ Request (238ms)
✓ Params: Bad agent id
✓ Errors: No key (247ms)
PUT/agents/groups/:group_id
✓ Request (273ms)
✓ Params: Bad group name
✓ Params: Group already exists (238ms)
PUT/agents/:agent_id/group/:group_id
✓ Request (242ms)
✓ Params: Bad agent name
✓ Params: Agent does not exist (248ms)
✓ Params: Replace parameter (268ms)
POST/agents/groups/:group_id/files/:file_name
✓ Request (253ms)
✓ ErrorOnBadGroup (260ms)
✓ ErrorOnEmptyConf
✓ OnlyAgentConfAllowed (257ms)
✓ InvalidConfDetected
✓ WrongConfDetected (257ms)
✓ TooBigXML
GET/agents/no_group
✓ Request (241ms)
✓ Pagination (262ms)
✓ Retrieve all elements with limit=0 (235ms)
✓ Sort (258ms)
✓ Search (256ms)
✓ Select (244ms)
✓ Wrong select (237ms)
✓ Filter: status (241ms)
GET/agents/groups
✓ Request (237ms)
✓ Retrieve all elements with limit=0 (244ms)
✓ Hash algorithm (242ms)
✓ Wrong Hash algorithm (243ms)
GET/agents/groups/:group_id
✓ Request (255ms)
✓ Params: Bad group name
✓ Retrieve all elements with limit=0 (236ms)
✓ Select (245ms)
✓ Filter: status (240ms)
GET/agents/groups/:group_id/configuration
✓ Request (256ms)
✓ Params: Bad group name
✓ Retrieve all elements with limit=0 (242ms)
GET/agents/groups/:group_id/files
✓ Request (237ms)
✓ Params: Bad group name
✓ Retrieve all elements with limit=0 (245ms)
✓ Hash algorithm (243ms)
✓ Wrong Hash algorithm (257ms)
GET/agents/groups/:group_id/files/:filename
✓ Request (237ms)
✓ UsingFormatAgentConfXML (235ms)
✓ UsingFormatAgentConfJSON (240ms)
✓ UsingFormatRootcheckXML (238ms)
✓ UsingFormatRootcheckJSON (252ms)
✓ Params: Bad group name
POST/agents/groups/:group_id/configuration
✓ Request (233ms)
✓ ErrorOnBadGroup (247ms)
✓ ErrorOnEmptyConf
✓ InvalidConfDetected
✓ WrongConfDetected (265ms)
✓ TooBigXML
DELETE/agents/:agent_id/group
✓ Request (243ms)
✓ Errors: ID is not present (236ms)
✓ Params: Bad agent id
DELETE/agents/:agent_id/group/:group_id
✓ Request (230ms)
✓ Errors: ID is not present (235ms)
✓ Errors: Group is not present (235ms)
✓ Params: Bad agent id
✓ Params: Bad group id (249ms)
DELETE/agents/groups/:group_id
✓ Request (240ms)
✓ Params: Bad group id
DELETE/agents
✓ Request
✓ Filter: older_than, status and ids (3799ms)
✓ Errors: Get deleted agent (303ms)
✓ Filter: older_than (244ms)
GET/agents/stats/distinct
✓ Request (250ms)
✓ Pagination (242ms)
✓ Retrieve all elements with limit=0 (249ms)
✓ Sort (238ms)
✓ Search (241ms)
✓ Select (245ms)
✓ Wrong select (235ms)
GET/agents/:agent/config/:component/:configuration
✓ Request-Agent-Client (260ms)
✓ Request-Agent-Buffer (259ms)
✓ Request-Agent-Labels (253ms)
✓ Request-Agent-Internal (261ms)
✓ Request-Agentless-Agentless (242ms)
✓ Request-Analysis-Global (255ms)
✓ Request-Analysis-Active-response (241ms)
✓ Request-Analysis-Alerts (241ms)
✓ Request-Analysis-Command (234ms)
✓ Request-Analysis-Internal (243ms)
✓ Request-Auth-Auth (251ms)
✓ Request-Com-Active-response (250ms)
✓ Request-Com-Internal (253ms)
✓ Request-Csyslog-Csyslog (248ms)
✓ Request-Integrator-Integration (240ms)
✓ Request-Logcollector-Localfile (260ms)
✓ Request-Logcollector-Socket (254ms)
✓ Request-Logcollector-Internal (260ms)
✓ Request-Mail-Global (259ms)
✓ Request-Mail-Alerts (242ms)
✓ Request-Mail-Internal (250ms)
✓ Request-Monitor-Internal (253ms)
✓ Request-Request-Remote (250ms)
✓ Request-Request-Internal (253ms)
✓ Request-Syscheck-Syscheck (262ms)
✓ Request-Syscheck-Rootcheck (268ms)
✓ Request-Syscheck-Internal (258ms)
✓ Request-Wmodules-Wmodules (272ms)
PUT/agents/restart
✓ Request (300ms)
PUT/agents/:agent_id/restart
✓ Request (274ms)
✓ Params: Bad agent id
✓ Request (242ms)
POST/agents/restart
✓ Request (249ms)
✓ Params: A good id and a bad one (250ms)
✓ Params: Bad agent id
✓ Request (249ms)
149 passing (38s) |
crd1985
approved these changes
Jun 11, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi team,
This PR closes #391. Cache was removed in
agents
endpoints which usePOST
method.Best regards,
Demetrio.