ctdb-server: Use find_public_ip_vnn() in a couple of extra places
[samba4-gss.git] / ctdb / tests / UNIT / tool / ctdb.process-exists.003.sh
blob630702673dc0b59a57cf1551e4c8a08bde1ecd59
1 #!/bin/sh
3 . "${TEST_SCRIPTS_DIR}/unit.sh"
5 define_test "ctdbd process with multiple connections on node 0"
7 ctdb_test_check_supported_OS "Linux"
9 setup_ctdbd <<EOF
10 NODEMAP
11 0 192.168.20.41 0x0 CURRENT RECMASTER
12 1 192.168.20.42 0x0
13 2 192.168.20.43 0x0
14 EOF
16 srvid="0xaebbccdd12345678"
18 dummy_client -d INFO -s "$ctdbd_socket" -n 10 -S "$srvid" &
19 pid=$!
21 wait_until 10 $CTDB process-exists "$pid" "$srvid"
23 srvid2="0x1234567812345678"
24 required_result 1 "PID $pid with SRVID $srvid2 does not exist"
25 simple_test "$pid" "$srvid2"
27 ok "PID $pid with SRVID $srvid exists"
28 simple_test "$pid" "$srvid"
30 kill -9 $pid