nova/nova/tests/unit/api
Brandon Irizarry d627ae8526 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.

Change-Id: I5fa1fdba56803b2ef63b1efaaeeced6ceb7779d9
Closes-Bug: 1567977
(cherry picked from commit a7019a87ba)
2016-04-20 16:49:26 +00:00
..
openstack Changed an HTTP exception to return proper code 2016-04-20 16:49:26 +00:00
__init__.py move all tests to nova/tests/unit 2014-11-12 15:31:08 -05:00
test_auth.py Clean the deprecated noauth middleware 2015-08-06 17:14:10 +08:00
test_compute_req_id.py Make unit tests inherit from test.NoDBTestCase 2015-03-06 09:46:31 +02:00
test_validator.py Remove Deprecated EC2 and ObjectStore impl/tests 2016-01-08 06:30:20 -05:00
test_wsgi.py move all tests to nova/tests/unit 2014-11-12 15:31:08 -05:00