~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/suite/rpl/t/rpl_ssl1.test

  • Committer: Grant Limberg
  • Date: 2008-08-12 21:13:01 UTC
  • mto: (322.1.1 codestyle)
  • mto: This revision was merged to the branch mainline in revision 324.
  • Revision ID: grant@glsoftware.net-20080812211301-ym3wsowelkgp16s2
renamed all instances of MYSQL_ to DRIZZLE_

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
 
32
32
#showing that replication could work with ssl params
33
33
stop slave;
34
 
--replace_result $MYSQL_TEST_DIR MYSQL_TEST_DIR
35
 
eval change master to master_ssl=1 , master_ssl_ca ='$MYSQL_TEST_DIR/std_data/cacert.pem', master_ssl_cert='$MYSQL_TEST_DIR/std_data/client-cert.pem', master_ssl_key='$MYSQL_TEST_DIR/std_data/client-key.pem';
 
34
--replace_result $DRIZZLE_TEST_DIR DRIZZLE_TEST_DIR
 
35
eval change master to master_ssl=1 , master_ssl_ca ='$DRIZZLE_TEST_DIR/std_data/cacert.pem', master_ssl_cert='$DRIZZLE_TEST_DIR/std_data/client-cert.pem', master_ssl_key='$DRIZZLE_TEST_DIR/std_data/client-key.pem';
36
36
start slave;
37
37
 
38
38
#avoiding unneeded sleeps
45
45
select * from t1;
46
46
 
47
47
#checking show slave status
48
 
--replace_result $MYSQL_TEST_DIR MYSQL_TEST_DIR $MASTER_MYPORT MASTER_MYPORT
 
48
--replace_result $DRIZZLE_TEST_DIR DRIZZLE_TEST_DIR $MASTER_MYPORT MASTER_MYPORT
49
49
--replace_column 1 # 6 # 7 # 8 # 9 # 10 # 11 # 16 # 22 # 23 # 33 # 35 # 36 #
50
50
query_vertical show slave status;
51
51
 
59
59
save_master_pos;
60
60
connection slave;
61
61
sync_with_master;
62
 
--replace_result $MYSQL_TEST_DIR MYSQL_TEST_DIR $MASTER_MYPORT MASTER_MYPORT
 
62
--replace_result $DRIZZLE_TEST_DIR DRIZZLE_TEST_DIR $MASTER_MYPORT MASTER_MYPORT
63
63
--replace_column 1 # 6 # 7 # 8 # 9 # 10 # 11 # 16 # 22 # 23 # 33 # 35 # 36 #
64
64
query_vertical show slave status;
65
65
 
68
68
# Start replication with ssl_verify_server_cert turned on
69
69
connection slave;
70
70
stop slave;
71
 
--replace_result $MYSQL_TEST_DIR MYSQL_TEST_DIR
 
71
--replace_result $DRIZZLE_TEST_DIR DRIZZLE_TEST_DIR
72
72
eval change master to
73
73
 master_host="localhost",
74
74
 master_ssl=1 ,
75
 
 master_ssl_ca ='$MYSQL_TEST_DIR/std_data/cacert.pem',
76
 
 master_ssl_cert='$MYSQL_TEST_DIR/std_data/client-cert.pem',
77
 
 master_ssl_key='$MYSQL_TEST_DIR/std_data/client-key.pem',
 
75
 master_ssl_ca ='$DRIZZLE_TEST_DIR/std_data/cacert.pem',
 
76
 master_ssl_cert='$DRIZZLE_TEST_DIR/std_data/client-cert.pem',
 
77
 master_ssl_key='$DRIZZLE_TEST_DIR/std_data/client-key.pem',
78
78
 master_ssl_verify_server_cert=1;
79
79
start slave;
80
80
 
89
89
select * from t1;
90
90
 
91
91
#checking show slave status
92
 
--replace_result $MYSQL_TEST_DIR MYSQL_TEST_DIR $MASTER_MYPORT MASTER_MYPORT
 
92
--replace_result $DRIZZLE_TEST_DIR DRIZZLE_TEST_DIR $MASTER_MYPORT MASTER_MYPORT
93
93
--replace_column 1 # 6 # 7 # 8 # 9 # 10 # 11 # 16 # 22 # 23 # 33 # 35 # 36 #
94
94
query_vertical show slave status;
95
95