コード例 #1
0
class MysqlTest(Test):
    """
    Simple mysql sanity test. This test makes sure that the mysql service
    is successfully started, can be connected from other hosts, the result
    returned by a select query matches the records inserted into the table.
    """
    def __init__(self, test_context):
        super(MysqlTest, self).__init__(test_context=test_context)
        self.mysql = MysqlService(test_context)
        self.mysql_perf = MysqlPerformanceService(test_context, self.mysql)

    def test(self):
        self.mysql_perf.run()

    def setUp(self):
        self.mysql.start()
コード例 #2
0
 def __init__(self, test_context):
     super(MysqlTest, self).__init__(test_context=test_context)
     self.mysql = MysqlService(test_context)
     self.mysql_perf = MysqlPerformanceService(test_context, self.mysql)