]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Add tests that constrain db query count
authorKevin Benton <blak111@gmail.com>
Mon, 14 Dec 2015 08:44:16 +0000 (00:44 -0800)
committerKevin Benton <blak111@gmail.com>
Mon, 21 Dec 2015 19:54:38 +0000 (11:54 -0800)
commit4885ef4885de072b0321858a2ae334b708da4bea
tree11440b127a2d0b114fd987f1f6d421b178a00169
parentfce62cf424905c9cdfb47eeaf4317db24f17e1fa
Add tests that constrain db query count

This patch adds unit tests to ML2 and L3 that ensure that the
number of DB calls during list operations for ports, networks,
subnets, routers, and floating IPs remains constant regardless
of the number of ports.

These will prevent changes from slipping in that result in
a separate DB query for each object in a list operation
(for changes to the extensions used by ML2 and the DVR plugin).

Related-Bug: #1525295
Related-Bug: #1513782
Related-Bug: #1525423
Related-Bug: #1525740
Related-Bug: #1526644

Change-Id: I1958fc7c318bbf73238a3ad5be133fa7800c8290
doc/source/devref/effective_neutron.rst
neutron/tests/unit/db/test_db_base_plugin_v2.py
neutron/tests/unit/extensions/test_l3.py
neutron/tests/unit/plugins/ml2/test_plugin.py