s3:script/tests: add a test for VSS write behaviour
[Samba.git] / ctdb / tests / tool / ctdb.nodestatus.006.sh
blobec189fc4690e0e0b7e3aeb54da6b27519d0fabb1
1 #!/bin/sh
3 . "${TEST_SCRIPTS_DIR}/unit.sh"
5 define_test "current, 3 nodes, node 0 disabled+stopped, various queries"
7 setup_ctdbd <<EOF
8 NODEMAP
9 0 192.168.20.41 0x24
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 36 <<EOF
20 pnn:0 192.168.20.41 DISABLED|STOPPED|INACTIVE
21 EOF
22 simple_test 0
24 required_result 36 <<EOF
25 |Node|IP|Disconnected|Banned|Disabled|Unhealthy|Stopped|Inactive|PartiallyOnline|ThisNode|
26 |0|192.168.20.41|0|0|1|0|1|1|0|N|
27 EOF
28 simple_test -X 0
30 required_result 36 <<EOF
31 pnn:0 192.168.20.41 DISABLED|STOPPED|INACTIVE
32 pnn:1 192.168.20.42 OK
33 EOF
34 simple_test 0,1
36 required_result 0 <<EOF
37 pnn:1 192.168.20.42 OK
38 pnn:2 192.168.20.43 OK (THIS NODE)
39 EOF
40 simple_test 1,2