s3:script/tests: add a test for VSS write behaviour
[Samba.git] / ctdb / tests / tool / ctdb.lvs.006.sh
blob2f9859a6be858cc26bd5ef8f6916db32b710e196
1 #!/bin/sh
3 . "${TEST_SCRIPTS_DIR}/unit.sh"
5 define_test "3 nodes, all LVS, nodes 0,1 disabled, node 2 unhealthy"
7 setup_lvs <<EOF
8 192.168.20.41
9 192.168.20.42
10 192.168.20.43
11 EOF
13 setup_ctdbd <<EOF
14 NODEMAP
15 0 192.168.20.41 0x4 CURRENT RECMASTER
16 1 192.168.20.42 0x4
17 2 192.168.20.43 0x2
18 EOF
20 #####
22 required_result 0 <<EOF
24 EOF
26 simple_test master
28 #####
30 required_result 0 <<EOF
31 2 192.168.20.43
32 EOF
34 simple_test list
36 #####
38 required_result 0 <<EOF
39 pnn:0 192.168.20.41 DISABLED (THIS NODE)
40 pnn:1 192.168.20.42 DISABLED
41 pnn:2 192.168.20.43 UNHEALTHY
42 EOF
44 simple_test status