3 Commits

Author SHA1 Message Date
Jeremy Stanley
6b7d6f68a8 Switch from MySQL-python to PyMySQL
As discussed in the Liberty Design Summit "Moving apps to Python 3"
cross-project workshop, the way forward in the near future is to
switch to the pure-python PyMySQL library as a default.

https://etherpad.openstack.org/p/liberty-cross-project-python3

Change-Id: I058419b25f55dcfd93af522aa1f5f61b8f06407e
2015-05-20 01:03:58 +00:00
Joe H. Rahme
cfc0daae21 Creates one database per sql test
A lot of sql tests are failing when running concurrently on the same
database. This patch drastically reduces the number of errors found
by creating one database for each test.

Related to blueprint sql-unit-tests-on-real-backend

Change-Id: I5a5f3a9f141c45a6c3c645e3b18089f442d29138
2014-10-07 16:40:59 +02:00
Joe H. Rahme
1278d067ef Run unit tests against MySQL
- Creates a new tox environment for testing against mysql
- Adds a script set-test-env-mysql.sh to set up mysql
- Adds a new file `functions.sh` for common shell functions
- Creates a new DB manager for tests
- Adds a new scenario for mysql in the MixinTestsWithBackendScenarios

Related to blueprint sql-unit-tests-on-real-backend
Co-Authored-By: Ala Rezmerita <ala.rezmerita@cloudwatt.com>

Change-Id: I2c7378c79b1a0bffae5b2489b04c60e509f62f85
2014-10-01 10:26:27 +02:00