ctdb-tests: Allow use of setup_ctdb_base() outside of test cases
[vlendec/samba-autobuild/.git] / ctdb / tests / eventscripts / 40.vsftpd.monitor.002.sh
1 #!/bin/sh
2
3 . "${TEST_SCRIPTS_DIR}/unit.sh"
4
5 define_test "managed, down - once, twice"
6
7 setup "down"
8
9 ok <<EOF
10 vsftpd not listening on TCP port 21
11 WARNING: vsftpd not listening but less than 2 consecutive failures, not unhealthy yet
12 EOF
13 simple_test
14
15 required_result 1 <<EOF
16 vsftpd not listening on TCP port 21
17 ERROR: 2 consecutive failures for vsftpd, marking node unhealthy
18 EOF
19 simple_test