diff options
| author | Brant Knudson <bknudson@us.ibm.com> | 2015-07-24 15:06:00 -0500 |
|---|---|---|
| committer | Brant Knudson <bknudson@us.ibm.com> | 2015-08-04 09:56:43 -0500 |
| commit | 1721e01743324fc10630131d590659f565a3684d (patch) | |
| tree | 1e8af364524de0349f89c5b6f6f5241bba144d25 /keystoneclient/tests/unit/test_https.py | |
| parent | a9ef92a43f7d3cecd6a92d07fe7b4857d00eb2e4 (diff) | |
| download | python-keystoneclient-1721e01743324fc10630131d590659f565a3684d.tar.gz | |
Proper deprecation for HTTPClient tenant_id, tenant_name parameters
HTTPClient() tenant_id and tenant_name parameters weren't properly
deprecated since they were only mentioned in the docstring. Proper
deprecation requires use of warnings/debtcollector and documentation.
Also fixed a bunch of places in the tests where tenant_id and
tenant_name were still being used despite being deprecated.
bp deprecations
Change-Id: I9c4f596b8ff10aede6c417886638a942cb18044c
Diffstat (limited to 'keystoneclient/tests/unit/test_https.py')
| -rw-r--r-- | keystoneclient/tests/unit/test_https.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/keystoneclient/tests/unit/test_https.py b/keystoneclient/tests/unit/test_https.py index 541a0d6..77ddf80 100644 --- a/keystoneclient/tests/unit/test_https.py +++ b/keystoneclient/tests/unit/test_https.py @@ -28,7 +28,7 @@ RESPONSE_BODY = '{"hi": "there"}' def get_client(): cl = httpclient.HTTPClient(username="username", password="password", - tenant_id="tenant", auth_url="auth_test", + project_id="tenant", auth_url="auth_test", cacert="ca.pem", key="key.pem", cert="cert.pem") return cl @@ -82,7 +82,7 @@ class ClientTest(utils.TestCase): def test_post_auth(self, MOCK_REQUEST): MOCK_REQUEST.return_value = FAKE_RESPONSE cl = httpclient.HTTPClient( - username="username", password="password", tenant_id="tenant", + username="username", password="password", project_id="tenant", auth_url="auth_test", cacert="ca.pem", key="key.pem", cert="cert.pem") cl.management_url = "https://127.0.0.1:5000" |
