blob: 0473dfdda26ae601851cb2c1bc9220dfbca2b3e0 [file] [log] [blame]
Kiall Mac Innes25fb29e2016-04-07 08:07:04 +01001# Copyright 2016 Hewlett Packard Enterprise Development Company, L.P.
2#
3# Licensed under the Apache License, Version 2.0 (the "License"); you may
4# not use this file except in compliance with the License. You may obtain
5# a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
11# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12# License for the specific language governing permissions and limitations
13# under the License.
14from oslo_config import cfg
15
Kiall Mac Innes8ae796c2016-04-21 13:47:25 +010016service_available_group = cfg.OptGroup(name="service_available",
17 title="Available OpenStack Services")
18
19ServiceAvailableGroup = [
20 cfg.BoolOpt("designate",
21 default=True,
22 help="Whether or not designate is expected to be available."),
23]
24
Kiall Mac Innes25fb29e2016-04-07 08:07:04 +010025dns_group = cfg.OptGroup(name='dns',
26 title='DNS service options')
27
28DnsGroup = [
29 cfg.StrOpt('endpoint_type',
30 default='publicURL',
31 choices=['public', 'admin', 'internal',
32 'publicURL', 'adminURL', 'internalURL'],
33 help="The endpoint type to use for the DNS service"),
34 cfg.StrOpt('catalog_type',
35 default='dns',
36 help="Catalog type of the DNS service"),
37 cfg.IntOpt('build_interval',
38 default=1,
39 help="Time in seconds between build status checks."),
40 cfg.IntOpt('build_timeout',
Tim Simmons12bd71d2017-02-24 17:15:46 +000041 default=360,
Kiall Mac Innes25fb29e2016-04-07 08:07:04 +010042 help="Timeout in seconds to wait for an resource to build."),
Paul Glassa3ab50c2016-05-11 16:37:18 -050043 cfg.IntOpt('min_ttl',
Arkady Shtempler4054a222022-06-23 13:16:51 +030044 default=0,
Arkady Shtemplera3922842023-12-13 10:56:04 +020045 help="The minimum value to respect when generating ttl"),
Paul Glasscf98c262016-05-13 19:34:37 +000046 cfg.ListOpt('nameservers',
47 default=[],
48 help="The nameservers to check for change going live"),
49 cfg.IntOpt('query_timeout',
Erik Olof Gunnar Andersson1e733012023-11-03 05:25:21 -070050 default=3,
Paul Glasscf98c262016-05-13 19:34:37 +000051 help="The timeout on a single dns query to a nameserver"),
Rocky9e764822018-03-08 17:34:51 +110052 cfg.StrOpt('zone_id',
53 help="The target zone to test the dns recordsets "
Arkady Shtempler6d6b27d2022-04-18 15:25:00 +030054 "If it is not specified, a new zone will be created "),
55 cfg.StrOpt('tld_suffix',
Michael Johnsonade263c2022-05-19 23:21:25 +000056 default='test',
dbiletskiy095eb032023-03-17 15:32:58 +010057 help="TLD suffix that used in all tests (if not overridden)."),
58 cfg.ListOpt('existing_tlds',
59 default=[],
60 help="List of current TLDs created on the environment"),
Kiall Mac Innes25fb29e2016-04-07 08:07:04 +010061]
Kiall Mac Innes8ae796c2016-04-21 13:47:25 +010062
63dns_feature_group = cfg.OptGroup(name='dns_feature_enabled',
64 title='Enabled Designate Features')
65
66DnsFeatureGroup = [
Kiall Mac Innes8ae796c2016-04-21 13:47:25 +010067 cfg.BoolOpt('api_v2',
68 default=True,
69 help="Is the v2 dns API enabled."),
70 cfg.BoolOpt('api_admin',
Michael Johnson407b60f2022-07-27 15:09:39 +000071 default=False,
Kiall Mac Innes8ae796c2016-04-21 13:47:25 +010072 help="Is the admin dns API enabled."),
sonu.kumar53dbdbb2016-05-16 17:20:45 +090073 cfg.BoolOpt('api_v2_root_recordsets',
74 default=False,
75 help="Is the v2 root recordsets API enabled."),
Graham Hayesc8114982016-07-04 17:46:08 +010076 cfg.BoolOpt('api_v2_quotas',
77 default=False,
78 help="Is the v2 quota API enabled."),
Pavlo Shchelokovskyy60e53722018-07-04 11:21:29 +000079 cfg.BoolOpt('api_v2_quotas_verify_project',
80 default=False,
81 help="Is project IDs verified when setting v2 quotas. "
82 "Must be set to True starting from Rocky release."),
Graham Hayesc8114982016-07-04 17:46:08 +010083 cfg.BoolOpt('bug_1573141_fixed',
Ben Nemec142f9e22018-07-18 17:23:16 +000084 default=True,
Takashi Kajinamidb3be982022-09-04 22:38:14 +090085 deprecated_for_removal=True,
86 deprecated_reason='This bug was fixed in 3.0.0',
Graham Hayesc8114982016-07-04 17:46:08 +010087 help="Is https://bugs.launchpad.net/designate/+bug/1573141 "
88 "fixed"),
Erik Olof Gunnar Andersson3bfce9b2022-01-08 23:11:13 -080089 cfg.BoolOpt('bug_1932026_fixed',
90 default=False,
91 help="Is https://bugs.launchpad.net/designate/+bug/1932026 "
92 "fixed"),
Omer070e4cb2024-05-29 14:06:32 +020093 cfg.StrOpt('designate_manage_path',
94 default=None,
95 help="The designate-manage command path"),
Michael Johnsona3a23632021-07-21 21:55:32 +000096 # Note: Also see the enforce_scope section (from tempest) for Designate API
97 # scope checking setting.
98 cfg.BoolOpt('enforce_new_defaults',
99 default=False,
100 help='Does the dns service API policies enforce '
101 'the new keystone default roles? This configuration '
102 'value should be same as designate.conf: '
103 '[oslo_policy].enforce_new_defaults option.'),
Omerc1f894b2024-05-09 00:21:51 +0200104 cfg.BoolOpt('test_multipool_with_delete_opt',
105 default=False,
106 help="Is multipool feature being tested with --delete option?"
107 "If it is, it might delete pools that were created in "
108 "other tests."),
Michael Johnsona3a23632021-07-21 21:55:32 +0000109]
110
111# Extending this enforce_scope group defined in tempest
112enforce_scope_group = cfg.OptGroup(name="enforce_scope",
113 title="OpenStack Services with "
114 "enforce scope")
115EnforceScopeGroup = [
116 cfg.BoolOpt('designate',
117 default=False,
118 help='Does the dns service API policies enforce '
119 'scope? This configuration value should be same as '
120 'designate.conf: [oslo_policy].enforce_scope option.'),
Kiall Mac Innes8ae796c2016-04-21 13:47:25 +0100121]