test(authz): `servers` field use string

This commit is contained in:
JimMoen 2021-12-29 16:58:33 +08:00
parent 8cb9482542
commit da68dfc8f4
2 changed files with 4 additions and 7 deletions

View File

@ -102,6 +102,7 @@ set_special_configs(_App) ->
<<"query">> => <<"abcb">>
}).
-define(SOURCE5, #{<<"type">> => <<"redis">>,
<<"redis_type">> => <<"single">>,
<<"enable">> => true,
<<"server">> => <<"127.0.0.1:27017">>,
<<"pool_size">> => 1,

View File

@ -37,9 +37,7 @@
-define(SOURCE2, #{<<"type">> => <<"mongodb">>,
<<"enable">> => true,
<<"mongo_type">> => <<"sharded">>,
<<"servers">> => [<<"127.0.0.1:27017">>,
<<"192.168.0.1:27017">>
],
<<"servers">> => <<"127.0.0.1:27017, 192.168.0.1:27017">>,
<<"pool_size">> => 1,
<<"database">> => <<"mqtt">>,
<<"ssl">> => #{<<"enable">> => false},
@ -70,9 +68,7 @@
}).
-define(SOURCE5, #{<<"type">> => <<"redis">>,
<<"enable">> => true,
<<"servers">> => [<<"127.0.0.1:6379">>,
<<"127.0.0.1:6380">>
],
<<"servers">> => <<"127.0.0.1:6379, 127.0.0.1:6380">>,
<<"pool_size">> => 1,
<<"database">> => 0,
<<"password">> => <<"ee">>,
@ -88,7 +84,7 @@
}).
all() ->
[]. %% Todo: Waiting for @terry-xiaoyu to fix the config_not_found error
[]. %% Todo: Waiting for fixing the ssl cert test.
% emqx_common_test_helpers:all(?MODULE).
groups() ->