summaryrefslogtreecommitdiffstats
path: root/nova/tests
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2012-08-31 16:20:33 +0000
committerGerrit Code Review <review@openstack.org>2012-08-31 16:20:33 +0000
commit0ea7a446fa861e22799f6a42d9ed6b89c8be2543 (patch)
tree6e6360a8e9c20e4c52f9b25d2a8786bb13ead463 /nova/tests
parent479a77ce56c935d10ae38dc30748ca9a546266ad (diff)
parent8cf635b08a57a9e3be2bef980ef38cf857b6525a (diff)
Merge "Stop using scheduler RPC API magic"
Diffstat (limited to 'nova/tests')
-rw-r--r--nova/tests/scheduler/test_multi_scheduler.py5
-rw-r--r--nova/tests/scheduler/test_rpcapi.py10
2 files changed, 9 insertions, 6 deletions
diff --git a/nova/tests/scheduler/test_multi_scheduler.py b/nova/tests/scheduler/test_multi_scheduler.py
index fd79fffb3..6fce5bc35 100644
--- a/nova/tests/scheduler/test_multi_scheduler.py
+++ b/nova/tests/scheduler/test_multi_scheduler.py
@@ -46,9 +46,6 @@ class FakeVolumeScheduler(driver.Scheduler):
super(FakeVolumeScheduler, self).__init__()
self.is_update_caps_called = False
- def schedule_create_volume(self, *args, **kwargs):
- pass
-
def schedule_create_volumes(self, *args, **kwargs):
pass
@@ -97,7 +94,7 @@ class MultiDriverTestCase(test_scheduler.SchedulerTestCase):
#no compute methods are proxied at this time
test_methods = {compute_driver: [],
- volume_driver: ['create_volume', 'create_volumes']}
+ volume_driver: ['create_volumes']}
for driver, methods in test_methods.iteritems():
for method in methods:
diff --git a/nova/tests/scheduler/test_rpcapi.py b/nova/tests/scheduler/test_rpcapi.py
index a2fee64b2..95133622b 100644
--- a/nova/tests/scheduler/test_rpcapi.py
+++ b/nova/tests/scheduler/test_rpcapi.py
@@ -86,10 +86,16 @@ class SchedulerRpcAPITestCase(test.TestCase):
self._test_scheduler_api('live_migration', rpc_method='call',
block_migration='fake_block_migration',
disk_over_commit='fake_disk_over_commit',
- instance='fake_instance', dest='fake_dest', topic='fake_topic',
- version='1.3')
+ instance='fake_instance', dest='fake_dest',
+ version='1.7')
def test_update_service_capabilities(self):
self._test_scheduler_api('update_service_capabilities',
rpc_method='fanout_cast', service_name='fake_name',
host='fake_host', capabilities='fake_capabilities')
+
+ def test_create_volume(self):
+ self._test_scheduler_api('create_volume',
+ rpc_method='cast', volume_id="fake_volume",
+ snapshot_id="fake_snapshots", reservations=list('fake_res'),
+ version='1.7')