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

At least the control/controller script looks as if it always intended to peer with just one node in a cluster using Broker. The controllee script will start listening for such connections if the selected backend is actually Broker, so explicitly switch to that here.
8 lines
508 B
Text
8 lines
508 B
Text
# @TEST-PORT: BROKER_PORT
|
|
#
|
|
# @TEST-EXEC: btest-bg-run controllee ZEEKPATH=$ZEEKPATH:.. zeek -b %INPUT frameworks/control/controllee Broker::default_port=$BROKER_PORT
|
|
# @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
|
|
|
|
# This ensures the controllee script starts listening using Broker.
|
|
redef Cluster::backend = Cluster::CLUSTER_BACKEND_BROKER;
|