Merge "Switch Redis driver modules over to oslo.utils.timeutils"

This commit is contained in:
Jenkins 2014-09-04 15:59:27 +00:00 committed by Gerrit Code Review
commit 03f4414986
5 changed files with 6 additions and 6 deletions

View File

@ -17,10 +17,10 @@ import time
import uuid
import mock
from oslo.utils import timeutils
import redis
from zaqar.openstack.common.cache import cache as oslo_cache
from zaqar.openstack.common import timeutils
from zaqar.queues import storage
from zaqar.queues.storage.redis import controllers
from zaqar.queues.storage.redis import driver
@ -292,7 +292,7 @@ class RedisClaimsTest(base.ClaimControllerTest):
client_uuid=str(uuid.uuid4()))
now = timeutils.utcnow_ts()
timeutils_utcnow = 'zaqar.openstack.common.timeutils.utcnow_ts'
timeutils_utcnow = 'oslo.utils.timeutils.utcnow_ts'
# Test a single claim
with mock.patch(timeutils_utcnow) as mock_utcnow:

View File

@ -15,11 +15,11 @@
import functools
import msgpack
from oslo.utils import timeutils
import redis
from zaqar.common import decorators
from zaqar.openstack.common import log as logging
from zaqar.openstack.common import timeutils
from zaqar.queues import storage
from zaqar.queues.storage import errors
from zaqar.queues.storage.redis import messages

View File

@ -15,11 +15,11 @@
import functools
import uuid
from oslo.utils import timeutils
import redis
from zaqar.common import decorators
from zaqar.openstack.common import strutils
from zaqar.openstack.common import timeutils
from zaqar.queues import storage
from zaqar.queues.storage import errors
from zaqar.queues.storage.redis import models

View File

@ -16,9 +16,9 @@ import functools
import uuid
import msgpack
from oslo.utils import timeutils
from zaqar.openstack.common import strutils
from zaqar.openstack.common import timeutils
_pack = msgpack.Packer(encoding='utf-8', use_bin_type=True).pack

View File

@ -15,11 +15,11 @@
import functools
import msgpack
from oslo.utils import timeutils
import redis
from zaqar.common import decorators
from zaqar.openstack.common import log as logging
from zaqar.openstack.common import timeutils
from zaqar.queues import storage
from zaqar.queues.storage import errors
from zaqar.queues.storage.redis import utils