glance/glance/tests/unit
Jon Bernard 19de1156c7 Prevent creation of http images with invalid URIs
Active images should always be ready to be downloaded, regardless
they're locally or remotely stored. This patch prevents images with
invalid location URIs from being created and entering the 'active'
state with no data. This is only for the HTTP store.

Closes-Bug: #1257273
Co-authored: Jon Bernard <jobernar@redhat.com>

Change-Id: Iffce79b654cabe8397c85b2cc50c4b7f59733ea5
(cherry picked from commit 503be24afa)
2014-05-30 15:38:04 +09: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 Replacement mox by mock 2014-02-18 14:41:43 +04: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 Don't enable all stores by default 2014-03-10 10:40:31 +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 Don't enable all stores by default 2014-03-10 10:40:31 +01:00