commit b2e02f5147d79eaf4fd935507590fec5a0ba7ccf
Author: Chris Dent <email address hidden>
Date: Tue Nov 28 12:44:44 2017 +0000
[placement] re-use existing conf with auth token middleware
If 'oslo_config_project' is passed to the auth_token filter
factory, the mechanism in nova.api.openstack.placement.wsgi for
overriding the location of the configuration file is ignored
meaning that expected custom configuration is also ignored.
Instead pass the already existing conf with 'olso_config_config'
parameter.
The unit test in test_deploy.py shows that the configuration
settings get passed to the middleware and used by testing the
value of the 'WWW-Authenticate' header (which comes from a few
different configuration settings, of which is 'auth_uri') in
a response generated by the placement WSGI application.
The same test against the previous deploy.py code fails.
Reviewed: https:/ /review. openstack. org/523403 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=b2e02f5147d 79eaf4fd9355075 90fec5a0ba7ccf
Committed: https:/
Submitter: Zuul
Branch: master
commit b2e02f5147d79ea f4fd935507590fe c5a0ba7ccf
Author: Chris Dent <email address hidden>
Date: Tue Nov 28 12:44:44 2017 +0000
[placement] re-use existing conf with auth token middleware
If 'oslo_config_ project' is passed to the auth_token filter openstack. placement. wsgi for
factory, the mechanism in nova.api.
overriding the location of the configuration file is ignored
meaning that expected custom configuration is also ignored.
Instead pass the already existing conf with 'olso_config_ config'
parameter.
The unit test in test_deploy.py shows that the configuration
settings get passed to the middleware and used by testing the
value of the 'WWW-Authenticate' header (which comes from a few
different configuration settings, of which is 'auth_uri') in
a response generated by the placement WSGI application.
The same test against the previous deploy.py code fails.
Change-Id: I61d20c5d19797f 7e66648c7864a63 2f3328be8ce
Closes-Bug: #1734491