Prechádzať zdrojové kódy

test(authn): test unsupported redis CMD

JimMoen 3 rokov pred
rodič
commit
4fa84cce29

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

@@ -107,6 +107,9 @@ t_create_invalid(_Config) ->
             },
             },
             AuthConfig#{
             AuthConfig#{
                 cmd => <<"HMGET mqtt_user:${username} salt is_superuser">>
                 cmd => <<"HMGET mqtt_user:${username} salt is_superuser">>
+            },
+            AuthConfig#{
+                cmd => <<"HGETALL mqtt_user:${username} salt is_superuser">>
             }
             }
         ],
         ],
     lists:foreach(
     lists:foreach(