summaryrefslogtreecommitdiffstats
path: root/nova/tests
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2012-01-26 01:42:31 +0000
committerGerrit Code Review <review@openstack.org>2012-01-26 01:42:31 +0000
commit13dafc977d5ac79e3cbf2e324bb0250ed343d7a2 (patch)
tree29389f36f46b384fae4e9fb16546535d08bfa454 /nova/tests
parent18f50f538a8375968154af237cd0d47a6f82efc5 (diff)
parent78910be08b9d55b7638ec9bdd582ae5e818850e7 (diff)
Merge "Don't pass filter_properites to managers"
Diffstat (limited to 'nova/tests')
-rw-r--r--nova/tests/scheduler/test_distributed_scheduler.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/nova/tests/scheduler/test_distributed_scheduler.py b/nova/tests/scheduler/test_distributed_scheduler.py
index 426da044f..f385ef7b7 100644
--- a/nova/tests/scheduler/test_distributed_scheduler.py
+++ b/nova/tests/scheduler/test_distributed_scheduler.py
@@ -129,6 +129,8 @@ class DistributedSchedulerTestCase(test.TestCase):
return least_cost.WeightedHost(1, zone='x', blob='y')
def _fake_provision_resource_locally(*args, **kwargs):
+ # Tests that filter_properties is stripped
+ self.assertNotIn('filter_properties', kwargs)
self.locally_called = True
return 1
@@ -152,7 +154,8 @@ class DistributedSchedulerTestCase(test.TestCase):
}
fake_context = context.RequestContext('user', 'project')
- instances = sched.schedule_run_instance(fake_context, request_spec)
+ instances = sched.schedule_run_instance(fake_context, request_spec,
+ filter_properties={})
self.assertTrue(instances)
self.assertFalse(self.schedule_called)
self.assertTrue(self.from_blob_called)