mirror of
https://github.com/samba-team/samba.git
synced 2025-01-12 09:18:10 +03:00
ca28a47cb4
Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
21 lines
446 B
Bash
Executable File
21 lines
446 B
Bash
Executable File
#!/bin/sh
|
|
|
|
. "${TEST_SCRIPTS_DIR}/unit.sh"
|
|
|
|
define_test "managed, down - once, twice"
|
|
|
|
setup_vsftpd "down"
|
|
export CTDB_MANAGES_VSFTPD="yes"
|
|
|
|
ok <<EOF
|
|
ERROR: vsftpd tcp port 21 is not responding
|
|
WARNING: vsftpd not listening but less than 2 consecutive failures, not unhealthy yet
|
|
EOF
|
|
simple_test
|
|
|
|
required_result 1 <<EOF
|
|
ERROR: vsftpd tcp port 21 is not responding
|
|
ERROR: 2 consecutive failures for vsftpd, marking node unhealthy
|
|
EOF
|
|
simple_test
|