tests: move test_db_base_plugin_v2.py to common

It's imported from functional suite, so changes to the file should
trigger relevant gate checks.

Change-Id: If855c32b1a7287c24e7b2ddbdca2a169207acb12
This commit is contained in:
Ihar Hrachyshka 2024-11-05 17:32:36 -05:00
parent 415bb3d2fa
commit f28a158b9f
54 changed files with 53 additions and 53 deletions

View File

@ -29,8 +29,8 @@ from neutron.objects import network as net_obj
from neutron.scheduler import l3_agent_scheduler from neutron.scheduler import l3_agent_scheduler
from neutron.services.l3_router import l3_router_plugin from neutron.services.l3_router import l3_router_plugin
from neutron.tests.common import helpers from neutron.tests.common import helpers
from neutron.tests.common import test_db_base_plugin_v2
from neutron.tests.functional import base from neutron.tests.functional import base
from neutron.tests.unit.db import test_db_base_plugin_v2
_uuid = uuidutils.generate_uuid _uuid = uuidutils.generate_uuid

View File

@ -20,7 +20,7 @@ from neutron_lib import context
from neutron_lib.plugins import directory from neutron_lib.plugins import directory
from webob import exc from webob import exc
from neutron.tests.unit.db import test_db_base_plugin_v2 from neutron.tests.common import test_db_base_plugin_v2
from neutron.tests.unit import dummy_plugin from neutron.tests.unit import dummy_plugin

View File

@ -20,7 +20,7 @@ from neutron_lib.plugins import directory
from oslo_config import cfg from oslo_config import cfg
from neutron.api.rpc.handlers import l3_rpc from neutron.api.rpc.handlers import l3_rpc
from neutron.tests.unit.db import test_db_base_plugin_v2 from neutron.tests.common import test_db_base_plugin_v2
from neutron.tests.unit import testlib_api from neutron.tests.unit import testlib_api

View File

