From ad2ed178a644e69a571833f7d4c8e546b2d14009 Mon Sep 17 00:00:00 2001 From: EMQ-YangM Date: Thu, 21 Apr 2022 22:56:27 +0800 Subject: [PATCH] test: fix authn redis_type field --- apps/emqx_authn/src/emqx_authn_api.erl | 1 + apps/emqx_authn/test/emqx_authn_redis_SUITE.erl | 1 + apps/emqx_authn/test/emqx_authn_redis_tls_SUITE.erl | 1 + 3 files changed, 3 insertions(+) diff --git a/apps/emqx_authn/src/emqx_authn_api.erl b/apps/emqx_authn/src/emqx_authn_api.erl index c785bf0f6..b64e8b904 100644 --- a/apps/emqx_authn/src/emqx_authn_api.erl +++ b/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 => #{ diff --git a/apps/emqx_authn/test/emqx_authn_redis_SUITE.erl b/apps/emqx_authn/test/emqx_authn_redis_SUITE.erl index 6d5b89f10..26ca03ea4 100644 --- a/apps/emqx_authn/test/emqx_authn_redis_SUITE.erl +++ b/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() }. diff --git a/apps/emqx_authn/test/emqx_authn_redis_tls_SUITE.erl b/apps/emqx_authn/test/emqx_authn_redis_tls_SUITE.erl index 604495d8c..0e00024fb 100644 --- a/apps/emqx_authn/test/emqx_authn_redis_tls_SUITE.erl +++ b/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) }.