ctdb-tests: Make the fake log timestamp string easy to modify
[vlendec/samba-autobuild/.git] / ctdb / tests / tool / stubby.natgwlist.009.sh
1 #!/bin/sh
2
3 . "${TEST_SCRIPTS_DIR}/unit.sh"
4
5 define_test "3 nodes, all in natgw group, 1 actual time-out"
6
7 setup_natgw <<EOF
8 192.168.20.41
9 192.168.20.42
10 192.168.20.43
11 EOF
12
13 required_result 255 <<EOF
14 ${TEST_DATE_STAMP}__LOCATION__ control timed out. reqid:1234567890 opcode:80 dstnode:0
15 ${TEST_DATE_STAMP}__LOCATION__ ctdb_control_recv failed
16 ${TEST_DATE_STAMP}__LOCATION__ ctdb_ctrl_getcapabilities_recv failed
17 ${TEST_DATE_STAMP}Unable to get capabilities from node 0
18 EOF
19
20 simple_test <<EOF
21 NODEMAP
22 0       192.168.20.41   0x0     TIMEOUT
23 1       192.168.20.42   0x0     CURRENT RECMASTER
24 2       192.168.20.43   0x0
25
26 VNNMAP
27 654321
28 0
29 1
30 2
31
32 IFACES
33 :Name:LinkStatus:References:
34 :eth2:1:2:
35 :eth1:1:4:
36 EOF