wazuh / wazuh-api

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

Add mocha tests for active-response endpoints #367

Closed mgmacias95 closed 5 years ago

mgmacias95 commented 5 years ago

Hello team,

This PR adds some mocha tests for Active Response endpoints:

# mocha test/test_active_response.js

  Active Response
    PUT/active-response/:agent_id
      ✓ Request (316ms)
      ✓ Command not found (322ms)
      ✓ Agent does not exist (340ms)
      ✓ Agent ID not valid

  4 passing (1s)

The tests are made for changes done at https://github.com/wazuh/wazuh/pull/3046.

Best regards, Marta