diff options
| author | Russell Bryant <rbryant@redhat.com> | 2012-10-24 14:32:52 -0400 |
|---|---|---|
| committer | Russell Bryant <rbryant@redhat.com> | 2012-10-24 18:47:13 -0400 |
| commit | 151a4a7548549871e5d489ee0e86e64259266ff0 (patch) | |
| tree | 866ac00ff9b5a0e894b48e7ce69488efc9438499 /nova/tests | |
| parent | 569df8b30f4b94e6287a971c0f41bf5bb2cfad15 (diff) | |
Send full migration to confirm_resize.
Update the confirm_resize method of the compute rpc api to receive all
of the migration data from the db instead of having to look it up as the
first step.
Part of blueprint no-db-compute.
Change-Id: I7eee64937a4b978287457f0213d4d4364f171f45
Diffstat (limited to 'nova/tests')
| -rw-r--r-- | nova/tests/compute/test_rpcapi.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/nova/tests/compute/test_rpcapi.py b/nova/tests/compute/test_rpcapi.py index dd374ac55..ee863cc8a 100644 --- a/nova/tests/compute/test_rpcapi.py +++ b/nova/tests/compute/test_rpcapi.py @@ -123,13 +123,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', - reservations=list('fake_res')) + instance=self.fake_instance, migration={'id': 'foo'}, + host='host', reservations=list('fake_res'), version='2.7') def test_confirm_resize_call(self): self._test_compute_api('confirm_resize', 'call', - instance=self.fake_instance, migration_id='id', host='host', - reservations=list('fake_res')) + instance=self.fake_instance, migration={'id': 'foo'}, + host='host', reservations=list('fake_res'), version='2.7') def test_detach_volume(self): self._test_compute_api('detach_volume', 'cast', |
