|
@@ -25,12 +25,19 @@ all() ->
|
|
|
emqx_common_test_helpers:all(?MODULE).
|
|
emqx_common_test_helpers:all(?MODULE).
|
|
|
|
|
|
|
|
init_per_suite(Config) ->
|
|
init_per_suite(Config) ->
|
|
|
- emqx_mgmt_api_test_util:init_suite([emqx_conf, emqx_management]),
|
|
|
|
|
|
|
+ Apps = emqx_cth_suite:start(
|
|
|
|
|
+ [
|
|
|
|
|
+ emqx_conf,
|
|
|
|
|
+ emqx_management,
|
|
|
|
|
+ emqx_mgmt_api_test_util:emqx_dashboard()
|
|
|
|
|
+ ],
|
|
|
|
|
+ #{work_dir => emqx_cth_suite:work_dir(Config)}
|
|
|
|
|
+ ),
|
|
|
ok = emqx_mgmt_cli:load(),
|
|
ok = emqx_mgmt_cli:load(),
|
|
|
- Config.
|
|
|
|
|
|
|
+ [{apps, Apps} | Config].
|
|
|
|
|
|
|
|
-end_per_suite(_) ->
|
|
|
|
|
- emqx_mgmt_api_test_util:end_suite([emqx_management, emqx_conf]).
|
|
|
|
|
|
|
+end_per_suite(Config) ->
|
|
|
|
|
+ ok = emqx_cth_suite:stop(?config(apps, Config)).
|
|
|
|
|
|
|
|
init_per_testcase(t_autocluster_leave = TC, Config) ->
|
|
init_per_testcase(t_autocluster_leave = TC, Config) ->
|
|
|
[Core1, Core2, Repl1, Repl2] =
|
|
[Core1, Core2, Repl1, Repl2] =
|