glance/glance/tests/functional
Erno Kuvaja 6deee085e8 Prevent user to remove last location of the image
If the last location of the image is removed, image transitions back to queued.
This allows user to upload new data into the existing image record. By
preventing removal of the last location we prevent the image transition back to
queued.

This change also prevents doing the same operation via replacing the locations
with empty list.

SecurityImpact
DocImpact
APIImpact

Conflicts:
	glance/tests/unit/v2/test_images_resource.py

Change-Id: Ieb03aaba887492819f9c58aa67f7acfcea81720e
Closes-Bug: #1525915
(cherry picked from commit e9e45baa9aaf58e69964419b6b4fb2048d115a0c)
2016-02-03 10:01:00 -05:00
..
artifacts Fixed the output of list artifacts API calls 2015-09-22 10:44:06 +03:00
db Merge "Allow to filter artifacts by range" 2015-09-21 21:16:21 +00:00
v1 Prevent image status being directly modified via v1 2015-09-22 16:07:02 +02:00
v2 Prevent user to remove last location of the image 2016-02-03 10:01:00 -05:00
__init__.py Move store config opt to glance_store section 2015-12-03 14:04:58 +00:00
store_utils.py Use six.moves to fix imports on Python 3 2015-05-27 02:57:34 +02:00
test_api.py Don't return 300 when requesting /versions 2015-09-02 15:03:41 +02:00
test_bin_glance_cache_manage.py Rationalize test asserts 2015-07-09 13:48:49 +00:00
test_cache_middleware.py Rationalize test asserts 2015-07-09 13:48:49 +00:00
test_client_exceptions.py Fix assertEqual arguments order 2014-09-19 00:25:18 +08:00
test_client_redirects.py Remove vim header 2014-01-14 16:03:28 +00:00
test_glance_manage.py Rationalize test asserts 2015-07-09 13:48:49 +00:00
test_gzip_middleware.py Fix assertEqual arguments order 2014-09-19 00:25:18 +08:00
test_healthcheck_middleware.py Healthcheck Middleware 2015-07-07 11:55:21 +02:00
test_logging.py Rationalize test asserts 2015-07-09 13:48:49 +00:00
test_reload.py Zero downtime config reload (log handling) 2015-03-27 17:07:46 +00:00
test_scrubber.py Scrubber to communicate with trustedauth registry 2015-09-09 23:14:15 -05:00
test_sqlite.py Rationalize test asserts 2015-07-09 13:48:49 +00:00
test_ssl.py Don't return 300 when requesting /versions 2015-09-02 15:03:41 +02:00
test_wsgi.py Rationalize test asserts 2015-07-09 13:48:49 +00:00