]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Improvements to API validation logic.
authorHenry Gessau <gessau@cisco.com>
Thu, 7 Feb 2013 21:01:28 +0000 (16:01 -0500)
committerHenry Gessau <gessau@cisco.com>
Sat, 9 Feb 2013 06:31:47 +0000 (01:31 -0500)
commitbe77455856fcc88300b0ad5a36211ebd37f0e453
tree6be50e2a124358b478f4fc60b387a33e185c2734
parent41e56e800ee70a5f181df6e7a08b5b7e631bfff9
Improvements to API validation logic.

Do not automatically map generic exceptions like AttributeError to
http errors (instead they should be handled closer to where they occur
so that they can be "intelligently" converted to the appropriate
error).

Fix up some expected error codes in the unit tests.
Improve some of the validation messages.
Remove all use of locals() in attributes.py

Fixes: bug #1076813
Change-Id: Iabf8808a840e927307bbcae4cd41790af3d79a9e
quantum/api/v2/attributes.py
quantum/api/v2/base.py
quantum/api/v2/resource.py
quantum/tests/unit/cisco/test_network_plugin.py
quantum/tests/unit/test_attributes.py
quantum/tests/unit/test_db_plugin.py