Use the adapter instead of the client in tests
Both the V2.0 and V3 clients create managers by passing in an instance of the _KeystoneAdapter class. Is seems reasonable for the tests to do the same things to keep everything consistent. Change-Id: I06d256e71105fdad3f4d182a53a6887617b4cffe
This commit is contained in:
@@ -95,7 +95,7 @@ class ManagerTest(utils.TestCase):
|
|||||||
auth = v2.Token(auth_url='http://127.0.0.1:5000',
|
auth = v2.Token(auth_url='http://127.0.0.1:5000',
|
||||||
token=self.TEST_TOKEN)
|
token=self.TEST_TOKEN)
|
||||||
session_ = session.Session(auth=auth)
|
session_ = session.Session(auth=auth)
|
||||||
self.client = client.Client(session=session_)
|
self.client = client.Client(session=session_)._adapter
|
||||||
|
|
||||||
self.mgr = base.Manager(self.client)
|
self.mgr = base.Manager(self.client)
|
||||||
self.mgr.resource_class = base.Resource
|
self.mgr.resource_class = base.Resource
|
||||||
|
Reference in New Issue
Block a user