Add tests from develop

Added tests from develop. The test results need to be modified for 2.0.
This commit is contained in:
Markus Mäkelä
2017-05-26 15:40:40 +03:00
parent ad109408b5
commit d7d4ec29bb
596 changed files with 48543 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()