chore(typo): sepecial -> special
This commit is contained in:
parent
faecde9ce1
commit
8443aa5e21
|
@ -28,16 +28,16 @@
|
||||||
all() -> emqx_ct:all(?MODULE).
|
all() -> emqx_ct:all(?MODULE).
|
||||||
|
|
||||||
init_per_suite(Config) ->
|
init_per_suite(Config) ->
|
||||||
emqx_ct_helpers:start_apps([emqx_coap], fun set_sepecial_cfg/1),
|
emqx_ct_helpers:start_apps([emqx_coap], fun set_special_cfg/1),
|
||||||
Config.
|
Config.
|
||||||
|
|
||||||
set_sepecial_cfg(emqx_coap) ->
|
set_special_cfg(emqx_coap) ->
|
||||||
Opts = application:get_env(emqx_coap, dtls_opts,[]),
|
Opts = application:get_env(emqx_coap, dtls_opts,[]),
|
||||||
Opts2 = [{keyfile, emqx_ct_helpers:deps_path(emqx, "etc/certs/key.pem")},
|
Opts2 = [{keyfile, emqx_ct_helpers:deps_path(emqx, "etc/certs/key.pem")},
|
||||||
{certfile, emqx_ct_helpers:deps_path(emqx, "etc/certs/cert.pem")}],
|
{certfile, emqx_ct_helpers:deps_path(emqx, "etc/certs/cert.pem")}],
|
||||||
application:set_env(emqx_coap, dtls_opts, emqx_misc:merge_opts(Opts, Opts2)),
|
application:set_env(emqx_coap, dtls_opts, emqx_misc:merge_opts(Opts, Opts2)),
|
||||||
application:set_env(emqx_coap, enable_stats, true);
|
application:set_env(emqx_coap, enable_stats, true);
|
||||||
set_sepecial_cfg(_) ->
|
set_special_cfg(_) ->
|
||||||
ok.
|
ok.
|
||||||
|
|
||||||
end_per_suite(Config) ->
|
end_per_suite(Config) ->
|
||||||
|
|
|
@ -28,12 +28,12 @@
|
||||||
all() -> emqx_ct:all(?MODULE).
|
all() -> emqx_ct:all(?MODULE).
|
||||||
|
|
||||||
init_per_suite(Config) ->
|
init_per_suite(Config) ->
|
||||||
emqx_ct_helpers:start_apps([emqx_coap], fun set_sepecial_cfg/1),
|
emqx_ct_helpers:start_apps([emqx_coap], fun set_special_cfg/1),
|
||||||
Config.
|
Config.
|
||||||
|
|
||||||
set_sepecial_cfg(emqx_coap) ->
|
set_special_cfg(emqx_coap) ->
|
||||||
application:set_env(emqx_coap, enable_stats, true);
|
application:set_env(emqx_coap, enable_stats, true);
|
||||||
set_sepecial_cfg(_) ->
|
set_special_cfg(_) ->
|
||||||
ok.
|
ok.
|
||||||
|
|
||||||
end_per_suite(Config) ->
|
end_per_suite(Config) ->
|
||||||
|
|
|
@ -55,7 +55,7 @@ metrics() ->
|
||||||
init_per_group(GrpName, Cfg) ->
|
init_per_group(GrpName, Cfg) ->
|
||||||
put(grpname, GrpName),
|
put(grpname, GrpName),
|
||||||
Svrs = emqx_exproto_echo_svr:start(),
|
Svrs = emqx_exproto_echo_svr:start(),
|
||||||
emqx_ct_helpers:start_apps([emqx_exproto], fun set_sepecial_cfg/1),
|
emqx_ct_helpers:start_apps([emqx_exproto], fun set_special_cfg/1),
|
||||||
emqx_logger:set_log_level(debug),
|
emqx_logger:set_log_level(debug),
|
||||||
[{servers, Svrs}, {listener_type, GrpName} | Cfg].
|
[{servers, Svrs}, {listener_type, GrpName} | Cfg].
|
||||||
|
|
||||||
|
@ -63,7 +63,7 @@ end_per_group(_, Cfg) ->
|
||||||
emqx_ct_helpers:stop_apps([emqx_exproto]),
|
emqx_ct_helpers:stop_apps([emqx_exproto]),
|
||||||
emqx_exproto_echo_svr:stop(proplists:get_value(servers, Cfg)).
|
emqx_exproto_echo_svr:stop(proplists:get_value(servers, Cfg)).
|
||||||
|
|
||||||
set_sepecial_cfg(emqx_exproto) ->
|
set_special_cfg(emqx_exproto) ->
|
||||||
LisType = get(grpname),
|
LisType = get(grpname),
|
||||||
Listeners = application:get_env(emqx_exproto, listeners, []),
|
Listeners = application:get_env(emqx_exproto, listeners, []),
|
||||||
SockOpts = socketopts(LisType),
|
SockOpts = socketopts(LisType),
|
||||||
|
@ -77,7 +77,7 @@ set_sepecial_cfg(emqx_exproto) ->
|
||||||
NListeners = [{Proto, LisType, LisOn, UpgradeOpts(Opts)}
|
NListeners = [{Proto, LisType, LisOn, UpgradeOpts(Opts)}
|
||||||
|| {Proto, _Type, LisOn, Opts} <- Listeners],
|
|| {Proto, _Type, LisOn, Opts} <- Listeners],
|
||||||
application:set_env(emqx_exproto, listeners, NListeners);
|
application:set_env(emqx_exproto, listeners, NListeners);
|
||||||
set_sepecial_cfg(emqx) ->
|
set_special_cfg(emqx) ->
|
||||||
application:set_env(emqx, allow_anonymous, true),
|
application:set_env(emqx, allow_anonymous, true),
|
||||||
application:set_env(emqx, enable_acl_cache, false),
|
application:set_env(emqx, enable_acl_cache, false),
|
||||||
ok.
|
ok.
|
||||||
|
|
|
@ -32,11 +32,11 @@
|
||||||
all() -> emqx_ct:all(?MODULE).
|
all() -> emqx_ct:all(?MODULE).
|
||||||
|
|
||||||
init_per_suite(Config) ->
|
init_per_suite(Config) ->
|
||||||
emqx_ct_helpers:start_apps([emqx_management, emqx_modules], fun set_sepecial_cfg/1),
|
emqx_ct_helpers:start_apps([emqx_management, emqx_modules], fun set_special_cfg/1),
|
||||||
emqx_ct_http:create_default_app(),
|
emqx_ct_http:create_default_app(),
|
||||||
Config.
|
Config.
|
||||||
|
|
||||||
set_sepecial_cfg(_) ->
|
set_special_cfg(_) ->
|
||||||
application:set_env(emqx, modules_loaded_file, emqx_ct_helpers:deps_path(emqx, "test/emqx_SUITE_data/loaded_modules")),
|
application:set_env(emqx, modules_loaded_file, emqx_ct_helpers:deps_path(emqx, "test/emqx_SUITE_data/loaded_modules")),
|
||||||
ok.
|
ok.
|
||||||
|
|
||||||
|
|
|
@ -37,11 +37,11 @@ init_per_suite(Config) ->
|
||||||
|
|
||||||
put(loaded_file, filename:join([DataPath, "loaded_plugins"])),
|
put(loaded_file, filename:join([DataPath, "loaded_plugins"])),
|
||||||
emqx_ct_helpers:boot_modules([]),
|
emqx_ct_helpers:boot_modules([]),
|
||||||
emqx_ct_helpers:start_apps([], fun(_) -> set_sepecial_cfg(DataPath) end),
|
emqx_ct_helpers:start_apps([], fun(_) -> set_special_cfg(DataPath) end),
|
||||||
|
|
||||||
Config.
|
Config.
|
||||||
|
|
||||||
set_sepecial_cfg(PluginsDir) ->
|
set_special_cfg(PluginsDir) ->
|
||||||
application:set_env(emqx, plugins_loaded_file, get(loaded_file)),
|
application:set_env(emqx, plugins_loaded_file, get(loaded_file)),
|
||||||
application:set_env(emqx, expand_plugins_dir, PluginsDir),
|
application:set_env(emqx, expand_plugins_dir, PluginsDir),
|
||||||
ok.
|
ok.
|
||||||
|
|
Loading…
Reference in New Issue