keystoneauth/keystoneauth1/tests/unit
Brian Rosmaita 35de6ebe93
Fix logging of encoded headers
A change introduced in 3.5.0 sorts headers, but runs into a problem
when the headers are bytes, such as the headers provided by the
python-glanceclient.

requests expects headers to be str type in both python2 and python3.
This means in python2 we need to encode unicode objects as ASCII (the
encoding that should be used for HTTP headers) and in python3 we need to
decode bytes as ASCII into str.

Change-Id: Ib81497c3a873616c22ba68256c596a6fb113e11e
Closes-bug: #1766235
2018-05-15 09:29:43 -05:00
..
access Implement service_type alias lookups 2018-05-03 15:28:50 -05:00
data Correct betamax fixture for more strict IDNA 2016-11-16 16:26:54 -08:00
exceptions Fix ClientException message property not set properly 2017-01-26 12:28:05 +00:00
extras Implement system scope 2018-01-17 15:50:11 +00:00
identity Infer version from old versioned service type aliases 2018-05-03 15:28:54 -05:00
loading Merge "Add support for application credentials" 2018-01-19 22:45:45 +00:00
__init__.py Move to the keystoneauth1 namespace 2015-06-25 16:48:54 -07:00
client_fixtures.py Refactor variables for fixture and service 2016-04-29 13:01:23 -05:00
k2k_fixtures.py Move to the keystoneauth1 namespace 2015-06-25 16:48:54 -07:00
keystoneauth_fixtures.py Address hacking check H405 2015-11-18 21:18:37 -08:00
matchers.py Fix H405, D105, D200, and D203 PEP257 2016-04-19 21:05:19 +00:00
oidc_fixtures.py oidc: add discovery document support 2016-07-14 10:19:10 +02:00
test_betamax_fixture.py Add pep8 import order validation 2018-02-15 20:07:04 +01:00
test_betamax_hooks.py Add pep8 import order validation 2018-02-15 20:07:04 +01:00
test_betamax_serializer.py Replace yaml.load() with yaml.safe_load() 2017-01-16 15:34:40 +07:00
test_discovery.py Merge "Infer version from old versioned service type aliases" 2018-05-08 15:40:15 +00:00
test_fixtures.py Replace six.iteritems() with .items() 2016-12-09 10:59:00 +08:00
test_hacking_checks.py Move to the keystoneauth1 namespace 2015-06-25 16:48:54 -07:00
test_matchers.py Use https for *.openstack.org references 2017-02-06 13:45:24 -08:00
test_noauth.py Make none auth usable in CLI 2017-10-27 18:46:14 +03:00
test_service_token.py Add a service token wrapper 2016-10-11 14:14:40 +11:00
test_session.py Fix logging of encoded headers 2018-05-15 09:29:43 -05:00
test_token_endpoint.py Add url as a deprecated alias for endpoint 2015-10-11 10:25:35 -04:00
test_utils.py Keep a consistent logger name for keystoneauth 2015-08-24 18:16:33 -07:00
utils.py Add ability to specify a microversion in a request 2017-07-19 02:51:49 +09:00