wazuh / wazuh-api

Wazuh - RESTful API
https://wazuh.com
GNU General Public License v2.0
69 stars 57 forks source link

Disable cache in POST request (agents) #391

Closed druizz90 closed 5 years ago

druizz90 commented 5 years ago

Hi team,

Some tests fail when I execute Mocha tests because cache is enabled in two endopoints which use POST method:

https://github.com/wazuh/wazuh-api/blob/041d36c86d4897f3501422baa6248385b0775dba/controllers/agents.js#L244

https://github.com/wazuh/wazuh-api/blob/041d36c86d4897f3501422baa6248385b0775dba/controllers/agents.js#L282

We should delete cache for these endpoints.

Best regards,

Demetrio.