mirror of
https://github.com/zeek/zeek.git
synced 2025-10-06 08:38:20 +00:00
spicy-redis: Separate client/server
This makes the parser more official and splits the client/server out from each other. Apparently they're different enough to be separate.
This commit is contained in:
parent
f0f2969a66
commit
757cbbf902
28 changed files with 809 additions and 702 deletions
|
@ -5,14 +5,14 @@
|
|||
#unset_field -
|
||||
#path resp
|
||||
#open XXXX-XX-XX-XX-XX-XX
|
||||
#fields ts uid id.orig_h id.orig_p id.resp_h id.resp_p cmd.command cmd.key cmd.value
|
||||
#types time string addr port addr port string string string
|
||||
XXXXXXXXXX.XXXXXX ClEkJM2Vm5giqnMf4h ::1 63754 ::1 6379 SET key "my value with spaces"
|
||||
XXXXXXXXXX.XXXXXX ClEkJM2Vm5giqnMf4h ::1 63754 ::1 6379 SET key2 'my value with single quotes'
|
||||
XXXXXXXXXX.XXXXXX ClEkJM2Vm5giqnMf4h ::1 63754 ::1 6379 SET key3 'my value with "double" inners'
|
||||
XXXXXXXXXX.XXXXXX ClEkJM2Vm5giqnMf4h ::1 63754 ::1 6379 SET key4 "my value with 'single' inners"
|
||||
XXXXXXXXXX.XXXXXX ClEkJM2Vm5giqnMf4h ::1 63754 ::1 6379 SET key5 "my value with \\"escaped\\" quotes"
|
||||
XXXXXXXXXX.XXXXXX ClEkJM2Vm5giqnMf4h ::1 63754 ::1 6379 SET key6 'my value with \\'escaped\\' quotes'
|
||||
XXXXXXXXXX.XXXXXX ClEkJM2Vm5giqnMf4h ::1 63754 ::1 6379 SET bad1 "unclosed double quotes
|
||||
XXXXXXXXXX.XXXXXX ClEkJM2Vm5giqnMf4h ::1 63754 ::1 6379 SET bad2 'unclosed single quotes
|
||||
#fields ts uid id.orig_h id.orig_p id.resp_h id.resp_p cmd.command cmd.key cmd.value response.err response.data
|
||||
#types time string addr port addr port string string string bool string
|
||||
XXXXXXXXXX.XXXXXX ClEkJM2Vm5giqnMf4h ::1 63754 ::1 6379 SET key "my value with spaces" F OK
|
||||
XXXXXXXXXX.XXXXXX ClEkJM2Vm5giqnMf4h ::1 63754 ::1 6379 SET key2 'my value with single quotes' F OK
|
||||
XXXXXXXXXX.XXXXXX ClEkJM2Vm5giqnMf4h ::1 63754 ::1 6379 SET key3 'my value with "double" inners' F OK
|
||||
XXXXXXXXXX.XXXXXX ClEkJM2Vm5giqnMf4h ::1 63754 ::1 6379 SET key4 "my value with 'single' inners" F OK
|
||||
XXXXXXXXXX.XXXXXX ClEkJM2Vm5giqnMf4h ::1 63754 ::1 6379 SET key5 "my value with \\"escaped\\" quotes" F OK
|
||||
XXXXXXXXXX.XXXXXX ClEkJM2Vm5giqnMf4h ::1 63754 ::1 6379 SET key6 'my value with \\'escaped\\' quotes' F OK
|
||||
XXXXXXXXXX.XXXXXX ClEkJM2Vm5giqnMf4h ::1 63754 ::1 6379 SET bad1 "unclosed double quotes T ERR Protocol error: unbalanced quotes in request
|
||||
XXXXXXXXXX.XXXXXX ClEkJM2Vm5giqnMf4h ::1 63754 ::1 6379 SET bad2 'unclosed single quotes - -
|
||||
#close XXXX-XX-XX-XX-XX-XX
|
||||
|
|
|
@ -1,11 +0,0 @@
|
|||
### BTest baseline data generated by btest-diff. Do not edit. Use "btest -U/-u" to update. Requires BTest >= 0.63.
|
||||
#separator \x09
|
||||
#set_separator ,
|
||||
#empty_field (empty)
|
||||
#unset_field -
|
||||
#path weird
|
||||
#open XXXX-XX-XX-XX-XX-XX
|
||||
#fields ts uid id.orig_h id.orig_p id.resp_h id.resp_p name addl notice peer source
|
||||
#types time string addr port addr port string string bool string string
|
||||
XXXXXXXXXX.XXXXXX ClEkJM2Vm5giqnMf4h ::1 63754 ::1 6379 unbalanced_quotes unbalanced quotes in inline buffer: '"unclosed double quotes' F zeek SPICY_RESP
|
||||
#close XXXX-XX-XX-XX-XX-XX
|
Loading…
Add table
Add a link
Reference in a new issue