|
|
@@ -48,22 +48,18 @@ init_per_group(Name, Config) ->
|
|
|
set_special_cfgs(),
|
|
|
case Name of
|
|
|
http ->
|
|
|
- emqx_ct_helpers:start_apps([emqx_web_hook, emqx_modules, emqx_management,
|
|
|
- emqx_rule_engine], fun set_special_configs_http/1);
|
|
|
+ emqx_ct_helpers:start_apps(apps(), fun set_special_configs_http/1);
|
|
|
https ->
|
|
|
- emqx_ct_helpers:start_apps([emqx_web_hook, emqx_modules, emqx_management,
|
|
|
- emqx_rule_engine], fun set_special_configs_https/1);
|
|
|
+ emqx_ct_helpers:start_apps(apps(), fun set_special_configs_https/1);
|
|
|
ipv6http ->
|
|
|
- emqx_ct_helpers:start_apps([emqx_web_hook, emqx_management,
|
|
|
- emqx_rule_engine], fun set_special_configs_ipv6_http/1);
|
|
|
+ emqx_ct_helpers:start_apps(apps(), fun set_special_configs_ipv6_http/1);
|
|
|
ipv6https ->
|
|
|
- emqx_ct_helpers:start_apps([emqx_web_hook, emqx_management,
|
|
|
- emqx_rule_engine], fun set_special_configs_ipv6_https/1)
|
|
|
+ emqx_ct_helpers:start_apps(apps(), fun set_special_configs_ipv6_https/1)
|
|
|
end,
|
|
|
Config.
|
|
|
|
|
|
end_per_group(_Name, Config) ->
|
|
|
- emqx_ct_helpers:stop_apps([emqx_web_hook]),
|
|
|
+ emqx_ct_helpers:stop_apps(apps()),
|
|
|
Config.
|
|
|
|
|
|
set_special_configs_http(_) ->
|
|
|
@@ -220,3 +216,6 @@ assert_messages_attrs(#{ <<"ts">> := _
|
|
|
, <<"from_client_id">> := _
|
|
|
}) ->
|
|
|
ok.
|
|
|
+
|
|
|
+apps() ->
|
|
|
+ [emqx_web_hook, emqx_modules, emqx_management, emqx_rule_engine].
|