summaryrefslogtreecommitdiffstats
path: root/nova/tests
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2012-10-10 06:44:53 +0000
committerGerrit Code Review <review@openstack.org>2012-10-10 06:44:53 +0000
commit76596a79a3d39c9daa2e48a52298b17f06a653fc (patch)
tree4cca5cdb6a2672a0720fd8a95250f3ee9f5790a1 /nova/tests
parent450c0376e163aee4e3dc31ce20a32ae0ee5d408e (diff)
parent1b176be90fbf71a4e5ccbe0b6526a0b443d29263 (diff)
Merge "Remove cast_to_network from scheduler."
Diffstat (limited to 'nova/tests')
-rw-r--r--nova/tests/scheduler/test_scheduler.py31
1 files changed, 0 insertions, 31 deletions
diff --git a/nova/tests/scheduler/test_scheduler.py b/nova/tests/scheduler/test_scheduler.py
index af297b589..c6b2d7dd3 100644
--- a/nova/tests/scheduler/test_scheduler.py
+++ b/nova/tests/scheduler/test_scheduler.py
@@ -740,24 +740,6 @@ class SchedulerDriverModuleTestCase(test.TestCase):
driver.cast_to_compute_host(self.context, host, method,
**fake_kwargs)
- def test_cast_to_network_host(self):
- host = 'fake_host1'
- method = 'fake_method'
- fake_kwargs = {'extra_arg': 'meow'}
- queue = 'fake_queue'
-
- self.mox.StubOutWithMock(rpc, 'queue_get_for')
- self.mox.StubOutWithMock(rpc, 'cast')
-
- rpc.queue_get_for(self.context, 'network', host).AndReturn(queue)
- rpc.cast(self.context, queue,
- {'method': method,
- 'args': fake_kwargs})
-
- self.mox.ReplayAll()
- driver.cast_to_network_host(self.context, host, method,
- **fake_kwargs)
-
def test_cast_to_host_compute_topic(self):
host = 'fake_host1'
method = 'fake_method'
@@ -784,19 +766,6 @@ class SchedulerDriverModuleTestCase(test.TestCase):
driver.cast_to_host(self.context, 'volume', host, method,
**fake_kwargs)
- def test_cast_to_host_network_topic(self):
- host = 'fake_host1'
- method = 'fake_method'
- fake_kwargs = {'extra_arg': 'meow'}
-
- self.mox.StubOutWithMock(driver, 'cast_to_network_host')
- driver.cast_to_network_host(self.context, host, method,
- **fake_kwargs)
-
- self.mox.ReplayAll()
- driver.cast_to_host(self.context, 'network', host, method,
- **fake_kwargs)
-
def test_cast_to_host_unknown_topic(self):
host = 'fake_host1'
method = 'fake_method'