vmware-nsx/quantum/tests
He Jie Xu e1bd5149c3 Wrap quota controller with resource.Resource
Fixes bug 1116137

Currently the format of error message returned by quota extension was
different with quantum other resource. Other resource will return as
json(eg, '{"QuantumError": "error message"}'). But quota extension only
return messages without any format.
'quantum.api.v2.resource.Resource' provider error messages processing.
So wrap quota controller with it.

By the way, fix some small stuff:
* Use specific exception 'QuotaTenantNotFound' instead of generic exception.
* Correct error message.
* Use attribute mapping checking the request body.

Change-Id: I71261198aa79e9ed8e0ae672de32552abdbf45c1
2013-03-08 16:26:53 +08:00
..
etc API extension and DB support for service types 2013-01-07 17:21:42 -08:00
unit Wrap quota controller with resource.Resource 2013-03-08 16:26:53 +08:00
__init__.py Logging module cleanup 2013-01-03 16:20:56 +08:00
base.py Add common test base class to hold common things. 2013-03-05 18:07:14 -05:00