Change I468048c01455d9dfe12004736c181806dc218e37 in oslo.db means that
the table returned from 'oslo_db.utils.get_table' is no longer bound to
a 'Connection' or 'Engine'. Get out ahead of this breaking change by
creating out own 'Connection' as part of the test. Note that we use
'Connection.execute' instead of 'Engine.execute' as the latter is
deprecated in SQLAlchemy 1.4 for removal in 2.0.
Related-Bug: #1939716
Change-Id: I957d2a9d7c875120bed0022ce1e953b2ec9f97cd
Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
The various test cases and mixins in 'oslo_db.sqlalchemy.test_base' have
been deprecated since oslo.db 4.34.0 (March 2018). Remove use of these.
Change-Id: I6618366e6464d569a86fb027919be2e1825e438c
Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
* Functional tests now use alembic instead of sqlalchmey-migrate
to build and destroy test database.
* All tests now use a file-based sqlite db as opposed to an in-memory
database.
Partially-Implements: blueprint alembic-migrations
Change-Id: I77921366a05ba6f9841143af89c1f4059d8454c6
Depends-On: Ie8594ff339a13bf190aefa308f54e97ee20ecfa2