Use keystonemiddleware in place of keystoneclient

keystoneclient.middleware has been deprecated in
favor of keystonemiddleware

Change-Id: I8bb2e8ae453027334ea7303ba87cbf8000b27994
Closes-Bug: #1377822
This commit is contained in:
Abhishek Chanda 2014-10-07 13:54:58 -07:00
parent 4a038c2711
commit 258fd15ca8
3 changed files with 4 additions and 3 deletions

View File

@ -16,7 +16,7 @@
"""Access Control API server."""
from keystoneclient.middleware import auth_token
from keystonemiddleware import auth_token
from oslo.config import cfg

View File

@ -15,7 +15,7 @@
import datetime
import uuid
from keystoneclient.middleware import auth_token
from keystonemiddleware import auth_token
import mock
from oslo.config import cfg
import pecan
@ -88,7 +88,7 @@ class TestKeystoneMiddleware(base.FunctionalTest):
auth_token.AuthProtocol, '_get_user_token_from_header',
mock.MagicMock(return_value=''))
@mock.patch.object(
auth_token.AuthProtocol, '_validate_user_token',
auth_token.AuthProtocol, '_validate_token',
mock.MagicMock(return_value=PKI_TOKEN_VERIFIED))
@mock.patch.object(
db_api, "workbook_get",

View File

@ -27,3 +27,4 @@ stevedore>=1.0.0 # Apache-2.0
yaql==0.2.1 # This is not in global requirements
jsonschema>=2.0.0,<3.0.0
mock>=1.0
keystonemiddleware>=1.0.0