vmware-nsx/quantum/tests/unit
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
..
bigswitch Remove deprecated assertEquals alias. 2013-02-28 16:29:23 +09:00
brocade Add common test base class to hold common things. 2013-03-05 18:07:14 -05:00
cisco Add common test base class to hold common things. 2013-03-05 18:07:14 -05:00
db LBaaS Agent Reference Implementation 2013-02-27 21:49:57 -05:00
extensions Fixes import reorder nits 2013-02-26 10:37:59 +08:00
hyperv Add common test base class to hold common things. 2013-03-05 18:07:14 -05:00
linuxbridge Merge "Add common test base class to hold common things." 2013-03-06 03:15:50 +00:00
metaplugin Add common test base class to hold common things. 2013-03-05 18:07:14 -05:00
midonet Merge "Add common test base class to hold common things." 2013-03-06 03:15:50 +00:00
nec Merge "Add common test base class to hold common things." 2013-03-06 03:15:50 +00:00
nicira Merge "Add common test base class to hold common things." 2013-03-06 03:15:50 +00:00
openvswitch Merge "Add common test base class to hold common things." 2013-03-06 03:15:50 +00:00
plumgrid PLUMgrid quantum plugin 2013-02-10 07:49:48 -08:00
ryu Add common test base class to hold common things. 2013-03-05 18:07:14 -05:00
services Add common test base class to hold common things. 2013-03-05 18:07:14 -05:00
__init__.py Add common test base class to hold common things. 2013-03-05 18:07:14 -05:00
_test_extension_portbindings.py Use oslo-config-2013.1b3 2013-02-17 17:33:05 +00:00
_test_rootwrap_exec.py Add common test base class to hold common things. 2013-03-05 18:07:14 -05:00
database_stubs.py Logging module cleanup 2013-01-03 16:20:56 +08:00
dummy_plugin.py API extension and DB support for service types 2013-01-07 17:21:42 -08:00
extension_stubs.py Move extension.py into quantum/api. 2012-11-20 10:07:29 -05:00
test_agent_config.py Add common test base class to hold common things. 2013-03-05 18:07:14 -05:00
test_agent_ext_plugin.py Merge "Remove compat cfg wrapper" 2013-02-28 18:45:05 +00:00
test_agent_linux_utils.py Add common test base class to hold common things. 2013-03-05 18:07:14 -05:00
test_agent_netns_cleanup.py Add common test base class to hold common things. 2013-03-05 18:07:14 -05:00
test_agent_ovs_cleanup.py Add common test base class to hold common things. 2013-03-05 18:07:14 -05:00
test_agent_rpc.py Add common test base class to hold common things. 2013-03-05 18:07:14 -05:00
test_api_api_common.py Add common test base class to hold common things. 2013-03-05 18:07:14 -05:00
test_api_v2_resource.py Add common test base class to hold common things. 2013-03-05 18:07:14 -05:00
test_api_v2.py Add common test base class to hold common things. 2013-03-05 18:07:14 -05:00
test_attributes.py Add common test base class to hold common things. 2013-03-05 18:07:14 -05:00
test_auth.py Add common test base class to hold common things. 2013-03-05 18:07:14 -05:00
test_common_utils.py Add common test base class to hold common things. 2013-03-05 18:07:14 -05:00
test_config.py Merge "Add common test base class to hold common things." 2013-03-06 03:15:50 +00:00
test_db_migration.py Add common test base class to hold common things. 2013-03-05 18:07:14 -05:00
test_db_plugin.py Add common test base class to hold common things. 2013-03-05 18:07:14 -05:00
test_db_rpc_base.py Add common test base class to hold common things. 2013-03-05 18:07:14 -05:00
test_db.py Add common test base class to hold common things. 2013-03-05 18:07:14 -05:00
test_debug_commands.py Allow probe-create to specify device_owner. 2013-03-07 20:24:52 -08:00
test_dhcp_agent.py isolated network metadata does not work with nvp plugin 2013-03-06 16:20:24 -08:00
test_extension_extended_attribute.py Add common test base class to hold common things. 2013-03-05 18:07:14 -05:00
test_extension_extraroute.py Remove deprecated assertEquals alias. 2013-02-28 16:29:23 +09:00
test_extension_portsecurity.py Remove deprecated assertEquals alias. 2013-02-28 16:29:23 +09:00
test_extension_security_group.py Populate default explicit allow rules for egress 2013-03-06 16:21:46 +09:00
test_extensions.py Add common test base class to hold common things. 2013-03-05 18:07:14 -05:00
test_iptables_firewall.py Add common test base class to hold common things. 2013-03-05 18:07:14 -05:00
test_iptables_manager.py Add common test base class to hold common things. 2013-03-05 18:07:14 -05:00
test_l3_agent.py Add common test base class to hold common things. 2013-03-05 18:07:14 -05:00
test_l3_plugin.py Add common test base class to hold common things. 2013-03-05 18:07:14 -05:00
test_linux_daemon.py Add common test base class to hold common things. 2013-03-05 18:07:14 -05:00
test_linux_dhcp.py Add common test base class to hold common things. 2013-03-05 18:07:14 -05:00
test_linux_external_process.py Add common test base class to hold common things. 2013-03-05 18:07:14 -05:00
test_linux_interface.py Merge "Add common test base class to hold common things." 2013-03-06 03:15:50 +00:00
test_linux_ip_lib.py Merge "Add common test base class to hold common things." 2013-03-06 03:15:50 +00:00
test_loadbalancer_plugin.py Add common test base class to hold common things. 2013-03-05 18:07:14 -05:00
test_metadata_agent.py Add common test base class to hold common things. 2013-03-05 18:07:14 -05:00
test_metadata_namespace_proxy.py Add common test base class to hold common things. 2013-03-05 18:07:14 -05:00
test_policy.py Add common test base class to hold common things. 2013-03-05 18:07:14 -05:00
test_quantum_context.py Add common test base class to hold common things. 2013-03-05 18:07:14 -05:00
test_quantum_manager.py Add common test base class to hold common things. 2013-03-05 18:07:14 -05:00
test_quota_ext.py Wrap quota controller with resource.Resource 2013-03-08 16:26:53 +08:00
test_rootwrap.py Add common test base class to hold common things. 2013-03-05 18:07:14 -05:00
test_routerserviceinsertion.py Add common test base class to hold common things. 2013-03-05 18:07:14 -05:00
test_security_groups_rpc.py Merge "Populate default explicit allow rules for egress" 2013-03-06 09:20:03 +00:00
test_servicetype.py Add common test base class to hold common things. 2013-03-05 18:07:14 -05:00
test_wsgi.py Merge "Add common test base class to hold common things." 2013-03-06 03:15:50 +00:00
testlib_api.py Add common test base class to hold common things. 2013-03-05 18:07:14 -05:00