chore: remove useless information from the dashboard listener failure log
This commit is contained in:
parent
8260c55530
commit
c2c089d0e9
|
@ -2,6 +2,8 @@
|
|||
|
||||
## Enhancements
|
||||
|
||||
- Remove useless information from the dashboard listener failure log [#9260](https://github.com/emqx/emqx/pull/9260).
|
||||
|
||||
- Support to use placeholders like `${var}` in the HTTP `Headers` of rule-engine's Webhook actions [#9239](https://github.com/emqx/emqx/pull/9239).
|
||||
|
||||
- Asynchronously refresh the resources and rules during emqx boot-up [#9199](https://github.com/emqx/emqx/pull/9199).
|
||||
|
|
|
@ -2,6 +2,8 @@
|
|||
|
||||
## 增强
|
||||
|
||||
- 删除 Dashboard 监听器失败时日志中的无用信息 [#9260](https://github.com/emqx/emqx/pull/9260).
|
||||
|
||||
- 支持在规则引擎的 Webhook 动作的 HTTP Headers 里使用 `${var}` 格式的占位符 [#9239](https://github.com/emqx/emqx/pull/9239)。
|
||||
|
||||
- 在 emqx 启动时,异步地刷新资源和规则 [#9199](https://github.com/emqx/emqx/pull/9199)。
|
||||
|
|
|
@ -54,7 +54,7 @@ groups() ->
|
|||
{overview, [sequence], [t_overview]},
|
||||
{admins, [sequence], [t_admins_add_delete, t_admins_persist_default_password, t_default_password_persists_after_leaving_cluster]},
|
||||
{rest, [sequence], [t_rest_api]},
|
||||
{cli, [sequence], [t_cli]}
|
||||
{cli, [sequence], [t_cli, t_start_listener_failed_log]}
|
||||
].
|
||||
|
||||
init_per_suite(Config) ->
|
||||
|
@ -236,6 +236,21 @@ t_cli(_Config) ->
|
|||
AdminList = emqx_dashboard_admin:all_users(),
|
||||
?assertEqual(2, length(AdminList)).
|
||||
|
||||
t_start_listener_failed_log({init, Config}) ->
|
||||
_ = application:stop(emqx_dashboard),
|
||||
Config;
|
||||
t_start_listener_failed_log({'end', _Config}) ->
|
||||
_ = application:start(emqx_dashboard),
|
||||
ok;
|
||||
t_start_listener_failed_log(_Config) ->
|
||||
ct:capture_start(),
|
||||
Options = [{num_acceptors,4}, {max_connections,512}, {inet6,false}, {ipv6_v6only,false}],
|
||||
?assertError(_, emqx_dashboard:start_listener({http, {"1.1.1.1", 8080}, Options})),
|
||||
ct:capture_stop(),
|
||||
I0 = ct:capture_get(),
|
||||
?assertNotMatch(nomatch, re:run(iolist_to_binary(I0), "eaddrnotavail", [])),
|
||||
ok.
|
||||
|
||||
%%------------------------------------------------------------------------------
|
||||
%% Internal functions
|
||||
%%------------------------------------------------------------------------------
|
||||
|
|
|
@ -50,7 +50,7 @@
|
|||
, {ekka, {git, "https://github.com/emqx/ekka", {tag, "0.8.1.11"}}}
|
||||
, {gen_rpc, {git, "https://github.com/emqx/gen_rpc", {tag, "2.5.2"}}}
|
||||
, {cuttlefish, {git, "https://github.com/emqx/cuttlefish", {tag, "v3.3.6"}}}
|
||||
, {minirest, {git, "https://github.com/emqx/minirest", {tag, "0.3.9"}}}
|
||||
, {minirest, {git, "https://github.com/emqx/minirest", {tag, "0.3.10"}}}
|
||||
, {ecpool, {git, "https://github.com/emqx/ecpool", {tag, "0.5.2"}}}
|
||||
, {replayq, {git, "https://github.com/emqx/replayq", {tag, "0.3.4"}}}
|
||||
, {pbkdf2, {git, "https://github.com/emqx/erlang-pbkdf2.git", {branch, "2.0.4"}}}
|
||||
|
|
Loading…
Reference in New Issue