diff options
| author | Mark McLoughlin <markmc@redhat.com> | 2012-08-29 08:02:23 +0100 |
|---|---|---|
| committer | Mark McLoughlin <markmc@redhat.com> | 2012-08-29 20:25:34 +0100 |
| commit | b84b1c7c9dfcf91fe767dabfb449fcfe59d588ea (patch) | |
| tree | bfd8d1c0def26f7fea1cae4d3e06b1b2404a799e /nova/tests | |
| parent | edfec5ac77b8dab51c54dfc68ec3711de6191330 (diff) | |
Add version 2.0 of the scheduler RPC API
Like we did for the compute RPC API, add version 2.0 of the scheduler
API while still retaining 1.x support. This allows all services to
be updated with 2.0 support before 1.x support is removed.
Change-Id: If438d5b6f521ea4c487d1490d4b8cf6547ba5c72
Diffstat (limited to 'nova/tests')
| -rw-r--r-- | nova/tests/scheduler/test_rpcapi.py | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/nova/tests/scheduler/test_rpcapi.py b/nova/tests/scheduler/test_rpcapi.py index 95133622b..1ff278a20 100644 --- a/nova/tests/scheduler/test_rpcapi.py +++ b/nova/tests/scheduler/test_rpcapi.py @@ -67,16 +67,14 @@ class SchedulerRpcAPITestCase(test.TestCase): request_spec='fake_request_spec', admin_password='pw', injected_files='fake_injected_files', requested_networks='fake_requested_networks', - is_first_time=True, filter_properties='fake_filter_properties', - version='1.6') + is_first_time=True, filter_properties='fake_filter_properties') def test_prep_resize(self): self._test_scheduler_api('prep_resize', rpc_method='cast', instance='fake_instance', instance_type='fake_type', image='fake_image', request_spec='fake_request_spec', - filter_properties='fake_props', reservations=list('fake_res'), - version='1.5') + filter_properties='fake_props', reservations=list('fake_res')) def test_show_host_resources(self): self._test_scheduler_api('show_host_resources', rpc_method='call', @@ -86,8 +84,7 @@ 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', - version='1.7') + instance='fake_instance', dest='fake_dest') def test_update_service_capabilities(self): self._test_scheduler_api('update_service_capabilities', @@ -97,5 +94,4 @@ class SchedulerRpcAPITestCase(test.TestCase): 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') + snapshot_id="fake_snapshots", reservations=list('fake_res')) |
