diff options
| author | matt.dietz@rackspace.com <> | 2011-07-18 17:58:33 -0500 |
|---|---|---|
| committer | matt.dietz@rackspace.com <> | 2011-07-18 17:58:33 -0500 |
| commit | 115727a7cd41e703b35b6b061b64d097b9bbbf1d (patch) | |
| tree | bccd718e68536a674f42a1bb61d465695137803d /nova/tests | |
| parent | 57e2f89311f59ac4f64a08d7952cfce316d030a4 (diff) | |
Fixed the broken tests again
Diffstat (limited to 'nova/tests')
| -rw-r--r-- | nova/tests/test_compute.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/nova/tests/test_compute.py b/nova/tests/test_compute.py index 0586cc40d..a4adaee17 100644 --- a/nova/tests/test_compute.py +++ b/nova/tests/test_compute.py @@ -429,7 +429,8 @@ class ComputeTestCase(test.TestCase): migration_ref = db.migration_get_by_instance_and_status(context, instance_ref['uuid'], 'pre-migrating') try: - self.compute.finish_resize(context, int(migration_ref['id']), {}) + self.compute.finish_resize(context, instance_ref['uuid'], + int(migration_ref['id']), {}) except KeyError, e: # Only catch key errors. We want other reasons for the test to # fail to actually error out so we don't obscure anything @@ -480,7 +481,8 @@ class ComputeTestCase(test.TestCase): self.compute.prep_resize(context, inst_ref['uuid'], 1) migration_ref = db.migration_get_by_instance_and_status(context, inst_ref['uuid'], 'pre-migrating') - self.compute.resize_instance(context, migration_ref['id']) + self.compute.resize_instance(context, inst_ref['uuid'], + migration_ref['id']) self.compute.terminate_instance(context, instance_id) def test_resize_invalid_flavor_fails(self): |
