commit 5d76284261cbfedd3f8a6363e89be079db93eeae
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.
Change-Id: I61d20c5d19797f7e66648c7864a632f3328be8ce
Closes-Bug: #1734491
(cherry picked from commit b2e02f5147d79eaf4fd935507590fec5a0ba7ccf)
Reviewed: https:/ /review. openstack. org/526351 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=5d76284261c bfedd3f8a6363e8 9be079db93eeae
Committed: https:/
Submitter: Zuul
Branch: stable/pike
commit 5d76284261cbfed d3f8a6363e89be0 79db93eeae
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 f4fd935507590fe c5a0ba7ccf)
Closes-Bug: #1734491
(cherry picked from commit b2e02f5147d79ea