0cbe012602
Glance should not allow already uploaded images to be modified by another upload. Currently, when configured with the local filesystem backend, Glance prevents duplicate upload of an already uploaded image BUT it changes the image status to "saving". This commit adds a status transition state machine to the domain.Image class and modifies the domain.Image.status setter function to verify status transitions based on this state machine - only target states that can be reached from the image's current state are permitted. Tests have also been agumented to verify that the original image (meta) data does not change in case of a conflicting upload. Closes-Bug: #1241379 Change-Id: I62c5acae4c29abf0691d8279b51c59008f9c0047 |
||
---|---|---|
.. | ||
__init__.py | ||
test_image_data_resource.py | ||
test_image_members_resource.py | ||
test_image_tags_resource.py | ||
test_images_resource.py | ||
test_registry_api.py | ||
test_registry_client.py | ||
test_schemas_resource.py | ||
test_tasks_resource.py |