File: start-stop-big-cluster.test

package info (click to toggle)
broctl 1.4-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 2,220 kB
  • sloc: python: 4,931; sh: 1,188; makefile: 70; awk: 24
file content (32 lines) | stat: -rw-r--r-- 771 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# 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

. broctl-test-setup

while read line; do installcfgfile "$line"; done << EOF
etc/broctl.cfg__no_email
etc/node.cfg__big_cluster
bin/bro__test
EOF

broctl install

broctl start > start.out 2>&1

# verify that all nodes are started
broctl status > status1.out 2>&1

broctl stop > stop.out 2>&1

# verify that all nodes are stopped
broctl status > status2.out 2>&1

# broctl status returns non-zero when not all nodes are running
exit 0