summaryrefslogtreecommitdiff
path: root/tests/unit/acl.tcl
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2019-01-28 18:29:22 +0100
committerantirez <antirez@gmail.com>2019-01-28 18:29:22 +0100
commite103fd42087e90eab08f1619bb09bd654847c2f0 (patch)
tree366466507aa6cfc5f4988e1a8e22a7c390307d3b /tests/unit/acl.tcl
parent7fb9e2b4ce0f29fe0eeeb5f74b1310e54144f63a (diff)
downloadredis-e103fd42087e90eab08f1619bb09bd654847c2f0.tar.gz
ACL: Test: check subcommands (test fails).
Diffstat (limited to 'tests/unit/acl.tcl')
-rw-r--r--tests/unit/acl.tcl9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/unit/acl.tcl b/tests/unit/acl.tcl
index d6645e265..4469f6535 100644
--- a/tests/unit/acl.tcl
+++ b/tests/unit/acl.tcl
@@ -77,4 +77,13 @@ start_server {tags {"acl"}} {
r ACL setuser newuser allcommands; # Undo commands ACL
set e
} {*NOPERM*}
+
+ test {ACLs can include single subcommands} {
+ r ACL setuser newuser +@all -client
+ r ACL setuser newuser +client|id +client|setname
+ r CLIENT ID; # Should not fail
+ r CLIENT SETNAME foo ; # Should not fail
+ catch {r CLIENT KILL type master} e
+ set e
+ } {*NOPERM*}
}