keystoneauth/keystoneauth1
Dmitry Tantsur 981a19bba1 Correct major version discovery for non-keystone plugins
When a non-keystone plugin is used together with an unversioned endpoint,
we give up on discovery before figuring out both major version and
the correct endpoint. This is because get_endpoint_data is called with
discover_versions=False, so discovery assumes we have all information
already. It may be an issue in discovery itself, but I'm afraid to
touch that code. Instead, if get_endpoint_data returns no API version
with discover_versions=False, try with discover_versions=True, which
matches what the identity plugins do.

Also increase the unit test coverage.

Change-Id: Ie623931b150748d7759cf276e0023a2f06a8d4db
2020-07-31 11:32:26 +02:00
..
access Update hacking for Python3 2020-03-31 20:11:31 +02:00
exceptions add support for auth_receipts and multi-method auth 2019-08-14 11:51:28 +12:00
extras Update hacking for Python3 2020-03-31 20:11:31 +02:00
fixture Use unittest.mock instead of third party mock 2020-05-29 10:37:58 -05:00
hacking Update hacking for Python3 2020-03-31 20:11:31 +02:00
identity Inject /v3 in token path for v3 plugins 2020-05-22 09:38:27 -05:00
loading Implement HTTP Basic client support in keystoneauth1 2020-06-15 10:26:35 +12:00
tests Correct major version discovery for non-keystone plugins 2020-07-31 11:32:26 +02:00
__init__.py Provide a RFC 7231 compliant user agent string 2015-12-15 16:45:17 -06:00
_fair_semaphore.py Add support for client-side rate limiting 2019-02-28 22:14:24 +00:00
_utils.py Disables TCP_KEEPCNT when using Windows Subsystem for Linux 2016-08-23 03:36:45 +00:00
adapter.py Make header Case Insensitive 2020-05-29 17:17:11 -05:00
discover.py Fetch discovery documents with auth when needed 2019-10-04 18:36:29 +02:00
http_basic.py Fix get_endpoint_data for non-keystone plugins 2020-07-27 17:20:58 +02:00
noauth.py Fix get_endpoint_data for non-keystone plugins 2020-07-27 17:20:58 +02:00
plugin.py Correct major version discovery for non-keystone plugins 2020-07-31 11:32:26 +02:00
service_token.py Add a service token wrapper 2016-10-11 14:14:40 +11:00
session.py Make header Case Insensitive 2020-05-29 17:17:11 -05:00
token_endpoint.py Add version discovery support to BaseAuthPlugin 2017-09-06 15:43:30 -05:00