glance/glance/tests/unit/v2
Nikhil Komawar 1367fa214d Return 405 when attempting DELETE on /tasks
We currently return 404 NotFound when attempting to delete a task
by hitting the resource /v2/tasks/{task_id}. However, as this
resource exists and we do not allow DELETE on tasks, the correct
response is 405 MethodNotAllowed.

Implementing as per spec on
http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html

Fixes bug 1287951

Change-Id: Ia4a969e595b520dbc5f4e9a463d967681465ae6f
2014-03-25 17:19:17 -04:00
..
__init__.py Adding versioned namespaces in test dir 2012-03-25 13:28:45 -07:00
test_image_data_resource.py Use six.StringIO/BytesIO instead of StringIO.StringIO 2014-02-26 09:06:33 +08:00
test_image_members_resource.py Enable F841 check 2014-02-13 16:54:12 +04:00
test_image_tags_resource.py Add config option to limit image tags 2013-12-03 16:05:49 +00:00
test_images_resource.py Add the OVA container format 2014-03-03 19:44:21 -08:00
test_registry_api.py Provide explicit image create value in Registry v2 API test 2014-01-31 19:08:39 +08:00
test_registry_client.py Modify assert statement when comparing with None 2014-02-19 14:37:41 +08:00
test_schemas_resource.py Add `virtual_size` to Glance's API v2 2014-02-13 15:13:11 +01:00
test_tasks_resource.py Return 405 when attempting DELETE on /tasks 2014-03-25 17:19:17 -04:00