Reset volume_api before cinder cloud tests.
If tests are not run in the default order nosetests runs them in it is possible that volume_api in test_cinder_cloud.py is in a state unsuitable for testing. Reset the volume_api before each test to ensure volume_api is usable for every test run regardless of test order. Part of blueprint grizzly-testtools Change-Id: I974e9eb09cbf9f19a01ecd0f13b2664291a5609e
This commit is contained in:
parent
78c3bb8800
commit
529c89c247
@ -133,6 +133,7 @@ class CinderCloudTestCase(test.TestCase):
|
||||
self.project_id,
|
||||
is_admin=True)
|
||||
self.volume_api = volume.API()
|
||||
self.volume_api.reset_fake_api(self.context)
|
||||
|
||||
# NOTE(comstud): Make 'cast' behave like a 'call' which will
|
||||
# ensure that operations complete
|
||||
|
Loading…
Reference in New Issue
Block a user