From b84d71c6bcca04a47407ea8491911b8584e395bb Mon Sep 17 00:00:00 2001 From: Naveed Massjouni Date: Thu, 29 Sep 2011 14:45:50 -0400 Subject: Updating image progress to be more granular. Before, the image progress had only 2 states, 0 and 100. Now it can be 0, 25, 50 or 100. Change-Id: Ic5de9d4404c8903bc2a6027697905f92374f8af7 --- nova/tests/api/openstack/test_images.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'nova/tests') diff --git a/nova/tests/api/openstack/test_images.py b/nova/tests/api/openstack/test_images.py index 05d398478..5e32ccf42 100644 --- a/nova/tests/api/openstack/test_images.py +++ b/nova/tests/api/openstack/test_images.py @@ -133,7 +133,7 @@ class ImagesTest(test.TestCase): "updated": NOW_API_FORMAT, "created": NOW_API_FORMAT, "status": "SAVING", - "progress": 0, + "progress": 25, "minDisk": 0, "minRam": 0, 'server': { @@ -587,7 +587,7 @@ class ImagesTest(test.TestCase): 'updated': NOW_API_FORMAT, 'created': NOW_API_FORMAT, 'status': 'SAVING', - 'progress': 0, + 'progress': 25, }, { 'id': 125, @@ -595,7 +595,7 @@ class ImagesTest(test.TestCase): 'updated': NOW_API_FORMAT, 'created': NOW_API_FORMAT, 'status': 'SAVING', - 'progress': 0, + 'progress': 50, }, { 'id': 126, @@ -685,7 +685,7 @@ class ImagesTest(test.TestCase): 'updated': NOW_API_FORMAT, 'created': NOW_API_FORMAT, 'status': 'SAVING', - 'progress': 0, + 'progress': 25, 'minDisk': 0, 'minRam': 0, 'server': { @@ -723,7 +723,7 @@ class ImagesTest(test.TestCase): 'updated': NOW_API_FORMAT, 'created': NOW_API_FORMAT, 'status': 'SAVING', - 'progress': 0, + 'progress': 50, 'minDisk': 0, 'minRam': 0, 'server': { @@ -978,7 +978,7 @@ class ImagesTest(test.TestCase): 'created': NOW_API_FORMAT, 'status': 'SAVING', 'minDisk': 0, - 'progress': 0, + 'progress': 25, 'minRam': 0, 'server': { 'id': '42', -- cgit