Ensure copy and original image IDs differ.

Ensure the copy_from tests have unmarshalled a distinct ID for the
copied image, in order to eliminate the possibility that the subsequent
deletion of the original image impacts on the existence of the copy.

Eliminates one bizarre and unlikely explanation for the test failures
reported in bug 955527.

Change-Id: If8d0720f6d08cdc57a3e01431bd3460d95a868a9
This commit is contained in:
Eoghan Glynn 2012-03-15 13:44:56 +00:00
parent 50e5d3544d
commit 6619298fc1
3 changed files with 3 additions and 0 deletions

View File

@ -111,6 +111,7 @@ class TestCopyToFile(functional.FunctionalTest):
data = json.loads(content)
copy_image_id = data['image']['id']
self.assertNotEqual(copy_image_id, original_image_id)
# GET image and make sure image content is as expected
path = "http://%s:%d/v1/images/%s" % ("0.0.0.0", self.api_port,

View File

@ -209,6 +209,7 @@ class TestS3(test_api.TestApi):
data = json.loads(content)
copy_image_id = data['image']['id']
self.assertNotEqual(copy_image_id, original_image_id)
# GET image and make sure image content is as expected
path = "http://%s:%d/v1/images/%s" % ("0.0.0.0", self.api_port,

View File

@ -480,6 +480,7 @@ class TestSwift(test_api.TestApi):
data = json.loads(content)
copy_image_id = data['image']['id']
self.assertNotEqual(copy_image_id, original_image_id)
# GET image and make sure image content is as expected
path = "http://%s:%d/v1/images/%s" % ("0.0.0.0", self.api_port,