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:
@@ -40,8 +40,7 @@ class LeastCostTestCase(test.TestCase):
|
|||||||
ctxt = context.get_admin_context()
|
ctxt = context.get_admin_context()
|
||||||
fakes.mox_host_manager_db_calls(self.mox, ctxt)
|
fakes.mox_host_manager_db_calls(self.mox, ctxt)
|
||||||
self.mox.ReplayAll()
|
self.mox.ReplayAll()
|
||||||
host_states = self.host_manager.get_all_host_states(ctxt,
|
host_states = self.host_manager.get_all_host_states(ctxt)
|
||||||
'compute')
|
|
||||||
self.mox.VerifyAll()
|
self.mox.VerifyAll()
|
||||||
self.mox.ResetAll()
|
self.mox.ResetAll()
|
||||||
return host_states
|
return host_states
|
||||||
@@ -96,7 +95,7 @@ class TestWeightedHost(test.TestCase):
|
|||||||
self.assertDictMatch(host.to_dict(), expected)
|
self.assertDictMatch(host.to_dict(), expected)
|
||||||
|
|
||||||
def test_dict_conversion_with_host_state(self):
|
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)
|
host = least_cost.WeightedHost('someweight', host_state)
|
||||||
expected = {'weight': 'someweight',
|
expected = {'weight': 'someweight',
|
||||||
'host': 'somehost'}
|
'host': 'somehost'}
|
||||||
|
|||||||
Reference in New Issue
Block a user