emqx/apps/emqx_dashboard/test
Thales Macedo Garitezi 95de2d3467
fix(monitor): fix return value on badrpc
If the rpc in `emqx_dashboard_monitor_api:get_collect/1` fails, an
empty map is return.  But the current function expects a 4-tuple,
which results in a 500 error returned on such occasions.

```
curl -su admin:public localhost:8888/api/v5/monitor/current | jq .
{
  "code": "INTERNAL_ERROR",
  "message": "error, function_clause, [{emqx_dashboard_monitor_api,format_current_metrics,[[#{},{0,0,0,0},{0,0,0,0}],{0,0,0,0}],[{file,\"emqx_dashboard_monitor_api.erl\"},{line,179}]},{emqx_dashboard_monitor_api,current_counters,2,[{file,\"emqx_dashboard_monitor_api.erl\"},{line,167}]},{minirest_handler,apply_callback,3,[{file,\"minirest_handler.erl\"},{line,112}]},{minirest_handler,init,2,[{file,\"minirest_handler.erl\"},{line,38}]},{cowboy_handler,execute,2,[{file,\"cowboy_handler.erl\"},{line,41}]},{cowboy_stream_h,execute,3,[{file,\"cowboy_stream_h.erl\"},{line,318}]},{cowboy_stream_h,request_process,3,[{file,\"cowboy_stream_h.erl\"},{line,302}]},{proc_lib,init_p_do_apply,3,[{file,\"proc_lib.erl\"},{line,226}]}]"
}
```
2021-12-14 17:56:32 -03:00
..
.placeholder chore: move lib-ce to apps 2021-06-15 17:31:54 +08:00
emqx_dashboard_SUITE.erl fix(dashboard): change hash from sha3_256 to sha256 2021-11-20 21:21:11 +01:00
emqx_dashboard_monitor_api_SUITE.erl fix(monitor): fix return value on badrpc 2021-12-14 17:56:32 -03:00
emqx_swagger_parameter_SUITE.erl Fix ping not return pong (#6285) 2021-11-26 17:02:45 +08:00
emqx_swagger_remote_schema.erl chore(swagger): check hocon schema with #{override_env => false} 2021-09-22 09:07:14 +08:00
emqx_swagger_requestBody_SUITE.erl chore: add test for sub fields 2021-12-01 12:01:44 +08:00
emqx_swagger_response_SUITE.erl chore: add test for sub fields 2021-12-01 12:01:44 +08:00