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:
David Stanek
2016-07-05 19:22:47 +00:00
parent bd3b9698e9
commit ea59511cc2

View File

@@ -95,7 +95,7 @@ class ManagerTest(utils.TestCase):
auth = v2.Token(auth_url='http://127.0.0.1:5000',
token=self.TEST_TOKEN)
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.resource_class = base.Resource