1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00
samba-mirror/ctdb/tests/eventscripts/01.reclock.monitor.005.sh
Martin Schwenke 7cddc88d03 ctdb-tests: 01.reclock event script setup modularisation
Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
2018-03-28 02:57:18 +02:00

29 lines
586 B
Bash
Executable File

#!/bin/sh
. "${TEST_SCRIPTS_DIR}/unit.sh"
define_test "set, doesn't exist, 4 times"
setup
rm -f "$CTDB_RECOVERY_LOCK"
ok_null
for i in $(seq 1 3) ; do
simple_test
done
for i in $(seq 4 199) ; do
required_result 1 <<EOF
ERROR: ${i} consecutive failures checking reclock
EOF
simple_test
done
required_result 1 <<EOF
Reclock file "${CTDB_RECOVERY_LOCK}" can not be accessed. Shutting down.
Filesystem 1024-blocks Used Available Capacity Mounted on
/dev/sda1 1000000 100000 900000 10% /
CTDB says BYE!
EOF
simple_test