From a77ff1f9e7701b106c42be465c833a180a21b1d8 Mon Sep 17 00:00:00 2001 From: Roman Vasilets Date: Wed, 29 Jun 2016 17:24:36 +0300 Subject: [PATCH] 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 --- tests/unit/fakes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unit/fakes.py b/tests/unit/fakes.py index 8e6949f8..3bf278bb 100644 --- a/tests/unit/fakes.py +++ b/tests/unit/fakes.py @@ -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):