File tree 2 files changed +23
-2
lines changed
2 files changed +23
-2
lines changed Original file line number Diff line number Diff line change @@ -15,3 +15,16 @@ services:
15
15
ports :
16
16
- 3307:3307
17
17
command : mysqld --log-bin=mysql-bin.log --server-id 1 --binlog-format=row --gtid_mode=on --enforce-gtid-consistency=on --log_slave_updates -P 3307
18
+
19
+ mariadb-10.6 :
20
+ image : mariadb:10.6
21
+ environment :
22
+ MARIADB_ALLOW_EMPTY_ROOT_PASSWORD : 1
23
+ ports :
24
+ - " 3308:3306"
25
+ command : |
26
+ --server-id=1
27
+ --default-authentication-plugin=mysql_native_password
28
+ --log-bin=master-bin
29
+ --binlog-format=row
30
+ --log-slave-updates=on
Original file line number Diff line number Diff line change @@ -1005,8 +1005,16 @@ def test_parsing(self):
1005
1005
class TestMariadbBinlogStreaReader (base .PyMySQLReplicationTestCase ):
1006
1006
def setUp (self ):
1007
1007
super (TestMariadbBinlogStreaReader ,self ).setUp ()
1008
- if not self .isMariaDB ():
1009
- raise unittest .SkipTest ("Skipping test: Not a MariaDB instance" )
1008
+ self .stream .close ()
1009
+ maria_db = copy .copy (self .database )
1010
+ maria_db ["db" ] = None
1011
+ maria_db ["port" ] = 3308
1012
+ self .connect_conn_control (maria_db )
1013
+ self .execute ("DROP DATABASE IF EXISTS pymysqlreplication_test" )
1014
+ self .execute ("CREATE DATABASE pymysqlreplication_test" )
1015
+ self .isMariaDB ()
1016
+ self .stream = BinLogStreamReader (maria_db , server_id = 1024 ,
1017
+ ignored_events = self .ignoredEvents ())
1010
1018
1011
1019
def test_gtid_list_event (self ):
1012
1020
event = self .stream .fetchone ()
You can’t perform that action at this time.
0 commit comments