oslo.db should provide a way to reset the engine facade for testing
Bug #1548960 reported by
Sean Dague
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
oslo.db |
Fix Released
|
Medium
|
Mike Bayer |
Bug Description
When attempting to write general purpose tests in the embedded unit / functional test suites for Nova, we run into an issue that once the engine facade is initialized, there is no ability to reset it. That means all future tests are using the sqlite connection built by our main Database fixture.
This prohibits using the MySQLOportunistic test mixin in a generic way (outside the very specific database migration low level test). There are a number of bugs that require MySQL behavior to be reproduced, so we'd like to have a way to reset() engine facade connections in these cases.
Changed in oslo.db: | |
assignee: | nobody → Roman Podoliaka (rpodolyaka) |
status: | New → Confirmed |
importance: | Undecided → Medium |
Changed in oslo.db: | |
assignee: | Roman Podoliaka (rpodolyaka) → Mike Bayer (zzzeek) |
Changed in oslo.db: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Patch proposed: https:/ /review. openstack. org/343126