summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Merge "Fix unused imports(flake8 F401, F999)"0.2.5Jenkins2013-06-036-13/+0
|\
| * Fix unused imports(flake8 F401, F999)Dolph Mathews2013-06-036-13/+0
| | | | | | | | | | | | | | | | | | | | - F401: imported but unused - F999: syntax error in doctest Fixing a couple of the F401's simply required fixing the doctests syntax where the imports were actually in use. Change-Id: If78abbb143daf8d005a71c5ab52836df29c5e0cd
* | Merge "Fix line continuations (flake8 E125, E126)"Jenkins2013-06-032-20/+16
|\ \ | |/
| * Fix line continuations (flake8 E125, E126)Dolph Mathews2013-06-032-20/+16
| | | | | | | | | | | | | | | | - E125: continuation line does not distinguish itself from next logical line - E126: continuation line over-indented for hanging indent Change-Id: I626a6d5d57db927e8b239f90569b5601c772f28b
* | Check ExpiryAdam Young2013-05-281-1/+13
|/ | | | | | | | | | | | Explicitly checks the expiry on the tokens, and rejects tokens that have expired had to regenerate the sample data for the tokens as they all had been generated with values that are now expired. bug 1179615 Change-Id: Ie06500d446f55fd0ad67ea540c92d8cfc57483f4
* Merge "Migrate to flake8."Jenkins2013-05-221-4/+4
|\
| * Migrate to flake8.Monty Taylor2013-05-171-4/+4
| | | | | | | | | | | | Fixes bug 1172444. Change-Id: Icd51f5d925d84dcec7df7c83ca43cd87bc1b090f
* | Pass memcache_servers as arrayDirk Mueller2013-05-211-12/+12
|/ | | | | | | | | | the python-memcached module expects memcache_servers to be an array of strings or an array of tuples. Since we don't care about server weighting, we can use an array of tuples for the unit test. Fixes bug 1172723 Change-Id: Iafba2bda545ea334d5aba7135e153d8589612ba4
* Merge "Use testr instead of nose."Jenkins2013-05-171-107/+163
|\
| * Use testr instead of nose.Monty Taylor2013-05-101-107/+163
| | | | | | | | | | | | Part of blueprint grizzly-testtools Change-Id: I76dee19781eaac21901b5c0258e83a42180c1702
* | Merge "Added Conflict Exception to the exception code map"Jenkins2013-05-171-0/+36
|\ \
| * | Added Conflict Exception to the exception code mapKannan Manickam2013-05-071-0/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The Conflict Exception is added for HTTP error code 409. However this exception is never raised as this class is not added to the error_code map and always raises the ClientException whenever a 409 code is returned. Fixes bug #1168826 Change-Id: I7045eae33533ff603f4aab61ea988264b46f0d09
* | | change "int(marker)" to "marker" on user list pagination.Zhenguo Niu2013-05-141-4/+4
| | | | | | | | | | | | | | | Change-Id: I7763b2cb3a1991402cb5e909a3cbf9d49f8e9bd1 Fixes: bug 1178152
* | | Remove duplicate test definitionsDirk Mueller2013-04-222-9/+0
| |/ |/| | | | | | | | | | | A few functions were duplicate, apparently merge errors. Remove them. Change-Id: Ifa23eb1fe5a5782101491be6b90ee9bed1e41b1b
* | Pass json object when invoking exception handler.Lin Hua Cheng2013-04-171-1/+26
|/ | | | | | Fixes bug 1154753. Change-Id: I6ca7c758d42e8586c8adf2529ce5362108a57a56
* Ec2Signer: Initial support for v4 signature verificationSteven Hardy2013-04-091-2/+70
| | | | | | | | Adds initial support for verifying AWS v4 signatures, tested with the latest boto trunk (which now uses v4 signatures by default) Change-Id: Id163363e259cf08aa251a7a00ff4293b742cbef6 blueprint: ec2signer-v4signatures
* Fix v3 with UUID and memcache expiring.Chmouel Boudjnah2013-04-032-10/+10
| | | | | | - Regenerate tokens to change expires in expires_at. Change-Id: Iaa62dca50d34a228e4850b59d263b807c5ee3549
* Config value for revocation list timeoutAdam Young2013-03-191-3/+13
| | | | | | | | | | | Adds the config option 'revocation_cache_time' default of 300 seconds, same as token timeout Bug 1076083 DocImpact Change-Id: Ifd41c816dd5431f140461d6a1588364d7ecf9a62
* Merge "Cache tokens using memorycache from oslo."0.2.3Jenkins2013-03-181-87/+43
|\
| * Cache tokens using memorycache from oslo.Vishvananda Ishaya2013-03-151-87/+43
| | | | | | | | | | | | | | | | | | | | | | Verifying tokens accounts for a significant portion of the time taken by the various api servers. This uses the simple memory cache from oslo so that there is a simple default cache even if memcached is not deployed. Also cleans up the tests and removes unnecessary fakes. DocImpact Change-Id: I501c14f2f51da058cb574c32d49dd769e6f6ad86
* | Merge "update v3 domains - remove public/private namespace"Jenkins2013-03-151-2/+0
|\ \ | |/ |/|
| * update v3 domains - remove public/private namespaceSteve Martinelli2013-03-041-2/+0
| | | | | | | | | | | | | | removed the private namespace options that were lingering in create/update/tests it should now adhere to the v3 api specs Change-Id: I853c2b8a13bc657e9cd2a3f24e6eb7deb68a4c5c
* | Merge "Use v2.0 api by default in auth_token middleware"Jenkins2013-03-141-1/+2
|\ \
| * | Use v2.0 api by default in auth_token middlewareDan Prince2013-03-121-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes an issue that crept in with d782a99 where auth_token started defaulting to the v3.0 API by default when no version was specified. Given that bin/keystone still defaults to using the v2.0 API it seems like auth_token.py should too. Fixes LP Bug #1154144 Change-Id: Ia5620bccc182bbc73cb60dcccb1f701304450e5a
* | | Merge "Make auth_token lazy load the auth_version."Jenkins2013-03-141-0/+15
|\ \ \
| * | | Make auth_token lazy load the auth_version.Dan Prince2013-03-131-0/+15
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Updates recent changes to the auth_token middleware (this is a regression in d782a99) so that self.auth_version is lazy loaded. This fixes issues where other openstack services would fail to startup correctly if Keystone is not running. The issue was auth_token was trying to make a request to '/' to get versions information on startup to "autodetect" the correct version to use. This patch fixes startup issues by moving the version detection so that it is lazy loaded right before it is actually used. This issue should fix SmokeStack :) Fixes LP Bug #1154806. Change-Id: Ib24f5386fa1ffe0e0365548840f0cfeaae36f548
* | | Make keystone client handle the response code 300.Nachiappan VR N2013-03-131-0/+79
|/ / | | | | | | | | | | | | | | | | | | | | Keystone discover command currently fails to list the keystone server. Fix is made such that client handle the response code 300 from the keystone server. Fixes Bug #1136476 Change-Id: Iada31f1e274aade90aa4b4be2a136793a0ba64d7
* | Fix auth-token middleware to understand v3 tokensHenry Nash2013-03-111-213/+650
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Now that the Identity server supports v3 tokens, the auth_token middleware should permit the in-line validation of such a token. This essentially means just setting any new environment items that correspond to the new attributes that may be in a v3 token (such as domains), as well as allowing for the slight format differences. Most of the work in this change is actually in the unit tests, where it was important to try and enable the existing tests to be run against an auth_token middleware configured for both v2 and v3. This meant restructing the test class so that the token format is separated from the individual tests and is initialized by the class Setup(). Since there are some new signed token formats included in this testing, a new set of the signed tokens was generated. Fixes Bug #1132390 Change-Id: I78b232d30f5310c39089fbbc8e56c23df291f89f
* | Merge "Remove test dep on name of dir (bug 1124283)"Jenkins2013-03-071-3/+3
|\ \
| * | Remove test dep on name of dir (bug 1124283)Dolph Mathews2013-03-041-5/+3
| |/ | | | | | | | | | | | | | | | | | | | | The name of the project's directory was previously hardcoded into the tests, so tests would fail if executed from another directory (such as "python-keystoneclient-master", as checked-out by keystone for integration testing). Also, the tests should now be executable on Windows. Change-Id: I0a1e052054e509b0f795fd13f95a804e0c255907
* | Merge "Save test_auth_token_middleware from unlimited recursion"Jenkins2013-03-061-4/+2
|\ \ | |/ |/|
| * Save test_auth_token_middleware from unlimited recursionAlessio Ababilov2013-02-191-4/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | For Python 2.6, BaseAuthTokenMiddlewareTest will be equal to AdjustedBaseAuthTokenMiddlewareTest in BaseAuthTokenMiddlewareTest.setUp thus leading to infinite recursion. Also, parent's setUp was incorrectly called by BaseAuthTokenMiddlewareTest.setUp twice: at the beginning and at the end of the function. Change-Id: I63fce65866ef9d8aebe9eb60f7ceb17463de0989 Fixes: bug #1130200
* | Merge "Implements token expiration handling"Jenkins2013-02-191-1/+46
|\ \ | |/ |/|
| * Implements token expiration handlingJulien Danjou2013-02-011-1/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | This implements handling of token expiration. Once the token is expired, this will request automatically for a new one. A special case is introduced if the user specified a token when the client is initialized: this is the auth_token_from_user. In this case, we can't know the expiration date, so we just assume it will never expire and don't handle it ourself. Change-Id: I3771ff5d669da015d4aa259de422c5d81aed3eb4 Signed-off-by: Julien Danjou <julien@danjou.info>
* | Merge "Added missing unit tests for shell.py"Jenkins2013-02-194-4/+1011
|\ \
| * | Added missing unit tests for shell.pyVasyl Khomenko2013-02-154-4/+1011
| | | | | | | | | | | | | | | | | | blueprint python-keystoneclient-unittests Change-Id: I47a205c027251c5282522ea73ee79c937383dc94
* | | Merge "Allow configure auth_token http connect timeout."Jenkins2013-02-161-1/+1
|\ \ \
| * | | Allow configure auth_token http connect timeout.Chmouel Boudjnah2013-02-141-1/+1
| |/ / | | | | | | | | | | | | | | | - Fixes bug 939613. Change-Id: Ic8cfc36e02212eeb987e509893369c0a47d9209a
* | | Merge "Fix how python 2.6 doesn't have assertDictEqual"Jenkins2013-02-161-0/+28
|\ \ \ | |/ / |/| |
| * | Fix how python 2.6 doesn't have assertDictEqualJoshua Harlow2013-01-281-0/+28
| | | | | | | | | | | | Change-Id: I2e3a3dcc173bb5eae0b3e19f1c0eadc496a17e73
* | | Allow requests up to 0.8 and greaterChuck Short2013-02-113-6/+1
| |/ |/| | | | | | | | | | | | | | | | | The requests module dropped all configuration with the 1.0.0 release. There's no danger_mode and no 'verbose'' mode. The former shouldn't be necessary anymore and the latter can be done by setting a different log handler for the request.logging root logger. Change-Id: I41bfaf2574f6d7fc21f86e0124ceae7df6481eee Signed-off-by: Chuck Short <chuck.short@canonical.com>
* | fix discrepancies seen in domain and credential, v3 - bug 1109349Steve Martinelli2013-01-301-0/+2
| | | | | | | | | | | | | | | | | | | | domains.py added list method added args private_project_names and private_user_names to create and update credentials.py added list method Change-Id: I0d231e909742bb56b79c91d3d0f7dac3bd3ec552
* | Merge "Take region_name into account when calling url_for"Jenkins2013-01-301-1/+24
|\ \
| * | Take region_name into account when calling url_forSam Morrison2013-01-241-1/+24
| |/ | | | | | | | | | | | | | | | | Fixes bug 1103282 When creating a Client object with region_name specified, url_for will return an endpoint url for that region. Change-Id: Ia5c95503fe2ed5e53de93040d70ba08a9c09f286
* | Merge "Fix thinko in self.middleware.cert_file_missing"Jenkins2013-01-281-0/+8
|\ \
| * | Fix thinko in self.middleware.cert_file_missingDirk Mueller2013-01-231-0/+8
| |/ | | | | | | | | | | | | | | | | | | | | | | | | The python function string.find() returns -1 on a miss, which is also evaluated as True. Therefore use the "X in Y" approach instead. Also added a rather trivial test to test for this code bug. In order to make the code easier to test, I've changed the parameters to operate on the command output, not the exception object and updated all callers. Change-Id: If0b4fed6fe676cad50512267c1b601a3a8a631e5
* | Merge "Fix STALE_TOKEN_DURATION usage"Jenkins2013-01-261-0/+1
|\ \
| * | Fix STALE_TOKEN_DURATION usageJulien Danjou2013-01-241-0/+1
| |/ | | | | | | | | Change-Id: I9856684d93d8b45310e599863553a020180aa509 Signed-off-by: Julien Danjou <julien@danjou.info>
* | Merge "Allow request timeout to be specified."Jenkins2013-01-241-1/+39
|\ \
| * | Allow request timeout to be specified.Joshua Harlow2013-01-181-1/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | Add a new cli argument (--timeout) which is by default 600 seconds which will be set in the requests library so that timeouts can occur correctly. Change-Id: I845c55dfb6f6b8345663ccdb5b150a2655f20026