neutron/neutron/tests/unit/objects
John Schwarz 75737c5ef0 Gracefully handle duplicate rule creation
Previously, creating a second bandwidth limit rule for a policy raised
an uncaught exception, which eventually caused 'ServerFault' on the
client side. This patch replaces this exception with a NeutronException
which leads to a more correct 'Conflict' error instead.

Note that the code is implemented in the base object class. This means
that future versioned objects will also feature this restriction if
their database implies that no duplicate entries can be created.

Change-Id: I882d60843e1e651f3f9754746ac670f499431466
Partially-Implements: quantum-qos-api
2015-08-05 17:28:17 +02:00
..
qos Merge "Cleaned up some TODO comments for feature/qos that do not apply anymore" into feature/qos 2015-08-04 17:41:22 +00:00
__init__.py objects.base: avoid db access if object does not have changes 2015-07-03 02:02:17 +03:00
test_base.py Gracefully handle duplicate rule creation 2015-08-05 17:28:17 +02:00