summaryrefslogtreecommitdiff
path: root/keystoneclient/tests/unit
diff options
context:
space:
mode:
authorBrant Knudson <bknudson@us.ibm.com>2015-07-24 10:12:12 -0500
committerBrant Knudson <bknudson@us.ibm.com>2015-07-24 11:05:05 -0500
commit6d82f1f17ca99b4e318b6c5bfa24b6dc507ba497 (patch)
tree986f78d1591a5ef1a22037ced396318f02c23017 /keystoneclient/tests/unit
parent66fd1eb7484f92a7d3daa468be8c47910ba79216 (diff)
downloadpython-keystoneclient-6d82f1f17ca99b4e318b6c5bfa24b6dc507ba497.tar.gz
Proper deprecation for AccessInfo auth_url property
Properly deprecate accessing AccessInfo's auth_url parameter. bp deprecations Change-Id: I3824904f517434b507587cf73d4389b72f73f22b
Diffstat (limited to 'keystoneclient/tests/unit')
-rw-r--r--keystoneclient/tests/unit/v2_0/test_access.py7
-rw-r--r--keystoneclient/tests/unit/v3/test_access.py8
2 files changed, 10 insertions, 5 deletions
diff --git a/keystoneclient/tests/unit/v2_0/test_access.py b/keystoneclient/tests/unit/v2_0/test_access.py
index 17b8fe4..c004fa0 100644
--- a/keystoneclient/tests/unit/v2_0/test_access.py
+++ b/keystoneclient/tests/unit/v2_0/test_access.py
@@ -45,7 +45,8 @@ class AccessInfoTest(utils.TestCase, testresources.ResourcedTestCase):
self.assertIsNone(auth_ref.tenant_name)
self.assertIsNone(auth_ref.tenant_id)
- self.assertIsNone(auth_ref.auth_url)
+ with self.deprecations.expect_deprecations_here():
+ self.assertIsNone(auth_ref.auth_url)
self.assertIsNone(auth_ref.management_url)
with self.deprecations.expect_deprecations_here():
@@ -99,7 +100,9 @@ class AccessInfoTest(utils.TestCase, testresources.ResourcedTestCase):
self.assertEqual(auth_ref.tenant_name, auth_ref.project_name)
self.assertEqual(auth_ref.tenant_id, auth_ref.project_id)
- self.assertEqual(auth_ref.auth_url, ('http://public.com:5000/v2.0',))
+ with self.deprecations.expect_deprecations_here():
+ self.assertEqual(auth_ref.auth_url,
+ ('http://public.com:5000/v2.0',))
self.assertEqual(auth_ref.management_url, ('http://admin:35357/v2.0',))
self.assertEqual(auth_ref.project_domain_id, 'default')
diff --git a/keystoneclient/tests/unit/v3/test_access.py b/keystoneclient/tests/unit/v3/test_access.py
index f069f71..a3171df 100644
--- a/keystoneclient/tests/unit/v3/test_access.py
+++ b/keystoneclient/tests/unit/v3/test_access.py
@@ -49,7 +49,8 @@ class AccessInfoTest(utils.TestCase):
self.assertIsNone(auth_ref.project_name)
self.assertIsNone(auth_ref.project_id)
- self.assertIsNone(auth_ref.auth_url)
+ with self.deprecations.expect_deprecations_here():
+ self.assertIsNone(auth_ref.auth_url)
self.assertIsNone(auth_ref.management_url)
self.assertFalse(auth_ref.domain_scoped)
@@ -148,8 +149,9 @@ class AccessInfoTest(utils.TestCase):
self.assertEqual(auth_ref.tenant_name, auth_ref.project_name)
self.assertEqual(auth_ref.tenant_id, auth_ref.project_id)
- self.assertEqual(auth_ref.auth_url,
- ('http://public.com:5000/v3',))
+ with self.deprecations.expect_deprecations_here():
+ self.assertEqual(auth_ref.auth_url,
+ ('http://public.com:5000/v3',))
self.assertEqual(auth_ref.management_url,
('http://admin:35357/v3',))