]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
ML2: Add tests to validate quota usage tracking
authorSalvatore Orlando <salv.orlando@gmail.com>
Mon, 21 Sep 2015 23:40:55 +0000 (16:40 -0700)
committerSalvatore Orlando <salv.orlando@gmail.com>
Wed, 9 Dec 2015 23:17:23 +0000 (15:17 -0800)
commitcdd049e4c4d7e6ba1ca377e50fc6e8c29c85ab3d
tree933daee4f0285c425bfd703fb7bc507dfb8bcc7f
parentad26d26987c8a659dff34c2b60779e61d28f293f
ML2: Add tests to validate quota usage tracking

Ensure that event handlers are invoked upon completion of
ML2 operations which add or remove tracked resources.
Also validate that the event handlers are called for the
appropriate resources and that quota usage's dirty bit
is set and unset as expected.

These are not unit tests, but added in the unit test tree
as they leverage code both from the DB unit test and the ML2
unit test framework. This module has indeed been added to
the 'exclusion list' in check_unit_test_structure.sh, and
should be moved to the functional test tree together with
the other modules.

Closes-Bug: #1499358

Change-Id: I78c432c35f3f3339607cd533019ae6d0fa2a5cd6
neutron/quota/resource.py
neutron/tests/unit/plugins/ml2/test_tracked_resources.py [new file with mode: 0644]
tools/check_unit_test_structure.sh