Trove should have unit tests isolated from fake-mode int-tests
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack DBaaS (Trove) |
Confirmed
|
Medium
|
Unassigned |
Bug Description
Trove should have unit tests isolated from fake-mode int-tests.
Due to use of common sqllite backend during tox testing unit tests are not failing because sqlite contains required data, such as:
datastore and its versions.
This issue cause next bugs:
[1] https:/
[2] https:/
Steps to fix:
1. Propose method that cleans up backend right after fake-mode int tests are finished. ( the opposite method to util.init_db() )
2. For those tests that are requiring datastore and versions - use common parent class inherited from testtools.TestCase and new class that will hadle datastore registration.
Clarification:
For some reasons (unkonw) int tests attribute was used for unit tests, that why tests at [1] are failing.
After further investigation:
17 tests are not isolated and sharing same backend data:
trove/
trove/
trove/
trove/
trove/
trove/
trove/
trove/
description: | updated |
description: | updated |
description: | updated |
description: | updated |
description: | updated |
Changed in trove: | |
status: | In Progress → Incomplete |
milestone: | kilo-1 → none |
Changed in trove: | |
assignee: | Denis M. (dmakogon) → nobody |
status: | Incomplete → Confirmed |
Fix proposed to branch: master /review. openstack. org/125060
Review: https:/