mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00

Closes #4504 Messages from pub/sub need separate handling in order to not mess up client request/reply correlation.
16 lines
488 B
Text
16 lines
488 B
Text
# @TEST-DOC: Test Zeek parsing pubsub commands
|
|
# @TEST-REQUIRES: have-spicy
|
|
#
|
|
# @TEST-EXEC: zeek -b -r $TRACES/redis/pubsub.pcap %INPUT >output
|
|
# @TEST-EXEC: btest-diff output
|
|
# @TEST-EXEC: btest-diff redis.log
|
|
|
|
# Test pub/sub from Redis. This has two subscribers, one using a pattern. Then, the
|
|
# messages that were published get printed to output.
|
|
|
|
@load base/protocols/redis
|
|
|
|
event Redis::server_message(c: connection, data: Redis::ReplyData)
|
|
{
|
|
print "Got published data!", data;
|
|
}
|