File: restart.test

package info (click to toggle)
zeekctl 2.2.0%2Bds1-2
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 2,544 kB
  • sloc: python: 5,639; sh: 1,374; makefile: 71; awk: 24
file content (39 lines) | stat: -rw-r--r-- 1,013 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
33
34
35
36
37
38
39
# Test that the restart command can start all stopped nodes, or just a
# specified node. Test that the restart command can restart all running nodes,
# or just a specified node.
#
# @TEST-EXEC: bash %INPUT
# @TEST-EXEC: btest-diff start-all.out
# @TEST-EXEC: btest-diff restart-one.out
# @TEST-EXEC: btest-diff restart-all.out
# @TEST-EXEC: TEST_DIFF_CANONIFIER=$SCRIPTS/diff-remove-abspath btest-diff restart-all-clean.out
# @TEST-EXEC: btest-diff start-one.out

. zeekctl-test-setup

while read line; do installfile $line; done << EOF
etc/zeekctl.cfg__no_email
etc/node.cfg__cluster
bin/zeek__test
EOF

zeekctl install

# start all nodes (using restart command)
zeekctl restart > start-all.out

# restart one node
zeekctl restart worker-1 > restart-one.out

# restart all nodes
zeekctl restart > restart-all.out

# restart all nodes with --clean option
zeekctl restart --clean > restart-all-clean.out

zeekctl stop

# start one node (using restart command)
zeekctl restart manager > start-one.out

zeekctl stop