add tests

This commit is contained in:
Timofey Turenko
2017-05-17 18:16:06 +03:00
committed by Markus Mäkelä
parent dbfd631fed
commit 8c6ca38a8a
594 changed files with 48376 additions and 0 deletions

27
maxscale-system-test/mxs598.py Executable file
View File

@ -0,0 +1,27 @@
#!/usr/bin/env python
###
## @file mxs598.py Regression case for MXS-598 "SSL RW Router / JDBC Exception"
## - use SSL for Maxscale client connection
## - simple transactions in the loop
import maxpython
test1 = maxpython.MaxScaleTest("mxs598.py")
print("Connecting to MaxScale")
for i in test1.maxscale.values():
i.connect("useSSL=true&requireSSL=true&verifyServerCert=false")
print("Trying 100 simple transactions on all services")
for i in range(0,100):
for x in test1.maxscale.values():
x.begin()
x.query("insert into test.t1 values (1)")
x.query("select * from test.t1")
x.commit()
print("Closing connections")
for i in test1.maxscale.values():
i.disconnect()