From 72550284ee6cdbda9c1a6762deb140b670634d2f Mon Sep 17 00:00:00 2001 From: Russell Bryant Date: Tue, 29 May 2012 17:22:33 -0400 Subject: 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 --- nova/tests/compute/test_rpcapi.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'nova/tests') 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) -- cgit