How to use the replicate.test.mask_results 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_innodb.py View on Github external
raise MUTLibError("{0}: failed".format(comment))

        test_num += 1
        comment = ("Test case {0} - use pedantic to fail if innodb "
                   "different".format(test_num))
        res = self.run_test_case(self.server5, self.server2, self.s5_serverid,
                                 comment, " --pedantic", 1)
        if not res:
            raise MUTLibError("{0}: failed".format(comment))

        try:
            self.server5.exec_query("STOP SLAVE")
        except UtilError:
            raise MUTLibError("{0}: Failed to stop slave.".format(comment))

        replicate.test.mask_results(self)

        return True
github mysql / mysql-utilities / mysql-test / suite / replication / t / replicate_engines.py View on Github external
raise MUTLibError("{0}: failed".format(comment))

        test_num += 1
        comment = ("Test case {0} - use pedantic to fail if master has "
                   "different default engines".format(test_num))
        res = self.run_test_case(self.server1, self.server4, self.s1_serverid,
                                 comment, " --pedantic", 1)
        if not res:
            raise MUTLibError("{0}: failed".format(comment))

        try:
            self.server1.exec_query("STOP SLAVE")
        except UtilError:
            raise MUTLibError("{0}: Failed to stop slave.".format(comment))

        replicate.test.mask_results(self)

        # Mask out inconsistent results when run on slower machines
        self.remove_result("# status: Queueing master event to the relay log")
        self.remove_result("# error: 0:")
        self.remove_result("# Waiting for slave to synchronize with master")

        return True

replicate

Python client for Replicate

Apache-2.0
Latest version published 27 days ago

Package Health Score

88 / 100
Full package analysis