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:
parent
50e5d3544d
commit
6619298fc1
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue