blob: 8873ef6add6cc7cc98498d21792065846ad762f4 [file] [log] [blame]
Marc Koderer0abc93b2015-07-15 09:18:35 +02001# Copyright 2014 Mirantis Inc.
2# All Rights Reserved.
3#
4# Licensed under the Apache License, Version 2.0 (the "License"); you may
5# not use this file except in compliance with the License. You may obtain
6# a copy of the License at
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13# License for the specific language governing permissions and limitations
14# under the License.
15
16from __future__ import print_function
17
18from oslo_config import cfg
19
20from tempest import config # noqa
21
22service_available_group = cfg.OptGroup(name="service_available",
23 title="Available OpenStack Services")
24
25ServiceAvailableGroup = [
26 cfg.BoolOpt("manila",
27 default=True,
28 help="Whether or not manila is expected to be available"),
29]
30
31share_group = cfg.OptGroup(name="share", title="Share Service Options")
32
33ShareGroup = [
34 cfg.StrOpt("min_api_microversion",
Clinton Knighte5c8f092015-08-27 15:00:23 -040035 default="2.0",
Marc Koderer0abc93b2015-07-15 09:18:35 +020036 help="The minimum api microversion is configured to be the "
37 "value of the minimum microversion supported by Manila."),
38 cfg.StrOpt("max_api_microversion",
Igor Malinovskiyedb05112015-09-14 06:14:24 -070039 default="2.6",
Marc Koderer0abc93b2015-07-15 09:18:35 +020040 help="The maximum api microversion is configured to be the "
41 "value of the latest microversion supported by Manila."),
42 cfg.StrOpt("region",
43 default="",
44 help="The share region name to use. If empty, the value "
45 "of identity.region is used instead. If no such region "
46 "is found in the service catalog, the first found one is "
47 "used."),
48 cfg.StrOpt("catalog_type",
49 default="share",
50 help="Catalog type of the Share service."),
51 cfg.StrOpt('endpoint_type',
52 default='publicURL',
53 choices=['public', 'admin', 'internal',
54 'publicURL', 'adminURL', 'internalURL'],
55 help="The endpoint type to use for the share service."),
56 cfg.BoolOpt("multitenancy_enabled",
57 default=True,
58 help="This option used to determine backend driver type, "
59 "multitenant driver uses share-networks, but "
60 "single-tenant doesn't."),
61 cfg.ListOpt("enable_protocols",
62 default=["nfs", "cifs"],
63 help="First value of list is protocol by default, "
64 "items of list show enabled protocols at all."),
65 cfg.ListOpt("enable_ip_rules_for_protocols",
66 default=["nfs", "cifs", ],
67 help="Selection of protocols, that should "
68 "be covered with ip rule tests"),
69 cfg.ListOpt("enable_user_rules_for_protocols",
70 default=[],
71 help="Selection of protocols, that should "
72 "be covered with user rule tests"),
73 cfg.ListOpt("enable_cert_rules_for_protocols",
74 default=["glusterfs", ],
75 help="Protocols that should be covered with cert rule tests."),
76 cfg.StrOpt("username_for_user_rules",
77 default="Administrator",
78 help="Username, that will be used in user tests."),
79 cfg.ListOpt("enable_ro_access_level_for_protocols",
80 default=["nfs", ],
81 help="List of protocols to run tests with ro access level."),
Valeriy Ponomaryovad55dc52015-09-23 13:54:00 +030082
83 # Capabilities
84 cfg.StrOpt("capability_storage_protocol",
85 deprecated_name="storage_protocol",
Marc Koderer0abc93b2015-07-15 09:18:35 +020086 default="NFS_CIFS",
87 help="Backend protocol to target when creating volume types."),
Valeriy Ponomaryovad55dc52015-09-23 13:54:00 +030088 cfg.BoolOpt("capability_snapshot_support",
89 help="Defines extra spec that satisfies specific back end "
90 "capability called 'snapshot_support' and will be used "
91 "for setting up custom share type. Defaults to value of "
92 "other config option 'run_snapshot_tests'."),
93
Marc Koderer0abc93b2015-07-15 09:18:35 +020094 cfg.StrOpt("share_network_id",
95 default="",
96 help="Some backend drivers requires share network "
97 "for share creation. Share network id, that will be "
98 "used for shares. If not set, it won't be used."),
99 cfg.StrOpt("alt_share_network_id",
100 default="",
101 help="Share network id, that will be used for shares"
102 " in alt tenant. If not set, it won't be used"),
103 cfg.StrOpt("admin_share_network_id",
104 default="",
105 help="Share network id, that will be used for shares"
106 " in admin tenant. If not set, it won't be used"),
107 cfg.BoolOpt("multi_backend",
108 default=False,
109 help="Runs Manila multi-backend tests."),
110 cfg.ListOpt("backend_names",
111 default=[],
112 help="Names of share backends, that will be used with "
113 "multibackend tests. Tempest will use first two values."),
114 cfg.IntOpt("share_creation_retry_number",
115 default=0,
116 help="Defines number of retries for share creation. "
117 "It is useful to avoid failures caused by unstable "
118 "environment."),
119 cfg.IntOpt("build_interval",
120 default=3,
121 help="Time in seconds between share availability checks."),
122 cfg.IntOpt("build_timeout",
123 default=500,
124 help="Timeout in seconds to wait for a share to become"
125 "available."),
126 cfg.BoolOpt("suppress_errors_in_cleanup",
127 default=False,
128 help="Whether to suppress errors with clean up operation "
129 "or not. There are cases when we may want to skip "
130 "such errors and catch only test errors."),
131 cfg.BoolOpt("run_manage_unmanage_tests",
132 default=False,
133 help="Defines whether to run manage/unmanage tests or not. "
134 "These test may leave orphaned resources, so be careful "
135 "enabling this opt."),
Valeriy Ponomaryovad55dc52015-09-23 13:54:00 +0300136
137 # Switching ON/OFF test suites filtered by features
Marc Koderer0abc93b2015-07-15 09:18:35 +0200138 cfg.BoolOpt("run_extend_tests",
139 default=True,
140 help="Defines whether to run share extend tests or not. "
141 "Disable this feature if used driver doesn't "
142 "support it."),
143 cfg.BoolOpt("run_shrink_tests",
144 default=True,
145 help="Defines whether to run share shrink tests or not. "
146 "Disable this feature if used driver doesn't "
147 "support it."),
148 cfg.BoolOpt("run_snapshot_tests",
149 default=True,
150 help="Defines whether to run tests that use share snapshots "
151 "or not. Disable this feature if used driver doesn't "
152 "support it."),
Andrew Kerrbf31e912015-07-29 10:39:38 -0400153 cfg.BoolOpt("run_consistency_group_tests",
154 default=True,
155 help="Defines whether to run consistency group tests or not. "
156 "Disable this feature if used driver doesn't support "
157 "it."),
Rodrigo Barbieri2aafa262015-09-09 15:52:16 -0300158 cfg.BoolOpt("run_migration_tests",
159 default=False,
160 help="Enable or disable migration tests."),
Valeriy Ponomaryovad55dc52015-09-23 13:54:00 +0300161
Marc Koderer0abc93b2015-07-15 09:18:35 +0200162 cfg.StrOpt("image_with_share_tools",
163 default="manila-service-image",
164 help="Image name for vm booting with nfs/smb clients tool."),
165 cfg.StrOpt("image_username",
166 default="manila",
167 help="Image username."),
168 cfg.StrOpt("image_password",
169 help="Image password. Should be used for "
170 "'image_with_share_tools' without Nova Metadata support."),
171 cfg.StrOpt("client_vm_flavor_ref",
172 default="100",
173 help="Flavor used for client vm in scenario tests."),
Rodrigo Barbierib7137ad2015-09-06 22:53:16 -0300174 cfg.IntOpt("migration_timeout",
175 default=1200,
176 help="Time to wait for share migration before "
177 "timing out (seconds)."),
Julia Varlamovad10a4a92015-08-31 06:28:28 -0400178 cfg.StrOpt("default_share_type_name",
179 default=None,
180 help="Default share type name to use in tempest tests."),
Marc Koderer0abc93b2015-07-15 09:18:35 +0200181]