Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
e103fd42
Commit
e103fd42
authored
Jan 28, 2019
by
antirez
Browse files
ACL: Test: check subcommands (test fails).
parent
7fb9e2b4
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/unit/acl.tcl
View file @
e103fd42
...
@@ -77,4 +77,13 @@ start_server {tags {"acl"}} {
...
@@ -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*
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment