Move from oslo.utils to oslo_utils
oslo_utils has been moved out of the oslo namespace. bp drop-namespace-packages Change-Id: Ie818e72b31efd2a6ab182444967bdfaca9366f4a
This commit is contained in:
parent
1ac63458ef
commit
41d45dfb1c
@ -16,8 +16,8 @@
|
|||||||
import re
|
import re
|
||||||
|
|
||||||
from oslo.config import cfg
|
from oslo.config import cfg
|
||||||
from oslo.utils import excutils
|
from oslo_utils import excutils
|
||||||
from oslo.utils import units
|
from oslo_utils import units
|
||||||
|
|
||||||
from glance.common import exception
|
from glance.common import exception
|
||||||
from glance import i18n
|
from glance import i18n
|
||||||
|
@ -23,8 +23,8 @@ import eventlet
|
|||||||
import glance_store as store
|
import glance_store as store
|
||||||
import glance_store.location
|
import glance_store.location
|
||||||
from oslo.config import cfg
|
from oslo.config import cfg
|
||||||
from oslo.utils import excutils
|
from oslo_utils import excutils
|
||||||
from oslo.utils import strutils
|
from oslo_utils import strutils
|
||||||
from webob.exc import HTTPBadRequest
|
from webob.exc import HTTPBadRequest
|
||||||
from webob.exc import HTTPConflict
|
from webob.exc import HTTPConflict
|
||||||
from webob.exc import HTTPForbidden
|
from webob.exc import HTTPForbidden
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
# under the License.
|
# under the License.
|
||||||
import glance_store as store_api
|
import glance_store as store_api
|
||||||
from oslo.config import cfg
|
from oslo.config import cfg
|
||||||
from oslo.utils import excutils
|
from oslo_utils import excutils
|
||||||
import webob.exc
|
import webob.exc
|
||||||
|
|
||||||
from glance.common import exception
|
from glance.common import exception
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
import glance_store
|
import glance_store
|
||||||
from oslo.utils import excutils
|
from oslo_utils import excutils
|
||||||
import webob.exc
|
import webob.exc
|
||||||
|
|
||||||
import glance.api.policy
|
import glance.api.policy
|
||||||
|
@ -17,7 +17,7 @@ import copy
|
|||||||
|
|
||||||
import glance_store
|
import glance_store
|
||||||
from oslo.serialization import jsonutils
|
from oslo.serialization import jsonutils
|
||||||
from oslo.utils import timeutils
|
from oslo_utils import timeutils
|
||||||
import six
|
import six
|
||||||
import webob
|
import webob
|
||||||
|
|
||||||
|
@ -18,7 +18,7 @@ import re
|
|||||||
import glance_store
|
import glance_store
|
||||||
from oslo.config import cfg
|
from oslo.config import cfg
|
||||||
from oslo.serialization import jsonutils as json
|
from oslo.serialization import jsonutils as json
|
||||||
from oslo.utils import timeutils
|
from oslo_utils import timeutils
|
||||||
import six
|
import six
|
||||||
import six.moves.urllib.parse as urlparse
|
import six.moves.urllib.parse as urlparse
|
||||||
import webob.exc
|
import webob.exc
|
||||||
|
@ -35,7 +35,7 @@ class Namespace(types.Base, WSMEModelTransformer):
|
|||||||
owner = wsme.wsattr(types.text, mandatory=False)
|
owner = wsme.wsattr(types.text, mandatory=False)
|
||||||
|
|
||||||
# Not using datetime since time format has to be
|
# Not using datetime since time format has to be
|
||||||
# in oslo.utils.timeutils.isotime() format
|
# in oslo_utils.timeutils.isotime() format
|
||||||
created_at = wsme.wsattr(types.text, mandatory=False)
|
created_at = wsme.wsattr(types.text, mandatory=False)
|
||||||
updated_at = wsme.wsattr(types.text, mandatory=False)
|
updated_at = wsme.wsattr(types.text, mandatory=False)
|
||||||
|
|
||||||
|
@ -28,7 +28,7 @@ class MetadefObject(types.Base, WSMEModelTransformer):
|
|||||||
properties = wsme.wsattr({types.text: PropertyType}, mandatory=False)
|
properties = wsme.wsattr({types.text: PropertyType}, mandatory=False)
|
||||||
|
|
||||||
# Not using datetime since time format has to be
|
# Not using datetime since time format has to be
|
||||||
# in oslo.utils.timeutils.isotime() format
|
# in oslo_utils.timeutils.isotime() format
|
||||||
created_at = wsme.wsattr(types.text, mandatory=False)
|
created_at = wsme.wsattr(types.text, mandatory=False)
|
||||||
updated_at = wsme.wsattr(types.text, mandatory=False)
|
updated_at = wsme.wsattr(types.text, mandatory=False)
|
||||||
|
|
||||||
|
@ -25,7 +25,7 @@ class ResourceTypeAssociation(types.Base, WSMEModelTransformer):
|
|||||||
properties_target = wsme.wsattr(types.text, mandatory=False)
|
properties_target = wsme.wsattr(types.text, mandatory=False)
|
||||||
|
|
||||||
# Not using datetime since time format has to be
|
# Not using datetime since time format has to be
|
||||||
# in oslo.utils.timeutils.isotime() format
|
# in oslo_utils.timeutils.isotime() format
|
||||||
created_at = wsme.wsattr(types.text, mandatory=False)
|
created_at = wsme.wsattr(types.text, mandatory=False)
|
||||||
updated_at = wsme.wsattr(types.text, mandatory=False)
|
updated_at = wsme.wsattr(types.text, mandatory=False)
|
||||||
|
|
||||||
@ -46,7 +46,7 @@ class ResourceType(types.Base, WSMEModelTransformer):
|
|||||||
name = wsme.wsattr(types.text, mandatory=True)
|
name = wsme.wsattr(types.text, mandatory=True)
|
||||||
|
|
||||||
# Not using datetime since time format has to be
|
# Not using datetime since time format has to be
|
||||||
# in oslo.utils.timeutils.isotime() format
|
# in oslo_utils.timeutils.isotime() format
|
||||||
created_at = wsme.wsattr(types.text, mandatory=False)
|
created_at = wsme.wsattr(types.text, mandatory=False)
|
||||||
updated_at = wsme.wsattr(types.text, mandatory=False)
|
updated_at = wsme.wsattr(types.text, mandatory=False)
|
||||||
|
|
||||||
|
@ -24,7 +24,7 @@ class MetadefTag(types.Base, wsme_utils.WSMEModelTransformer):
|
|||||||
name = wsme.wsattr(types.text, mandatory=True)
|
name = wsme.wsattr(types.text, mandatory=True)
|
||||||
|
|
||||||
# Not using datetime since time format has to be
|
# Not using datetime since time format has to be
|
||||||
# in oslo.utils.timeutils.isotime() format
|
# in oslo_utils.timeutils.isotime() format
|
||||||
created_at = wsme.wsattr(types.text, mandatory=False)
|
created_at = wsme.wsattr(types.text, mandatory=False)
|
||||||
updated_at = wsme.wsattr(types.text, mandatory=False)
|
updated_at = wsme.wsattr(types.text, mandatory=False)
|
||||||
|
|
||||||
|
@ -19,7 +19,7 @@ import copy
|
|||||||
import glance_store
|
import glance_store
|
||||||
from oslo.config import cfg
|
from oslo.config import cfg
|
||||||
import oslo.serialization.jsonutils as json
|
import oslo.serialization.jsonutils as json
|
||||||
from oslo.utils import timeutils
|
from oslo_utils import timeutils
|
||||||
import six
|
import six
|
||||||
import six.moves.urllib.parse as urlparse
|
import six.moves.urllib.parse as urlparse
|
||||||
import webob.exc
|
import webob.exc
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
import oslo.utils.strutils as strutils
|
import oslo_utils.strutils as strutils
|
||||||
|
|
||||||
from glance import i18n
|
from glance import i18n
|
||||||
|
|
||||||
|
@ -26,7 +26,7 @@ import os
|
|||||||
import sys
|
import sys
|
||||||
import time
|
import time
|
||||||
|
|
||||||
from oslo.utils import timeutils
|
from oslo_utils import timeutils
|
||||||
|
|
||||||
from glance.common import utils
|
from glance.common import utils
|
||||||
|
|
||||||
|
@ -40,7 +40,7 @@ if os.path.exists(os.path.join(possible_topdir, 'glance', '__init__.py')):
|
|||||||
sys.path.insert(0, possible_topdir)
|
sys.path.insert(0, possible_topdir)
|
||||||
|
|
||||||
from oslo.config import cfg
|
from oslo.config import cfg
|
||||||
from oslo.utils import units
|
from oslo_utils import units
|
||||||
from six.moves import xrange
|
from six.moves import xrange
|
||||||
|
|
||||||
from glance.common import config
|
from glance.common import config
|
||||||
|
@ -40,7 +40,7 @@ if os.path.exists(os.path.join(possible_topdir, 'glance', '__init__.py')):
|
|||||||
|
|
||||||
from oslo.config import cfg
|
from oslo.config import cfg
|
||||||
from oslo.db.sqlalchemy import migration
|
from oslo.db.sqlalchemy import migration
|
||||||
from oslo.utils import encodeutils
|
from oslo_utils import encodeutils
|
||||||
|
|
||||||
from glance.common import config
|
from glance.common import config
|
||||||
from glance.common import exception
|
from glance.common import exception
|
||||||
|
@ -40,7 +40,7 @@ try:
|
|||||||
except ImportError:
|
except ImportError:
|
||||||
SENDFILE_SUPPORTED = False
|
SENDFILE_SUPPORTED = False
|
||||||
|
|
||||||
from oslo.utils import encodeutils
|
from oslo_utils import encodeutils
|
||||||
import six
|
import six
|
||||||
import six.moves.urllib.parse as urlparse
|
import six.moves.urllib.parse as urlparse
|
||||||
from six.moves import xrange
|
from six.moves import xrange
|
||||||
|
@ -20,8 +20,8 @@ import datetime
|
|||||||
import traceback
|
import traceback
|
||||||
|
|
||||||
from oslo.config import cfg
|
from oslo.config import cfg
|
||||||
import oslo.utils.importutils as imp
|
import oslo_utils.importutils as imp
|
||||||
from oslo.utils import timeutils
|
from oslo_utils import timeutils
|
||||||
import six
|
import six
|
||||||
from webob import exc
|
from webob import exc
|
||||||
|
|
||||||
|
@ -17,8 +17,8 @@ __all__ = [
|
|||||||
'run',
|
'run',
|
||||||
]
|
]
|
||||||
|
|
||||||
from oslo.utils import excutils
|
|
||||||
from oslo_concurrency import lockutils
|
from oslo_concurrency import lockutils
|
||||||
|
from oslo_utils import excutils
|
||||||
import six
|
import six
|
||||||
|
|
||||||
from glance.api.v2 import images as v2_api
|
from glance.api.v2 import images as v2_api
|
||||||
|
@ -38,10 +38,10 @@ import uuid
|
|||||||
import netaddr
|
import netaddr
|
||||||
from OpenSSL import crypto
|
from OpenSSL import crypto
|
||||||
from oslo.config import cfg
|
from oslo.config import cfg
|
||||||
from oslo.utils import encodeutils
|
from oslo_utils import encodeutils
|
||||||
from oslo.utils import excutils
|
from oslo_utils import excutils
|
||||||
from oslo.utils import netutils
|
from oslo_utils import netutils
|
||||||
from oslo.utils import strutils
|
from oslo_utils import strutils
|
||||||
import six
|
import six
|
||||||
from webob import exc
|
from webob import exc
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
|
|
||||||
from oslo.utils import timeutils
|
from oslo_utils import timeutils
|
||||||
from wsme import types as wsme_types
|
from wsme import types as wsme_types
|
||||||
|
|
||||||
|
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
from oslo.config import cfg
|
from oslo.config import cfg
|
||||||
from oslo.utils import importutils
|
from oslo_utils import importutils
|
||||||
from wsme.rest import json
|
from wsme.rest import json
|
||||||
|
|
||||||
from glance.api.v2.model.metadef_property_type import PropertyType
|
from glance.api.v2.model.metadef_property_type import PropertyType
|
||||||
|
@ -19,7 +19,7 @@ import datetime
|
|||||||
import functools
|
import functools
|
||||||
import uuid
|
import uuid
|
||||||
|
|
||||||
from oslo.utils import timeutils
|
from oslo_utils import timeutils
|
||||||
import six
|
import six
|
||||||
|
|
||||||
from glance.common import exception
|
from glance.common import exception
|
||||||
|
@ -25,7 +25,7 @@ import threading
|
|||||||
from oslo.config import cfg
|
from oslo.config import cfg
|
||||||
from oslo.db import exception as db_exception
|
from oslo.db import exception as db_exception
|
||||||
from oslo.db.sqlalchemy import session
|
from oslo.db.sqlalchemy import session
|
||||||
from oslo.utils import timeutils
|
from oslo_utils import timeutils
|
||||||
import osprofiler.sqlalchemy
|
import osprofiler.sqlalchemy
|
||||||
from retrying import retry
|
from retrying import retry
|
||||||
import six
|
import six
|
||||||
|
@ -24,7 +24,7 @@ from os.path import join
|
|||||||
import re
|
import re
|
||||||
|
|
||||||
from oslo.config import cfg
|
from oslo.config import cfg
|
||||||
from oslo.utils import timeutils
|
from oslo_utils import timeutils
|
||||||
import six
|
import six
|
||||||
import sqlalchemy
|
import sqlalchemy
|
||||||
from sqlalchemy.schema import MetaData
|
from sqlalchemy.schema import MetaData
|
||||||
|
@ -12,7 +12,7 @@
|
|||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
from oslo.utils import timeutils
|
from oslo_utils import timeutils
|
||||||
import sqlalchemy
|
import sqlalchemy
|
||||||
from sqlalchemy.schema import (
|
from sqlalchemy.schema import (
|
||||||
Column, ForeignKey, Index, MetaData, Table, UniqueConstraint) # noqa
|
Column, ForeignKey, Index, MetaData, Table, UniqueConstraint) # noqa
|
||||||
|
@ -22,7 +22,7 @@ import uuid
|
|||||||
|
|
||||||
from oslo.db.sqlalchemy import models
|
from oslo.db.sqlalchemy import models
|
||||||
from oslo.serialization import jsonutils
|
from oslo.serialization import jsonutils
|
||||||
from oslo.utils import timeutils
|
from oslo_utils import timeutils
|
||||||
from sqlalchemy import BigInteger
|
from sqlalchemy import BigInteger
|
||||||
from sqlalchemy import Boolean
|
from sqlalchemy import Boolean
|
||||||
from sqlalchemy import Column
|
from sqlalchemy import Column
|
||||||
|
@ -17,7 +17,7 @@ SQLAlchemy models for glance metadata schema
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
from oslo.db.sqlalchemy import models
|
from oslo.db.sqlalchemy import models
|
||||||
from oslo.utils import timeutils
|
from oslo_utils import timeutils
|
||||||
from sqlalchemy import Boolean
|
from sqlalchemy import Boolean
|
||||||
from sqlalchemy import Column
|
from sqlalchemy import Column
|
||||||
from sqlalchemy import DateTime
|
from sqlalchemy import DateTime
|
||||||
|
@ -19,9 +19,9 @@ import datetime
|
|||||||
import uuid
|
import uuid
|
||||||
|
|
||||||
from oslo.config import cfg
|
from oslo.config import cfg
|
||||||
from oslo.utils import excutils
|
from oslo_utils import excutils
|
||||||
from oslo.utils import importutils
|
from oslo_utils import importutils
|
||||||
from oslo.utils import timeutils
|
from oslo_utils import timeutils
|
||||||
import six
|
import six
|
||||||
|
|
||||||
from glance.common import exception
|
from glance.common import exception
|
||||||
|
@ -20,9 +20,9 @@ LRU Cache for Image Data
|
|||||||
import hashlib
|
import hashlib
|
||||||
|
|
||||||
from oslo.config import cfg
|
from oslo.config import cfg
|
||||||
from oslo.utils import excutils
|
from oslo_utils import excutils
|
||||||
from oslo.utils import importutils
|
from oslo_utils import importutils
|
||||||
from oslo.utils import units
|
from oslo_utils import units
|
||||||
|
|
||||||
from glance.common import exception
|
from glance.common import exception
|
||||||
from glance.common import utils
|
from glance.common import utils
|
||||||
|
@ -27,7 +27,7 @@ import time
|
|||||||
from eventlet import sleep
|
from eventlet import sleep
|
||||||
from eventlet import timeout
|
from eventlet import timeout
|
||||||
from oslo.config import cfg
|
from oslo.config import cfg
|
||||||
from oslo.utils import excutils
|
from oslo_utils import excutils
|
||||||
|
|
||||||
from glance.common import exception
|
from glance.common import exception
|
||||||
from glance import i18n
|
from glance import i18n
|
||||||
|
@ -59,7 +59,7 @@ import stat
|
|||||||
import time
|
import time
|
||||||
|
|
||||||
from oslo.config import cfg
|
from oslo.config import cfg
|
||||||
from oslo.utils import excutils
|
from oslo_utils import excutils
|
||||||
import xattr
|
import xattr
|
||||||
|
|
||||||
from glance.common import exception
|
from glance.common import exception
|
||||||
|
@ -18,7 +18,7 @@ import copy
|
|||||||
|
|
||||||
import glance_store as store
|
import glance_store as store
|
||||||
from oslo.config import cfg
|
from oslo.config import cfg
|
||||||
from oslo.utils import excutils
|
from oslo_utils import excutils
|
||||||
|
|
||||||
from glance.common import exception
|
from glance.common import exception
|
||||||
from glance.common import utils
|
from glance.common import utils
|
||||||
|
@ -17,8 +17,8 @@
|
|||||||
import glance_store
|
import glance_store
|
||||||
from oslo.config import cfg
|
from oslo.config import cfg
|
||||||
from oslo import messaging
|
from oslo import messaging
|
||||||
from oslo.utils import excutils
|
from oslo_utils import excutils
|
||||||
from oslo.utils import timeutils
|
from oslo_utils import timeutils
|
||||||
import webob
|
import webob
|
||||||
|
|
||||||
from glance.common import exception
|
from glance.common import exception
|
||||||
|
@ -18,7 +18,7 @@ import errno
|
|||||||
import os
|
import os
|
||||||
import tempfile
|
import tempfile
|
||||||
|
|
||||||
from oslo.utils import excutils
|
from oslo_utils import excutils
|
||||||
|
|
||||||
from glance.openstack.common import log as logging
|
from glance.openstack.common import log as logging
|
||||||
|
|
||||||
|
@ -39,7 +39,7 @@ import traceback
|
|||||||
|
|
||||||
from oslo.config import cfg
|
from oslo.config import cfg
|
||||||
from oslo.serialization import jsonutils
|
from oslo.serialization import jsonutils
|
||||||
from oslo.utils import importutils
|
from oslo_utils import importutils
|
||||||
import six
|
import six
|
||||||
from six import moves
|
from six import moves
|
||||||
|
|
||||||
|
@ -16,7 +16,7 @@ import copy
|
|||||||
|
|
||||||
import glance_store as store
|
import glance_store as store
|
||||||
from oslo.config import cfg
|
from oslo.config import cfg
|
||||||
from oslo.utils import excutils
|
from oslo_utils import excutils
|
||||||
import six
|
import six
|
||||||
|
|
||||||
import glance.api.common
|
import glance.api.common
|
||||||
|
@ -18,8 +18,8 @@ Reference implementation registry server WSGI controller
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
from oslo.config import cfg
|
from oslo.config import cfg
|
||||||
from oslo.utils import strutils
|
from oslo_utils import strutils
|
||||||
from oslo.utils import timeutils
|
from oslo_utils import timeutils
|
||||||
from webob import exc
|
from webob import exc
|
||||||
|
|
||||||
from glance.common import exception
|
from glance.common import exception
|
||||||
|
@ -19,7 +19,7 @@ the Glance Registry API
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
from oslo.serialization import jsonutils
|
from oslo.serialization import jsonutils
|
||||||
from oslo.utils import excutils
|
from oslo_utils import excutils
|
||||||
|
|
||||||
from glance.common.client import BaseClient
|
from glance.common.client import BaseClient
|
||||||
from glance.common import crypt
|
from glance.common import crypt
|
||||||
|
@ -20,7 +20,7 @@ import datetime
|
|||||||
import uuid
|
import uuid
|
||||||
|
|
||||||
import mock
|
import mock
|
||||||
from oslo.utils import timeutils
|
from oslo_utils import timeutils
|
||||||
|
|
||||||
from glance.common import exception
|
from glance.common import exception
|
||||||
from glance import context
|
from glance import context
|
||||||
|
@ -23,7 +23,7 @@ from __future__ import print_function
|
|||||||
import BaseHTTPServer
|
import BaseHTTPServer
|
||||||
import threading
|
import threading
|
||||||
|
|
||||||
from oslo.utils import units
|
from oslo_utils import units
|
||||||
|
|
||||||
|
|
||||||
FIVE_KB = 5 * units.Ki
|
FIVE_KB = 5 * units.Ki
|
||||||
|
@ -22,7 +22,7 @@ import sys
|
|||||||
|
|
||||||
import httplib2
|
import httplib2
|
||||||
from oslo.serialization import jsonutils
|
from oslo.serialization import jsonutils
|
||||||
from oslo.utils import units
|
from oslo_utils import units
|
||||||
from six.moves import xrange
|
from six.moves import xrange
|
||||||
|
|
||||||
from glance.tests import functional
|
from glance.tests import functional
|
||||||
|
@ -28,7 +28,7 @@ import time
|
|||||||
|
|
||||||
import httplib2
|
import httplib2
|
||||||
from oslo.serialization import jsonutils
|
from oslo.serialization import jsonutils
|
||||||
from oslo.utils import units
|
from oslo_utils import units
|
||||||
from six.moves import xrange
|
from six.moves import xrange
|
||||||
|
|
||||||
from glance.tests import functional
|
from glance.tests import functional
|
||||||
|
@ -20,7 +20,7 @@ import time
|
|||||||
import glance_store.location
|
import glance_store.location
|
||||||
import httplib2
|
import httplib2
|
||||||
from oslo.serialization import jsonutils
|
from oslo.serialization import jsonutils
|
||||||
from oslo.utils import units
|
from oslo_utils import units
|
||||||
from six.moves import xrange
|
from six.moves import xrange
|
||||||
|
|
||||||
from glance.common import crypt
|
from glance.common import crypt
|
||||||
|
@ -19,7 +19,7 @@ import hashlib
|
|||||||
|
|
||||||
import httplib2
|
import httplib2
|
||||||
from oslo.serialization import jsonutils
|
from oslo.serialization import jsonutils
|
||||||
from oslo.utils import units
|
from oslo_utils import units
|
||||||
|
|
||||||
from glance.tests import functional
|
from glance.tests import functional
|
||||||
from glance.tests.utils import minimal_headers
|
from glance.tests.utils import minimal_headers
|
||||||
|
@ -25,7 +25,7 @@ import time
|
|||||||
|
|
||||||
import httplib2
|
import httplib2
|
||||||
from oslo.serialization import jsonutils
|
from oslo.serialization import jsonutils
|
||||||
from oslo.utils import units
|
from oslo_utils import units
|
||||||
from six.moves import xrange
|
from six.moves import xrange
|
||||||
|
|
||||||
from glance.tests import functional
|
from glance.tests import functional
|
||||||
|
@ -17,7 +17,7 @@ import os
|
|||||||
|
|
||||||
import httplib2
|
import httplib2
|
||||||
from oslo.serialization import jsonutils
|
from oslo.serialization import jsonutils
|
||||||
from oslo.utils import units
|
from oslo_utils import units
|
||||||
|
|
||||||
from glance.tests import functional
|
from glance.tests import functional
|
||||||
from glance.tests.utils import execute
|
from glance.tests.utils import execute
|
||||||
|
@ -35,8 +35,8 @@ import uuid
|
|||||||
|
|
||||||
import httplib2
|
import httplib2
|
||||||
from oslo.serialization import jsonutils
|
from oslo.serialization import jsonutils
|
||||||
from oslo.utils import timeutils
|
from oslo_utils import timeutils
|
||||||
from oslo.utils import units
|
from oslo_utils import units
|
||||||
|
|
||||||
from glance.tests import functional
|
from glance.tests import functional
|
||||||
from glance.tests.utils import minimal_headers
|
from glance.tests.utils import minimal_headers
|
||||||
|
@ -16,8 +16,8 @@ import os
|
|||||||
import tempfile
|
import tempfile
|
||||||
|
|
||||||
from oslo.serialization import jsonutils
|
from oslo.serialization import jsonutils
|
||||||
from oslo.utils import timeutils
|
from oslo_utils import timeutils
|
||||||
from oslo.utils import units
|
from oslo_utils import units
|
||||||
import testtools
|
import testtools
|
||||||
|
|
||||||
from glance.tests.integration.legacy_functional import base
|
from glance.tests.integration.legacy_functional import base
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
import time
|
import time
|
||||||
|
|
||||||
from oslo.serialization import jsonutils as json
|
from oslo.serialization import jsonutils as json
|
||||||
from oslo.utils import timeutils
|
from oslo_utils import timeutils
|
||||||
|
|
||||||
from glance.api.v2 import tasks
|
from glance.api.v2 import tasks
|
||||||
from glance.tests.integration.v2 import base
|
from glance.tests.integration.v2 import base
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
from oslo.serialization import jsonutils
|
from oslo.serialization import jsonutils
|
||||||
from oslo.utils import timeutils
|
from oslo_utils import timeutils
|
||||||
import stubout
|
import stubout
|
||||||
import webob
|
import webob
|
||||||
|
|
||||||
|
@ -33,7 +33,7 @@ CONF = cfg.CONF
|
|||||||
CONF.import_opt('metadata_encryption_key', 'glance.common.config')
|
CONF.import_opt('metadata_encryption_key', 'glance.common.config')
|
||||||
|
|
||||||
|
|
||||||
@mock.patch('oslo.utils.importutils.import_module')
|
@mock.patch('oslo_utils.importutils.import_module')
|
||||||
class TestDbUtilities(test_utils.BaseTestCase):
|
class TestDbUtilities(test_utils.BaseTestCase):
|
||||||
def setUp(self):
|
def setUp(self):
|
||||||
super(TestDbUtilities, self).setUp()
|
super(TestDbUtilities, self).setUp()
|
||||||
|
@ -19,8 +19,8 @@ import uuid
|
|||||||
|
|
||||||
import mock
|
import mock
|
||||||
from oslo.config import cfg
|
from oslo.config import cfg
|
||||||
import oslo.utils.importutils
|
import oslo_utils.importutils
|
||||||
from oslo.utils import timeutils
|
from oslo_utils import timeutils
|
||||||
|
|
||||||
import glance.async
|
import glance.async
|
||||||
from glance.common import exception
|
from glance.common import exception
|
||||||
@ -526,7 +526,7 @@ class TestTaskExecutorFactory(test_utils.BaseTestCase):
|
|||||||
self.image_repo,
|
self.image_repo,
|
||||||
self.image_factory)
|
self.image_factory)
|
||||||
context = mock.Mock()
|
context = mock.Mock()
|
||||||
with mock.patch.object(oslo.utils.importutils,
|
with mock.patch.object(oslo_utils.importutils,
|
||||||
'import_class') as mock_import_class:
|
'import_class') as mock_import_class:
|
||||||
mock_executor = mock.Mock()
|
mock_executor = mock.Mock()
|
||||||
mock_import_class.return_value = mock_executor
|
mock_import_class.return_value = mock_executor
|
||||||
@ -542,7 +542,7 @@ class TestTaskExecutorFactory(test_utils.BaseTestCase):
|
|||||||
self.image_repo,
|
self.image_repo,
|
||||||
self.image_factory)
|
self.image_factory)
|
||||||
context = mock.Mock()
|
context = mock.Mock()
|
||||||
with mock.patch.object(oslo.utils.importutils,
|
with mock.patch.object(oslo_utils.importutils,
|
||||||
'import_class') as mock_import_class:
|
'import_class') as mock_import_class:
|
||||||
mock_import_class.side_effect = ImportError
|
mock_import_class.side_effect = ImportError
|
||||||
|
|
||||||
|
@ -20,7 +20,7 @@ import os
|
|||||||
import time
|
import time
|
||||||
|
|
||||||
import fixtures
|
import fixtures
|
||||||
from oslo.utils import units
|
from oslo_utils import units
|
||||||
import six
|
import six
|
||||||
from six.moves import xrange
|
from six.moves import xrange
|
||||||
import stubout
|
import stubout
|
||||||
|
@ -38,7 +38,7 @@ from oslo.db.sqlalchemy import test_base
|
|||||||
from oslo.db.sqlalchemy import test_migrations
|
from oslo.db.sqlalchemy import test_migrations
|
||||||
from oslo.db.sqlalchemy import utils as db_utils
|
from oslo.db.sqlalchemy import utils as db_utils
|
||||||
from oslo.serialization import jsonutils
|
from oslo.serialization import jsonutils
|
||||||
from oslo.utils import timeutils
|
from oslo_utils import timeutils
|
||||||
import sqlalchemy
|
import sqlalchemy
|
||||||
|
|
||||||
from glance.common import crypt
|
from glance.common import crypt
|
||||||
|
@ -20,7 +20,7 @@ import glance_store
|
|||||||
import mock
|
import mock
|
||||||
from oslo.config import cfg
|
from oslo.config import cfg
|
||||||
from oslo import messaging
|
from oslo import messaging
|
||||||
from oslo.utils import timeutils
|
from oslo_utils import timeutils
|
||||||
import webob
|
import webob
|
||||||
|
|
||||||
import glance.async
|
import glance.async
|
||||||
|
@ -16,7 +16,7 @@ import uuid
|
|||||||
|
|
||||||
import mock
|
import mock
|
||||||
from mock import patch
|
from mock import patch
|
||||||
from oslo.utils import units
|
from oslo_utils import units
|
||||||
import six
|
import six
|
||||||
|
|
||||||
from glance.common import exception
|
from glance.common import exception
|
||||||
|
@ -25,7 +25,7 @@ import glance_store as store
|
|||||||
import mock
|
import mock
|
||||||
from oslo.config import cfg
|
from oslo.config import cfg
|
||||||
from oslo.serialization import jsonutils
|
from oslo.serialization import jsonutils
|
||||||
from oslo.utils import timeutils
|
from oslo_utils import timeutils
|
||||||
import routes
|
import routes
|
||||||
import six
|
import six
|
||||||
import webob
|
import webob
|
||||||
|
@ -21,7 +21,7 @@ import uuid
|
|||||||
import mock
|
import mock
|
||||||
from oslo.config import cfg
|
from oslo.config import cfg
|
||||||
from oslo.serialization import jsonutils
|
from oslo.serialization import jsonutils
|
||||||
from oslo.utils import timeutils
|
from oslo_utils import timeutils
|
||||||
import routes
|
import routes
|
||||||
import six
|
import six
|
||||||
import webob
|
import webob
|
||||||
|
@ -19,7 +19,7 @@ import os
|
|||||||
import uuid
|
import uuid
|
||||||
|
|
||||||
from mock import patch
|
from mock import patch
|
||||||
from oslo.utils import timeutils
|
from oslo_utils import timeutils
|
||||||
import testtools
|
import testtools
|
||||||
|
|
||||||
from glance.common import client as test_client
|
from glance.common import client as test_client
|
||||||
|
@ -20,7 +20,7 @@ import uuid
|
|||||||
|
|
||||||
from oslo.config import cfg
|
from oslo.config import cfg
|
||||||
from oslo.serialization import jsonutils
|
from oslo.serialization import jsonutils
|
||||||
from oslo.utils import timeutils
|
from oslo_utils import timeutils
|
||||||
import routes
|
import routes
|
||||||
import six
|
import six
|
||||||
import webob
|
import webob
|
||||||
|
@ -25,7 +25,7 @@ import os
|
|||||||
import uuid
|
import uuid
|
||||||
|
|
||||||
from mock import patch
|
from mock import patch
|
||||||
from oslo.utils import timeutils
|
from oslo_utils import timeutils
|
||||||
|
|
||||||
from glance.common import config
|
from glance.common import config
|
||||||
from glance.common import exception
|
from glance.common import exception
|
||||||
|
@ -19,7 +19,7 @@ import uuid
|
|||||||
|
|
||||||
import mock
|
import mock
|
||||||
from oslo.serialization import jsonutils
|
from oslo.serialization import jsonutils
|
||||||
from oslo.utils import timeutils
|
from oslo_utils import timeutils
|
||||||
import webob
|
import webob
|
||||||
|
|
||||||
import glance.api.v2.tasks
|
import glance.api.v2.tasks
|
||||||
|
@ -26,7 +26,7 @@ import subprocess
|
|||||||
import fixtures
|
import fixtures
|
||||||
from oslo.config import cfg
|
from oslo.config import cfg
|
||||||
from oslo.serialization import jsonutils
|
from oslo.serialization import jsonutils
|
||||||
from oslo.utils import timeutils
|
from oslo_utils import timeutils
|
||||||
import six
|
import six
|
||||||
import stubout
|
import stubout
|
||||||
import testtools
|
import testtools
|
||||||
|
Loading…
Reference in New Issue
Block a user