nova/nova/tests/unit/api/openstack
Brandon Irizarry f6f0d1bae8 Changed an HTTP exception to return proper code
POSTing to /servers with a content-type of text/plain
and a text/plain body results in a response code of 400.
It should be 415. I found this line in the code that
appears to handle this singular case and modified
the HTTP exception used to the correct one. Tests were
also updated accordingly.

Conflicts:
        nova/api/openstack/wsgi.py
        nova/tests/unit/api/openstack/compute/legacy_v2/test_servers.py

Change-Id: I5fa1fdba56803b2ef63b1efaaeeced6ceb7779d9
Closes-Bug: 1567977
(cherry picked from commit a7019a87ba)
2016-04-22 13:06:42 +09:00
..
compute Changed an HTTP exception to return proper code 2016-04-22 13:06:42 +09:00
__init__.py move all tests to nova/tests/unit 2014-11-12 15:31:08 -05:00
common.py Switch to using oslo_* instead of oslo.* 2015-02-06 06:03:10 -05:00
fakes.py Test both NoAuthMiddleware and NoAuthMiddlewareV3 2015-09-17 12:38:16 +00:00
test_api_version_request.py Remove more 'v3' references from the code 2015-09-08 13:56:05 +00:00
test_common.py Rename tests so that they are run 2015-08-28 12:24:53 +00:00
test_faults.py Replace unicode with six.text_type 2015-05-12 12:31:20 +02:00
test_legacy_v2_compatible_wrapper.py api: allow any scheduler hints 2015-09-09 10:21:09 +08:00
test_mapper.py move all tests to nova/tests/unit 2014-11-12 15:31:08 -05:00
test_wsgi.py Changed an HTTP exception to return proper code 2016-04-22 13:06:42 +09:00