neutron/neutron/tests/functional/agent/linux
Ihar Hrachyshka 31e1aeb66b Forbid importing neutron.tests.* from outside tests subtree
neutron-sanity-check tool was importing neutron.tests.base module, which
may be not present on some systems (f.e. RDO splits neutron/tests/
subtree in a separate python-neutron-tests package). It made the tool
not usable in some setups.

https://bugzilla.redhat.com/show_bug.cgi?id=1374282

This is not the first time when we by mistake import from
neutron.tests.* and break distributions. It's time to stop it by
proactively forbidding that pattern via a new hacking check.

Some functions were moved from neutron.tests.base to
neutron.common.utils to fulfill the need requirement. They were moved
using debtcollector, no current consumers should be affected.

Closes-Bug: #1621782
Change-Id: I790777ddcbd1b02218b3db54ae3d5c931d72d4fa
2016-09-15 18:42:45 +00:00
..
bin Add a functional test for iptables_manager.binary_name 2015-03-02 16:19:50 +09:00
__init__.py Empty files should not contain copyright or license 2014-10-20 00:50:32 +00:00
base.py Forbid importing neutron.tests.* from outside tests subtree 2016-09-15 18:42:45 +00:00
helpers.py Refactor and fix dummy process fixture 2016-03-30 13:12:31 +02:00
simple_daemon.py Use _ from neutron._i18n 2015-12-06 19:39:04 +09:00
test_async_process.py Move wait_until_true to neutron.common.utils 2016-06-27 11:40:11 +00:00
test_bridge_lib.py LinuxBridge: Use ifindex for logical 'timestamp' 2016-09-14 17:02:46 +00:00
test_dhcp.py Refactoring config options for common config opts 2016-07-26 15:55:49 +00:00
test_interface.py Forbid importing neutron.tests.* from outside tests subtree 2016-09-15 18:42:45 +00:00
test_ip_lib.py Forbid importing neutron.tests.* from outside tests subtree 2016-09-15 18:42:45 +00:00
test_ip_monitor.py Change linux/ip_lib code to better handle address families 2015-03-10 00:17:24 -04:00
test_ipset.py Forbid importing neutron.tests.* from outside tests subtree 2016-09-15 18:42:45 +00:00
test_iptables.py Use constants from neutron-lib 2016-04-23 21:23:56 -04:00
test_keepalived.py Move wait_until_true to neutron.common.utils 2016-06-27 11:40:11 +00:00
test_linuxbridge_arp_protect.py Use constants from neutron-lib 2016-04-23 21:23:56 -04:00
test_ovsdb_monitor.py Move wait_until_true to neutron.common.utils 2016-06-27 11:40:11 +00:00
test_process_monitor.py Move wait_until_true to neutron.common.utils 2016-06-27 11:40:11 +00:00
test_tc_lib.py Remove unused LOG 2016-07-05 15:22:13 +08:00
test_utils.py Merge "Move wait_until_true to neutron.common.utils" 2016-06-28 04:33:58 +00:00