summaryrefslogtreecommitdiffstats
path: root/nova/tests
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2012-08-06 23:44:52 +0000
committerGerrit Code Review <review@openstack.org>2012-08-06 23:44:52 +0000
commit91f2ee518ad8e7241dd7eca183ce2107729a01dc (patch)
tree86ad868699ee14b2625b854791f7519944ef2d99 /nova/tests
parentf7fbc678ab00ad598e62905621595eaacbc91c81 (diff)
parent0cee422e2e452d31a6aad1644cf38c2a669e99cb (diff)
Merge "Use explicit arguments in compute manager run_instance."
Diffstat (limited to 'nova/tests')
-rw-r--r--nova/tests/compute/test_compute.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/nova/tests/compute/test_compute.py b/nova/tests/compute/test_compute.py
index 5d41cd7c6..443a25e6c 100644
--- a/nova/tests/compute/test_compute.py
+++ b/nova/tests/compute/test_compute.py
@@ -4459,7 +4459,7 @@ class ComputeReschedulingTestCase(BaseTestCase):
return functools.partial(self.compute._reschedule, self.context, uuid,
requested_networks, admin_password, injected_files,
- is_first_time)
+ is_first_time, request_spec=None, filter_properties={})
def test_reschedule_no_filter_properties(self):
"""no filter_properties will disable re-scheduling"""
@@ -4507,7 +4507,8 @@ class ComputeReschedulingExceptionTestCase(BaseTestCase):
"""Spawn fails and re-scheduling is disabled."""
# this won't be re-scheduled:
self.assertRaises(ThatsNoOrdinaryRabbitException,
- self.compute._run_instance, self.context, self.instance_uuid)
+ self.compute._run_instance, self.context, self.instance_uuid,
+ None, {}, None, None, None, None)
def test_exception_with_rescheduling_enabled(self):
"""Spawn fails and re-scheduling is enabled. Original exception
@@ -4535,4 +4536,5 @@ class ComputeReschedulingExceptionTestCase(BaseTestCase):
# the original exception should now be raised:
self.assertRaises(ThatsNoOrdinaryRabbitException,
- self.compute._run_instance, self.context, self.instance_uuid)
+ self.compute._run_instance, self.context, self.instance_uuid,
+ None, {}, None, None, None, None)