summaryrefslogtreecommitdiffstats
path: root/nova/tests
diff options
context:
space:
mode:
authorRussell Bryant <rbryant@redhat.com>2012-07-25 16:48:55 -0400
committerRussell Bryant <rbryant@redhat.com>2012-07-25 20:44:20 -0400
commitbfc335f0f43b868f75fcd9d1e148bb6fca397b83 (patch)
tree687232cf3550e6cf6f5ace1d1cc3a5ce76d5b772 /nova/tests
parent2fed9559934fb44eed394f12aba8c8ff0dcdb60c (diff)
Send a full instance via rpc for confirm_resize.
Change the confirm_resize method of the compute rpc API to take a full instance over rpc instead of just the instance UUID. This cuts down on database access needed by nova-compute. Part of blueprint no-db-messaging. Change-Id: I58313564b240c6b55de1849efc2d5d9031a1c97c
Diffstat (limited to 'nova/tests')
-rw-r--r--nova/tests/compute/test_rpcapi.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/nova/tests/compute/test_rpcapi.py b/nova/tests/compute/test_rpcapi.py
index 9be465ca9..4ef6254fd 100644
--- a/nova/tests/compute/test_rpcapi.py
+++ b/nova/tests/compute/test_rpcapi.py
@@ -51,7 +51,8 @@ class ComputeRpcAPITestCase(test.TestCase):
methods_with_instance = [
'add_fixed_ip_to_instance', 'attach_volume',
'check_can_live_migrate_destination',
- 'check_can_live_migrate_source', 'get_console_output',
+ 'check_can_live_migrate_source', 'confirm_resize',
+ 'get_console_output',
'pause_instance', 'reboot_instance', 'suspend_instance',
'unpause_instance'
]
@@ -145,11 +146,13 @@ class ComputeRpcAPITestCase(test.TestCase):
def test_confirm_resize_cast(self):
self._test_compute_api('confirm_resize', 'cast',
- instance=self.fake_instance, migration_id='id', host='host')
+ instance=self.fake_instance, migration_id='id', host='host',
+ version='1.12')
def test_confirm_resize_call(self):
self._test_compute_api('confirm_resize', 'call',
- instance=self.fake_instance, migration_id='id', host='host')
+ instance=self.fake_instance, migration_id='id', host='host',
+ version='1.12')
def test_detach_volume(self):
self._test_compute_api('detach_volume', 'cast',