zeek/testing/btest/scripts/base/frameworks/control/shutdown.zeek
Arne Welzel 777a05fd0d btest/control: Use Broker explicitly
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.
2025-09-24 15:04:08 +02:00

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;