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