diff options
Diffstat (limited to 'ctdb/tests/UNIT/eventscripts/40.vsftpd.monitor.002.sh')
-rwxr-xr-x | ctdb/tests/UNIT/eventscripts/40.vsftpd.monitor.002.sh | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/ctdb/tests/UNIT/eventscripts/40.vsftpd.monitor.002.sh b/ctdb/tests/UNIT/eventscripts/40.vsftpd.monitor.002.sh new file mode 100755 index 0000000..4426e1b --- /dev/null +++ b/ctdb/tests/UNIT/eventscripts/40.vsftpd.monitor.002.sh @@ -0,0 +1,19 @@ +#!/bin/sh + +. "${TEST_SCRIPTS_DIR}/unit.sh" + +define_test "managed, down - once, twice" + +setup "down" + +ok <<EOF +vsftpd not listening on TCP port 21 +WARNING: vsftpd not listening but less than 2 consecutive failures, not unhealthy yet +EOF +simple_test + +required_result 1 <<EOF +vsftpd not listening on TCP port 21 +ERROR: 2 consecutive failures for vsftpd, marking node unhealthy +EOF +simple_test |