summaryrefslogtreecommitdiffstats
path: root/nova/tests
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2013-03-01 23:50:46 +0000
committerGerrit Code Review <review@openstack.org>2013-03-01 23:50:46 +0000
commitfa2ce247e477494bd7f53c19ea2b1f6f922ffbfc (patch)
tree0ca6e2cf8178f0afdf6207f587340f42cedcd131 /nova/tests
parent7928c45078f3c7127606bcb0ca8ab57412b05333 (diff)
parente3b49a2167e5210f6984164d30376b4ac11fd245 (diff)
Merge "Use min_ram of original image for snapshot, even with VHD"
Diffstat (limited to 'nova/tests')
-rw-r--r--nova/tests/compute/test_compute.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/nova/tests/compute/test_compute.py b/nova/tests/compute/test_compute.py
index 98eba5570..d375c036e 100644
--- a/nova/tests/compute/test_compute.py
+++ b/nova/tests/compute/test_compute.py
@@ -4663,8 +4663,8 @@ class ComputeAPITestCase(BaseTestCase):
def test_snapshot_minram_mindisk_VHD(self):
"""Ensure a snapshots min_ram and min_disk are correct.
- A snapshot of a non-shrinkable VHD should have min_ram
- and min_disk set to that of the original instances flavor.
+ A snapshot of a non-shrinkable VHD should have min_disk
+ set to that of the original instances flavor.
"""
self.fake_image.update(disk_format='vhd',
@@ -4678,7 +4678,7 @@ class ComputeAPITestCase(BaseTestCase):
self.assertEqual(image['name'], 'snap1')
instance_type = instance['instance_type']
- self.assertEqual(image['min_ram'], instance_type['memory_mb'])
+ self.assertEqual(image['min_ram'], self.fake_image['min_ram'])
self.assertEqual(image['min_disk'], instance_type['root_gb'])
properties = image['properties']
self.assertTrue('backup_type' not in properties)