mirror of
https://github.com/zeek/zeek.git
synced 2025-10-12 03:28:19 +00:00
btest: Use Broker for Broker specific tests
Now that Cluster::backend defaults to NONE by default, some tests won't just work anymore for various reasons (mostly due to the logging framework not sending log writes to broker anymore). Load the new frameworks/cluster/backend/broker package for these to keep them functional. Also add the @load to the common broker/cluster-layout.zeek file to avoid changing all of the files that use that layout.
This commit is contained in:
parent
1570dd6a96
commit
5a10772b7d
13 changed files with 27 additions and 2 deletions
|
@ -5,6 +5,8 @@
|
|||
# @TEST-EXEC: btest-bg-wait 30
|
||||
# @TEST-EXEC: btest-diff controllee/.stdout
|
||||
|
||||
@load frameworks/cluster/backend/broker
|
||||
|
||||
@load base/frameworks/control
|
||||
|
||||
const test_var = "ORIGINAL VALUE (this should be printed out first)" &redef;
|
||||
|
|
|
@ -9,6 +9,8 @@
|
|||
# @TEST-EXEC: btest-bg-wait 30
|
||||
# @TEST-EXEC: btest-diff controller/.stdout
|
||||
|
||||
@load frameworks/cluster/backend/broker
|
||||
|
||||
@load base/frameworks/control
|
||||
|
||||
# This value shouldn't ever be printed to the controllers stdout.
|
||||
|
|
|
@ -4,3 +4,5 @@
|
|||
# @TEST-EXEC: btest-bg-run controller ZEEKPATH=$ZEEKPATH:.. zeek -b %INPUT frameworks/control/controller Control::host=127.0.0.1 Control::host_port=$BROKER_PORT Control::cmd=shutdown
|
||||
# @TEST-EXEC: btest-bg-wait 20
|
||||
|
||||
@load frameworks/cluster/backend/broker
|
||||
|
||||
|
|
|
@ -17,6 +17,9 @@
|
|||
# @TEST-START-FILE common.zeek
|
||||
@load base/frameworks/notice/weird
|
||||
|
||||
# Ensure logging is done via Broker
|
||||
@load frameworks/cluster/backend/broker
|
||||
|
||||
module Test;
|
||||
|
||||
# Disable the string and container length filtering.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue