]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Use PyMySQL in MySQL related functional/fullstack tests
authorCedric Brandily <zzelle@gmail.com>
Wed, 10 Jun 2015 20:35:11 +0000 (22:35 +0200)
committerCedric Brandily <zzelle@gmail.com>
Mon, 15 Jun 2015 09:17:47 +0000 (11:17 +0200)
commit278a5fce29504c43d669feed210f7b3627616e22
tree0cabd3c265eb276b7c021a6db7d5850cf178f7ea
parent87cb6cb0adf32194638dcd0800fb1ffea35f40c9
Use PyMySQL in MySQL related functional/fullstack tests

mysql-python driver has been replaced by PyMySQL driver[1] in neutron
code but MySQL related functional/fullstack tests try to use
mysql-python driver because of MySQLOpportunisticTestCase[2] and tests
are skipped because mysql-python driver is no more available.

This change provides a backend implementation for mysql+pymysql, a base
base testcase MySQLTestCase[2] using mysql+pymysql implementation
(currently oslo.db provides none of them but will in the future) and
replaces MySQLOpportunisticTestCase with MySQLTestCase.

[1] I73e0fdb6eca70e7d029a40a2f6f17a7c0797a21d
[2] neutron.tests.common.base

Closes-Bug: #1463980
Change-Id: Ic5c1d12ab75443e1cc290a7447eeb4b452b4a9dd
neutron/tests/common/base.py
neutron/tests/fullstack/base.py
neutron/tests/functional/db/test_ipam.py
neutron/tests/functional/db/test_migrations.py