ctdb-tests: Adjust unit test output matching new ctdb
[metze/samba/wip.git] / ctdb / tests / tool / ctdb.getcapabilities.003.sh
1 #!/bin/sh
2
3 . "${TEST_SCRIPTS_DIR}/unit.sh"
4
5 define_test "3 nodes, 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_ctdbd <<EOF
14 NODEMAP
15 0       192.168.20.41   0x1     CURRENT RECMASTER
16 1       192.168.20.42   0x0
17 2       192.168.20.43   0x0
18 EOF
19
20 required_result 1 <<EOF
21 connect() failed, errno=2
22 Failed to connect to CTDB daemon ($ctdbd_socket)
23 Failed to detect PNN of the current node.
24 Is this node part of CTDB cluster?
25 EOF
26
27 simple_test