Mike Bayer cfbe5c5634 Ensure mysql_sql_mode is set for MySQLOpportunisticTests
The default setting for oslo.db is TRADITIONAL for mysql_sql_mode;
this is set up in oslo_db/options.py as well as
in EngineFacade; however, the provisioning system currently does not
use these options or EngineFacade, and the default for
mysql_sql_mode in the base session.create_engine() is None.
For a MySQL/MariaDB database where this is not established in my.cnf,
tests will run without TRADITIONAL SQL mode and some tests will fail,
including some Nova migration tests that rely upon this.

This patch resolves that as well as the warning we see
in tests regarding the empty SQL mode.

Change-Id: I3acdc0fb30327f56a76ee299cc6bade7c5a7e312
2015-01-08 11:59:47 +02:00
2014-04-18 11:33:16 +03:00
2014-09-04 16:27:00 -04:00
2014-04-30 16:55:51 +02:00
2014-04-18 11:33:16 +03:00
2014-04-18 11:33:16 +03:00
2014-09-01 11:40:08 +02:00
2014-04-18 11:33:16 +03:00
2014-04-18 11:33:16 +03:00
2014-05-29 13:46:40 +00:00

oslo.db

Database connection library for OpenStack

Description
OpenStack Common DB Code
Readme 14 MiB
Languages
Python 99.6%
Shell 0.4%