mirror of
http://github.com/valkey-io/valkey
synced 2024-11-21 16:46:15 +00:00
Complete fields in client list and client info test. (#326)
Add `lib-name` and `lib-ver` check. Signed-off-by: Chen Tianjie <TJ_Chen@outlook.com>
This commit is contained in:
parent
8dcc8ebba4
commit
5d23f8f58a
@ -7,7 +7,7 @@ start_server {tags {"introspection"}} {
|
|||||||
|
|
||||||
test {CLIENT LIST} {
|
test {CLIENT LIST} {
|
||||||
r client list
|
r client list
|
||||||
} {id=* addr=*:* laddr=*:* fd=* name=* age=* idle=* flags=N db=* sub=0 psub=0 ssub=0 multi=-1 watch=0 qbuf=26 qbuf-free=* argv-mem=* multi-mem=0 rbs=* rbp=* obl=0 oll=0 omem=0 tot-mem=* events=r cmd=client|list user=* redir=-1 resp=*}
|
} {id=* addr=*:* laddr=*:* fd=* name=* age=* idle=* flags=N db=* sub=0 psub=0 ssub=0 multi=-1 watch=0 qbuf=26 qbuf-free=* argv-mem=* multi-mem=0 rbs=* rbp=* obl=0 oll=0 omem=0 tot-mem=* events=r cmd=client|list user=* redir=-1 resp=* lib-name=* lib-ver=*}
|
||||||
|
|
||||||
test {CLIENT LIST with IDs} {
|
test {CLIENT LIST with IDs} {
|
||||||
set myid [r client id]
|
set myid [r client id]
|
||||||
@ -17,7 +17,7 @@ start_server {tags {"introspection"}} {
|
|||||||
|
|
||||||
test {CLIENT INFO} {
|
test {CLIENT INFO} {
|
||||||
r client info
|
r client info
|
||||||
} {id=* addr=*:* laddr=*:* fd=* name=* age=* idle=* flags=N db=* sub=0 psub=0 ssub=0 multi=-1 watch=0 qbuf=26 qbuf-free=* argv-mem=* multi-mem=0 rbs=* rbp=* obl=0 oll=0 omem=0 tot-mem=* events=r cmd=client|info user=* redir=-1 resp=*}
|
} {id=* addr=*:* laddr=*:* fd=* name=* age=* idle=* flags=N db=* sub=0 psub=0 ssub=0 multi=-1 watch=0 qbuf=26 qbuf-free=* argv-mem=* multi-mem=0 rbs=* rbp=* obl=0 oll=0 omem=0 tot-mem=* events=r cmd=client|info user=* redir=-1 resp=* lib-name=* lib-ver=*}
|
||||||
|
|
||||||
test {CLIENT KILL with illegal arguments} {
|
test {CLIENT KILL with illegal arguments} {
|
||||||
assert_error "ERR wrong number of arguments for 'client|kill' command" {r client kill}
|
assert_error "ERR wrong number of arguments for 'client|kill' command" {r client kill}
|
||||||
|
Loading…
Reference in New Issue
Block a user