]> git.saurik.com Git - redis.git/blame - tests/unit/auth.tcl
memory fragmentation reporting in INFO also added for Mac OS X
[redis.git] / tests / unit / auth.tcl
CommitLineData
7f7499ee 1start_server {tags {"auth"} overrides {requirepass foobar}} {
98578b57
PN
2 test {AUTH fails when a wrong password is given} {
3 catch {r auth wrong!} err
4 format $err
5 } {ERR*invalid password}
6
7 test {Arbitrary command gives an error when AUTH is required} {
8 catch {r set foo bar} err
9 format $err
10 } {ERR*operation not permitted}
11
12 test {AUTH succeeds when the right password is given} {
13 r auth foobar
14 } {OK}
15}