Closed AdriiiPRodri closed 4 years ago
There are two expected fails. These failures are controlled and are caused by the lack of stats files
Active Response
PUT/active-response/:agent_id
✓ Request (423ms)
✓ Command not found (359ms)
✓ Agent does not exist (342ms)
✓ Agent ID not valid (103ms)
4 passing (1s)
Agents
GET/agents
✓ Request (406ms)
✓ Pagination (404ms)
✓ Retrieve all elements with limit=0 (475ms)
✓ Sort (432ms)
✓ Wrong Sort (418ms)
✓ Search (435ms)
✓ Selector (373ms)
✓ Not allowed selector (349ms)
✓ Version (347ms)
✓ Os.platform (373ms)
✓ Os.version (397ms)
✓ ManagerHost (404ms)
✓ Filters: status (402ms)
✓ Filters: status 2 (419ms)
✓ Filters: Invalid filter (118ms)
✓ Filters: Invalid filter - Extra field (113ms)
✓ Filters: older_than (422ms)
✓ Filters: group (393ms)
✓ Select: single field (457ms)
✓ Select: multiple fields (404ms)
✓ Select: wrong field (351ms)
✓ Select: invalid character (100ms)
✓ Filters: query (347ms)
GET/agents/summary
✓ Request (421ms)
GET/agents/summary/os
✓ Request (341ms)
GET/agents/outdated
✓ Request (349ms)
GET/agents/:agent_id
✓ Request (manager) (356ms)
✓ Request (agent) (388ms)
✓ Selector (404ms)
✓ Not allowed selector (417ms)
✓ Params: Bad agent id (108ms)
✓ Errors: No agent (408ms)
✓ Select (402ms)
✓ Select: wrong field (389ms)
GET/agents/name/:agent_name
✓ Request (391ms)
✓ Wrong name (344ms)
✓ Selector (345ms)
✓ Not allowed selector (349ms)
GET/agents/:agent_id/key
✓ Request (349ms)
✓ Params: Bad agent id (101ms)
✓ Errors: No key (408ms)
PUT/agents/groups/:group_id
✓ Request (428ms)
✓ Params: Bad group name (123ms)
✓ Params: Group already exists (396ms)
PUT/agents/:agent_id/group/:group_id
✓ Request (461ms)
✓ Params: Bad agent name (106ms)
✓ Params: Agent does not exist (405ms)
✓ Params: Replace parameter (393ms)
POST/agents/groups/:group_id/files/:file_name
✓ Request (370ms)
✓ ErrorOnBadGroup (343ms)
✓ ErrorOnEmptyConf (99ms)
✓ OnlyAgentConfAllowed (337ms)
✓ InvalidConfDetected (101ms)
✓ WrongConfDetected (357ms)
✓ TooBigXML (181ms)
GET/agents/no_group
✓ Request (350ms)
✓ Pagination (376ms)
✓ Retrieve all elements with limit=0 (400ms)
✓ Sort (404ms)
✓ Search (406ms)
✓ Select (413ms)
✓ Wrong select (399ms)
✓ Filter: status (393ms)
GET/agents/groups
✓ Request (408ms)
✓ Retrieve all elements with limit=0 (349ms)
✓ Hash algorithm (352ms)
✓ Wrong Hash algorithm (360ms)
✓ Filters: query 1 (364ms)
✓ Filters: query 2 (385ms)
✓ Filters: query 3 (402ms)
GET/agents/groups/:group_id
✓ Request (453ms)
✓ Params: Bad group name (121ms)
✓ Retrieve all elements with limit=0 (394ms)
✓ Select (406ms)
✓ Filter: status (406ms)
GET/agents/groups/:group_id/configuration
✓ Request (390ms)
✓ Params: Bad group name (112ms)
✓ Retrieve all elements with limit=0 (388ms)
GET/agents/groups/:group_id/files
✓ Request (352ms)
✓ Params: Bad group name (98ms)
✓ Retrieve all elements with limit=0 (341ms)
✓ Hash algorithm (340ms)
✓ Wrong Hash algorithm (354ms)
GET/agents/groups/:group_id/files/:filename
✓ Request (359ms)
✓ UsingFormatAgentConfXML (350ms)
✓ UsingFormatAgentConfJSON (342ms)
✓ UsingFormatRootcheckXML (385ms)
✓ UsingFormatRootcheckJSON (401ms)
✓ Params: Bad group name (109ms)
POST/agents/groups/:group_id/configuration
✓ Request (465ms)
✓ ErrorOnBadGroup (401ms)
✓ ErrorOnEmptyConf (117ms)
✓ InvalidConfDetected (111ms)
✓ WrongConfDetected (432ms)
✓ TooBigXML (200ms)
DELETE/agents/:agent_id/group
✓ Request (395ms)
✓ Errors: ID is not present (376ms)
✓ Params: Bad agent id (106ms)
DELETE/agents/:agent_id/group/:group_id
✓ Request (356ms)
✓ Errors: ID is not present (360ms)
✓ Errors: Group is not present (428ms)
✓ Params: Bad agent id (98ms)
✓ Params: Bad group id (342ms)
DELETE/agents/groups/:group_id
✓ Request (369ms)
✓ Params: Bad group id (114ms)
DELETE/agents
✓ Request (113ms)
✓ Filter: older_than, status and ids (3929ms)
✓ Errors: Get deleted agent (400ms)
✓ Filter: older_than (352ms)
GET/agents/stats/distinct
✓ Request (387ms)
✓ Pagination (404ms)
✓ Retrieve all elements with limit=0 (397ms)
✓ Sort (419ms)
✓ Search (439ms)
✓ Select (392ms)
✓ Wrong select (384ms)
GET/agents/:agent/config/:component/:configuration
✓ Request-Agent-Client (414ms)
✓ Request-Agent-Buffer (448ms)
✓ Request-Agent-Labels (360ms)
✓ Request-Agent-Internal (360ms)
✓ Request-Agentless-Agentless (350ms)
✓ Request-Analysis-Global (351ms)
✓ Request-Analysis-Active-response (389ms)
✓ Request-Analysis-Alerts (406ms)
✓ Request-Analysis-Command (418ms)
✓ Request-Analysis-Internal (414ms)
✓ Request-Auth-Auth (426ms)
✓ Request-Com-Active-response (408ms)
✓ Request-Com-Internal (404ms)
✓ Request-Csyslog-Csyslog (412ms)
✓ Request-Integrator-Integration (349ms)
✓ Request-Logcollector-Localfile (356ms)
✓ Request-Logcollector-Socket (359ms)
✓ Request-Logcollector-Internal (384ms)
✓ Request-Mail-Global (357ms)
✓ Request-Mail-Alerts (401ms)
✓ Request-Mail-Internal (406ms)
✓ Request-Monitor-Internal (410ms)
✓ Request-Request-Remote (409ms)
✓ Request-Request-Internal (410ms)
✓ Request-Syscheck-Syscheck (401ms)
✓ Request-Syscheck-Rootcheck (395ms)
✓ Request-Syscheck-Internal (393ms)
✓ Request-Wmodules-Wmodules (415ms)
PUT/agents/restart
✓ Request (388ms)
PUT/agents/:agent_id/restart
✓ Request (4369ms)
✓ Params: Bad agent id (104ms)
✓ Request (369ms)
POST/agents/restart
✓ Request (1775ms)
✓ Params: A good id and a bad one (461ms)
✓ Params: Bad agent id (126ms)
✓ Request (411ms)
PUT/agents/groups/:group_id/restart
✓ Request (991ms)
✓ Params: Bad group id (432ms)
✓ Group without agents (422ms)
155 passing (1m)
Agents
PUT/agents/:agent_name
✓ Request (414ms)
✓ Errors: Name already present (411ms)
✓ Params: Bad agent name (113ms)
✓ Params: New character (%) in agent name (406ms)
DELETE/agents/:agent_id
✓ Request (379ms)
✓ Errors: ID is not present (358ms)
✓ Params: Bad agent id (114ms)
POST/agents
Any
✓ Request (390ms)
✓ Check key (357ms)
✓ Errors: Name already present (353ms)
✓ Filters: Missing field name (102ms)
✓ Filters: Invalid field (94ms)
IP Automatic
✓ Request: Automatic IP (441ms)
✓ Errors: Duplicated IP (399ms)
IP
✓ Request (420ms)
✓ Filters: Bad IP (115ms)
✓ Filters: Bad IP 2 (111ms)
POST/agents/insert
Any
✓ Request (382ms)
✓ Insert agent with force parameter (ID and name already presents) (413ms)
✓ Errors: Name already present (406ms)
✓ Errors: ID already present (352ms)
✓ Errors: Invalid key (449ms)
✓ Filters: Missing fields (115ms)
✓ Filters: Invalid field (114ms)
IP Automatic
✓ Request: Automatic IP (406ms)
✓ Errors: Duplicated IP (420ms)
IP
✓ Request (404ms)
✓ Filters: Bad IP (108ms)
✓ Filters: Bad IP 2 (101ms)
29 passing (14s)
App
Authentication
✓ Wrong USER
✓ Wrong password (96ms)
✓ Home (95ms)
Requests
✓ Inexistent request (97ms)
✓ API version (115ms)
5 passing (446ms)
Cluster
GET/cluster/nodes
✓ Request (393ms)
✓ Pagination (382ms)
✓ Retrieve all elements with limit=0 (412ms)
✓ Sort (411ms)
✓ Search (417ms)
✓ Select (422ms)
✓ Select 2 (441ms)
✓ Wrong select (417ms)
✓ Filters: type (400ms)
✓ Filters: query 1 (411ms)
✓ Filters: query 2 (363ms)
✓ Filters: invalid type (381ms)
✓ Unexisting node stats (345ms)
✓ Analysisd stats (master) (350ms)
✓ Analysisd stats (worker-1) (353ms)
✓ Analysisd stats (worker-2) (395ms)
✓ Remoted stats (master) (403ms)
✓ Remoted stats (worker-1) (411ms)
✓ Remoted stats (worker-2) (421ms)
GET/cluster/:node_id/logs
✓ Request (master) (431ms)
✓ Request (worker-1) (416ms)
✓ Request (worker-2) (412ms)
✓ Pagination (414ms)
✓ Sort (372ms)
✓ Search (360ms)
✓ Filters: type_log (365ms)
✓ Filters: category (357ms)
✓ Filters: query 1 (370ms)
✓ Filters: query 2 (409ms)
✓ Filters: query 3 (415ms)
✓ Filters: wrong query (111ms)
GET/cluster/nodes/:node_name
✓ Request (418ms)
✓ Request wrong name (412ms)
GET/cluster/status
✓ Request (404ms)
GET/cluster/config
✓ Request (394ms)
GET/cluster/healthcheck
✓ Request (354ms)
✓ Filter: node name (355ms)
POST/cluster/:node_id/files
✓ Upload ossec.conf (master) (395ms)
✓ Upload ossec.conf (worker) (438ms)
✓ Upload new rules (409ms)
✓ Upload rules (overwrite=true) (404ms)
✓ Upload rules (overwrite=false) (419ms)
✓ Upload new decoder (396ms)
✓ Upload decoder (overwrite=true) (401ms)
✓ Upload decoder (without overwrite parameter) (390ms)
✓ Upload new list (353ms)
✓ Upload list (overwrite=true) (357ms)
✓ Upload list (overwrite=false) (367ms)
✓ Upload corrupted ossec.conf (master) (105ms)
✓ Upload corrupted ossec.conf (worker) (100ms)
✓ Upload malformed rules (95ms)
✓ Upload rules to unexisting node (342ms)
✓ Upload malformed decoder (105ms)
✓ Upload decoder to unexisting node (390ms)
✓ Upload malformed list (110ms)
✓ Upload list to unexisting node (452ms)
✓ Upload list with empty path (114ms)
✓ Upload a file with a wrong content type (106ms)
GET/cluster/:node_id/files
✓ Request ossec.conf (master) (400ms)
✓ Request ossec.conf (worker) (432ms)
✓ Request rules (local) (397ms)
✓ Request rules (global) (388ms)
✓ Request decoders (local) (405ms)
✓ Request decoders (global) (428ms)
✓ Request lists (348ms)
✓ Request wrong path 1 (101ms)
✓ Request wrong path 2 (94ms)
✓ Request wrong path 3 (94ms)
✓ Request unexisting file (340ms)
✓ Request file from unexisting node (346ms)
✓ Request file with empty path (109ms)
✓ Request file with validation parameter (true) (408ms)
GET/cluster/:node_id/configuration/validation (manager and worker OK)
✓ Request validation (master) (1139ms)
✓ Request validation (worker) (1133ms)
✓ Request validation (all nodes) (1154ms)
GET/cluster/:node_id/configuration/validation (manager KO, worker OK)
✓ Request validation (master) (358ms)
✓ Request validation (worker) (1122ms)
✓ Request validation (all nodes) (1150ms)
GET/cluster/:node_id/configuration/validation (manager OK, worker KO)
✓ Request validation (master) (1108ms)
✓ Request validation (worker) (362ms)
✓ Request validation (all nodes) (1023ms)
GET/cluster/:node_id/configuration/validation (manager and worker KO)
✓ Request validation (master) (414ms)
✓ Request validation (worker) (421ms)
✓ Request validation (all nodes) (435ms)
DELETE/cluster/:node_id/files
✓ Delete rules (master) (402ms)
✓ Delete decoders (master) (399ms)
✓ Delete CDB list (master) (353ms)
✓ Delete file with empty path (103ms)
GET/cluster/master/config/:component/:configuration
✓ Request-Agentless-Agentless (365ms)
✓ Request-Analysis-Global (351ms)
✓ Request-Analysis-Active-response (358ms)
✓ Request-Analysis-Alerts (355ms)
✓ Request-Analysis-Command (345ms)
✓ Request-Analysis-Internal (350ms)
✓ Request-Auth-Auth (373ms)
✓ Request-Com-Active-response (405ms)
✓ Request-Com-Internal (399ms)
✓ Request-Csyslog-Csyslog (403ms)
✓ Request-Integrator-Integration (461ms)
✓ Request-Logcollector-Localfile (395ms)
✓ Request-Logcollector-Socket (401ms)
✓ Request-Logcollector-Internal (405ms)
✓ Request-Mail-Global (361ms)
✓ Request-Mail-Alerts (353ms)
✓ Request-Mail-Internal (355ms)
✓ Request-Monitor-Internal (355ms)
✓ Request-Request-Remote (346ms)
✓ Request-Request-Internal (385ms)
✓ Request-Syscheck-Syscheck (403ms)
✓ Request-Syscheck-Rootcheck (420ms)
✓ Request-Syscheck-Internal (414ms)
✓ Request-Wmodules-Wmodules (413ms)
PUT/cluster/:node_id/restart
✓ Request (worker) (440ms)
✓ Request (master) (404ms)
114 passing (52s)
1 expected fail: GET /cluster/:node_id/stats
Decoders
GET/decoders
✓ Request (494ms)
✓ Pagination (457ms)
✓ Retrieve all elements with limit=0 (456ms)
✓ Sort (478ms)
✓ Search (462ms)
✓ Filters: File (445ms)
✓ Filters: Path (420ms)
✓ Filters: query 1 (394ms)
✓ Filters: query 2 (454ms)
✓ Filters: query 3 (412ms)
✓ Filters: Invalid filter (100ms)
✓ Filters: Invalid filter - Extra field (94ms)
GET/decoders/files
✓ Request (402ms)
✓ Pagination (453ms)
✓ Retrieve all elements with limit=0 (407ms)
✓ Sort (401ms)
✓ Search (422ms)
GET/decoders/parents
✓ Request (454ms)
✓ Pagination (448ms)
✓ Retrieve all elements with limit=0 (447ms)
✓ Sort (396ms)
✓ Search (402ms)
GET/decoders/:decoder_name
✓ Request (388ms)
✓ Pagination (388ms)
✓ Retrieve all elements with limit=0 (435ms)
✓ Sort (457ms)
✓ Search (453ms)
27 passing (11s)
Lists
GET/lists
✓ Request (447ms)
✓ Pagination (395ms)
✓ Retrieve all elements with limit=0 (381ms)
✓ Sort (375ms)
✓ Search (344ms)
✓ Filters: Path (347ms)
✓ Filters: Invalid filter (99ms)
✓ Filters: Invalid filter - Extra field (95ms)
GET/lists/files
✓ Request (414ms)
✓ Pagination (352ms)
✓ Retrieve all elements with limit=0 (385ms)
✓ Sort (401ms)
✓ Search (413ms)
✓ Filters: Invalid filter (105ms)
✓ Filters: Invalid filter - Extra field (104ms)
15 passing (5s)
Manager
GET/manager/status
✓ Request (432ms)
GET/manager/info
✓ Request (397ms)
GET/manager/configuration
✓ Request (399ms)
✓ Filters: Missing field section (111ms)
✓ Filters: Section (368ms)
✓ Errors: Invalid Section (360ms)
✓ Filters: Section - field (353ms)
✓ Errors: Invalid field (350ms)
✓ Filters: Invalid filter (102ms)
✓ Filters: Invalid filter - Extra field (99ms)
✓ Filters: Invalid date (118ms)
✓ Filters: Invalid filter (117ms)
✓ Filters: Invalid filter - Extra field (113ms)
GET/manager/stats/hourly
✓ Request (392ms)
GET/manager/stats/weekly
✓ Request (410ms)
GET/manager/stats/analysisd
✓ Request (403ms)
GET/manager/stats/remoted
✓ Request (389ms)
GET/manager/logs
✓ Request (426ms)
✓ Pagination (391ms)
✓ Retrieve all elements with limit=0 (361ms)
✓ Sort (367ms)
✓ SortField (427ms)
✓ Search (388ms)
✓ Filters: type_log (393ms)
✓ Filters: category (361ms)
✓ Filters: type_log and category (382ms)
✓ Filters: Invalid filter (120ms)
✓ Filters: Invalid filter - Extra field (103ms)
✓ Filters: query 1 (421ms)
✓ Filters: query 2 (424ms)
✓ Filters: query 3 (418ms)
✓ Filters: wrong query (125ms)
GET/manager/logs/summary
✓ Request (421ms)
POST/manager/files
✓ Upload ossec.conf (408ms)
✓ Upload ossec.conf (overwrite=false) (385ms)
✓ Upload rules (new rule) (347ms)
✓ Upload rules (overwrite=true) (370ms)
✓ Upload rules (overwrite=false) (343ms)
✓ Upload decoder (overwrite=true) (360ms)
✓ Upload decoder (without overwrite parameter) (356ms)
✓ Upload list (overwrite=true) (398ms)
✓ Upload list (without overwrite parameter) (397ms)
✓ Upload malformed rule (114ms)
✓ Upload malformed decoder (120ms)
✓ Upload malformed list (104ms)
✓ Upload list with empty path (116ms)
✓ Upload a file with a wrong content type (113ms)
GET/manager/files
✓ Request ossec.conf (412ms)
✓ Request rules (local) (422ms)
✓ Request rules (global) (400ms)
✓ Request decoders (local) (424ms)
✓ Request decoders (global) (355ms)
✓ Request lists (423ms)
✓ Request wrong path 1 (102ms)
✓ Request wrong path 2 (93ms)
✓ Request wrong path 3 (95ms)
✓ Request unexisting file (339ms)
✓ Request file with empty path (103ms)
✓ Request file with validation parameter (true) (367ms)
DELETE/manager/files
✓ Delete rules (351ms)
✓ Delete decoders (342ms)
✓ Delete CDB list (356ms)
✓ Delete file with empty path (106ms)
GET/manager/configuration/validation (OK)
✓ Request validation (1152ms)
GET/manager/configuration/validation (KO)
✓ Request validation (417ms)
GET/manager/config/:component/:configuration
✓ Request-Agentless-Agentless (361ms)
✓ Request-Analysis-Global (353ms)
✓ Request-Analysis-Active-response (344ms)
✓ Request-Analysis-Alerts (357ms)
✓ Request-Analysis-Command (344ms)
✓ Request-Analysis-Internal (344ms)
✓ Request-Auth-Auth (351ms)
✓ Request-Com-Active-response (393ms)
✓ Request-Com-Internal (407ms)
✓ Request-Csyslog-Csyslog (399ms)
✓ Request-Integrator-Integration (401ms)
✓ Request-Logcollector-Localfile (479ms)
✓ Request-Logcollector-Socket (403ms)
✓ Request-Logcollector-Internal (392ms)
✓ Request-Mail-Global (392ms)
✓ Request-Mail-Alerts (345ms)
✓ Request-Mail-Internal (344ms)
✓ Request-Monitor-Internal (344ms)
✓ Request-Request-Remote (354ms)
✓ Request-Request-Internal (360ms)
✓ Request-Syscheck-Syscheck (390ms)
✓ Request-Syscheck-Rootcheck (402ms)
✓ Request-Syscheck-Internal (402ms)
✓ Request-Wmodules-Wmodules (407ms)
PUT/manager/restart
✓ Request (405ms)
90 passing (33s)
1 expected fail: GET /manager/stats
Mitre
GET/sca/:agent_id
✓ Request (424ms)
✓ Pagination: limit = 1 (392ms)
✓ Pagination: limit = 5 (405ms)
✓ Pagination: limit = 10 (413ms)
✓ Pagination: limit > 10 (404ms)
✓ Retrieve all elements with limit=0 (415ms)
✓ Sort: +id (406ms)
✓ Sort: -id (428ms)
✓ Filters: id (406ms)
✓ Filters: id (request returns 0 items) (353ms)
✓ Filters: phase_name=initial access (363ms)
✓ Filters: phase_name=persistence (399ms)
✓ Filters: phase_name (request returns 0 items) (359ms)
✓ Filters: platform_name=linux (376ms)
✓ Filters: platform_name=macos (435ms)
✓ Filters: platform_name=windows (410ms)
✓ Filters: platform_name=windows,phase_name=persistence (430ms)
✓ Filters: platform_name=linux,phase_name=execution (412ms)
✓ Filters: platform_name=macos,phase_name=impact (423ms)
✓ Filters: platform_name (request returns 0 items) (411ms)
✓ Filters: q=id=T1015 (425ms)
✓ Filters: q=platform_name=linux (394ms)
✓ Filters: q=phase_name=execution (351ms)
✓ Filters: q (request returns 0 items) (370ms)
✓ Filters: q (wrong query 1) (397ms)
✓ Filters: q (wrong query 2) (399ms)
✓ Filters: q (wrong query 3) (381ms)
✓ Filters: select=id,phase_name,platform_name (492ms)
✓ Filters: select=id,json,platform_name (410ms)
✓ Filters: select=platform (wrong field) (402ms)
✓ Search (438ms)
✓ Search (returns 0 items) (410ms)
32 passing (13s)
Rootcheck
GET/rootcheck/:agent_id/last_scan
✓ Request (424ms)
✓ Params: Bad agent id (105ms)
✓ Errors: No agent (335ms)
DELETE/rootcheck/:agent_id
✓ Request (384ms)
✓ Params: Bad agent id (104ms)
✓ Errors: No agent (413ms)
DELETE/rootcheck
✓ Request (644ms)
PUT/rootcheck/:agent_id
✓ Request (411ms)
✓ Params: Bad agent id (117ms)
✓ Errors: No agent (392ms)
PUT/rootcheck
✓ Request (444ms)
11 passing (4s)
Rules
GET/rules
✓ Request (817ms)
✓ Pagination (674ms)
✓ Retrieve all elements with limit=0 (595ms)
✓ Sort (604ms)
✓ Search (767ms)
✓ Filters: Invalid filter (100ms)
✓ Filters: Invalid filter - Extra field (101ms)
✓ Filters: status (659ms)
✓ Filters: group (728ms)
✓ Filters: level (1) (676ms)
✓ Filters: level (2) (864ms)
✓ Filters: path (644ms)
✓ Filters: file (633ms)
✓ Filters: pci (723ms)
✓ Filters: gdpr (627ms)
✓ Filters: hipaa (972ms)
✓ Filters: nist-800-53 (985ms)
✓ Filters: tsc (990ms)
✓ Filters: gpg13 (761ms)
✓ Filters: mitre (717ms)
✓ Filters: query 1 (628ms)
✓ Filters: query 2 (727ms)
GET/rules/groups
✓ Request (647ms)
✓ Pagination (697ms)
✓ Retrieve all elements with limit=0 (676ms)
✓ Sort (764ms)
✓ Search (665ms)
✓ Filters: Invalid filter (105ms)
GET/rules/pci
✓ Request (668ms)
✓ Pagination (579ms)
✓ Retrieve all elements with limit=0 (568ms)
✓ Sort (592ms)
✓ Search (653ms)
✓ Filters: Invalid filter (109ms)
GET/rules/gdpr
✓ Request (648ms)
✓ Pagination (668ms)
✓ Retrieve all elements with limit=0 (653ms)
✓ Sort (625ms)
✓ Search (574ms)
✓ Filters: Invalid filter (101ms)
GET/rules/gpg13
✓ Request (578ms)
✓ Pagination (605ms)
✓ Retrieve all elements with limit=0 (659ms)
✓ Sort (651ms)
✓ Search (746ms)
✓ Filters: Invalid filter (110ms)
GET/rules/hipaa
✓ Request (635ms)
✓ Pagination (584ms)
✓ Retrieve all elements with limit=0 (576ms)
✓ Sort (565ms)
✓ Search (628ms)
✓ Filters: Invalid filter (114ms)
GET/rules/nist-800-53
✓ Request (652ms)
✓ Pagination (666ms)
✓ Retrieve all elements with limit=0 (644ms)
✓ Sort (651ms)
✓ Search (604ms)
✓ Filters: Invalid filter (102ms)
GET/rules/mitre
✓ Request (572ms)
✓ Pagination (586ms)
✓ Retrieve all elements with limit=0 (645ms)
✓ Sort (649ms)
✓ Search (725ms)
✓ Filters: Invalid filter (118ms)
GET/rules/tsc
✓ Request (639ms)
✓ Pagination (626ms)
✓ Retrieve all elements with limit=0 (574ms)
✓ Sort (598ms)
✓ Search (586ms)
✓ Filters: Invalid filter (101ms)
GET/rules/files
✓ Request (354ms)
✓ Pagination (367ms)
✓ Retrieve all elements with limit=0 (407ms)
✓ Sort (413ms)
✓ Search (410ms)
✓ Filters: Invalid filter (115ms)
✓ Filters: Invalid filter - Extra field (114ms)
✓ Filters: status (430ms)
✓ Filters: download (421ms)
GET/rules/:rule_id
✓ Request (644ms)
✓ Pagination (582ms)
✓ Retrieve all elements with limit=0 (569ms)
✓ Sort (582ms)
✓ Search (605ms)
✓ Filters: Invalid filter (117ms)
✓ Params: Bad rule id (112ms)
✓ Params: No rule (709ms)
87 passing (48s)
SecurityConfigurationAssessment
GET/sca/:agent_id
✓ Request (458ms)
✓ Pagination (417ms)
✓ Retrieve all elements with limit=0 (412ms)
✓ Sort (407ms)
✓ Search (365ms)
✓ Params: Bad agent id (102ms)
✓ Errors: No agent (349ms)
✓ Filters: Invalid filter (105ms)
✓ Filters: Invalid filter - Extra field (98ms)
✓ Filters: query (362ms)
✓ Filters: name (413ms)
✓ Filters: references (407ms)
✓ Retrieve all elements with limit=0 (405ms)
GET/sca/:agent_id/checks/:policy_id
✓ Request (419ms)
✓ Pagination (411ms)
✓ Retrieve all elements with limit=0 (407ms)
✓ Sort (423ms)
✓ Search (442ms)
✓ Params: Bad agent id (109ms)
✓ Errors: No agent (391ms)
✓ Check not found (410ms)
✓ Retrieve all elements with limit=0 (383ms)
✓ Filters: title (365ms)
✓ Filters: incomplete title (366ms)
✓ Filters: description (355ms)
✓ Filters: rationale (360ms)
✓ Filters: remediation (457ms)
✓ Filters: file (441ms)
✓ Filters: references (408ms)
✓ Filters: result (411ms)
✓ Filters: command (426ms)
✓ Filters: status (412ms)
✓ Filters: reason (408ms)
✓ Filters: condition (429ms)
34 passing (13s)
Summary
GET/summary/agents
✓ Request (494ms)
1 passing (500ms)
Syscheck
GET/syscheck/:agent_id
✓ Request (507ms)
✓ Pagination (363ms)
✓ Retrieve all elements with limit=0 (353ms)
✓ Sort (376ms)
✓ Search (412ms)
✓ Params: Bad agent id (114ms)
✓ Errors: No agent (397ms)
✓ Filters: Invalid filter (116ms)
✓ Filters: Invalid filter - Extra field (108ms)
✓ Filters: file (425ms)
✓ Filters: type (425ms)
✓ Filters: summary (400ms)
✓ Filters: md5 (424ms)
✓ Filters: sha1 (395ms)
✓ Filters: sha256 (367ms)
✓ Filters: hash (377ms)
✓ Filters: distinct (398ms)
✓ Filters: "%Y-%m-%d" date (493ms)
✓ Filters: "%Y-%m-%d %H:%M:%S" date (497ms)
✓ Filters: timestamp date (515ms)
GET/syscheck/:agent_id/last_scan
✓ Request (420ms)
✓ Params: Bad agent id (122ms)
✓ Errors: No agent (408ms)
DELETE/syscheck/:agent_id
✓ Request (428ms)
✓ Params: Bad agent id (110ms)
✓ Errors: No agent (396ms)
DELETE/experimental/syscheck
✓ Request (1238ms)
PUT/syscheck/:agent_id
✓ Request (380ms)
✓ Params: Bad agent id (101ms)
✓ Errors: No agent (351ms)
PUT/syscheck
✓ Request (388ms)
31 passing (12s)
Syscollector
GET/syscollector/:agent_id/os
✓ Request (484ms)
✓ Selector (441ms)
✓ Not allowed selector (485ms)
GET/syscollector/:agent_id/hardware
✓ Request (450ms)
✓ Selector (460ms)
✓ Not allowed selector (492ms)
GET/syscollector/:agent_id/packages
✓ Request (406ms)
✓ Selector (377ms)
✓ Not allowed selector (407ms)
✓ Pagination (409ms)
✓ Wrong limit (111ms)
✓ Sort - (405ms)
✓ Sort + (415ms)
✓ Wrong Sort (428ms)
✓ Search (444ms)
✓ Filter: vendor (415ms)
✓ Filter: name (395ms)
✓ Filter: architecture (386ms)
✓ Filter: format (398ms)
✓ Wrong filter (106ms)
✓ Query (392ms)
GET/experimental/syscollector/packages
✓ Request (800ms)
✓ Selector (847ms)
✓ Not allowed selector (390ms)
✓ Pagination (398ms)
✓ Wrong limit (101ms)
✓ Sort - (412ms)
✓ Sort + (401ms)
✓ Wrong Sort (384ms)
✓ Search (511ms)
✓ Filter: vendor (492ms)
✓ Filter: name (515ms)
✓ Filter: architecture (721ms)
✓ Filter: format (778ms)
✓ Wrong filter (107ms)
✓ Query (738ms)
GET/experimental/syscollector/os
✓ Request (434ms)
✓ Selector (479ms)
✓ Not allowed selector (500ms)
✓ Pagination (476ms)
✓ Wrong limit (114ms)
✓ Search (526ms)
✓ Wrong filter (111ms)
✓ Filter: architecture (570ms)
✓ Filter: os_name (497ms)
✓ Filter: release (458ms)
✓ Query (424ms)
GET/experimental/syscollector/hardware
✓ Request (429ms)
✓ Selector (473ms)
✓ Not allowed selector (441ms)
✓ Pagination (452ms)
✓ Wrong limit (114ms)
✓ Search (503ms)
✓ Wrong filter (108ms)
✓ Wrong Sort (431ms)
✓ Filter: ram_total (489ms)
✓ Filter: cpu_cores (423ms)
✓ Filter: cpu_mhz (421ms)
✓ Filter: board_serial (431ms)
✓ Query (406ms)
GET/experimental/syscollector/processes
✓ Request (430ms)
✓ Selector (446ms)
✓ Not allowed selector (439ms)
✓ Pagination (464ms)
✓ Wrong limit (114ms)
✓ Search (536ms)
✓ Wrong filter (117ms)
✓ Wrong Sort (490ms)
✓ Filter: state (494ms)
✓ Filter: ppid (462ms)
✓ Filter: egroup (416ms)
✓ Filter: euser (403ms)
✓ Filter: fgroup (402ms)
✓ Filter: name (417ms)
✓ Filter: nlwp (404ms)
✓ Filter: pgrp (425ms)
✓ Filter: priority (431ms)
✓ Filter: rgroup (457ms)
✓ Filter: ruser (466ms)
✓ Filter: sgroup (458ms)
✓ Filter: suser (500ms)
✓ Query (476ms)
GET/experimental/syscollector/ports
✓ Request (524ms)
✓ Selector (414ms)
✓ Not allowed selector (389ms)
✓ Pagination (400ms)
✓ Wrong limit (103ms)
✓ Search (430ms)
✓ Wrong filter (104ms)
✓ Wrong Sort (374ms)
✓ Filter: protocol (445ms)
✓ Filter: local_ip (487ms)
✓ Filter: local_port (473ms)
✓ Filter: remote_ip (475ms)
✓ Filter: tx_queue (495ms)
✓ Filter: state (476ms)
✓ Query (481ms)
GET/syscollector/netaddr
✓ Request (415ms)
✓ Selector (408ms)
✓ Not allowed selector (382ms)
✓ Pagination (404ms)
✓ Wrong limit (104ms)
✓ Search (405ms)
✓ Wrong filter (103ms)
✓ Wrong Sort (405ms)
✓ Filter: iface (463ms)
✓ Filter: proto (472ms)
✓ Filter: address (550ms)
✓ Filter: broadcast (485ms)
✓ Filter: netmask (481ms)
✓ Query (468ms)
GET/experimental/syscollector/netproto
✓ Request (408ms)
✓ Selector (408ms)
✓ Not allowed selector (390ms)
✓ Pagination (396ms)
✓ Wrong limit (103ms)
✓ Search (405ms)
✓ Wrong filter (102ms)
✓ Wrong Sort (411ms)
✓ Filter: iface (471ms)
✓ Filter: type (470ms)
✓ Filter: gateway (464ms)
✓ Filter: dhcp (475ms)
✓ Query (471ms)
GET/experimental/syscollector/netiface
✓ Request (460ms)
✓ Selector (411ms)
✓ Not allowed selector (396ms)
✓ Pagination (393ms)
✓ Wrong limit (103ms)
✓ Search (434ms)
✓ Wrong filter (102ms)
✓ Wrong Sort (405ms)
✓ Filter: name (473ms)
✓ Filter: type (478ms)
✓ Filter: state (473ms)
✓ Filter: mtu (484ms)
✓ Filter: tx_packets (483ms)
✓ Filter: rx_packets (475ms)
✓ Filter: tx_bytes (505ms)
✓ Filter: rx_bytes (463ms)
✓ Filter: tx_errors (414ms)
✓ Filter: rx_errors (417ms)
✓ Filter: tx_dropped (405ms)
✓ Filter: rx_dropped (418ms)
✓ Query (407ms)
GET/syscollector/000/processes
✓ Request (410ms)
✓ Selector (414ms)
✓ Not allowed selector (413ms)
✓ Pagination (406ms)
✓ Wrong limit (114ms)
✓ Search (429ms)
✓ Wrong filter (111ms)
✓ Wrong Sort (409ms)
✓ Filter: state (411ms)
✓ Filter: ppid (381ms)
✓ Filter: egroup (407ms)
✓ Filter: euser (381ms)
✓ Filter: fgroup (354ms)
✓ Filter: name (375ms)
✓ Filter: nlwp (400ms)
✓ Filter: pgrp (411ms)
✓ Filter: priority (415ms)
✓ Filter: rgroup (404ms)
✓ Filter: ruser (425ms)
✓ Filter: sgroup (421ms)
✓ Filter: suser (402ms)
✓ Query (415ms)
GET/syscollector/000/ports
✓ Request (362ms)
✓ Selector (363ms)
✓ Not allowed selector (355ms)
✓ Pagination (356ms)
✓ Wrong limit (105ms)
✓ Search (361ms)
✓ Wrong filter (104ms)
✓ Wrong Sort (359ms)
✓ Filter: protocol (394ms)
✓ Filter: local_ip (413ms)
✓ Filter: local_port (419ms)
✓ Filter: remote_ip (412ms)
✓ Filter: tx_queue (414ms)
✓ Filter: state (419ms)
✓ Query (413ms)
GET/syscollector/000/netaddr
✓ Request (375ms)
✓ Selector (378ms)
✓ Not allowed selector (358ms)
✓ Pagination (360ms)
✓ Wrong limit (102ms)
✓ Search (360ms)
✓ Wrong filter (100ms)
✓ Wrong Sort (363ms)
✓ Filter: iface (380ms)
✓ Filter: proto (408ms)
✓ Filter: address (419ms)
✓ Filter: broadcast (414ms)
✓ Filter: netmask (425ms)
✓ Query (425ms)
GET/syscollector/000/netproto
✓ Request (406ms)
✓ Selector (384ms)
✓ Not allowed selector (352ms)
✓ Pagination (371ms)
✓ Wrong limit (101ms)
✓ Search (356ms)
✓ Wrong filter (104ms)
✓ Wrong Sort (366ms)
✓ Filter: iface (416ms)
✓ Filter: type (409ms)
✓ Filter: gateway (411ms)
✓ Filter: dhcp (416ms)
✓ Query (493ms)
GET/syscollector/000/netiface
✓ Request (470ms)
✓ Selector (402ms)
✓ Not allowed selector (358ms)
✓ Pagination (436ms)
✓ Wrong limit (103ms)
✓ Search (420ms)
✓ Wrong filter (104ms)
✓ Wrong Sort (358ms)
✓ Filter: name (365ms)
✓ Filter: type (368ms)
✓ Filter: state (411ms)
✓ Filter: mtu (409ms)
✓ Filter: tx_packets (420ms)
✓ Filter: rx_packets (416ms)
✓ Filter: tx_bytes (423ms)
✓ Filter: rx_bytes (408ms)
✓ Filter: tx_errors (414ms)
✓ Filter: rx_errors (420ms)
✓ Filter: tx_dropped (354ms)
✓ Filter: rx_dropped (367ms)
✓ Query (367ms)
GET/syscollector/:agent_id/hotfixes
✓ Request (361ms)
✓ Selector (393ms)
✓ Not allowed selector (409ms)
✓ Pagination (410ms)
✓ Wrong limit (476ms)
✓ Sort - (456ms)
✓ Sort + (439ms)
✓ Search (440ms)
✓ Filter: hotfix (411ms)
239 passing (2m)
Hi team,
In this issue we will report the results of the mocha API tests for version
3.13.2
. In this way we will ensure that no bugs have been found in the API in this release.Regards