Mike Bayer 0265aa4e01 Repair string-based disconnect filters for MySQL, DB2
The two regexp-based filters in exc_filters.py->_is_db_connection_error()
were both incorrectly formed.  The tests for these filters would pass
because the fixture also set the is_disconnect flag to True, which
normally would be set by SQLAlchemy, and therefore the
_raise_operational_errors_directly_filter() or possibly
the _raise_for_remaining_DBAPIError() filters would catch this,
view the is_disconnect flag as True, and promote to a DBConnectionError.
However, the _is_db_connection_error() filters are intended to
work independently of whether this flag is set; so two new tests
are added which unset the flag, and ensure that the exception messages
as given are caught here.

Change-Id: I37ddd669b89669730ae1ff07c7bc7a6ba5705f67
2014-12-12 12:22:37 +02:00
2014-09-04 16:27:00 -04:00
2014-09-09 19:13:03 +03: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 12:51:26 +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-06-06 12:47:17 +03:00
2014-09-04 16:27:00 -04:00
2014-05-29 13:46:40 +00:00
2014-10-31 20:39:59 +00:00

Overview

oslo.db library

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