drsuapi.idl: fix source_dsa spelling
[samba4-gss.git] / ctdb / tests / UNIT / tool / ctdb.status.003.sh
blob67a2966ea4dfb4e629641c0e79cda9f2fc14afe4
1 #!/bin/sh
3 . "${TEST_SCRIPTS_DIR}/unit.sh"
5 define_test "all, 3 nodes, 1 unhealthy"
7 setup_ctdbd <<EOF
8 NODEMAP
9 0 192.168.20.41 0x2
10 1 192.168.20.42 0x0 CURRENT RECMASTER
11 2 192.168.20.43 0x0
13 VNNMAP
14 654321
19 IFACES
20 :Name:LinkStatus:References:
21 :eth2:1:2:
22 :eth1:1:4:
24 RUNSTATE
25 FIRST_RECOVERY
26 EOF
28 required_result 0 <<EOF
29 Number of nodes:3
30 pnn:0 192.168.20.41 UNKNOWN
31 pnn:1 192.168.20.42 OK (THIS NODE)
32 pnn:2 192.168.20.43 UNKNOWN
33 Generation:654321
34 Size:3
35 hash:0 lmaster:0
36 hash:1 lmaster:1
37 hash:2 lmaster:2
38 Recovery mode:NORMAL (0)
39 Leader:1
40 EOF
41 simple_test
43 required_result 0 <<EOF
44 |Node|IP|Disconnected|Unknown|Banned|Disabled|Unhealthy|Stopped|Inactive|PartiallyOnline|ThisNode|
45 |0|192.168.20.41|0|1|0|0|0|0|0|0|N|
46 |1|192.168.20.42|0|0|0|0|0|0|0|0|Y|
47 |2|192.168.20.43|0|1|0|0|0|0|0|0|N|
48 EOF
49 simple_test -X