neutron/neutron/tests/unit
Doug Wiegley 1e9086f6e2
Use dynamic lazy mode for fetching security group rules
In conjunction with the prior fix to only get a subset of fields
when needed, this makes the querying of non-rules SG objects
very very fast.

Before the two fixes, if you have about ten security groups with 2000 rules each:

list all: 14s
list all, just 'id' field: 14s
list one: 0.6s
list one, just 'id' field: 0.6s

With just the previous partial fix:

list all: 14s
list all, just 'id' field: 6s
list one: 0.6s
list one, just 'id' field: 0.2s

Now with this change:

list all: 14s
list all, just 'id' field: 0.04s
list one: 0.6s
list one, just 'id' field: 0.03s

Closes-Bug: #1810563
Change-Id: I15df276ba7dbcb3763ab20b63b26cddf2d594954
2019-03-14 16:23:53 -06:00
..
agent Merge "Fix a couple of bw burst calc unit tests for macs" 2019-03-11 12:08:59 +00:00
api Allow sharing of security groups via RBAC mechanism 2019-03-09 17:30:14 -06:00
cmd Modify api and rpc default number of workers 2019-02-19 13:24:01 -07:00
common Merge "ovs-agent: Report resource info in heartbeat" 2018-10-22 20:03:06 +00:00
conf/agent Agent common config 2017-03-15 09:52:18 -06:00
core_extensions remove neutron.common.exceptions 2019-02-01 14:35:00 -07:00
db Support Network Segment Range CRUD as extensions 2019-03-07 08:20:30 +00:00
debug Use constant IP_VERSION_4/6 in unit tests 2018-08-27 21:45:39 +00:00
extensions Support Network Segment Range CRUD as extensions 2019-03-07 08:20:30 +00:00
hacking remove string use of neutron.common.rpc 2019-02-08 09:40:39 -07:00
ipam Merge "Update the processing of assigned addresses when assigning addresses" 2019-02-07 20:30:20 +00:00
notifiers Send global_request_id for tracing calls from neutron to nova 2018-11-30 05:41:24 +00:00
objects Use dynamic lazy mode for fetching security group rules 2019-03-14 16:23:53 -06:00
pecan_wsgi Removing deprecated module neutron.api.versions 2018-03-28 14:15:50 +07:00
plugins Merge "Drive binding by placement allocation" 2019-03-10 12:54:16 +00:00
privileged remove neutron.common.exceptions 2019-02-01 14:35:00 -07:00
quota use get reader/writer session from neutron-lib 2018-07-06 14:43:31 -06:00
scheduler remove neutron.common.rpc 2019-02-06 11:05:55 -07:00
services Support Network Segment Range CRUD as extensions 2019-03-07 08:20:30 +00:00
tests Update neutron files for new over-indentation hacking rule (E117) 2019-01-29 15:36:20 -05:00
__init__.py Don't set use_stderr to False for tests 2017-04-15 01:41:29 +00:00
_test_extension_portbindings.py Remove the unit test 'test_ports_vnic_type_list' 2018-06-15 15:12:10 +00:00
dummy_plugin.py Add dependency for service plugin 2019-02-16 00:17:53 +08:00
extension_stubs.py Consume ServicePluginBase from neutron-lib 2017-03-17 12:06:57 -06:00
test_auth.py Fix context deprecation warnings 2018-02-13 15:02:49 -05:00
test_manager.py Avoid loading same service plugin more than once 2019-02-21 11:17:02 +01:00
test_neutron_plugin_base_v2.py Add unit test to validate non DB base core plugin can be loaded 2017-11-15 21:21:35 +00:00
test_opts.py Fix the sriov agent config group name 2016-05-05 16:16:08 +08:00
test_policy.py Add ext_parent policy check 2018-08-01 02:45:42 +08:00
test_service.py Change process name of neutron-server to match worker role 2019-03-01 14:18:09 -05:00
test_worker.py Move AgentStatusCheckWorker to PeriodicWorker 2016-11-17 15:31:19 -08:00
test_wsgi.py Change process name of neutron-server to match worker role 2019-03-01 14:18:09 -05:00
testlib_api.py use context manager from neutron-lib 2018-10-24 07:18:46 -06:00