From db370c8db11d85ea59683c6f0518d2fbcb0859da Mon Sep 17 00:00:00 2001 From: Andrei Ismail Date: Sat, 20 Jun 2015 12:08:28 +0200 Subject: [PATCH] #291 Describe API for running a sysbench test harness against the ProxySQL instance --- test/proxysql_base_test.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test/proxysql_base_test.py b/test/proxysql_base_test.py index fcfe0e58f..cbc3d87aa 100644 --- a/test/proxysql_base_test.py +++ b/test/proxysql_base_test.py @@ -295,6 +295,14 @@ class ProxySQLBaseTest(TestCase): def run_sysbench_proxysql(self, threads=4, time=60, db="test", username=None, password=None, port=None): + """Runs a sysbench test with the given parameters against the given + ProxySQL instance. + + In this case, due to better encapsulation and reduced latency to + ProxySQL, we are assuming that sysbench is installed on the same + container with it. + """ + proxysql_container_id = ProxySQLBaseTest._get_proxysql_container()['Id'] username = username or ProxySQLBaseTest.PROXYSQL_RW_USERNAME password = password or ProxySQLBaseTest.PROXYSQL_RW_PASSWORD