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
3c67c1c3
Commit
3c67c1c3
authored
Jan 28, 2019
by
antirez
Browse files
ACL: Test: enabled/disabled user.
parent
9fc1ce2f
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/unit/acl.tcl
View file @
3c67c1c3
...
...
@@ -2,4 +2,19 @@ start_server {tags {"acl"}} {
test
{
Connections start with the default user
}
{
r ACL WHOAMI
}
{
default
}
test
{
It is possible to create new users
}
{
r ACL setuser newuser
}
test
{
New users start disabled
}
{
r ACL setuser newuser >passwd1
catch
{
r AUTH newuser passwd1
}
err
set err
}
{
*WRONGPASS*
}
test
{
Enabling the user allows the login
}
{
r ACL setuser newuser on
r AUTH newuser passwd1
}
{
OK
}
}
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