Merge branch 'master' of ctdb into 'master' of samba
[sfrench/samba-autobuild/.git] / ctdb / tests / tool / stubby.nodestatus.004.sh
1 #!/bin/sh
2
3 . "${TEST_SCRIPTS_DIR}/unit.sh"
4
5 define_test "-n all, 3 nodes, 1 disconnected"
6
7 # -n all asks each node for the node status and 
8 #        thus reports THIS NODE for each node
9
10 required_result 0 <<EOF
11 pnn:0 192.168.20.41    OK (THIS NODE)
12 pnn:2 192.168.20.43    OK (THIS NODE)
13 EOF
14
15 simple_test -n all <<EOF
16 NODEMAP
17 0       192.168.20.41   0x0
18 1       192.168.20.42   0x1
19 2       192.168.20.43   0x0     CURRENT RECMASTER
20
21 IFACES
22 :Name:LinkStatus:References:
23 :eth2:1:2:
24 :eth1:1:4:
25
26 VNNMAP
27 654321
28 0
29 1
30 2
31 EOF