source: vendor/current/ctdb/tests/takeover/lcp2.033.sh

Last change on this file was 988, checked in by Silvan Scherrer, 9 years ago

Samba Server: update vendor to version 4.4.3

File size: 1.1 KB
Line 
1#!/bin/sh
2
3. "${TEST_SCRIPTS_DIR}/unit.sh"
4
5define_test "12+4 IPs, 4 nodes, 2 -> 3 -> 4 healthy"
6
7export CTDB_TEST_LOGLEVEL=0
8
9set -e
10
11echo "Nodes 2, 3 disconnected -> node 2 attaches"
12
13required_result <<EOF
14130.216.30.181 2
15130.216.30.180 0
16130.216.30.179 2
17130.216.30.178 1
18130.216.30.177 0
19130.216.30.176 1
20130.216.30.175 0
21130.216.30.174 2
22130.216.30.173 1
23130.216.30.172 2
24130.216.30.171 1
25130.216.30.170 0
2610.19.99.253 2
2710.19.99.252 0
2810.19.99.251 1
2910.19.99.250 0
30EOF
31
32simple_test 0,0,0,1 <<EOF
3310.19.99.253 1
3410.19.99.252 0
3510.19.99.251 1
3610.19.99.250 0
37130.216.30.181 1
38130.216.30.180 0
39130.216.30.179 0
40130.216.30.178 1
41130.216.30.177 0
42130.216.30.176 1
43130.216.30.175 0
44130.216.30.174 1
45130.216.30.173 1
46130.216.30.172 0
47130.216.30.171 1
48130.216.30.170 0
49EOF
50
51echo "Node 3 attaches"
52
53required_result <<EOF
54130.216.30.181 2
55130.216.30.180 3
56130.216.30.179 3
57130.216.30.178 1
58130.216.30.177 0
59130.216.30.176 1
60130.216.30.175 0
61130.216.30.174 2
62130.216.30.173 3
63130.216.30.172 2
64130.216.30.171 1
65130.216.30.170 0
6610.19.99.253 2
6710.19.99.252 3
6810.19.99.251 1
6910.19.99.250 0
70EOF
71
72simple_test 0,0,0,0 <<EOF
73$_out
74EOF
Note: See TracBrowser for help on using the repository browser.