blob: f6962ea467a65b6527efe70cd8c5b87121773f2d [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",
35 default="1.0",
36 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",
39 default="1.4",
40 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."),
82 cfg.StrOpt("storage_protocol",
83 default="NFS_CIFS",
84 help="Backend protocol to target when creating volume types."),
85 cfg.StrOpt("share_network_id",
86 default="",
87 help="Some backend drivers requires share network "
88 "for share creation. Share network id, that will be "
89 "used for shares. If not set, it won't be used."),
90 cfg.StrOpt("alt_share_network_id",
91 default="",
92 help="Share network id, that will be used for shares"
93 " in alt tenant. If not set, it won't be used"),
94 cfg.StrOpt("admin_share_network_id",
95 default="",
96 help="Share network id, that will be used for shares"
97 " in admin tenant. If not set, it won't be used"),
98 cfg.BoolOpt("multi_backend",
99 default=False,
100 help="Runs Manila multi-backend tests."),
101 cfg.ListOpt("backend_names",
102 default=[],
103 help="Names of share backends, that will be used with "
104 "multibackend tests. Tempest will use first two values."),
105 cfg.IntOpt("share_creation_retry_number",
106 default=0,
107 help="Defines number of retries for share creation. "
108 "It is useful to avoid failures caused by unstable "
109 "environment."),
110 cfg.IntOpt("build_interval",
111 default=3,
112 help="Time in seconds between share availability checks."),
113 cfg.IntOpt("build_timeout",
114 default=500,
115 help="Timeout in seconds to wait for a share to become"
116 "available."),
117 cfg.BoolOpt("suppress_errors_in_cleanup",
118 default=False,
119 help="Whether to suppress errors with clean up operation "
120 "or not. There are cases when we may want to skip "
121 "such errors and catch only test errors."),
122 cfg.BoolOpt("run_manage_unmanage_tests",
123 default=False,
124 help="Defines whether to run manage/unmanage tests or not. "
125 "These test may leave orphaned resources, so be careful "
126 "enabling this opt."),
127 cfg.BoolOpt("run_extend_tests",
128 default=True,
129 help="Defines whether to run share extend tests or not. "
130 "Disable this feature if used driver doesn't "
131 "support it."),
132 cfg.BoolOpt("run_shrink_tests",
133 default=True,
134 help="Defines whether to run share shrink tests or not. "
135 "Disable this feature if used driver doesn't "
136 "support it."),
137 cfg.BoolOpt("run_snapshot_tests",
138 default=True,
139 help="Defines whether to run tests that use share snapshots "
140 "or not. Disable this feature if used driver doesn't "
141 "support it."),
142 cfg.StrOpt("image_with_share_tools",
143 default="manila-service-image",
144 help="Image name for vm booting with nfs/smb clients tool."),
145 cfg.StrOpt("image_username",
146 default="manila",
147 help="Image username."),
148 cfg.StrOpt("image_password",
149 help="Image password. Should be used for "
150 "'image_with_share_tools' without Nova Metadata support."),
151 cfg.StrOpt("client_vm_flavor_ref",
152 default="100",
153 help="Flavor used for client vm in scenario tests."),
154]