@ -25,7 +25,7 @@ from neutron.api import extensions
from neutron.common import config from neutron.common import config
import neutron.extensions import neutron.extensions
from neutron.services.metering import metering_plugin from neutron.services.metering import metering_plugin
from neutron.tests.unit.db import test_db_base_plugin_v2 from neutron.tests.common import test_db_base_plugin_v2
DB_METERING_PLUGIN_KLASS = ( DB_METERING_PLUGIN_KLASS = (
"neutron.services.metering." "neutron.services.metering."

View File

@ -49,8 +49,8 @@ from neutron.objects import agent as ag_obj
from neutron.objects import l3agent as rb_obj from neutron.objects import l3agent as rb_obj
from neutron import policy from neutron import policy
from neutron.tests.common import helpers from neutron.tests.common import helpers
from neutron.tests.common import test_db_base_plugin_v2 as test_plugin
from neutron.tests.unit.api import test_extensions from neutron.tests.unit.api import test_extensions
from neutron.tests.unit.db import test_db_base_plugin_v2 as test_plugin
from neutron.tests.unit.extensions import test_agent from neutron.tests.unit.extensions import test_agent
from neutron.tests.unit.extensions import test_l3 from neutron.tests.unit.extensions import test_l3
from neutron.tests.unit import testlib_api from neutron.tests.unit import testlib_api

View File

@ -25,7 +25,7 @@ from neutron.db import allowedaddresspairs_db as addr_pair_db
from neutron.db import db_base_plugin_v2 from neutron.db import db_base_plugin_v2
from neutron.db import portsecurity_db from neutron.db import portsecurity_db
from neutron.extensions import securitygroup as secgroup from neutron.extensions import securitygroup as secgroup
from neutron.tests.unit.db import test_db_base_plugin_v2 from neutron.tests.common import test_db_base_plugin_v2
DB_PLUGIN_KLASS = ('neutron.tests.unit.db.test_allowedaddresspairs_db.' DB_PLUGIN_KLASS = ('neutron.tests.unit.db.test_allowedaddresspairs_db.'

View File

@ -29,7 +29,7 @@ from neutron.objects import subnet as subnet_obj
from neutron.plugins.ml2 import plugin as ml2_plugin from neutron.plugins.ml2 import plugin as ml2_plugin
from neutron.services.segments import db as segments_db from neutron.services.segments import db as segments_db
from neutron.tests import base from neutron.tests import base
from neutron.tests.unit.db import test_db_base_plugin_v2 from neutron.tests.common import test_db_base_plugin_v2
class TestIpamBackendMixin(base.BaseTestCase): class TestIpamBackendMixin(base.BaseTestCase):

View File

@ -35,7 +35,7 @@ from neutron.ipam import requests as ipam_req
from neutron.objects import network as network_obj from neutron.objects import network as network_obj
from neutron.objects import ports as port_obj from neutron.objects import ports as port_obj
from neutron.objects import subnet as obj_subnet from neutron.objects import subnet as obj_subnet
from neutron.tests.unit.db import test_db_base_plugin_v2 as test_db_base from neutron.tests.common import test_db_base_plugin_v2 as test_db_base
class UseIpamMixin: class UseIpamMixin:

View File

@ -46,7 +46,7 @@ from neutron.objects import ports as port_obj
from neutron.objects import router as l3_obj from neutron.objects import router as l3_obj
from neutron.objects import subnet as subnet_obj from neutron.objects import subnet as subnet_obj
from neutron.tests import base from neutron.tests import base
from neutron.tests.unit.db import test_db_base_plugin_v2 from neutron.tests.common import test_db_base_plugin_v2
@ddt.ddt @ddt.ddt

View File

@ -39,7 +39,7 @@ from neutron.objects import agent as agent_obj
from neutron.objects import l3agent as rb_obj from neutron.objects import l3agent as rb_obj
from neutron.objects import ports as port_obj from neutron.objects import ports as port_obj
from neutron.objects import router as router_obj from neutron.objects import router as router_obj
from neutron.tests.unit.db import test_db_base_plugin_v2 from neutron.tests.common import test_db_base_plugin_v2
from neutron.tests.unit.extensions import test_l3 from neutron.tests.unit.extensions import test_l3
_uuid = uuidutils.generate_uuid _uuid = uuidutils.generate_uuid

View File

@ -20,7 +20,7 @@ from neutron_lib.plugins import directory
from neutron.db import ovn_l3_hamode_db from neutron.db import ovn_l3_hamode_db
from neutron.objects import router as router_obj from neutron.objects import router as router_obj
from neutron.tests.unit.db import test_db_base_plugin_v2 as test_plugin from neutron.tests.common import test_db_base_plugin_v2 as test_plugin
from neutron.tests.unit.db import test_l3_dvr_db from neutron.tests.unit.db import test_l3_dvr_db

View File

@ -29,7 +29,7 @@ from neutron.db.models import ovn as ovn_models
from neutron.db import ovn_revision_numbers_db as ovn_rn_db from neutron.db import ovn_revision_numbers_db as ovn_rn_db
import neutron.extensions import neutron.extensions
from neutron.services.revisions import revision_plugin from neutron.services.revisions import revision_plugin
from neutron.tests.unit.db import test_db_base_plugin_v2 from neutron.tests.common import test_db_base_plugin_v2
from neutron.tests.unit.extensions import test_address_group from neutron.tests.unit.extensions import test_address_group
from neutron.tests.unit.extensions import test_l3 from neutron.tests.unit.extensions import test_l3
from neutron.tests.unit.extensions import test_securitygroup from neutron.tests.unit.extensions import test_securitygroup

View File

@ -26,7 +26,7 @@ from neutron.db import rbac_db_models
from neutron.extensions import rbac as ext_rbac from neutron.extensions import rbac as ext_rbac
from neutron.objects import network as network_obj from neutron.objects import network as network_obj
from neutron.objects.qos import policy as qos_policy_obj from neutron.objects.qos import policy as qos_policy_obj
from neutron.tests.unit.db import test_db_base_plugin_v2 as test_plugin from neutron.tests.common import test_db_base_plugin_v2 as test_plugin
class NetworkRbacTestcase(test_plugin.NeutronDbPluginV2TestCase): class NetworkRbacTestcase(test_plugin.NeutronDbPluginV2TestCase):

View File

@ -19,7 +19,7 @@ import webob.exc
from neutron.db import address_group_db from neutron.db import address_group_db
from neutron.db import db_base_plugin_v2 from neutron.db import db_base_plugin_v2
from neutron.extensions import address_group as ag_ext from neutron.extensions import address_group as ag_ext
from neutron.tests.unit.db import test_db_base_plugin_v2 from neutron.tests.common import test_db_base_plugin_v2
DB_PLUGIN_KLASS = ('neutron.tests.unit.extensions.test_address_group.' DB_PLUGIN_KLASS = ('neutron.tests.unit.extensions.test_address_group.'

View File

@ -28,7 +28,7 @@ import webob.exc
from neutron.db import address_scope_db from neutron.db import address_scope_db
from neutron.db import db_base_plugin_v2 from neutron.db import db_base_plugin_v2
from neutron.extensions import address_scope as ext_address_scope from neutron.extensions import address_scope as ext_address_scope
from neutron.tests.unit.db import test_db_base_plugin_v2 from neutron.tests.common import test_db_base_plugin_v2
DB_PLUGIN_KLASS = ('neutron.tests.unit.extensions.test_address_scope.' DB_PLUGIN_KLASS = ('neutron.tests.unit.extensions.test_address_scope.'
'AddressScopeTestPlugin') 'AddressScopeTestPlugin')

View File

@ -26,8 +26,8 @@ from neutron.db import agents_db
from neutron.db import db_base_plugin_v2 from neutron.db import db_base_plugin_v2
from neutron.extensions import agent from neutron.extensions import agent
from neutron.tests.common import helpers from neutron.tests.common import helpers
from neutron.tests.common import test_db_base_plugin_v2
from neutron.tests.unit.api.v2 import test_base from neutron.tests.unit.api.v2 import test_base
from neutron.tests.unit.db import test_db_base_plugin_v2
_uuid = uuidutils.generate_uuid _uuid = uuidutils.generate_uuid

View File

@ -23,7 +23,7 @@ from neutron.db import db_base_plugin_v2
from neutron.extensions import agent from neutron.extensions import agent
from neutron.extensions import availability_zone as az_ext from neutron.extensions import availability_zone as az_ext
from neutron.tests.common import helpers from neutron.tests.common import helpers
from neutron.tests.unit.db import test_db_base_plugin_v2 from neutron.tests.common import test_db_base_plugin_v2
class AZExtensionManager: class AZExtensionManager:

View File

@ -24,7 +24,7 @@ from neutron_lib.tests.unit import fake_notifier
from neutron.db import data_plane_status_db as dps_db from neutron.db import data_plane_status_db as dps_db
from neutron.db import db_base_plugin_v2 from neutron.db import db_base_plugin_v2
from neutron.extensions import data_plane_status as dps_ext from neutron.extensions import data_plane_status as dps_ext
from neutron.tests.unit.db import test_db_base_plugin_v2 from neutron.tests.common import test_db_base_plugin_v2
class DataPlaneStatusTestExtensionManager: class DataPlaneStatusTestExtensionManager:

View File

@ -18,7 +18,7 @@ import webob.exc
from neutron.db import db_base_plugin_v2 from neutron.db import db_base_plugin_v2
from neutron.extensions import default_subnetpools from neutron.extensions import default_subnetpools
from neutron.tests.unit.db import test_db_base_plugin_v2 from neutron.tests.common import test_db_base_plugin_v2
class DefaultSubnetpoolsExtensionManager: class DefaultSubnetpoolsExtensionManager:

View File

@ -26,7 +26,7 @@ from oslo_config import cfg
from neutron.common import utils from neutron.common import utils
from neutron.db import db_base_plugin_v2 from neutron.db import db_base_plugin_v2
from neutron.extensions import dns from neutron.extensions import dns
from neutron.tests.unit.db import test_db_base_plugin_v2 from neutron.tests.common import test_db_base_plugin_v2
from neutron.tests.unit.plugins.ml2 import test_plugin from neutron.tests.unit.plugins.ml2 import test_plugin

View File

@ -30,7 +30,7 @@ from neutron.db import l3_fip_qos
from neutron.extensions import floating_ip_port_forwarding as pf_ext from neutron.extensions import floating_ip_port_forwarding as pf_ext
from neutron.extensions import l3 from neutron.extensions import l3
from neutron.objects.qos import policy from neutron.objects.qos import policy
from neutron.tests.unit.db import test_db_base_plugin_v2 from neutron.tests.common import test_db_base_plugin_v2
from neutron.tests.unit.extensions import test_l3 from neutron.tests.unit.extensions import test_l3

View File

@ -38,7 +38,7 @@ from neutron.tests.unit.api.v2 import test_base
rname = subnet_apidef.COLLECTION_NAME rname = subnet_apidef.COLLECTION_NAME
attributes.RESOURCES[rname].update( attributes.RESOURCES[rname].update(
extsnet_apidef.RESOURCE_ATTRIBUTE_MAP[rname]) extsnet_apidef.RESOURCE_ATTRIBUTE_MAP[rname])
from neutron.tests.unit.db import test_db_base_plugin_v2 # noqa: E402 from neutron.tests.common import test_db_base_plugin_v2 # noqa: E402
_uuid = uuidutils.generate_uuid _uuid = uuidutils.generate_uuid

View File

@ -22,7 +22,7 @@ import webob.exc
from neutron.db import db_base_plugin_v2 from neutron.db import db_base_plugin_v2
from neutron.db import extradhcpopt_db as edo_db from neutron.db import extradhcpopt_db as edo_db
from neutron.tests.unit.db import test_db_base_plugin_v2 from neutron.tests.common import test_db_base_plugin_v2
DB_PLUGIN_KLASS = ( DB_PLUGIN_KLASS = (

View File

@ -32,8 +32,8 @@ from neutron.objects import flavor as flavor_obj
from neutron.services.flavors import flavors_plugin from neutron.services.flavors import flavors_plugin
from neutron.services import provider_configuration as provconf from neutron.services import provider_configuration as provconf
from neutron.tests import base from neutron.tests import base
from neutron.tests.common import test_db_base_plugin_v2
from neutron.tests.unit.api.v2 import test_base from neutron.tests.unit.api.v2 import test_base
from neutron.tests.unit.db import test_db_base_plugin_v2
from neutron.tests.unit import dummy_plugin from neutron.tests.unit import dummy_plugin
from neutron.tests.unit.extensions import base as extension from neutron.tests.unit.extensions import base as extension

View File

@ -61,9 +61,9 @@ from neutron.extensions import l3
from neutron.objects import network as network_obj from neutron.objects import network as network_obj
from neutron.services.revisions import revision_plugin from neutron.services.revisions import revision_plugin
from neutron.tests import base from neutron.tests import base
from neutron.tests.common import test_db_base_plugin_v2
from neutron.tests.unit.api import test_extensions from neutron.tests.unit.api import test_extensions
from neutron.tests.unit.api.v2 import test_base from neutron.tests.unit.api.v2 import test_base
from neutron.tests.unit.db import test_db_base_plugin_v2
from neutron.tests.unit.extensions import base as test_extensions_base from neutron.tests.unit.extensions import base as test_extensions_base
from neutron.tests.unit.extensions import test_agent from neutron.tests.unit.extensions import test_agent
from neutron.tests.unit.plugins.ml2 import base as ml2_base from neutron.tests.unit.plugins.ml2 import base as ml2_base

View File

@ -40,7 +40,7 @@ from neutron.objects import ports as port_obj
from neutron.objects import router as l3_obj from neutron.objects import router as l3_obj
from neutron.objects import subnet as subnet_obj from neutron.objects import subnet as subnet_obj
from neutron.tests import base from neutron.tests import base
from neutron.tests.unit.db import test_db_base_plugin_v2 from neutron.tests.common import test_db_base_plugin_v2
from neutron.tests.unit.extensions import test_l3 from neutron.tests.unit.extensions import test_l3
from neutron.tests.unit import testlib_api from neutron.tests.unit import testlib_api

View File

@ -22,7 +22,7 @@ from neutron_lib import constants
import webob.exc import webob.exc
from neutron.extensions import local_ip as lip_ext from neutron.extensions import local_ip as lip_ext
from neutron.tests.unit.db import test_db_base_plugin_v2 from neutron.tests.common import test_db_base_plugin_v2
class LocalIPTestExtensionManager: class LocalIPTestExtensionManager:

View File

@ -20,7 +20,7 @@ from neutron.api import extensions as api_ext
from neutron.common import config from neutron.common import config
from neutron import extensions from neutron import extensions
from neutron.services.network_ip_availability import plugin as plugin_module from neutron.services.network_ip_availability import plugin as plugin_module
from neutron.tests.unit.db import test_db_base_plugin_v2 from neutron.tests.common import test_db_base_plugin_v2
API_RESOURCE = 'network-ip-availabilities' API_RESOURCE = 'network-ip-availabilities'
IP_AVAIL_KEY = 'network_ip_availability' IP_AVAIL_KEY = 'network_ip_availability'

View File

@ -24,7 +24,7 @@ from neutron.db import db_base_plugin_v2
from neutron.db import segments_db from neutron.db import segments_db
from neutron.extensions import network_segment_range as ext_range from neutron.extensions import network_segment_range as ext_range
from neutron.services.network_segment_range import plugin as plugin_range from neutron.services.network_segment_range import plugin as plugin_range
from neutron.tests.unit.db import test_db_base_plugin_v2 from neutron.tests.common import test_db_base_plugin_v2
SERVICE_PLUGIN_KLASS = ('neutron.services.network_segment_range.plugin.' SERVICE_PLUGIN_KLASS = ('neutron.services.network_segment_range.plugin.'
'NetworkSegmentRangePlugin') 'NetworkSegmentRangePlugin')

View File

@ -18,7 +18,7 @@ from neutron_lib.db import api as db_api
from neutron.db import db_base_plugin_v2 from neutron.db import db_base_plugin_v2
from neutron.db import port_device_profile_db as pdp_db from neutron.db import port_device_profile_db as pdp_db
from neutron.tests.unit.db import test_db_base_plugin_v2 from neutron.tests.common import test_db_base_plugin_v2
class PortDeviceProfileExtensionTestPlugin( class PortDeviceProfileExtensionTestPlugin(

View File

@ -21,7 +21,7 @@ from oslo_config import cfg
from neutron.db import port_hardware_offload_type_db as phot_db from neutron.db import port_hardware_offload_type_db as phot_db
from neutron.objects import ports as ports_obj from neutron.objects import ports as ports_obj
from neutron.plugins.ml2 import plugin from neutron.plugins.ml2 import plugin
from neutron.tests.unit.db import test_db_base_plugin_v2 from neutron.tests.common import test_db_base_plugin_v2
class PortHardwareOffloadTypeExtensionTestPlugin( class PortHardwareOffloadTypeExtensionTestPlugin(

View File

@ -18,7 +18,7 @@ from neutron_lib.db import api as db_api
from neutron.db import db_base_plugin_v2 from neutron.db import db_base_plugin_v2
from neutron.db import port_hints_db as phints_db from neutron.db import port_hints_db as phints_db
from neutron.tests.unit.db import test_db_base_plugin_v2 from neutron.tests.common import test_db_base_plugin_v2
HINTS_LIST = [ HINTS_LIST = [
None, None,

View File

@ -20,7 +20,7 @@ from neutron_lib.db import api as db_api
from neutron.db import db_base_plugin_v2 from neutron.db import db_base_plugin_v2
from neutron.db import port_numa_affinity_policy_db as pnap_db from neutron.db import port_numa_affinity_policy_db as pnap_db
from neutron.tests.unit.db import test_db_base_plugin_v2 from neutron.tests.common import test_db_base_plugin_v2
TESTED_POLICIES = (constants.PORT_NUMA_POLICY_REQUIRED, TESTED_POLICIES = (constants.PORT_NUMA_POLICY_REQUIRED,

View File

@ -17,7 +17,7 @@ from neutron_lib.api.definitions import port_numa_affinity_policy_socket as \
apidef apidef
from neutron_lib import constants from neutron_lib import constants
from neutron.tests.unit.db import test_db_base_plugin_v2 from neutron.tests.common import test_db_base_plugin_v2
from neutron.tests.unit.extensions import test_port_numa_affinity_policy from neutron.tests.unit.extensions import test_port_numa_affinity_policy

View File

@ -20,7 +20,7 @@ from oslo_config import cfg
from neutron.db import port_trusted_db from neutron.db import port_trusted_db
from neutron.extensions import port_trusted_vif as apidef from neutron.extensions import port_trusted_vif as apidef
from neutron.plugins.ml2 import plugin from neutron.plugins.ml2 import plugin
from neutron.tests.unit.db import test_db_base_plugin_v2 from neutron.tests.common import test_db_base_plugin_v2
class PortTrustedExtensionTestPlugin( class PortTrustedExtensionTestPlugin(

View File

@ -30,7 +30,7 @@ from neutron.db import portsecurity_db
from neutron.db import securitygroups_db from neutron.db import securitygroups_db
from neutron.extensions import securitygroup as ext_sg from neutron.extensions import securitygroup as ext_sg
from neutron import quota from neutron import quota
from neutron.tests.unit.db import test_db_base_plugin_v2 from neutron.tests.common import test_db_base_plugin_v2
from neutron.tests.unit.extensions import test_securitygroup from neutron.tests.unit.extensions import test_securitygroup
DB_PLUGIN_KLASS = ('neutron.tests.unit.extensions.test_portsecurity.' DB_PLUGIN_KLASS = ('neutron.tests.unit.extensions.test_portsecurity.'

View File

@ -43,7 +43,7 @@ from neutron.extensions import security_groups_default_rules as \
from neutron.extensions import securitygroup as ext_sg from neutron.extensions import securitygroup as ext_sg
from neutron.extensions import standardattrdescription from neutron.extensions import standardattrdescription
from neutron.tests import base from neutron.tests import base
from neutron.tests.unit.db import test_db_base_plugin_v2 from neutron.tests.common import test_db_base_plugin_v2
from neutron.tests.unit.extensions import test_address_group from neutron.tests.unit.extensions import test_address_group
DB_PLUGIN_KLASS = ('neutron.tests.unit.extensions.test_securitygroup.' DB_PLUGIN_KLASS = ('neutron.tests.unit.extensions.test_securitygroup.'

View File

@ -52,7 +52,7 @@ from neutron.services.segments import db
from neutron.services.segments import exceptions as segment_exc from neutron.services.segments import exceptions as segment_exc
from neutron.services.segments import plugin as seg_plugin from neutron.services.segments import plugin as seg_plugin
from neutron.tests.common import helpers from neutron.tests.common import helpers
from neutron.tests.unit.db import test_db_base_plugin_v2 from neutron.tests.common import test_db_base_plugin_v2
SERVICE_PLUGIN_KLASS = 'neutron.services.segments.plugin.Plugin' SERVICE_PLUGIN_KLASS = 'neutron.services.segments.plugin.Plugin'
TEST_PLUGIN_KLASS = ( TEST_PLUGIN_KLASS = (

View File

@ -30,9 +30,9 @@ from neutron.db import servicetype_db as st_db
from neutron.extensions import servicetype from neutron.extensions import servicetype
from neutron.objects import servicetype as servicetype_obj from neutron.objects import servicetype as servicetype_obj
from neutron.services import provider_configuration as provconf from neutron.services import provider_configuration as provconf
from neutron.tests.common import test_db_base_plugin_v2
from neutron.tests.unit.api import test_extensions from neutron.tests.unit.api import test_extensions
from neutron.tests.unit.api.v2 import test_base from neutron.tests.unit.api.v2 import test_base
from neutron.tests.unit.db import test_db_base_plugin_v2
from neutron.tests.unit import dummy_plugin as dp from neutron.tests.unit import dummy_plugin as dp
from neutron.tests.unit import testlib_api from neutron.tests.unit import testlib_api

View File

@ -19,7 +19,7 @@ from neutron_lib.api.definitions import subnet_service_types \
from neutron.db import db_base_plugin_v2 from neutron.db import db_base_plugin_v2
from neutron.db import subnet_service_type_mixin from neutron.db import subnet_service_type_mixin
from neutron.extensions import subnet_service_types from neutron.extensions import subnet_service_types
from neutron.tests.unit.db import test_db_base_plugin_v2 from neutron.tests.common import test_db_base_plugin_v2
class SubnetServiceTypesExtensionManager: class SubnetServiceTypesExtensionManager:

View File

@ -26,7 +26,7 @@ from neutron.extensions import timestamp
from neutron import manager from neutron import manager
from neutron.objects import network as net_obj from neutron.objects import network as net_obj
from neutron.objects import tag as tag_obj from neutron.objects import tag as tag_obj
from neutron.tests.unit.db import test_db_base_plugin_v2 from neutron.tests.common import test_db_base_plugin_v2
class TimeStampExtensionManager: class TimeStampExtensionManager:

View File

@ -17,7 +17,7 @@ from neutron_lib.db import resource_extend
from neutron.db import db_base_plugin_v2 from neutron.db import db_base_plugin_v2
from neutron.db import uplink_status_propagation_db as usp_db from neutron.db import uplink_status_propagation_db as usp_db
from neutron.tests.unit.db import test_db_base_plugin_v2 from neutron.tests.common import test_db_base_plugin_v2
class UplinkStatusPropagationExtensionTestPlugin( class UplinkStatusPropagationExtensionTestPlugin(

View File

@ -22,7 +22,7 @@ from neutron.db import db_base_plugin_v2
from neutron.db import vlantransparent_db as vlt_db from neutron.db import vlantransparent_db as vlt_db
from neutron.extensions import vlantransparent as vlt from neutron.extensions import vlantransparent as vlt
from neutron import quota from neutron import quota
from neutron.tests.unit.db import test_db_base_plugin_v2 from neutron.tests.common import test_db_base_plugin_v2
from neutron.tests.unit import testlib_api from neutron.tests.unit import testlib_api

View File

@ -26,7 +26,7 @@ from neutron.ipam.drivers.neutrondb_ipam import driver
from neutron.ipam import exceptions as ipam_exc from neutron.ipam import exceptions as ipam_exc
from neutron.ipam import requests as ipam_req from neutron.ipam import requests as ipam_req
from neutron.objects import ipam as ipam_obj from neutron.objects import ipam as ipam_obj
from neutron.tests.unit.db import test_db_base_plugin_v2 as test_db_plugin from neutron.tests.common import test_db_base_plugin_v2 as test_db_plugin
from neutron.tests.unit import testlib_api from neutron.tests.unit import testlib_api

View File

@ -26,7 +26,7 @@ from oslo_utils import uuidutils
from neutron.ipam import requests as ipam_req from neutron.ipam import requests as ipam_req
from neutron.ipam import subnet_alloc from neutron.ipam import subnet_alloc
from neutron.tests.unit.db import test_db_base_plugin_v2 from neutron.tests.common import test_db_base_plugin_v2
from neutron.tests.unit import testlib_api from neutron.tests.unit import testlib_api

View File

@ -58,8 +58,8 @@ from neutron.objects import stdattrs
from neutron.objects import subnet from neutron.objects import subnet
from neutron.objects import subnetpool from neutron.objects import subnetpool
from neutron.tests import base as test_base from neutron.tests import base as test_base
from neutron.tests.common import test_db_base_plugin_v2
from neutron.tests import tools from neutron.tests import tools
from neutron.tests.unit.db import test_db_base_plugin_v2
SQLALCHEMY_COMMIT = 'sqlalchemy.engine.Connection._commit_impl' SQLALCHEMY_COMMIT = 'sqlalchemy.engine.Connection._commit_impl'

View File

@ -74,10 +74,10 @@ from neutron.services.revisions import revision_plugin
from neutron.services.segments import db as segments_plugin_db from neutron.services.segments import db as segments_plugin_db
from neutron.services.segments import plugin as segments_plugin from neutron.services.segments import plugin as segments_plugin
from neutron.tests.common import helpers from neutron.tests.common import helpers
from neutron.tests.common import test_db_base_plugin_v2 as test_plugin
from neutron.tests.unit import _test_extension_portbindings as test_bindings from neutron.tests.unit import _test_extension_portbindings as test_bindings
from neutron.tests.unit.agent import test_securitygroups_rpc as test_sg_rpc from neutron.tests.unit.agent import test_securitygroups_rpc as test_sg_rpc
from neutron.tests.unit.db import test_allowedaddresspairs_db as test_pair from neutron.tests.unit.db import test_allowedaddresspairs_db as test_pair
from neutron.tests.unit.db import test_db_base_plugin_v2 as test_plugin
from neutron.tests.unit.db import test_ipam_pluggable_backend as test_ipam from neutron.tests.unit.db import test_ipam_pluggable_backend as test_ipam
from neutron.tests.unit.extensions import test_extra_dhcp_opt as test_dhcpopts from neutron.tests.unit.extensions import test_extra_dhcp_opt as test_dhcpopts
from neutron.tests.unit.plugins.ml2.drivers import mechanism_logger as \ from neutron.tests.unit.plugins.ml2.drivers import mechanism_logger as \

View File

@ -34,7 +34,7 @@ from neutron.conf.plugins.ml2.drivers import driver_type
from neutron.plugins.ml2 import driver_context from neutron.plugins.ml2 import driver_context
from neutron.plugins.ml2 import models as ml2_models from neutron.plugins.ml2 import models as ml2_models
from neutron.plugins.ml2 import plugin as ml2_plugin from neutron.plugins.ml2 import plugin as ml2_plugin
from neutron.tests.unit.db import test_db_base_plugin_v2 as test_plugin from neutron.tests.common import test_db_base_plugin_v2 as test_plugin
from neutron.tests.unit.plugins.ml2.drivers import mechanism_test from neutron.tests.unit.plugins.ml2.drivers import mechanism_test

View File

@ -20,8 +20,8 @@ from oslo_utils import uuidutils
from neutron.conf import quota as quota_conf from neutron.conf import quota as quota_conf
from neutron.db.quota import api as quota_db_api from neutron.db.quota import api as quota_db_api
from neutron import quota from neutron import quota
from neutron.tests.common import test_db_base_plugin_v2
from neutron.tests.unit.api import test_extensions from neutron.tests.unit.api import test_extensions
from neutron.tests.unit.db import test_db_base_plugin_v2
from neutron.tests.unit.extensions import test_l3 from neutron.tests.unit.extensions import test_l3
from neutron.tests.unit.extensions import test_securitygroup from neutron.tests.unit.extensions import test_securitygroup
from neutron.tests.unit.plugins.ml2 import base as ml2_base from neutron.tests.unit.plugins.ml2 import base as ml2_base

View File

@ -57,7 +57,7 @@ from neutron import quota
from neutron.scheduler import l3_agent_scheduler from neutron.scheduler import l3_agent_scheduler
from neutron.tests import base from neutron.tests import base
from neutron.tests.common import helpers from neutron.tests.common import helpers
from neutron.tests.unit.db import test_db_base_plugin_v2 from neutron.tests.common import test_db_base_plugin_v2
from neutron.tests.unit.extensions import test_l3 from neutron.tests.unit.extensions import test_l3
from neutron.tests.unit import testlib_api from neutron.tests.unit import testlib_api

View File

@ -32,8 +32,8 @@ from neutron.extensions import l3 as ext_l3
from neutron.extensions import metering as ext_metering from neutron.extensions import metering as ext_metering
from neutron.objects import agent as agent_obj from neutron.objects import agent as agent_obj
from neutron.tests.common import helpers from neutron.tests.common import helpers
from neutron.tests.common import test_db_base_plugin_v2
from neutron.tests.unit.db.metering import test_metering_db from neutron.tests.unit.db.metering import test_metering_db
from neutron.tests.unit.db import test_db_base_plugin_v2
from neutron.tests.unit.extensions import test_l3 from neutron.tests.unit.extensions import test_l3

View File

@ -22,7 +22,7 @@ from oslo_config import cfg
from neutron.db import segments_db from neutron.db import segments_db
from neutron.services.network_segment_range import plugin as range_plugin from neutron.services.network_segment_range import plugin as range_plugin
from neutron.tests.unit.db import test_db_base_plugin_v2 as test_plugin from neutron.tests.common import test_db_base_plugin_v2 as test_plugin
from neutron.tests.unit import testlib_api from neutron.tests.unit import testlib_api
SERVICE_PLUGIN_KLASS = ('neutron.services.network_segment_range.plugin.' SERVICE_PLUGIN_KLASS = ('neutron.services.network_segment_range.plugin.'

View File

@ -43,7 +43,7 @@ from neutron.objects import ports as ports_object
from neutron.objects.qos import policy as policy_object from neutron.objects.qos import policy as policy_object
from neutron.objects.qos import rule as rule_object from neutron.objects.qos import rule as rule_object
from neutron.services.qos import qos_plugin from neutron.services.qos import qos_plugin
from neutron.tests.unit.db import test_db_base_plugin_v2 from neutron.tests.common import test_db_base_plugin_v2
from neutron.tests.unit.services.qos import base from neutron.tests.unit.services.qos import base