chore(test): clean up auth_mnesia_SUITE:t_boot config
This commit is contained in:
parent
88060c0f9b
commit
85d568be60
|
@ -7,13 +7,13 @@
|
||||||
{update, emqx_auth_mnesia_sup, supervisor},
|
{update, emqx_auth_mnesia_sup, supervisor},
|
||||||
{apply, {emqx_acl_mnesia_migrator, start_supervised, []}},
|
{apply, {emqx_acl_mnesia_migrator, start_supervised, []}},
|
||||||
{load_module,emqx_auth_mnesia_api, brutal_purge,soft_purge,[]},
|
{load_module,emqx_auth_mnesia_api, brutal_purge,soft_purge,[]},
|
||||||
{load_module,emqx_acl_mnesia, brutal_purge, soft_purge,[]},
|
{load_module,emqx_acl_mnesia, brutal_purge,soft_purge,[]},
|
||||||
{load_module,emqx_acl_mnesia_api, brutal_purge,soft_purge,[]},
|
{load_module,emqx_acl_mnesia_api, brutal_purge,soft_purge,[]},
|
||||||
{load_module,emqx_acl_mnesia_cli, brutal_purge,soft_purge,[]}
|
{load_module,emqx_acl_mnesia_cli, brutal_purge,soft_purge,[]}
|
||||||
]},
|
]},
|
||||||
{<<"4.3.4">>, [
|
{<<"4.3.4">>, [
|
||||||
{load_module,emqx_auth_mnesia, brutal_purge, soft_purge,[]},
|
{load_module,emqx_auth_mnesia, brutal_purge,soft_purge,[]},
|
||||||
{load_module,emqx_auth_mnesia_cli, brutal_purge,soft_purge,[]},
|
{load_module,emqx_auth_mnesia_cli, brutal_purge,soft_purge,[]}
|
||||||
]},
|
]},
|
||||||
{<<".*">>, [
|
{<<".*">>, [
|
||||||
]}
|
]}
|
||||||
|
@ -30,8 +30,8 @@
|
||||||
{delete_module,emqx_acl_mnesia_db}
|
{delete_module,emqx_acl_mnesia_db}
|
||||||
]},
|
]},
|
||||||
{<<"4.3.4">>, [
|
{<<"4.3.4">>, [
|
||||||
{load_module,emqx_auth_mnesia, brutal_purge, soft_purge,[]},
|
{load_module,emqx_auth_mnesia, brutal_purge,soft_purge,[]},
|
||||||
{load_module,emqx_auth_mnesia_cli, brutal_purge,soft_purge,[]},
|
{load_module,emqx_auth_mnesia_cli, brutal_purge,soft_purge,[]}
|
||||||
]},
|
]},
|
||||||
{<<".*">>, [
|
{<<".*">>, [
|
||||||
]}
|
]}
|
||||||
|
|
|
@ -73,6 +73,7 @@ set_default(ClientId, UserName, Pwd, HashType) ->
|
||||||
application:set_env(emqx_auth_mnesia, clientid_list, [{ClientId, Pwd}]),
|
application:set_env(emqx_auth_mnesia, clientid_list, [{ClientId, Pwd}]),
|
||||||
application:set_env(emqx_auth_mnesia, username_list, [{UserName, Pwd}]),
|
application:set_env(emqx_auth_mnesia, username_list, [{UserName, Pwd}]),
|
||||||
application:set_env(emqx_auth_mnesia, password_hash, HashType),
|
application:set_env(emqx_auth_mnesia, password_hash, HashType),
|
||||||
|
application:set_env(emqx_auth_mnesia, password_hash, HashType),
|
||||||
ok.
|
ok.
|
||||||
%%------------------------------------------------------------------------------
|
%%------------------------------------------------------------------------------
|
||||||
%% Testcases
|
%% Testcases
|
||||||
|
@ -123,6 +124,7 @@ t_boot(_Config) ->
|
||||||
?assertEqual(Ok,
|
?assertEqual(Ok,
|
||||||
emqx_auth_mnesia:check(#{clientid => <<"NotExited">>, username => UserName, password => NewPwd2},
|
emqx_auth_mnesia:check(#{clientid => <<"NotExited">>, username => UserName, password => NewPwd2},
|
||||||
#{}, #{hash_type => plain})),
|
#{}, #{hash_type => plain})),
|
||||||
|
clean_all_users(),
|
||||||
ok.
|
ok.
|
||||||
|
|
||||||
t_management(_Config) ->
|
t_management(_Config) ->
|
||||||
|
|
Loading…
Reference in New Issue