Switch Redis driver modules over to oslo.utils.timeutils

This patch changes the Redis drivers so they use the oslo.utils
version of timeutils. This is consistent with the rest of Zaqar.

Change-Id: I56379b90414cbd8bcc6bca6998988dba800693b9
Partially-Implements: blueprint redis-storage-driver
This commit is contained in:
kgriffs 2014-09-02 12:27:59 -05:00
parent 0562485a09
commit 7d546fe89b
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