]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
Reorganize plugin test modules
authorMaru Newby <marun@redhat.com>
Mon, 6 Apr 2015 21:53:39 +0000 (21:53 +0000)
committerMaru Newby <marun@redhat.com>
Tue, 7 Apr 2015 00:55:25 +0000 (00:55 +0000)
This change moves plugin test modules to conform to the new rules on
unit test tree structure (see TESTING.rst).

Vendor plugin paths continue to be ignored, and unit test modules that
test features instead of modules are also ignored pending their
removal to the functional test tree.

Change-Id: I482c377ca72ffd58692ad84bd9692356513e4c98
Closes-Bug: #1440834

40 files changed:
neutron/tests/retargetable/base.py
neutron/tests/unit/plugins/linuxbridge/agent/__init__.py [new file with mode: 0644]
neutron/tests/unit/plugins/linuxbridge/agent/test_linuxbridge_neutron_agent.py [moved from neutron/tests/unit/plugins/linuxbridge/test_lb_neutron_agent.py with 100% similarity]
neutron/tests/unit/plugins/ml2/drivers/arista/test_mechanism_arista.py [moved from neutron/tests/unit/plugins/ml2/drivers/arista/test_arista_mechanism_driver.py with 100% similarity]
neutron/tests/unit/plugins/ml2/drivers/base_type_tunnel.py [moved from neutron/tests/unit/plugins/ml2/test_type_tunnel.py with 100% similarity]
neutron/tests/unit/plugins/ml2/drivers/cisco/apic/base.py [moved from neutron/tests/unit/plugins/ml2/drivers/cisco/apic/test_cisco_apic_common.py with 100% similarity]
neutron/tests/unit/plugins/ml2/drivers/cisco/apic/test_apic_sync.py [moved from neutron/tests/unit/plugins/ml2/drivers/cisco/apic/test_cisco_apic_sync.py with 100% similarity]
neutron/tests/unit/plugins/ml2/drivers/cisco/apic/test_apic_topology.py [moved from neutron/tests/unit/plugins/ml2/drivers/cisco/apic/test_cisco_apic_topology_agent.py with 99% similarity]
neutron/tests/unit/plugins/ml2/drivers/cisco/apic/test_mechanism_apic.py [moved from neutron/tests/unit/plugins/ml2/drivers/cisco/apic/test_cisco_apic_mechanism_driver.py with 99% similarity]
neutron/tests/unit/plugins/ml2/drivers/cisco/ncs/test_driver.py [moved from neutron/tests/unit/plugins/ml2/drivers/cisco/ncs/test_mechanism_ncs.py with 95% similarity]
neutron/tests/unit/plugins/ml2/drivers/ext_test.py
neutron/tests/unit/plugins/ml2/drivers/freescale/test_mechanism_fslsdn.py
neutron/tests/unit/plugins/ml2/drivers/l2pop/__init__.py [new file with mode: 0644]
neutron/tests/unit/plugins/ml2/drivers/l2pop/test_mech_driver.py [moved from neutron/tests/unit/plugins/ml2/drivers/test_l2population.py with 99% similarity]
neutron/tests/unit/plugins/ml2/drivers/mlnx/__init__.py [new file with mode: 0644]
neutron/tests/unit/plugins/ml2/drivers/mlnx/test_mech_mlnx.py [moved from neutron/tests/unit/plugins/ml2/drivers/test_mech_mlnx.py with 100% similarity]
neutron/tests/unit/plugins/ml2/drivers/opendaylight/__init__.py [new file with mode: 0644]
neutron/tests/unit/plugins/ml2/drivers/opendaylight/test_driver.py [moved from neutron/tests/unit/plugins/ml2/test_mechanism_odl.py with 98% similarity]
neutron/tests/unit/plugins/ml2/drivers/test_helpers.py [moved from neutron/tests/unit/plugins/ml2/test_helpers.py with 100% similarity]
neutron/tests/unit/plugins/ml2/drivers/test_mech_linuxbridge.py [moved from neutron/tests/unit/plugins/ml2/test_mech_linuxbridge.py with 100% similarity]
neutron/tests/unit/plugins/ml2/drivers/test_mech_openvswitch.py [moved from neutron/tests/unit/plugins/ml2/test_mech_openvswitch.py with 100% similarity]
neutron/tests/unit/plugins/ml2/drivers/test_type_flat.py [moved from neutron/tests/unit/plugins/ml2/test_type_flat.py with 100% similarity]
neutron/tests/unit/plugins/ml2/drivers/test_type_gre.py [moved from neutron/tests/unit/plugins/ml2/test_type_gre.py with 94% similarity]
neutron/tests/unit/plugins/ml2/drivers/test_type_local.py [moved from neutron/tests/unit/plugins/ml2/test_type_local.py with 100% similarity]
neutron/tests/unit/plugins/ml2/drivers/test_type_vlan.py [moved from neutron/tests/unit/plugins/ml2/test_type_vlan.py with 100% similarity]
neutron/tests/unit/plugins/ml2/drivers/test_type_vxlan.py [moved from neutron/tests/unit/plugins/ml2/test_type_vxlan.py with 93% similarity]
neutron/tests/unit/plugins/ml2/extensions/fake_extension.py [moved from neutron/tests/unit/plugins/ml2/extensions/test_extension.py with 92% similarity]
neutron/tests/unit/plugins/ml2/test_agent_scheduler.py
neutron/tests/unit/plugins/ml2/test_db.py [moved from neutron/tests/unit/plugins/ml2/db/test_ml2_db.py with 100% similarity]
neutron/tests/unit/plugins/ml2/test_ext_portsecurity.py
neutron/tests/unit/plugins/ml2/test_extension_driver_api.py
neutron/tests/unit/plugins/ml2/test_plugin.py [moved from neutron/tests/unit/plugins/ml2/test_ml2_plugin.py with 100% similarity]
neutron/tests/unit/plugins/ml2/test_rpc.py [moved from neutron/tests/unit/plugins/ml2/test_rpcapi.py with 100% similarity]
neutron/tests/unit/plugins/openvswitch/agent/__init__.py [new file with mode: 0644]
neutron/tests/unit/plugins/openvswitch/agent/test_ovs_neutron_agent.py [moved from neutron/tests/unit/plugins/openvswitch/test_ovs_neutron_agent.py with 100% similarity]
neutron/tests/unit/plugins/sriovnicagent/common/__init__.py [new file with mode: 0644]
neutron/tests/unit/plugins/sriovnicagent/common/test_config.py [moved from neutron/tests/unit/plugins/sriovnicagent/test_sriov_agent_config.py with 100% similarity]
neutron/tests/unit/plugins/sriovnicagent/test_sriov_nic_agent.py [moved from neutron/tests/unit/plugins/sriovnicagent/test_sriov_neutron_agent.py with 100% similarity]
neutron/tests/unit/services/l3_router/test_l3_apic.py
tools/check_unit_test_structure.sh

