a18608dd4b80bce78729f65f80530f91daf5b934
[obnox/samba/samba-obnox.git] / ctdb / tests / tool / testcases / stubby.nodestatus.005.sh
1 #!/bin/sh
2
3 . "${TESTS_SUBDIR}/common.sh"
4
5 define_test "-n all all, 3 nodes, 1 disconnected"
6
7 required_result 1 <<EOF
8 Number of nodes:3
9 pnn:0 192.168.20.41    OK (THIS NODE)
10 pnn:1 192.168.20.42    DISCONNECTED|INACTIVE
11 pnn:2 192.168.20.43    OK
12 Number of nodes:3
13 pnn:0 192.168.20.41    OK
14 pnn:1 192.168.20.42    DISCONNECTED|INACTIVE
15 pnn:2 192.168.20.43    OK (THIS NODE)
16 EOF
17
18 simple_test -n all all <<EOF
19 NODEMAP
20 0       192.168.20.41   0x0
21 1       192.168.20.42   0x1
22 2       192.168.20.43   0x0     CURRENT RECMASTER
23
24 IFACES
25 :Name:LinkStatus:References:
26 :eth2:1:2:
27 :eth1:1:4:
28
29 VNNMAP
30 654321
31 0
32 1
33 2
34 EOF