diff options
author | antirez <antirez@gmail.com> | 2020-02-04 13:19:40 +0100 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2020-02-04 13:19:40 +0100 |
commit | 90fae58b49cbc0bf0be76fe889952a81f4c3aed1 (patch) | |
tree | 9d9a7b87b98191ed2ed70add82051594bf295eca /tests/unit/acl.tcl | |
parent | 64a73e9293154482977cd530a2adc05f1fcc92f6 (diff) | |
download | redis-90fae58b49cbc0bf0be76fe889952a81f4c3aed1.tar.gz |
ACL LOG: make max log entries configurable.acl-log
Diffstat (limited to 'tests/unit/acl.tcl')
-rw-r--r-- | tests/unit/acl.tcl | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/unit/acl.tcl b/tests/unit/acl.tcl index 0e6d5c66a..fc1664a75 100644 --- a/tests/unit/acl.tcl +++ b/tests/unit/acl.tcl @@ -237,4 +237,15 @@ start_server {tags {"acl"}} { assert {[dict get $entry object] eq {AUTH}} assert {[dict get $entry username] eq {antirez}} } + + test {ACL LOG entries are limited to a maximum amount} { + r ACL LOG RESET + r CONFIG SET acllog-max-len 5 + r AUTH antirez foo + for {set j 0} {$j < 10} {incr j} { + catch {r SET obj:$j 123} + } + r AUTH default "" + assert {[llength [r ACL LOG]] == 5} + } } |