neutron/neutron/tests/unit/extensions
Henry Gessau b3c0d5f239 Eliminate lookup of "resource extend" funcs by name
By registering functions directly we cut off the dependency of the
"resource extend" functions on the plugin. This is a step towards
the goal of removing the CommonDbMixin mixin class.

Also, we register all "resource extend" functions at plugin create
(in __new__) instead of in the class definition (which caused the
hooks to be registered on import). This ensures the "resource
extend" functions are only registered for the plugins/mixins that
are actually used.

Note that decorators are used to register "resource extend" methods,
similar to the callback receiver decorators.

Related-Blueprint: neutron-lib

Change-Id: I128cfda773d5f9597df9cd61261fdc05f2a174aa
2017-04-21 14:48:42 -04:00
..
__init__.py Empty files should not contain copyright or license 2014-10-20 00:50:32 +00:00
base.py ExtensionTestCase: register correct core plugin 2017-03-28 02:46:45 +00:00
extendedattribute.py Use ExtensionDescriptor from neutron-lib 2016-12-02 14:16:06 -05:00
extensionattribute.py Use ExtensionDescriptor from neutron-lib 2016-12-02 14:16:06 -05:00
foxinsocks.py Consume ServicePluginBase from neutron-lib 2017-03-17 12:06:57 -06:00
test_address_scope.py Spin off context module 2017-03-06 16:25:29 +00:00
test_agent.py Spin off context module 2017-03-06 16:25:29 +00:00
test_availability_zone.py Spin off context module 2017-03-06 16:25:29 +00:00
test_data_plane_status.py Eliminate lookup of "resource extend" funcs by name 2017-04-21 14:48:42 -04:00
test_default_subnetpools.py Fix call a method of extension class 2017-03-30 16:37:23 +09:00
test_dns.py Fix call a method of extension class 2017-03-30 16:37:23 +09:00
test_external_net.py Eliminate lookup of model query hooks by name 2017-04-16 10:33:36 -04:00
test_extra_dhcp_opt.py Fix params order in assertEqual 2016-02-03 11:54:29 +05:30
test_extraroute.py Spin off context module 2017-03-06 16:25:29 +00:00
test_flavors.py Spin off context module 2017-03-06 16:25:29 +00:00
test_l3.py Eliminate lookup of "resource extend" funcs by name 2017-04-21 14:48:42 -04:00
test_l3_ext_gw_mode.py Fix relationship event handler for flushes and nested 2017-03-30 01:26:40 -07:00
test_network_ip_availability.py Implement '-F' option for 'net-ip-availability-*' command respond 2017-04-15 20:39:48 -07:00
test_portsecurity.py New enginefacade for ports and sg groups 2017-04-10 07:40:43 +00:00
test_providernet.py Merge "Fix call a method of extension class" 2017-04-02 03:26:12 +00:00
test_quotasv2.py Decouple tests from default quota size option values 2017-03-07 19:35:51 +00:00
test_router_availability_zone.py Replace six.iteritems with dict.items(Part-1) 2017-04-17 14:08:47 +08:00
test_securitygroup.py Merge "Replace six.iteritems with dict.items(Part-1)" 2017-04-17 15:16:58 +00:00
test_segment.py use neutron_lib's portbindings api-def 2017-03-31 09:16:22 -06:00
test_servicetype.py Spin off context module 2017-03-06 16:25:29 +00:00
test_subnet_service_types.py Eliminate lookup of "resource extend" funcs by name 2017-04-21 14:48:42 -04:00
test_tag.py Enhance tag mechanism 2017-02-04 11:07:04 +09:00
test_timestamp.py OVO for Tag 2017-03-07 23:06:00 +00:00
test_vlantransparent.py Replace six.iteritems with dict.items(Part-1) 2017-04-17 14:08:47 +08:00
v2attributes.py Use ExtensionDescriptor from neutron-lib 2016-12-02 14:16:06 -05:00