zeek/auxil/zeekctl/testing/command/start-stop-big-cluster.test
Patrick Kelley 8fd444092b initial
2025-05-07 15:35:15 -04:00

29 lines
683 B
Plaintext

# Test that the start and stop commands can handle a big cluster (i.e.,
# a cluster with a large number of nodes).
#
# @TEST-EXEC: bash %INPUT
# @TEST-EXEC: btest-diff start.out
# @TEST-EXEC: TEST_DIFF_CANONIFIER=$SCRIPTS/diff-status-output btest-diff status1.out
# @TEST-EXEC: btest-diff stop.out
# @TEST-EXEC: btest-diff status2.out
. zeekctl-test-setup
while read line; do installfile $line; done << EOF
etc/zeekctl.cfg__no_email
etc/node.cfg__big_cluster
bin/zeek__test
EOF
zeekctl install
zeekctl start > start.out
# verify that all nodes are started
zeekctl status > status1.out
zeekctl stop > stop.out
# verify that all nodes are stopped
! zeekctl status > status2.out