2
# Copyright (c) 2008, 2009, Oracle and/or its affiliates. All rights reserved.
4
# This program is free software; you can redistribute it and/or
5
# modify it under the terms of the GNU General Public License as
6
# published by the Free Software Foundation; version 2 of the
9
# This program is distributed in the hope that it will be useful,
10
# but WITHOUT ANY WARRANTY; without even the implied warranty of
11
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
# GNU General Public License for more details.
14
# You should have received a copy of the GNU General Public License
15
# along with this program; if not, write to the Free Software
16
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
21
# * starts two backends
22
# * sets and verifies IDs in the backends
23
# * reconnects and verifies that the IDs are still in place
24
# * stop the first backend and verifies that queries against it fail
25
# * checks that new connects end up on the second backend
27
connect (conn1,127.0.0.1,root,,,$PROXY_PORT);
28
connect (conn2,127.0.0.1,root,,,$PROXY_PORT);
40
# check if we end up on the the right backend
41
connect (conn1,127.0.0.1,root,,,$PROXY_PORT);
45
# now kill the backend
49
# ... and this should fail now as the backend is gone
57
connect (conn1,127.0.0.1,root,,,$PROXY_PORT);