How to use the replicate.test.cleanup 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_log_file.py View on Github external
def cleanup(self):
        # Kill servers that are only used in this test
        kill_list = ['rep_slave_log']
        return (replicate.test.cleanup(self) and
                self.kill_server_list(kill_list))
github mysql / mysql-utilities / mysql-test / suite / replication / t / export_rpl_parameters.py View on Github external
def cleanup(self):
        try:
            os.unlink(_RPL_FILE)
        except OSError:
            pass
        return replicate.test.cleanup(self)
github mysql / mysql-utilities / mysql-test / suite / replication / t / replicate_errors.py View on Github external
def cleanup(self):
        if self.server3:
            self.servers.stop_server(self.server3)
            self.servers.remove_server(self.server3.role)
            self.server3 = None
        return replicate.test.cleanup(self)
github dannykopping / mysql-utilities / mysql-test / suite / replication / t / replicate_errors.py View on Github external
def cleanup(self):
        if self.server3:
            res = self.servers.stop_server(self.server3)
            self.servers.remove_server(self.server3.role)
            self.server3 = None
        return replicate.test.cleanup(self)

replicate

Python client for Replicate

Apache-2.0
Latest version published 17 hours ago

Package Health Score

88 / 100
Full package analysis