Bases: fixtures.fixture.Fixture
Basic database fixture.
Allows to run tests on various db backends, such as SQLite, MySQL and PostgreSQL. By default use sqlite backend. To override default backend uri set env variable OS_TEST_DBAPI_CONNECTION with database admin credentials for specific backend.
Bases: oslotest.base.BaseTestCase
Base class for testing of DB code.
Using DbFixture. Intended to be the main database test case to use all the tests on a given backend with user defined uri. Backend specific tests should be decorated with backend_specific decorator.
Bases: oslo.db.sqlalchemy.test_base.OpportunisticFixture
Bases: oslo.db.sqlalchemy.test_base.OpportunisticTestCase
alias of MySQLOpportunisticFixture
Bases: oslo.db.sqlalchemy.test_base.DbFixture
Base fixture to use default CI databases.
The databases exist in OpenStack CI infrastructure. But for the correct functioning in local environment the databases must be created manually.
Bases: oslo.db.sqlalchemy.test_base.DbTestCase
Base test case to use default CI databases.
The subclasses of the test case are running only when openstack_citest database is available otherwise tests will be skipped.
Bases: oslo.db.sqlalchemy.test_base.OpportunisticFixture
Bases: oslo.db.sqlalchemy.test_base.OpportunisticTestCase
alias of PostgreSQLOpportunisticFixture
Decorator to skip backend specific tests on inappropriate engines.
::dialects: list of dialects names under which the test will be launched.