ironic/ironic/tests/unit/api
Pavlo Shchelokovskyy 5e8c966a40 Use HTTPProxyToWSGI middleware from oslo
currently it is impossible to use ironic-api for both internal and
public api at the same time when both of those are using (ssl
terminating) proxies as there's only one config option to override the
resource url's in responses ([api]public_endpoint).

This patch adds the http_proxy_to_wsgi middleware from oslo.middleware
to the ironic API service, which, with properly configured proxies,
makes the choice of correct URL automatic, and thus makes such scenario
possible.

As this middleware may potentially not properly handle some
endpoint URL schemas, leave the api.public_endpoint option as a backup,
but it will be ignored when proxy headers parsing is enabled.

Change-Id: I3ce6b0726b479c2835f8777957b2cb12d8098aec
Story: #2006303
Task: #36019
2019-08-02 12:29:37 +00:00
..
controllers Abstract away pecan.request/response 2019-07-16 17:47:13 +02:00
__init__.py Prepare for functional testing 2015-09-28 21:27:01 +00:00
base.py Unit test consistency: DB base and utils prefix 2017-06-20 09:36:21 +01:00
test_acl.py Add keystone policy support to Ironic 2016-08-04 12:43:20 +00:00
test_audit.py Remove unnecessary setUp function in testcase 2017-03-30 15:39:55 +08:00
test_healthcheck.py Add optional healthcheck middleware 2018-02-12 14:48:05 -05:00
test_hooks.py Add user and project domains to ironic context 2016-11-15 17:35:22 +02:00
test_middleware.py Properly allow Ironic headers in REST API 2017-05-04 15:30:45 -03:00
test_ospmiddleware.py Add I202 to flake ignore list 2017-10-25 14:32:52 +03:00
test_proxy_middleware.py Use HTTPProxyToWSGI middleware from oslo 2019-08-02 12:29:37 +00:00
test_root.py Merge "Add version discovery information to the /v1 endpoint" 2018-10-22 15:17:06 +00:00
utils.py Allocation API: backfilling allocations 2019-05-21 20:09:21 +02:00