summaryrefslogtreecommitdiffstats
path: root/nova/tests
diff options
context:
space:
mode:
authorRussell Bryant <rbryant@redhat.com>2012-05-29 17:22:33 -0400
committerRussell Bryant <rbryant@redhat.com>2012-05-31 15:19:31 -0400
commit72550284ee6cdbda9c1a6762deb140b670634d2f (patch)
treea5d76a51f8c1cf6e7bd15052f50973784aa65a1c /nova/tests
parent836ffbd489f28a1d370cb1003bd8d62de4783351 (diff)
Add resize_instance() to the compute rpcapi.
Part of bug 1006467. This method is used by the compute manager. Add it to the compute rpcapi and use it from there. Change-Id: I873fc0740595f7387ea476b11fd2c70d29d4765a
Diffstat (limited to 'nova/tests')
-rw-r--r--nova/tests/compute/test_rpcapi.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/nova/tests/compute/test_rpcapi.py b/nova/tests/compute/test_rpcapi.py
index 47c986c71..8d78f3a64 100644
--- a/nova/tests/compute/test_rpcapi.py
+++ b/nova/tests/compute/test_rpcapi.py
@@ -190,6 +190,10 @@ class ComputeRpcAPITestCase(test.TestCase):
self._test_compute_api('reset_network', 'cast',
instance=self.fake_instance)
+ def test_resize_instance(self):
+ self._test_compute_api('resize_instance', 'cast',
+ instance=self.fake_instance, migration_id='id', image='image')
+
def test_resume_instance(self):
self._test_compute_api('resume_instance', 'cast',
instance=self.fake_instance)