فهرست منبع

fix(scheme): update test case

zhouzb 5 سال پیش
والد
کامیت
92d307b1b3
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      apps/emqx_auth_http/test/emqx_auth_http_SUITE.erl

+ 1 - 1
apps/emqx_auth_http/test/emqx_auth_http_SUITE.erl

@@ -66,7 +66,7 @@ set_special_configs(emqx, _Schmea, _Inet) ->
 set_special_configs(emqx_auth_http, Schema, Inet) ->
 set_special_configs(emqx_auth_http, Schema, Inet) ->
     ServerAddr = http_server(Schema, Inet),
     ServerAddr = http_server(Schema, Inet),
 
 
-    AuthReq = #{method => post,
+    AuthReq = #{method => get,
                 url => ServerAddr ++ "/mqtt/auth",
                 url => ServerAddr ++ "/mqtt/auth",
                 headers => [{"content-type", "application/json"}],
                 headers => [{"content-type", "application/json"}],
                 params => [{"clientid", "%c"}, {"username", "%u"}, {"password", "%P"}]},
                 params => [{"clientid", "%c"}, {"username", "%u"}, {"password", "%P"}]},