Coverage for nova/conf/keystone.py: 90%
10 statements
« prev ^ index » next coverage.py v7.6.12, created at 2025-04-17 15:08 +0000
« prev ^ index » next coverage.py v7.6.12, created at 2025-04-17 15:08 +0000
1#
2# Licensed under the Apache License, Version 2.0 (the "License"); you may
3# not use this file except in compliance with the License. You may obtain
4# a copy of the License at
5#
6# http://www.apache.org/licenses/LICENSE-2.0
7#
8# Unless required by applicable law or agreed to in writing, software
9# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
10# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
11# License for the specific language governing permissions and limitations
12# under the License.
14from keystoneauth1 import loading as ks_loading
15from oslo_config import cfg
17from nova.conf import utils as confutils
20DEFAULT_SERVICE_TYPE = 'identity'
22keystone_group = cfg.OptGroup(
23 'keystone',
24 title='Keystone Options',
25 help='Configuration options for the identity service')
28def register_opts(conf):
29 conf.register_group(keystone_group)
30 confutils.register_ksa_opts(conf, keystone_group.name,
31 DEFAULT_SERVICE_TYPE, include_auth=False)
34def list_opts():
35 return {
36 keystone_group: (
37 ks_loading.get_session_conf_options() +
38 ks_loading.get_auth_common_conf_options() +
39 ks_loading.get_auth_plugin_conf_options('password') +
40 ks_loading.get_auth_plugin_conf_options('v2password') +
41 ks_loading.get_auth_plugin_conf_options('v3password') +
42 confutils.get_ksa_adapter_opts(DEFAULT_SERVICE_TYPE)
43 )
44 }