45 lines
998 B
Plaintext
45 lines
998 B
Plaintext
# 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
|