mirror of
https://github.com/fluencelabs/redis
synced 2025-04-01 15:21:03 +00:00
ACL: Test: check subcommands (test fails).
This commit is contained in:
parent
7fb9e2b4ce
commit
e103fd4208
@ -77,4 +77,13 @@ start_server {tags {"acl"}} {
|
|||||||
r ACL setuser newuser allcommands; # Undo commands ACL
|
r ACL setuser newuser allcommands; # Undo commands ACL
|
||||||
set e
|
set e
|
||||||
} {*NOPERM*}
|
} {*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*}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user