stubbed out get_instance_nw_info for compute_test
This commit is contained in:
@@ -339,6 +339,7 @@ class ComputeTestCase(test.TestCase):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
self.stubs.Set(self.compute.driver, 'finish_resize', fake)
|
self.stubs.Set(self.compute.driver, 'finish_resize', fake)
|
||||||
|
self.stubs.Set(self.compute.network_api, 'get_instance_nw_info', fake)
|
||||||
context = self.context.elevated()
|
context = self.context.elevated()
|
||||||
instance_id = self._create_instance()
|
instance_id = self._create_instance()
|
||||||
self.compute.prep_resize(context, instance_id, 1)
|
self.compute.prep_resize(context, instance_id, 1)
|
||||||
|
|||||||
Reference in New Issue
Block a user