Refactor osclients

Now keystoneclient are separeted into 2 parts: working with resources
and authorization part. Secand part was moved into keystoneauth1 repo.

That patch is intended to drop depraceted usage of keystoneclient for
authorization in favor of keystoneauth1. Furthermore, in the next patch
we are going to use keystoneauth1 session for initialization of clients
where its possible.

Also :
  * Remove deprecated register decorator from osclient
  * Use _get_endpoint() in proper places
  * Refactor create_client in Keystone
  * Refactor unit tests in test_osclients

Change-Id: If67dffcd27f9bc3e7484d02eac62035c82415c3a
This commit is contained in:
Roman Vasilets
2016-06-29 17:24:36 +03:00
parent e1f7dfc3d5
commit a77ff1f9e7

View File

@@ -1039,7 +1039,7 @@ class FakeKeystoneClient(object):
self.auth_ref = mock.Mock()
self.auth_ref.role_names = ["admin"]
self.version = "v2.0"
self.session = mock.Mock()
self.session = mock.MagicMock()
self.authenticate = mock.MagicMock()
def authenticate(self):