summaryrefslogtreecommitdiffstats
path: root/nova/tests
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2013-01-12 09:12:00 +0000
committerGerrit Code Review <review@openstack.org>2013-01-12 09:12:00 +0000
commit0d7c208abc4d55c2aabc2af4499cf65e978a6ca4 (patch)
treea3db6e2e49ec57421a6e8cb53b987ab675bc3236 /nova/tests
parent4f9d721de3fa0851497afb92c99aa06fce2ce453 (diff)
parentf5a94c7c2cdf090659689fb3194e7e045a1ea2d4 (diff)
Merge "Handle waiting for conductor in nova.service."
Diffstat (limited to 'nova/tests')
-rw-r--r--nova/tests/compute/test_compute.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/nova/tests/compute/test_compute.py b/nova/tests/compute/test_compute.py
index 23df703be..2239e243a 100644
--- a/nova/tests/compute/test_compute.py
+++ b/nova/tests/compute/test_compute.py
@@ -3175,8 +3175,8 @@ class ComputeTestCase(BaseTestCase):
def _do_mock_calls(defer_iptables_apply):
self.compute.driver.init_host(host=our_host)
context.get_admin_context().AndReturn(fake_context)
- self.compute._get_instances_at_startup(fake_context).AndReturn(
- startup_instances)
+ self.compute.conductor_api.instance_get_all_by_host(
+ fake_context, our_host).AndReturn(startup_instances)
if defer_iptables_apply:
self.compute.driver.filter_defer_apply_on()
self.compute._destroy_evacuated_instances(fake_context)
@@ -3193,8 +3193,8 @@ class ComputeTestCase(BaseTestCase):
'filter_defer_apply_on')
self.mox.StubOutWithMock(self.compute.driver,
'filter_defer_apply_off')
- self.mox.StubOutWithMock(self.compute,
- '_get_instances_at_startup')
+ self.mox.StubOutWithMock(self.compute.conductor_api,
+ 'instance_get_all_by_host')
self.mox.StubOutWithMock(context, 'get_admin_context')
self.mox.StubOutWithMock(self.compute,
'_destroy_evacuated_instances')