nova/nova/api/openstack/placement
Chris Dent a598af9de6 Add rudimentary CORS support to placement API
If 'cors.allowed_origin' is set in the nova.conf, configure the
placement API to use oslo_middleware.CORS. Simple gabbi tests are
added which confirm the basic operation of the middleware, modeled
on the tests in nova/tests/functional/test_middleware.py, as well as
additional tests which confirm that when the middleware is not
configured it is not present in the system.

The cors config options are registered in deploy.py to ensure that
the group is allowed to exist in conf (even if it doesn't). Without
that, a deployment that tries to configure cors would not actually
cause the middleware to run.

Change-Id: I571bc675facaecb523dcf906f4bb44a51102b514
2017-01-16 12:04:24 +00:00
..
handlers Merge "[py35] Fixes to get rally scenarios working" 2017-01-14 05:05:30 +00:00
__init__.py Add initial framing of placement API 2016-07-29 10:31:36 +00:00
auth.py Add support for resource_providers urls 2016-08-16 13:24:44 +00:00
deploy.py Add rudimentary CORS support to placement API 2017-01-16 12:04:24 +00:00
handler.py placement: REST API for resource classes 2016-12-05 16:13:49 +00:00
microversion.py Expose a REST API for a specific list of RPs 2017-01-13 17:57:29 -05:00
policy.py Remove Rules.load_json warning 2016-12-30 15:27:37 -05:00
requestlog.py [placement] clean up some nits in the requestlog middleware 2016-09-07 09:23:02 +00:00
rest_api_version_history.rst Expose a REST API for a specific list of RPs 2017-01-13 17:57:29 -05:00
util.py placement: REST API for resource classes 2016-12-05 16:13:49 +00:00
wsgi.py [placement] Fix misleading comment in wsgi loader 2016-09-05 13:14:02 +00:00