From 0723ba9c55c7f87d987e83b9ef389450fbacee8f Mon Sep 17 00:00:00 2001 From: Chris Behrens Date: Fri, 9 Nov 2012 10:12:03 +0000 Subject: [PATCH] Remove generic topic support from filter scheduler The only topic that we do scheduling on is 'compute', so clean up all of the cases where we were checking this. Change-Id: If16eaf48a89342ca99a741c25679389e706e0e48 --- nova/tests/scheduler/test_least_cost.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/nova/tests/scheduler/test_least_cost.py b/nova/tests/scheduler/test_least_cost.py index 64cda0b2..e64cc9e8 100644 --- a/nova/tests/scheduler/test_least_cost.py +++ b/nova/tests/scheduler/test_least_cost.py @@ -40,8 +40,7 @@ class LeastCostTestCase(test.TestCase): ctxt = context.get_admin_context() fakes.mox_host_manager_db_calls(self.mox, ctxt) self.mox.ReplayAll() - host_states = self.host_manager.get_all_host_states(ctxt, - 'compute') + host_states = self.host_manager.get_all_host_states(ctxt) self.mox.VerifyAll() self.mox.ResetAll() return host_states @@ -96,7 +95,7 @@ class TestWeightedHost(test.TestCase): self.assertDictMatch(host.to_dict(), expected) def test_dict_conversion_with_host_state(self): - host_state = host_manager.HostState('somehost', 'sometopic') + host_state = host_manager.HostState('somehost') host = least_cost.WeightedHost('someweight', host_state) expected = {'weight': 'someweight', 'host': 'somehost'}