~jan-kneschke/mysql-proxy/packet-tracking-assertions

« back to all changes in this revision

Viewing changes to tags/mysql-proxy-0.6.1/tests/suite/base/t/bug_30867.options

  • Committer: Kay Roepke
  • Author(s): Jan Kneschke
  • Date: 2008-01-23 22:00:28 UTC
  • Revision ID: kay@mysql.com-20080123220028-hq2xqb69apa75fnx
first round on mysql-shell based on the proxy code

this is mostly a verification if the proxy-code is flexible enough to handle 
all three scenarios of: client, server and forwarding (proxy)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
--[[
 
2
    The following SQL statements need to be executed
 
3
    directly to the backend server, otherwise they will affect the
 
4
    outcome of the test
 
5
--]]
 
6
sql_execute(
 
7
    {
 
8
    'grant select,insert,update,delete on test.* to user1@localhost identified by "user"',
 
9
    'grant select,insert,update,delete on test.* to user2@localhost identified by "user"',
 
10
    'drop table if exists test.t1',
 
11
    'create table test.t1 (id int)'
 
12
    })
 
13
 
 
14
--
 
15
-- starts a fake replication system
 
16
--
 
17
simulate_replication()
 
18
 
 
19
 
 
20
local rw_splitting_options =    {
 
21
    ["proxy-backend-addresses"] = PROXY_HOST .. ':' .. PROXY_MASTER_PORT ,
 
22
    ["proxy-read-only-backend-addresses"] = PROXY_HOST .. ':' .. PROXY_SLAVE_PORT ,
 
23
    ["proxy-address"]           = PROXY_HOST .. ':' .. PROXY_PORT ,
 
24
    ["admin-address"]           = PROXY_HOST .. ':' .. ADMIN_PORT ,
 
25
    ["pid-file"]                = PROXY_PIDFILE,
 
26
    ["proxy-lua-script"]        = 'bug_30867.lua',
 
27
    }
 
28
 
 
29
--
 
30
-- starts a Proxy with r/w splitting
 
31
--
 
32
start_proxy('bug_30867', rw_splitting_options)
 
33