index a149f961c34d57f5a8a7c22c92abc9573a067001..ed80c4020e5f3e6f4a338cef69fe6a85ca8b3981 100644 (file)
@@ -29,7 +29,7 @@ import testscenarios
 
 from neutron.tests import base as tests_base
 from neutron.tests.retargetable import client_fixtures
-from neutron.tests.unit.plugins.ml2 import test_ml2_plugin
+from neutron.tests.unit.plugins.ml2 import test_plugin
 
 
 # Each plugin must add a class to plugin_configurations that can configure the
@@ -39,7 +39,7 @@ from neutron.tests.unit.plugins.ml2 import test_ml2_plugin
 
 # TODO(marun) Discover plugin conf via a metaclass
 plugin_configurations = [
-    test_ml2_plugin.Ml2ConfFixture(),
+    test_plugin.Ml2ConfFixture(),
 ]
 
 
diff --git a/neutron/tests/unit/plugins/linuxbridge/agent/__init__.py b/neutron/tests/unit/plugins/linuxbridge/agent/__init__.py
new file mode 100644 (file)
index 0000000..e69de29
similarity index 99%
rename from neutron/tests/unit/plugins/ml2/drivers/cisco/apic/test_cisco_apic_topology_agent.py
rename to neutron/tests/unit/plugins/ml2/drivers/cisco/apic/test_apic_topology.py
index 89fefbaeacde38963af1c23a2b063f24c1718042..016f16453f2ce9ab34c17258a44636ab0a832160 100644 (file)
@@ -22,7 +22,7 @@ sys.modules["apicapi"] = mock.Mock()
 from neutron.plugins.ml2.drivers.cisco.apic import apic_topology
 from neutron.tests import base
 from neutron.tests.unit.plugins.ml2.drivers.cisco.apic import (
-    test_cisco_apic_common as mocked)
+    base as mocked)
 
 NOTIFIER = ('neutron.plugins.ml2.drivers.cisco.apic.'
             'apic_topology.ApicTopologyServiceNotifierApi')
