# License for the specific language governing permissions and limitations
# under the License.
-from oslo_config import cfg
from oslo_log import log as logging
from oslo_utils import uuidutils
from webob import exc
from cinder.volume import volume_types
LOG = logging.getLogger(__name__)
-CONF = cfg.CONF
authorize = extensions.extension_authorizer('volume', 'volume_manage')
# License for the specific language governing permissions and limitations
# under the License.
-from oslo_config import cfg
from oslo_log import log as logging
from oslo_utils import versionutils
from oslo_versionedobjects import fields
from cinder.objects import base
from cinder import utils
-CONF = cfg.CONF
LOG = logging.getLogger(__name__)
# License for the specific language governing permissions and limitations
# under the License.
-from oslo_config import cfg
from oslo_log import log as logging
from oslo_versionedobjects import fields
from cinder import objects
from cinder.objects import base
-CONF = cfg.CONF
LOG = logging.getLogger(__name__)
# License for the specific language governing permissions and limitations
# under the License.
-from oslo_config import cfg
from oslo_log import log as logging
from oslo_versionedobjects import fields
from cinder.objects import base
from cinder.volume import volume_types
-CONF = cfg.CONF
OPTIONAL_FIELDS = ['extra_specs', 'projects']
LOG = logging.getLogger(__name__)
"""
import functools
-from oslo_config import cfg
from oslo_log import log as logging
from cinder.db import base
from cinder.volume import rpcapi as volume_rpcapi
from cinder.volume import utils as volume_utils
-CONF = cfg.CONF
LOG = logging.getLogger(__name__)
import uuid
import mock
-from oslo_config import cfg
import oslo_messaging as messaging
from oslo_serialization import jsonutils
import webob
from cinder.volume import api as volume_api
from cinder.volume import rpcapi as volume_rpcapi
-CONF = cfg.CONF
-
class VolumeActionsTest(test.TestCase):
import uuid
import mock
-from oslo_config import cfg
from oslo_serialization import jsonutils
import webob
from cinder import volume
-CONF = cfg.CONF
-
-
def return_create_snapshot_metadata(context, snapshot_id, metadata, delete):
return stub_snapshot_metadata()
import uuid
import mock
-from oslo_config import cfg
from oslo_serialization import jsonutils
import webob
from cinder import volume
-CONF = cfg.CONF
-
-
def return_create_snapshot_metadata(context, snapshot_id, metadata, delete):
return stub_snapshot_metadata()
import mock
from os_brick.remotefs import remotefs as remotefs_brick
-from oslo_config import cfg
from cinder.backup.drivers import glusterfs
from cinder import context
from cinder import test
from cinder import utils
-CONF = cfg.CONF
-
FAKE_BACKUP_MOUNT_POINT_BASE = '/fake/mount-point-base'
FAKE_HOST = 'fake_host'
FAKE_VOL_NAME = 'backup_vol'
import copy
import mock
-from oslo_config import cfg
from cinder.backup import rpcapi as backup_rpcapi
from cinder import context
from cinder.tests.unit import fake_backup
-CONF = cfg.CONF
-
-
class BackupRpcAPITestCase(test.TestCase):
def setUp(self):
super(BackupRpcAPITestCase, self).setUp()
"""Tests for volume type."""
-from oslo_config import cfg
-
from cinder import context
from cinder import db
from cinder import test
from cinder.volume import volume_types
-CONF = cfg.CONF
-
class VolumeTypeTestCase(test.TestCase):
"""Test cases for volume type."""
import copy
import mock
-from oslo_config import cfg
from cinder import context
from cinder.scheduler import rpcapi as scheduler_rpcapi
from cinder import test
-CONF = cfg.CONF
-
-
class SchedulerRpcAPITestCase(test.TestCase):
def setUp(self):
import enum
import mock
-from oslo_config import cfg
from oslo_utils import uuidutils
import six
from cinder import quota
from cinder import test
-CONF = cfg.CONF
-
THREE = 3
THREE_HUNDREDS = 300
ONE_HUNDREDS = 100
from cinder.volume.drivers.hpe import hpe_xp_fc
from cinder.volume.drivers.hpe import hpe_xp_opts
-from oslo_config import cfg
from oslo_utils import importutils
-CONF = cfg.CONF
NORMAL_LDEV_TYPE = 'Normal'
POOL_INFO = {'30': {'total_gb': 'infinite', 'free_gb': 'infinite'}}
import copy
from mox3 import mox
-from oslo_config import cfg
from cinder import context
from cinder import exception
CONNECTOR = {'initiator': "iqn.2012-07.org.fake:01:948f189c4695", }
-CONF = cfg.CONF
-
class XIVDS8KFakeProxyDriver(object):
"""Fake IBM XIV and DS8K Proxy Driver."""
from cinder.volume.drivers.netapp.dataontap import ssc_cmode
from cinder.volume.drivers.netapp import utils
-from oslo_config import cfg
-
-
-CONF = cfg.CONF
CONNECTION_INFO = {
'hostname': 'fake_host',
"""Tests for volume copy throttling helpers."""
import mock
-from oslo_config import cfg
from cinder import test
from cinder import utils
from cinder.volume import throttling
-CONF = cfg.CONF
-
-
class ThrottleTestCase(test.TestCase):
def test_NoThrottle(self):
import ddt
import mock
-from oslo_config import cfg
-
from cinder import context
from cinder import exception
from cinder.openstack.common import imageutils
from cinder.volume.flows.api import create_volume
from cinder.volume.flows.manager import create_volume as create_volume_manager
-CONF = cfg.CONF
-
@ddt.ddt
class CreateVolumeFlowTestCase(test.TestCase):
"""The QoS Specs Implementation"""
-from oslo_config import cfg
from oslo_db import exception as db_exc
from oslo_log import log as logging
from cinder.volume import volume_types
-CONF = cfg.CONF
LOG = logging.getLogger(__name__)
CONTROL_LOCATION = ['front-end', 'back-end', 'both']
"""Utility methods for working with WSGI servers."""
-from oslo_config import cfg
from oslo_log import log as logging
import webob.dec
import webob.exc
from cinder.i18n import _
-CONF = cfg.CONF
LOG = logging.getLogger(__name__)