keystoneauth/keystoneauth1/tests/unit
Eric Fried 51bfa030b1 raise_exc default in Adapter
It can be annoying to have to say raise_exc=False (or use try/except) on
every call when talking to an API where 4xx response codes are
useful/normal/informative or where the preferred coding style is to use
conditionals rather than try/except.

With this change, the Adapter constructor takes a new kwarg, raise_exc.
It defaults to None, and the existing behavior is unchanged.  If set to
a boolean value, that is used as the default for requests.  Specifying
raise_exc to the primitives (get, head, put, post, patch, delete,
request) at any point along the chain will still take precedence.

Change-Id: Ie291c3cb891467728d8ca33cf62afdab37c82f34
Closes-Bug: #1776501
2018-06-12 10:48:39 -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 Merge "Return the endpoint_override from EndpointData" 2018-05-16 21:52:28 +00:00
loading Add oslo.config option for split-loggers 2018-05-16 15:42:03 -05: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 Expose version_between as a real function 2018-05-15 15:11:12 -05: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 raise_exc default in Adapter 2018-06-12 10:48:39 -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