1
0
mirror of https://github.com/fluencelabs/redis synced 2025-03-22 02:20:49 +00:00
2010-06-02 23:22:25 +02:00

16 lines
459 B
Tcl

start_server {tags {"auth"} overrides {requirepass foobar}} {
test {AUTH fails when a wrong password is given} {
catch {r auth wrong!} err
format $err
} {ERR*invalid password}
test {Arbitrary command gives an error when AUTH is required} {
catch {r set foo bar} err
format $err
} {ERR*operation not permitted}
test {AUTH succeeds when the right password is given} {
r auth foobar
} {OK}
}