test(dashboard): avoid to start useless plugins
The #7520 causes the default load_{plugins,modules} file to be used when starting the slave node. In this case, the slave will automatically start the emqx-dashbord plugin with the default configuration when it re-join cluster, which will cause the applications to fail to start.
This commit is contained in:
parent
bf1a3fe1eb
commit
1ff371bdea
|
@ -309,8 +309,16 @@ is_lib(Path) ->
|
|||
string:prefix(Path, code:lib_dir()) =:= nomatch.
|
||||
|
||||
setup_node(Node, Apps) ->
|
||||
LoadedPlugins = emqx_ct_helpers:deps_path(
|
||||
emqx,
|
||||
filename:join(["test", "emqx_SUITE_data", "loaded_plugins"])),
|
||||
LoadedModules = emqx_ct_helpers:deps_path(
|
||||
emqx,
|
||||
filename:join(["test", "emqx_SUITE_data", "loaded_modules"])),
|
||||
EnvHandler =
|
||||
fun(emqx) ->
|
||||
application:set_env(emqx, plugins_loaded_file, LoadedPlugins),
|
||||
application:set_env(emqx, modules_loaded_file, LoadedModules),
|
||||
application:set_env(emqx, listeners, []),
|
||||
application:set_env(gen_rpc, port_discovery, manual),
|
||||
ok;
|
||||
|
|
Loading…
Reference in New Issue