summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2019-09-30 18:22:55 +0200
committerantirez <antirez@gmail.com>2019-09-30 18:28:45 +0200
commit09041b9359dfcdc84cf5570ded44160fbe7e2bfb (patch)
treeed5908e67b0b61a58c0b614cdc866501dbdfcfc0 /tests
parentea7c3fe7fd6d269e1e09443db3e2148cb445febb (diff)
downloadredis-09041b9359dfcdc84cf5570ded44160fbe7e2bfb.tar.gz
ACLs: change hashed passwords opcode to also remove them.hashed-pass-opcode
Related to PR #6405
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/acl.tcl6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/unit/acl.tcl b/tests/unit/acl.tcl
index d3b721205..2205d2d86 100644
--- a/tests/unit/acl.tcl
+++ b/tests/unit/acl.tcl
@@ -55,6 +55,12 @@ start_server {tags {"acl"}} {
assert_no_match {*passwd4*} $passstr
}
+ test {Test hashed passwords removal} {
+ r ACL setuser newuser !34344e4d60c2b6d639b7bd22e18f2b0b91bc34bf0ac5f9952744435093cfb4e6
+ set passstr [dict get [r ACL getuser newuser] passwords]
+ assert_no_match {*34344e4d60c2b6d639b7bd22e18f2b0b91bc34bf0ac5f9952744435093cfb4e6*} $passstr
+ }
+
test {By default users are not able to access any command} {
catch {r SET foo bar} e
set e