Go to file
Mike Bayer 4e19870fd4 Reorganize DbTestCase to use provisioning completely
This change is the first part in a series of changes
that will allow for full flexibility in database usage
during tests.  The first step is to add more facility
to the oslo.db.sqlalchemy.provision system, implementing
a dispatch system that allows flexibility in creation
and dropping of databases, as well as moving the awareness
of the "openstack_citest" convention into provisioning.
The OpportunisticFixture and OpportunisticTestCase now
fold into DbFixture and DbTestCase, which defers in a simple
way to provision.ProvisionedDatabase for all connectivity.
ProvisionedDatabase in turn decides based on the given
environment as to how an engine should be provisioned
for a given test.

Control of database connectivity remains via the
OS_TEST_DBAPI_ADMIN_CONNECTION environment variable.  When not
set, connectivity defaults to sqlite://, plus those backends
found to be available using "opportunistic" naming conventions.
When the variable is present, it provides a semicolon-delimited
list of URLs, and only those URLs will be used for initial
connectivity.

Future changes will allow provisioning to hold onto a single
database engine per test run, as well as allow a single
test class to run in multiple backend scenarios (e.g. one test
against many different backends).

Change-Id: Ifc02505c4c8ebd4a1ca56e14f76c0989576875c3
Partial-Bug: #1339206
2014-10-22 13:02:20 -04: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
Description
RETIRED, further work has moved to Debian project infrastructure
Readme 1.5 MiB