wafsamba: fix pidl dependencies to rebuild on pidl changes
[Samba.git] / ctdb / tests / tool / ctdb.nodestatus.005.sh
blob0cd24ba9cab663e786b466682e964d46b4646b70
1 #!/bin/sh
3 . "${TEST_SCRIPTS_DIR}/unit.sh"
5 define_test "current, 3 nodes, node 0 unhealthy, query node 0"
7 setup_ctdbd <<EOF
8 NODEMAP
9 0 192.168.20.41 0x2
10 1 192.168.20.42 0x0
11 2 192.168.20.43 0x0 CURRENT RECMASTER
13 IFACES
14 :Name:LinkStatus:References:
15 :eth2:1:2:
16 :eth1:1:4:
17 EOF
19 required_result 2 <<EOF
20 pnn:0 192.168.20.41 UNHEALTHY
21 EOF
22 simple_test 0
24 required_result 2 <<EOF
25 |Node|IP|Disconnected|Banned|Disabled|Unhealthy|Stopped|Inactive|PartiallyOnline|ThisNode|
26 |0|192.168.20.41|0|0|0|1|0|0|0|N|
27 EOF
28 simple_test -X 0