| Commit message (Collapse) | Author | Age | Files | Lines |
| |\ |
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
- 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
|
| |\ \
| |/ |
|
| | |
| |
| |
| |
| |
| |
| |
| | |
- E125: continuation line does not distinguish itself from next logical
line
- E126: continuation line over-indented for hanging indent
Change-Id: I626a6d5d57db927e8b239f90569b5601c772f28b
|
| |/
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |\ |
|
| | |
| |
| |
| |
| |
| | |
Fixes bug 1172444.
Change-Id: Icd51f5d925d84dcec7df7c83ca43cd87bc1b090f
|
| |/
|
|
|
|
|
|
|
|
| |
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
|
| |\ |
|
| | |
| |
| |
| |
| |
| | |
Part of blueprint grizzly-testtools
Change-Id: I76dee19781eaac21901b5c0258e83a42180c1702
|
| |\ \ |
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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-Id: I7763b2cb3a1991402cb5e909a3cbf9d49f8e9bd1
Fixes: bug 1178152
|
| | |/
|/|
| |
| |
| |
| |
| | |
A few functions were duplicate, apparently merge errors.
Remove them.
Change-Id: Ifa23eb1fe5a5782101491be6b90ee9bed1e41b1b
|
| |/
|
|
|
|
| |
Fixes bug 1154753.
Change-Id: I6ca7c758d42e8586c8adf2529ce5362108a57a56
|
| |
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
| |
- Regenerate tokens to change expires in expires_at.
Change-Id: Iaa62dca50d34a228e4850b59d263b807c5ee3549
|
| |
|
|
|
|
|
|
|
|
|
| |
Adds the config option 'revocation_cache_time'
default of 300 seconds, same as token timeout
Bug 1076083
DocImpact
Change-Id: Ifd41c816dd5431f140461d6a1588364d7ecf9a62
|
| |\ |
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
| |\ \
| |/
|/| |
|
| | |
| |
| |
| |
| |
| |
| | |
removed the private namespace options that were lingering in create/update/tests
it should now adhere to the v3 api specs
Change-Id: I853c2b8a13bc657e9cd2a3f24e6eb7deb68a4c5c
|
| |\ \ |
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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
|
| |\ \ \ |
|
| | |/ /
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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
|
| |/ /
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
| |\ \ |
|
| | |/
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
| |\ \
| |/
|/| |
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
| |\ \
| |/
|/| |
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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>
|
| |\ \ |
|
| | | |
| | |
| | |
| | |
| | |
| | | |
blueprint python-keystoneclient-unittests
Change-Id: I47a205c027251c5282522ea73ee79c937383dc94
|
| |\ \ \ |
|
| | |/ /
| | |
| | |
| | |
| | |
| | | |
- Fixes bug 939613.
Change-Id: Ic8cfc36e02212eeb987e509893369c0a47d9209a
|
| |\ \ \
| |/ /
|/| | |
|
| | | |
| | |
| | |
| | | |
Change-Id: I2e3a3dcc173bb5eae0b3e19f1c0eadc496a17e73
|
| | |/
|/|
| |
| |
| |
| |
| |
| |
| |
| | |
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>
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
| |\ \ |
|
| | |/
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
| |\ \ |
|
| | |/
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
| |\ \ |
|
| | |/
| |
| |
| |
| | |
Change-Id: I9856684d93d8b45310e599863553a020180aa509
Signed-off-by: Julien Danjou <julien@danjou.info>
|
| |\ \ |
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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
|