From 8eed34c93962e18a412360ab73a29fe2e62a820a Mon Sep 17 00:00:00 2001 From: Zaiming Shi Date: Sat, 17 Apr 2021 20:04:54 +0200 Subject: [PATCH] chore(auth_http): fix typo --- apps/emqx_auth_http/test/emqx_auth_http_SUITE.erl | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/apps/emqx_auth_http/test/emqx_auth_http_SUITE.erl b/apps/emqx_auth_http/test/emqx_auth_http_SUITE.erl index 5ac5c18e8..325d343aa 100644 --- a/apps/emqx_auth_http/test/emqx_auth_http_SUITE.erl +++ b/apps/emqx_auth_http/test/emqx_auth_http_SUITE.erl @@ -46,9 +46,9 @@ groups() -> [{Name, Cases} || Name <- [http_inet, http_inet6, https_inet, https_inet6]]. init_per_group(GrpName, Cfg) -> - [Schema, Inet] = [list_to_atom(X) || X <- string:tokens(atom_to_list(GrpName), "_")], - http_auth_server:start(Schema, Inet), - Fun = fun(App) -> set_special_configs(App, Schema, Inet) end, + [Scheme, Inet] = [list_to_atom(X) || X <- string:tokens(atom_to_list(GrpName), "_")], + http_auth_server:start(Scheme, Inet), + Fun = fun(App) -> set_special_configs(App, Scheme, Inet) end, emqx_ct_helpers:start_apps([emqx_auth_http], Fun), Cfg. @@ -63,8 +63,8 @@ set_special_configs(emqx, _Schmea, _Inet) -> application:set_env(emqx, plugins_loaded_file, emqx_ct_helpers:deps_path(emqx, LoadedPluginPath)); -set_special_configs(emqx_auth_http, Schema, Inet) -> - ServerAddr = http_server(Schema, Inet), +set_special_configs(emqx_auth_http, Scheme, Inet) -> + ServerAddr = http_server(Scheme, Inet), AuthReq = #{method => get, url => ServerAddr ++ "/mqtt/auth", @@ -79,7 +79,7 @@ set_special_configs(emqx_auth_http, Schema, Inet) -> headers => [{"content-type", "application/json"}], params => [{"access", "%A"}, {"username", "%u"}, {"clientid", "%c"}, {"ipaddr", "%a"}, {"topic", "%t"}, {"mountpoint", "%m"}]}, - Schema =:= https andalso set_https_client_opts(), + Scheme =:= https andalso set_https_client_opts(), application:set_env(emqx_auth_http, auth_req, maps:to_list(AuthReq)), application:set_env(emqx_auth_http, super_req, maps:to_list(SuperReq)),