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 40 41 42 43 44
|
# Test that the df command can get disk usage for a standalone node,
# all nodes in a cluster, or just a specified cluster node.
#
# @TEST-EXEC: bash %INPUT
# @TEST-EXEC: TEST_DIFF_CANONIFIER=$SCRIPTS/diff-df-output btest-diff default.out
# @TEST-EXEC: btest-diff standalone.out
# @TEST-EXEC: btest-diff cluster.out
# @TEST-EXEC: btest-diff manager.out
# @TEST-EXEC: btest-diff worker.out
. zeekctl-test-setup
zeekctl install
# Test with the real "df" command
zeekctl df > default.out
# Test with Zeek directories on multiple partitions
while read line; do installfile $line; done << EOF
bin/df__partitions --new
EOF
replaceprefix bin/df
zeekctl df > standalone.out
# Test using a cluster config
while read line; do installfile $line; done << EOF
etc/node.cfg__logger
EOF
zeekctl install
# check usage on all nodes (in this case, the logger)
zeekctl df > cluster.out
# check usage on manager
zeekctl df manager > manager.out
# check usage on a worker
zeekctl df worker-1 > worker.out
|