How to use the replicate.test.check_prerequisites function in replicate

To help you get started, we’ve selected a few replicate examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github mysql / mysql-utilities / mysql-test / suite / replication / t / replicate_parameters.py View on Github external
def check_prerequisites(self):
        return replicate.test.check_prerequisites(self)
github mysql / mysql-utilities / mysql-test / suite / replication / t / export_rpl_errors.py View on Github external
def check_prerequisites(self):
        # Check MySQL server version - Must be 5.1.0 or higher
        if not self.servers.get_server(0).check_version_compat(5, 1, 0):
            raise MUTLibError("Test requires server version 5.1.0 or higher")
        return replicate.test.check_prerequisites(self)
github mysql / mysql-utilities / mysql-test / suite / replication / t / check_rpl.py View on Github external
def check_prerequisites(self):
        if self.servers.get_server(0).check_version_compat(5, 6, 5):
            raise MUTLibError("Test requires server version prior to 5.6.5")
        return replicate.test.check_prerequisites(self)
github mysql / mysql-utilities / mysql-test / suite / replication / t / export_rpl_parameters.py View on Github external
def check_prerequisites(self):
        # Check MySQL server version - Must be 5.1.0 or higher
        if not self.servers.get_server(0).check_version_compat(5, 1, 0):
            raise MUTLibError("Test requires server version 5.1.0 or higher")
        self.check_gtid_unsafe()
        return replicate.test.check_prerequisites(self)
github mysql / mysql-utilities / mysql-test / suite / replication / t / export_rpl.py View on Github external
def check_prerequisites(self):
        # Check MySQL server version - Must be 5.1.0 or higher
        if not self.servers.get_server(0).check_version_compat(5, 1, 0):
            raise MUTLibError("Test requires server version 5.1.0 or higher")
        self.check_gtid_unsafe()
        return replicate.test.check_prerequisites(self)
github mysql / mysql-utilities / mysql-test / suite / replication / t / replicate_errors.py View on Github external
def check_prerequisites(self):
        return replicate.test.check_prerequisites(self)
github mysql / mysql-utilities / mysql-test / suite / replication / t / check_rpl_table.py View on Github external
def check_prerequisites(self):
        if not self.servers.get_server(0).check_version_compat(5, 6, 5):
            raise MUTLibError("Test requires server version 5.6.5 or later.")
        return replicate.test.check_prerequisites(self)

replicate

Python client for Replicate

Apache-2.0
Latest version published 25 days ago

Package Health Score

88 / 100
Full package analysis