Run database tests within long-lived schemas and transactionalized containers

Registered by Mike Bayer

This feature will overhaul the system by which oslo.db provides connectivity and fixture support for database-enabled tests. The new features will allow tests to be run against any number of database backends, to allow "opportunistic" backend URLs to be specified on a per-environment basis, as well as to allow any number of successive tests to run against a fixed schema that is maintained across tests without the need to rebuild the schema on each test.

The key aspects of the feature include that tests run within transactions, that a system is devised which can maintain the scope of a set of schema objects as well as anonymously-generated databases across tests, and that the opportunistic test feature can make use of test scenarios.

Blueprint information

Status:
Started
Approver:
Doug Hellmann
Priority:
Medium
Drafter:
Mike Bayer
Direction:
Needs approval
Assignee:
Mike Bayer
Definition:
Approved
Series goal:
None
Implementation:
Slow progress
Milestone target:
milestone icon 1.2.0
Started by
Mike Bayer

Related branches

Sprints

Whiteboard

Gerrit topic: https://review.openstack.org/#q,topic:bp/long-lived-transactionalized-db-fixtures,n,z

Addressed by: https://review.openstack.org/117335
    Add long-lived-transactionalized-db-fixtures

(?)

Work Items

Work items:
https://review.openstack.org/#/c/110170/ - Reorganize DbTestCase to use provisioning completely: DONE
https://review.openstack.org/#/c/120870/ - Organize provisioning to use testresources: INPROGRESS

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.