keystoneauth/keystoneauth1/identity
Monty Taylor 429b19c88c
Ensure we discover only when we should
There are a two interrelated pieces in this patch which are around
fixing up places where discovery was being re-run inappropriately.
They fall out from adding tests for the functionality and couldn't
be sanely shifted back further in the stack without a big dance.

Switch the default for "discover_versions" on all of the calls that
return an EndpointData to "True". It's a new feature and is a thing that
doesn't make a ton of sense to call if you don't want discovery run.
However, get_endpoint uses it, so needs to be able to pass in
discover_version=False, so the option is still useful. Make sure that
get_endpoint and other places where ksa calls get_endpoint_data on
behalf of the user work as before without unneeded discovery.

Add tests to show that we use actually use the discovery cache properly when
we've previously done discovery that can satisfy the new request. This
works from the microversion optimization patch, but we had to clean up
a couple of things to show it fully in a test.

Change-Id: I54053336edf1b3c2bd35a77dbd78f56388b8e806
2017-06-29 08:03:35 -05:00
..
generic Include the auth_url in the discovery failure message 2017-02-24 10:30:41 -05:00
v3 Updated inconsistent value of scope parameter 2017-04-04 19:51:18 +05:30
__init__.py oidc: implement client_credentials grant type 2016-07-20 09:59:05 +02:00
access.py Cleanup docstrings 2016-02-19 14:42:16 -06:00
base.py Ensure we discover only when we should 2017-06-29 08:03:35 -05:00
v2.py Removing tox ignore D400. 2016-04-18 21:20:51 +00:00