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
This commit is contained in:
Chris Behrens
2012-11-09 10:12:03 +00:00
parent 70fc8d8337
commit 0723ba9c55

View File

@@ -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'}