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:
Chuck Short 2018-08-23 12:36:21 -04:00
parent ad310ba572
commit 182befced5
1 changed files with 2 additions and 2 deletions

View File

@ -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'