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:
parent
4a038c2711
commit
258fd15ca8
@ -16,7 +16,7 @@
|
||||
|
||||
"""Access Control API server."""
|
||||
|
||||
from keystoneclient.middleware import auth_token
|
||||
from keystonemiddleware import auth_token
|
||||
from oslo.config import cfg
|
||||
|
||||
|
||||
|
@ -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",
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user