ctdb-tests: Adjust unit test output matching new ctdb
[metze/samba/wip.git] / ctdb / tests / tool / ctdb.lvs.008.sh
1 #!/bin/sh
2
3 . "${TEST_SCRIPTS_DIR}/unit.sh"
4
5 define_test "3 nodes, no LVS, current disconnected"
6
7 setup_nodes <<EOF
8 192.168.20.41
9 192.168.20.42
10 192.168.20.43
11 EOF
12
13 setup_lvs <<EOF
14 EOF
15
16 setup_ctdbd <<EOF
17 NODEMAP
18 0       192.168.20.41   0x1     CURRENT RECMASTER
19 1       192.168.20.42   0x0
20 2       192.168.20.43   0x0
21 EOF
22
23 #####
24
25 required_result 1 <<EOF
26 connect() failed, errno=2
27 Failed to connect to CTDB daemon ($ctdbd_socket)
28 Failed to detect PNN of the current node.
29 Is this node part of CTDB cluster?
30 EOF
31
32 simple_test list
33
34 #####
35
36 required_result 1 <<EOF
37 connect() failed, errno=2
38 Failed to connect to CTDB daemon ($ctdbd_socket)
39 Failed to detect PNN of the current node.
40 Is this node part of CTDB cluster?
41 EOF
42
43 simple_test master
44
45 #####
46
47 required_result 1 <<EOF
48 connect() failed, errno=2
49 Failed to connect to CTDB daemon ($ctdbd_socket)
50 Failed to detect PNN of the current node.
51 Is this node part of CTDB cluster?
52 EOF
53
54 simple_test list
55
56 #####
57
58 required_result 1 <<EOF
59 connect() failed, errno=2
60 Failed to connect to CTDB daemon ($ctdbd_socket)
61 Failed to detect PNN of the current node.
62 Is this node part of CTDB cluster?
63 EOF
64
65 simple_test status