similarity index 99%
rename from neutron/tests/unit/plugins/ml2/drivers/cisco/apic/test_cisco_apic_mechanism_driver.py
rename to neutron/tests/unit/plugins/ml2/drivers/cisco/apic/test_mechanism_apic.py
index 50cba5fc801ec971be7a018893b1d822e9aec9df..f59fedcf20a4409934158240442dd7ea1b8c22bb 100644 (file)
@@ -25,7 +25,7 @@ from neutron.plugins.ml2.drivers.cisco.apic import mechanism_apic as md
 from neutron.plugins.ml2.drivers import type_vlan  # noqa
 from neutron.tests import base
 from neutron.tests.unit.plugins.ml2.drivers.cisco.apic import (
-    test_cisco_apic_common as mocked)
+    base as mocked)
 
 
 HOST_ID1 = 'ubuntu'
similarity index 95%
rename from neutron/tests/unit/plugins/ml2/drivers/cisco/ncs/test_mechanism_ncs.py
rename to neutron/tests/unit/plugins/ml2/drivers/cisco/ncs/test_driver.py
index d9fe09ad2266a4800379cdbb97d021a41b05871b..5678925c516deeaf376f4acaa5dc93d6325fd4dc 100644 (file)
@@ -14,7 +14,7 @@
 #    under the License.
 
 from neutron.plugins.ml2.drivers.cisco.ncs import driver
-from neutron.tests.unit.plugins.ml2 import test_ml2_plugin as test_plugin
+from neutron.tests.unit.plugins.ml2 import test_plugin
 
 
 class NCSTestCase(test_plugin.Ml2PluginV2TestCase):
index 02b79dc585f54ad3e32925454495ef4783f0d33d..90c0f72ba8f180c2a0389f0444f33cc8b71e9709 100644 (file)
@@ -30,7 +30,7 @@ from neutron.tests.unit.plugins.ml2 import extensions as test_extensions
 
 
 class TestExtensionDriverBase(driver_api.ExtensionDriver):
-    _supported_extension_aliases = 'test_extension'
+    _supported_extension_aliases = 'fake_extension'
 
     def initialize(self):
         extensions.append_api_extensions_path(test_extensions.__path__)
index 04b0e8fb129696cb65e56303a4e7f0c45513308a..f4ac15f3010f7e892757b5cc9a0be5969a5621bf 100644 (file)
@@ -19,13 +19,13 @@ from oslo_config import cfg
 from neutron.extensions import portbindings
 from neutron.plugins.ml2.drivers.freescale import mechanism_fslsdn
 from neutron.tests import base
-from neutron.tests.unit.plugins.ml2 import test_ml2_plugin
+from neutron.tests.unit.plugins.ml2 import test_plugin
 
 
 """Unit testing for Freescale SDN mechanism driver."""
 
 
