]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
improve test_db_plugin so it can be leveraged by extension tests
authorDan Wendlandt <dan@nicira.com>
Mon, 13 Aug 2012 12:20:11 +0000 (05:20 -0700)
committerDan Wendlandt <dan@nicira.com>
Mon, 13 Aug 2012 12:20:15 +0000 (05:20 -0700)
commitdff93171499d5696e9c1689bcf03edc97c093742
treecf2b3107fcd5cd2c91215f8f4e9bdd27bd83642d
parentea172068114cccb820f1c633b41380a83caaf778
improve test_db_plugin so it can be leveraged by extension tests

prereq for bp quantum-l3-fwd-nat

- load extension middleware as well as core API
- support 'action' requests in addition to CRUD ops
- add helper methods that check API return code
- clean-up places where existing tests where hitting 409s on delete
but ignoring the errors (basically SubnetInUse errors).

Change-Id: I620f1ef7f2028879b3b86f90c2150c26aa0f23c1
quantum/tests/unit/test_db_plugin.py