Fix deprecation warnings
While running the unit tests, the following is captured by the stderr: DeprecationWarning: Property 'project_domain' has moved to 'project_domain_id' in version '2.6' and will be removed in version '3.0' Make sure we are using the right property. Change-Id: I4274bed6b25f04c8bf58cd9b4d1874bf71ec1b97 Signed-off-by: Chuck Short <chucks@redhat.com>
This commit is contained in:
parent
ad310ba572
commit
182befced5
|
@ -82,7 +82,7 @@ class TestCinderKeystoneContextMiddleware(test.TestCase):
|
|||
|
||||
self.request.get_response(self.middleware)
|
||||
|
||||
self.assertEqual('domain1', self.context.project_domain)
|
||||
self.assertEqual('domain1', self.context.project_domain_id)
|
||||
|
||||
def test_request_project_domain_name(self):
|
||||
self.request.headers['X_USER_ID'] = 'testuserid'
|
||||
|
@ -98,7 +98,7 @@ class TestCinderKeystoneContextMiddleware(test.TestCase):
|
|||
|
||||
self.request.get_response(self.middleware)
|
||||
|
||||
self.assertEqual('domain2', self.context.user_domain)
|
||||
self.assertEqual('domain2', self.context.user_domain_id)
|
||||
|
||||
def test_request_user_domain_name(self):
|
||||
self.request.headers['X_USER_ID'] = 'testuserid'
|
||||
|
|
Loading…
Reference in New Issue