-class TestFslSdnMechDriverV2(test_ml2_plugin.Ml2PluginV2TestCase):
+class TestFslSdnMechDriverV2(test_plugin.Ml2PluginV2TestCase):
     _mechanism_drivers = ['fslsdn']
 
     """Testing mechanism driver with ML2 plugin."""
@@ -41,18 +41,18 @@ class TestFslSdnMechDriverV2(test_ml2_plugin.Ml2PluginV2TestCase):
             super(TestFslSdnMechDriverV2, self).setUp()
 
 
-class TestFslSdnMechDriverNetworksV2(test_ml2_plugin.TestMl2NetworksV2,
+class TestFslSdnMechDriverNetworksV2(test_plugin.TestMl2NetworksV2,
                                      TestFslSdnMechDriverV2):
     pass
 
 
-class TestFslSdnMechDriverPortsV2(test_ml2_plugin.TestMl2PortsV2,
+class TestFslSdnMechDriverPortsV2(test_plugin.TestMl2PortsV2,
                                   TestFslSdnMechDriverV2):
     VIF_TYPE = portbindings.VIF_TYPE_OVS
     CAP_PORT_FILTER = True
 
 
-class TestFslSdnMechDriverSubnetsV2(test_ml2_plugin.TestMl2SubnetsV2,
+class TestFslSdnMechDriverSubnetsV2(test_plugin.TestMl2SubnetsV2,
                                     TestFslSdnMechDriverV2):
     pass
 
diff --git a/neutron/tests/unit/plugins/ml2/drivers/l2pop/__init__.py b/neutron/tests/unit/plugins/ml2/drivers/l2pop/__init__.py
new file mode 100644 (file)
index 0000000..e69de29
similarity index 99%
rename from neutron/tests/unit/plugins/ml2/drivers/test_l2population.py
rename to neutron/tests/unit/plugins/ml2/drivers/l2pop/test_mech_driver.py
index d0f972158123f5816e802a4fd2509860fc5a780f..69e3b3c50a255c9c639722e104ece1ca55ead5fc 100644 (file)
@@ -35,7 +35,7 @@ from neutron.plugins.ml2.drivers.l2pop import rpc as l2pop_rpc
 from neutron.plugins.ml2 import managers
 from neutron.plugins.ml2 import rpc
 from neutron.tests import base
-from neutron.tests.unit.plugins.ml2 import test_ml2_plugin as test_plugin
+from neutron.tests.unit.plugins.ml2 import test_plugin
 
 HOST = 'my_l2_host'
 L2_AGENT = {
diff --git a/neutron/tests/unit/plugins/ml2/drivers/mlnx/__init__.py b/neutron/tests/unit/plugins/ml2/drivers/mlnx/__init__.py
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/neutron/tests/unit/plugins/ml2/drivers/opendaylight/__init__.py b/neutron/tests/unit/plugins/ml2/drivers/opendaylight/__init__.py
new file mode 100644 (file)
index 0000000..e69de29
similarity index 98%
rename from neutron/tests/unit/plugins/ml2/test_mechanism_odl.py
rename to neutron/tests/unit/plugins/ml2/drivers/opendaylight/test_driver.py
index 89161ac200213c45a2bb4b757c5df5fbb0e4669e..03b8354676457cad6f023c96b771f2dfb11b9f3c 100644 (file)
@@ -17,7 +17,7 @@ import sys
 
 import mock
 from neutron import context
-from neutron.tests.unit.plugins.ml2 import test_ml2_plugin as test_plugin
+from neutron.tests.unit.plugins.ml2 import test_plugin
 
 
 with mock.patch.dict(sys.modules,
similarity index 94%
rename from neutron/tests/unit/plugins/ml2/test_type_gre.py
rename to neutron/tests/unit/plugins/ml2/drivers/test_type_gre.py
index fba76f92cec1ec1f0d15ea160b9bc2b77eb22d3c..01f36ab464e14bf667b7915e803346db11982614 100644 (file)
@@ -23,8 +23,8 @@ from neutron.db import api as db_api
 from neutron.plugins.common import constants as p_const
 from neutron.plugins.ml2 import config
 from neutron.plugins.ml2.drivers import type_gre
-from neutron.tests.unit.plugins.ml2 import test_rpcapi
-from neutron.tests.unit.plugins.ml2 import test_type_tunnel
+from neutron.tests.unit.plugins.ml2.drivers import base_type_tunnel
+from neutron.tests.unit.plugins.ml2 import test_rpc
 from neutron.tests.unit import testlib_api
 
 
@@ -44,7 +44,7 @@ def _get_allocation(session, gre_id):
         gre_id=gre_id).one()
 
 
-class GreTypeTest(test_type_tunnel.TunnelTypeTestMixin,
+class GreTypeTest(base_type_tunnel.TunnelTypeTestMixin,
                   testlib_api.SqlTestCase):
     DRIVER_CLASS = type_gre.GreTypeDriver
     TYPE = p_const.TYPE_GRE
@@ -151,13 +151,13 @@ class GreTypeTest(test_type_tunnel.TunnelTypeTestMixin,
         self.assertEqual(0, self.driver.get_mtu('physnet1'))
 
 
-class GreTypeMultiRangeTest(test_type_tunnel.TunnelTypeMultiRangeTestMixin,
+class GreTypeMultiRangeTest(base_type_tunnel.TunnelTypeMultiRangeTestMixin,
                             testlib_api.SqlTestCase):
     DRIVER_CLASS = type_gre.GreTypeDriver
 
 
-class GreTypeRpcCallbackTest(test_type_tunnel.TunnelRpcCallbackTestMixin,
-                             test_rpcapi.RpcCallbacksTestCase,
+class GreTypeRpcCallbackTest(base_type_tunnel.TunnelRpcCallbackTestMixin,
+                             test_rpc.RpcCallbacksTestCase,
                              testlib_api.SqlTestCase):
         DRIVER_CLASS = type_gre.GreTypeDriver
         TYPE = p_const.TYPE_GRE
similarity index 93%
rename from neutron/tests/unit/plugins/ml2/test_type_vxlan.py
rename to neutron/tests/unit/plugins/ml2/drivers/test_type_vxlan.py
index b76b0094f25ba41cbb5e3958d5a7a90b29a78065..b59f0118080d471e3a836387f61e74628dd29802 100644 (file)
@@ -18,8 +18,8 @@ import mock
 from neutron.plugins.common import constants as p_const
 from neutron.plugins.ml2 import config
 from neutron.plugins.ml2.drivers import type_vxlan
-from neutron.tests.unit.plugins.ml2 import test_rpcapi
-from neutron.tests.unit.plugins.ml2 import test_type_tunnel
+from neutron.tests.unit.plugins.ml2.drivers import base_type_tunnel
+from neutron.tests.unit.plugins.ml2 import test_rpc
 from neutron.tests.unit import testlib_api
 
 
@@ -31,7 +31,7 @@ VXLAN_UDP_PORT_ONE = 9999
 VXLAN_UDP_PORT_TWO = 8888
 
 
-class VxlanTypeTest(test_type_tunnel.TunnelTypeTestMixin,
+class VxlanTypeTest(base_type_tunnel.TunnelTypeTestMixin,
                     testlib_api.SqlTestCase):
     DRIVER_CLASS = type_vxlan.VxlanTypeDriver
     TYPE = p_const.TYPE_VXLAN
@@ -119,13 +119,13 @@ class VxlanTypeTest(test_type_tunnel.TunnelTypeTestMixin,
         self.assertEqual(0, self.driver.get_mtu('physnet1'))
 
 
-class VxlanTypeMultiRangeTest(test_type_tunnel.TunnelTypeMultiRangeTestMixin,
+class VxlanTypeMultiRangeTest(base_type_tunnel.TunnelTypeMultiRangeTestMixin,
                               testlib_api.SqlTestCase):
     DRIVER_CLASS = type_vxlan.VxlanTypeDriver
 
 
-class VxlanTypeRpcCallbackTest(test_type_tunnel.TunnelRpcCallbackTestMixin,
-                               test_rpcapi.RpcCallbacksTestCase,
+class VxlanTypeRpcCallbackTest(base_type_tunnel.TunnelRpcCallbackTestMixin,
+                               test_rpc.RpcCallbacksTestCase,
                                testlib_api.SqlTestCase):
         DRIVER_CLASS = type_vxlan.VxlanTypeDriver
         TYPE = p_const.TYPE_VXLAN
similarity index 92%
rename from neutron/tests/unit/plugins/ml2/extensions/test_extension.py
rename to neutron/tests/unit/plugins/ml2/extensions/fake_extension.py
index c48c0e7d06b79b30b29231e5860d0a4c5f98fd67..fdc94c128908a5724a801ae2b7dbe9bf3924f54b 100644 (file)
@@ -39,15 +39,15 @@ EXTENDED_ATTRIBUTES_2_0 = {
 }
 
 
-class Test_extension(extensions.ExtensionDescriptor):
+class Fake_extension(extensions.ExtensionDescriptor):
 
     @classmethod
     def get_name(cls):
-        return "ML2 test extension"
+        return "ML2 fake extension"
 
     @classmethod
     def get_alias(cls):
-        return "test_extension"
+        return "fake_extension"
 
     @classmethod
     def get_description(cls):
@@ -56,7 +56,7 @@ class Test_extension(extensions.ExtensionDescriptor):
     @classmethod
     def get_namespace(cls):
         return ("http://docs.openstack.org/ext/neutron/ml2/test/"
-                "test_extension/api/v1.0")
+                "fake_extension/api/v1.0")
 
     @classmethod
     def get_updated(cls):
index a55645cd6bd11b2a088730ec3a41c115f2ae3845..ed6de34c446248918d6b59d86450bb2beb893630 100644 (file)
 #    License for the specific language governing permissions and limitations
 #    under the License.
 
-from neutron.tests.unit.plugins.ml2 import test_ml2_plugin
+from neutron.tests.unit.plugins.ml2 import test_plugin
 from neutron.tests.unit.plugins.openvswitch import test_agent_scheduler
 
 
 class Ml2AgentSchedulerTestCase(
     test_agent_scheduler.OvsAgentSchedulerTestCase):
-    plugin_str = test_ml2_plugin.PLUGIN_NAME
+    plugin_str = test_plugin.PLUGIN_NAME
     l3_plugin = ('neutron.services.l3_router.'
                  'l3_router_plugin.L3RouterPlugin')
 
 
 class Ml2L3AgentNotifierTestCase(
     test_agent_scheduler.OvsL3AgentNotifierTestCase):
-    plugin_str = test_ml2_plugin.PLUGIN_NAME
+    plugin_str = test_plugin.PLUGIN_NAME
     l3_plugin = ('neutron.services.l3_router.'
                  'l3_router_plugin.L3RouterPlugin')
 
 
 class Ml2DhcpAgentNotifierTestCase(
     test_agent_scheduler.OvsDhcpAgentNotifierTestCase):
-    plugin_str = test_ml2_plugin.PLUGIN_NAME
+    plugin_str = test_plugin.PLUGIN_NAME
index 9b0d2eeadf5d44e972e094caeb124358266d7aef..6180ff10e86da2caa278bab0336bcf628a9b1893 100644 (file)
 
 from neutron.plugins.ml2 import config
 from neutron.tests.unit.extensions import test_portsecurity as test_psec
-from neutron.tests.unit.plugins.ml2 import test_ml2_plugin
+from neutron.tests.unit.plugins.ml2 import test_plugin
 
 
-class PSExtDriverTestCase(test_ml2_plugin.Ml2PluginV2TestCase,
+class PSExtDriverTestCase(test_plugin.Ml2PluginV2TestCase,
                           test_psec.TestPortSecurity):
     _extension_drivers = ['port_security']
 
index 5fc4221630770b380958855d7d74b90af36502a7..92e4957e99a7c1d348769c76e19ddc8e49b82f47 100644 (file)
@@ -17,10 +17,10 @@ from neutron import context
 from neutron import manager
 from neutron.plugins.ml2 import config
 from neutron.tests.unit.plugins.ml2.drivers import ext_test
-from neutron.tests.unit.plugins.ml2 import test_ml2_plugin
+from neutron.tests.unit.plugins.ml2 import test_plugin
 
 
-class ExtensionDriverTestCase(test_ml2_plugin.Ml2PluginV2TestCase):
+class ExtensionDriverTestCase(test_plugin.Ml2PluginV2TestCase):
 
     _extension_drivers = ['test']
 
@@ -128,7 +128,7 @@ class ExtensionDriverTestCase(test_ml2_plugin.Ml2PluginV2TestCase):
             self.assertTrue(ext_port_dict.called)
 
 
-class DBExtensionDriverTestCase(test_ml2_plugin.Ml2PluginV2TestCase):
+class DBExtensionDriverTestCase(test_plugin.Ml2PluginV2TestCase):
     _extension_drivers = ['testdb']
 
     def setUp(self):
diff --git a/neutron/tests/unit/plugins/openvswitch/agent/__init__.py b/neutron/tests/unit/plugins/openvswitch/agent/__init__.py
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/neutron/tests/unit/plugins/sriovnicagent/common/__init__.py b/neutron/tests/unit/plugins/sriovnicagent/common/__init__.py
new file mode 100644 (file)
index 0000000..e69de29
index 536c10e7a767cf2811d62ad678c7df7dc4f8bbb2..24431b5d87079e3f05de915e0d4bd34a71cfbf9c 100644 (file)
@@ -21,8 +21,7 @@ sys.modules["apicapi"] = mock.Mock()
 
 from neutron.plugins.ml2.drivers.cisco.apic import mechanism_apic as md
 from neutron.services.l3_router import l3_apic
-from neutron.tests.unit.plugins.ml2.drivers.cisco.apic import (
-    test_cisco_apic_common as mocked)
+from neutron.tests.unit.plugins.ml2.drivers.cisco.apic import base as mocked
 from neutron.tests.unit import testlib_api
 
 
index 9c250fe615c3bc68e40e78377b9632bd72386fcc..1e8a2362f75c95107bffbbba6559e3ba8c4035a5 100755 (executable)
@@ -11,7 +11,24 @@ test_path=$neutron_path/$base_test_path
 test_files=$(find ${test_path} -iname 'test_*.py')
 
 ignore_regexes=(
-    "^plugins.*$"
+    # The following vendor plugins are not required to confrm to the
+    # structural requirements.
+    "^plugins/brocade.*$"
+    "^plugins/cisco.*$"
+    "^plugins/embrane.*$"
+    "^plugins/ibm.*$"
+    "^plugins/oneconvergence.*$"
+    # The following open source plugin tests are not actually unit
+    # tests and are ignored pending their relocation to the functional
+    # test tree.
+    "^plugins/ml2/drivers/mech_sriov/test_mech_sriov_nic_switch.py$"
+    "^plugins/ml2/test_security_group.py$"
+    "^plugins/ml2/test_port_binding.py$"
+    "^plugins/ml2/test_extension_driver_api.py$"
+    "^plugins/ml2/test_ext_portsecurity.py$"
+    "^plugins/ml2/test_agent_scheduler.py$"
+    "^plugins/openvswitch/test_ovs_tunnel.py$"
+    "^plugins/openvswitch/test_agent_scheduler.py$"
 )
 
 error_count=0