def test_io_synced_gtid(self): """Function: test_io_synced_gtid Description: Test with IO is synced with GTID. Arguments: """ master = MasterRep("Yes", 12345, None, None) slave = SlaveRep("Yes", 12345, None, None, None, relay_log=None, exe_pos=None) self.assertFalse(mysql_libs.is_rep_delay(master, slave, "IO"))
def test_sql_not_synced_gtid(self): """Function: test_sql_not_synced_gtid Description: Test with SQL is not synced with GTID. Arguments: """ master = MasterRep("Yes", 12345, None, None) slave = SlaveRep("Yes", None, None, None, 12346, relay_log=None, exe_pos=None) self.assertTrue(mysql_libs.is_rep_delay(master, slave, "SQL"))
def test_io_not_synced_non_gtid(self): """Function: test_io_not_synced_non_gtid Description: Test with IO is not synced with non-GTID. Arguments: """ master = MasterRep(None, None, "File1", 12345) slave = SlaveRep(None, None, "File1", 12346, None, relay_log=None, exe_pos=None) self.assertTrue(mysql_libs.is_rep_delay(master, slave, "IO"))
def test_sql_synced_non_gtid(self): """Function: test_sql_synced_non_gtid Description: Test with SQL is synced with non-GTID. Arguments: """ master = MasterRep(None, None, "File1", 12345) slave = SlaveRep(None, None, None, None, None, relay_log="File1", exe_pos=12345) self.assertFalse(mysql_libs.is_rep_delay(master, slave, "SQL"))