We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 728bb81 + f7c5aca commit a32d765Copy full SHA for a32d765
nova/tests/unit/api/openstack/placement/test_deploy.py
@@ -14,6 +14,7 @@
14
"""Unit tests for the deply function used to build the Placement service."""
15
16
from oslo_config import cfg
17
+from oslo_policy import opts as policy_opts
18
import testtools
19
import webob
20
@@ -34,6 +35,8 @@ def test_auth_middleware_factory(self):
34
35
group='keystone_authtoken')
36
# ensure that the auth_token middleware is chosen
37
CONF.set_override('auth_strategy', 'keystone', group='api')
38
+ # register and default policy opts (referenced by deploy)
39
+ policy_opts.set_defaults(CONF)
40
app = deploy.deploy(CONF)
41
req = webob.Request.blank('/resource_providers', method="GET")
42
0 commit comments