neutron/neutron/tests/unit
John Perkins 972cdef50c Classes lack metaclass decoration
Add decorations where required.

There are roughly a dozen classes in Neutron that define abstract
methods or properties but are not decorated with
@six.add_metaclass(abc.ABCMeta). Without this decoration, children
can be created without defining the required methods or properties.

Decorating RBACColumns in db/rbac_db_models.py causes failures and will
be reported separately.

Decorating unit tests is of dubious benifit and should be addressed
separately (if at all).

There are also several more places where metaclassing isn't correct, to
be taken care of in follow-on patches.

For example, BaseScheduler is using the fact the None doesn't have a
filter_agents() method, which gives developers confusing error messages
when they incorrectly implement the interface, and they won't see any
error until schedule() is called. As an aside, the docstring for this
base class is also incorrect.

Change-Id: I2b2cce37d9b0d40559a715a7d510a969b8ba9963
Closes-Bug: #1577648
2016-05-05 13:31:15 -06:00
..
agent Merge "Allow OVSDB Connection to register certain tables" 2016-04-30 21:54:26 +00:00
api Remove BGP code from neutron 2016-04-25 21:54:06 -07:00
callbacks Provide kwargs for callback abort 2016-01-12 21:48:05 +00:00
cmd Make netns_cleanup to purge resources of selected agent only 2016-02-11 12:19:26 +03:00
common Use constants from neutron-lib 2016-04-23 21:23:56 -04:00
core_extensions Objects DB api: added composite key to handle multiple primary key 2016-03-01 17:05:11 +00:00
db Remove BGP code from neutron 2016-04-25 21:54:06 -07:00
debug tests: stop validating neutronclient in neutron-debug tests 2016-01-14 06:46:45 +00:00
extensions Classes lack metaclass decoration 2016-05-05 13:31:15 -06:00
hacking Revert "Switch to inheriting hacking checks from neutron-lib" 2016-04-24 15:19:20 +00:00
ipam Use constants from neutron-lib 2016-04-23 21:23:56 -04:00
notifiers Use constants from neutron-lib 2016-04-23 21:23:56 -04:00
objects Use constants from neutron-lib 2016-04-23 21:23:56 -04:00
plugins Use converters and validators from neutron-lib 2016-04-24 19:13:10 -04:00
quota Fix module's import order 2016-01-22 06:38:42 -08:00
scheduler Use constants from neutron-lib 2016-04-23 21:23:56 -04:00
services Merge "Remove BGP code from neutron" 2016-04-27 16:20:41 +00:00
tests Fix regexp for ss output 2016-04-07 15:56:43 +00:00
__init__.py oslo: migrate to namespace-less import paths 2015-02-05 15:09:32 +01:00
_test_extension_portbindings.py Fix module's import order 2016-01-22 06:38:42 -08:00
dummy_plugin.py Use exceptions from neutron-lib 2016-04-21 21:29:44 -04:00
extension_stubs.py Add a description field to all standard resources 2016-03-05 02:29:35 +00:00
test_auth.py Fix params order in assertEqual 2016-01-13 18:24:04 +05:30
test_context.py Support Unicode request_id on Python 3 2015-11-27 16:21:16 +01:00
test_manager.py Add the ability to load a set of service plugins on startup 2016-02-10 10:04:15 -06:00
test_policy.py Use constants from neutron-lib 2016-04-23 21:23:56 -04:00
test_service.py Refactor TestRpcWorker and TestWorkerService 2015-06-16 15:49:48 +03:00
test_wsgi.py Use exceptions from neutron-lib 2016-04-21 21:29:44 -04:00
testlib_api.py Improve fixture usage. 2015-07-01 14:53:48 +12:00