fix: udpate test cases for new dashboard configs

This commit is contained in:
Shawn 2022-04-19 10:49:40 +08:00
parent 8e6b98af68
commit b04ca3cb99
2 changed files with 6 additions and 3 deletions

View File

@ -75,7 +75,7 @@ end_per_suite(_Config) ->
mria:stop().
set_special_configs(emqx_management) ->
Listeners = [#{protocol => http, port => 8081}],
Listeners = #{http => #{port => 8081}},
Config = #{listeners => Listeners,
applications => [#{id => "admin", secret => "public"}]},
emqx_config:put([emqx_management], Config),

View File

@ -32,8 +32,11 @@ set_default_config() ->
set_default_config(<<"admin">>).
set_default_config(DefaultUsername) ->
Config = #{listeners => [#{protocol => http,
port => 18083}],
Config = #{listeners => #{
http => #{
port => 18083
}
},
default_username => DefaultUsername,
default_password => <<"public">>,
i18n_lang => en