File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
nova/tests/functional/api/openstack/placement/fixtures Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change 16
16
from oslo_config import cfg
17
17
from oslo_config import fixture as config_fixture
18
18
from oslo_middleware import cors
19
+ from oslo_policy import opts as policy_opts
19
20
from oslo_utils import uuidutils
20
21
from oslotest import output
21
22
@@ -75,6 +76,9 @@ def start_fixture(self):
75
76
# deploy.py. Without setting some config the group will not
76
77
# be present.
77
78
CONF .register_opts (cors .CORS_OPTS , 'cors' )
79
+ # Set default policy opts, otherwise the deploy module can
80
+ # NoSuchOptError.
81
+ policy_opts .set_defaults (CONF )
78
82
79
83
# Make sure default_config_files is an empty list, not None.
80
84
# If None /etc/nova/nova.conf is read and confuses results.
You can’t perform that action at this time.
0 commit comments