How to use the replicate.test.run_rpl_test 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 run_and_record_test(self, comment, options):
        """Execute the test and record the results.

        comment[in]     Comment.
        options[in]     Options for running rpl test.
        """
        res = replicate.test.run_rpl_test(self, self.server1, self.server2,
                                          self.s1_serverid, comment, options,
                                          False, 0, False)
        if not res:
            raise MUTLibError("{0}: failed".format(comment))

        self.wait_for_slave(10)

        # Record the results
        self.get_table_rows(comment)

        # Stop slave
        self.stop_slave(comment, self.server1)

        return True

replicate

Python client for Replicate

Apache-2.0
Latest version published 27 days ago

Package Health Score

85 / 100
Full package analysis