Просмотр исходного кода

test: fix authn redis_type field

EMQ-YangM 3 лет назад
Родитель
Сommit
ad2ed178a6

+ 1 - 0
apps/emqx_authn/src/emqx_authn_api.erl

@@ -1406,6 +1406,7 @@ authenticator_examples() ->
                 mechanism => <<"password_based">>,
                 backend => <<"redis">>,
                 server => <<"127.0.0.1:6379">>,
+                redis_type => <<"single">>,
                 database => 0,
                 cmd => <<"HMGET ${username} password_hash salt">>,
                 password_hash_algorithm => #{

+ 1 - 0
apps/emqx_authn/test/emqx_authn_redis_SUITE.erl

@@ -263,6 +263,7 @@ raw_redis_auth_config() ->
         cmd => <<"HMGET mqtt_user:${username} password_hash salt is_superuser">>,
         database => <<"1">>,
         password => <<"public">>,
+        redis_type => <<"single">>,
         server => redis_server()
     }.
 

+ 1 - 0
apps/emqx_authn/test/emqx_authn_redis_tls_SUITE.erl

@@ -145,6 +145,7 @@ raw_redis_auth_config(SpecificSSLOpts) ->
         database => <<"1">>,
         password => <<"public">>,
         server => redis_server(),
+        redis_type => <<"single">>,
         ssl => maps:merge(SSLOpts, SpecificSSLOpts)
     }.