ctdb-server: Use find_public_ip_vnn() in a couple of extra places
[samba4-gss.git] / ctdb / tests / UNIT / tool / ctdb.unban.002.sh
blobb65143d4a3b5a998945fee816ddec06b4b7b5ac7
1 #!/bin/sh
3 . "${TEST_SCRIPTS_DIR}/unit.sh"
5 define_test "ban, unban node 1"
7 setup_ctdbd <<EOF
8 NODEMAP
9 0 192.168.20.41 0x0 CURRENT RECMASTER
10 1 192.168.20.42 0x0
11 2 192.168.20.43 0x0
12 EOF
14 ok_null
15 simple_test_other ban 60 -n 1
17 required_result 8 <<EOF
18 Number of nodes:3
19 pnn:0 192.168.20.41 OK (THIS NODE)
20 pnn:1 192.168.20.42 BANNED|INACTIVE
21 pnn:2 192.168.20.43 OK
22 EOF
23 simple_test_other nodestatus all
25 ok_null
26 simple_test_other unban -n 1
28 ok <<EOF
29 Number of nodes:3
30 pnn:0 192.168.20.41 OK (THIS NODE)
31 pnn:1 192.168.20.42 OK
32 pnn:2 192.168.20.43 OK
33 EOF
34 simple_test_other nodestatus all