Fixes lp813006

Inconsistent database API method naming for instance_types
This commit is contained in:
matt.dietz@rackspace.com
2011-07-21 17:37:32 +00:00
committed by Tarmac
2 changed files with 5 additions and 5 deletions

View File

@@ -539,7 +539,7 @@ class ComputeTestCase(test.TestCase):
# Confirm the instance size before the resize starts
inst_ref = db.instance_get(context, instance_id)
instance_type_ref = db.instance_type_get_by_id(context,
instance_type_ref = db.instance_type_get(context,
inst_ref['instance_type_id'])
self.assertEqual(instance_type_ref['flavorid'], 1)
@@ -557,7 +557,7 @@ class ComputeTestCase(test.TestCase):
# Prove that the instance size is now the new size
inst_ref = db.instance_get(context, instance_id)
instance_type_ref = db.instance_type_get_by_id(context,
instance_type_ref = db.instance_type_get(context,
inst_ref['instance_type_id'])
self.assertEqual(instance_type_ref['flavorid'], 3)
@@ -568,7 +568,7 @@ class ComputeTestCase(test.TestCase):
migration_ref['id'])
inst_ref = db.instance_get(context, instance_id)
instance_type_ref = db.instance_type_get_by_id(context,
instance_type_ref = db.instance_type_get(context,
inst_ref['instance_type_id'])
self.assertEqual(instance_type_ref['flavorid'], 1)