glance/glance/tests/unit
Tom Leaman 31a4d1852a Enforce image_size_cap on v2 upload
image_size_cap should be checked and enforced on upload

Enforcement is in two places:
- on image metadata save
- during image save to backend store

(cherry picked from commit 92ab00fca6)
Conflicts:
	glance/location.py
	glance/tests/functional/v2/test_images.py

Closes-Bug: 1315321
Change-Id: I45bfb360703617bc394e9e27fe17adf43b09c0e1
Co-Author: Manuel Desbonnet <manuel.desbonnet@hp.com>
2014-08-19 14:14:36 +01:00
..
api Use six.StringIO/BytesIO instead of StringIO.StringIO 2014-02-26 09:06:33 +08:00
common Sanitize set passed to jsonutils.dumps() 2014-03-27 16:35:53 +00:00
v1 Prevent creation of http images with invalid URIs 2014-05-30 15:38:04 +09:00
v2 Return 405 when attempting DELETE on /tasks 2014-03-25 17:19:17 -04:00
__init__.py Empty files shouldn't contain copyright nor license 2013-12-24 22:39:05 -06:00
base.py VMware Datastore storage backend 2014-01-30 18:14:15 -08:00
fake_rados.py Fixes rbd _delete_image snapshot with missing image 2013-10-07 23:15:49 +01:00
test_auth.py Merge "Add support for PartialTask list" 2014-02-22 12:10:27 +00:00
test_cache_middleware.py Modify assert statement when comparing with None 2014-02-19 14:37:41 +08:00
test_cached_images.py Remove vim header 2014-01-14 16:03:28 +00:00
test_cinder_store.py Remove vim header 2014-01-14 16:03:28 +00:00
test_context.py Fix logging context to include user_identity 2014-02-21 17:19:31 +01:00
test_context_middleware.py Modify assert statement when comparing with None 2014-02-19 14:37:41 +08:00
test_db.py Fixes Glance Registry V2 client 2014-04-11 09:31:19 -07:00
test_domain.py Removes use of timeutils.set_time_override 2014-03-17 15:39:59 +08:00
test_domain_proxy.py Add support for PartialTask list 2014-02-12 17:05:23 +05:30
test_filesystem_store.py Use six.StringIO/BytesIO instead of StringIO.StringIO 2014-02-26 09:06:33 +08:00
test_glance_replicator.py Use six.StringIO/BytesIO instead of StringIO.StringIO 2014-02-26 09:06:33 +08:00
test_gridfs_store.py Use six.StringIO/BytesIO instead of StringIO.StringIO 2014-02-26 09:06:33 +08:00
test_http_store.py Prevent creation of http images with invalid URIs 2014-05-30 15:38:04 +09:00
test_image_cache.py Use six.StringIO/BytesIO instead of StringIO.StringIO 2014-02-26 09:06:33 +08:00
test_image_cache_client.py Replace deprecated method assertEquals 2013-11-30 05:33:48 -08:00
test_manage.py Making DB sanity checking be optional for DB migration 2014-04-02 00:01:16 +08:00
test_migrations.conf Refactor data migration tests 2013-02-25 21:14:09 +00:00
test_migrations.py Log 'image_id' with all BadStoreURI error messages 2014-02-21 21:27:48 +05:30
test_misc.py Remove vim header 2014-01-14 16:03:28 +00:00
test_notifier.py Catch loading failures if transport_url is not set 2014-04-07 10:18:00 +02:00
test_policy.py Add support for PartialTask list 2014-02-12 17:05:23 +05:30
test_quota.py Fix lazy translation UnicodeErrors 2014-07-24 12:55:06 +02:00
test_rbd_store.py Use six.StringIO/BytesIO instead of StringIO.StringIO 2014-02-26 09:06:33 +08:00
test_s3_store.py Don't enable all stores by default 2014-03-10 10:40:31 +01:00
test_schema.py Fix up trivial License mismatches 2013-08-27 22:50:16 +02:00
test_scrubber.py Enable F841 check 2014-02-13 16:54:12 +04:00
test_sheepdog_store.py To prevent remote code injection on Sheepdog store 2014-04-10 21:05:46 +08:00
test_store_base.py Fix swift functional test "test_create_store" 2014-03-31 09:41:50 +00:00
test_store_image.py Enforce image_size_cap on v2 upload 2014-08-19 14:14:36 +01:00
test_store_location.py To prevent remote code injection on Sheepdog store 2014-04-10 21:05:46 +08:00
test_swift_store.py Add support for API message localization 2014-03-04 14:18:28 +08:00
test_versions.py Merge "Change assertTrue(isinstance()) by optimal assert" 2014-01-19 05:04:52 +00:00
test_vmware_store.py VMware store.add to return the image size uploaded 2014-03-19 20:04:29 -07:00
utils.py Enforce image_size_cap on v2 upload 2014-08-19 14:14:36 +01:00