blob: a3295eb85fc50df78709041d053da6418cab0c8b [file] [log] [blame]
ZhiQiang Fan39f97222013-09-20 04:49:44 +08001# Copyright 2012 OpenStack Foundation
Jay Pipes13b479b2012-06-11 14:52:27 -04002# 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
David Kranzcf0040c2012-06-26 09:46:56 -040016import time
Jay Pipesf38eaac2012-06-21 13:37:35 -040017
Matthew Treinish481466b2012-12-20 17:16:01 -050018from tempest import clients
Masayuki Igawa259c1132013-10-31 17:48:44 +090019from tempest.common.utils import data_utils
Matthew Treinishb0a78fc2014-01-29 16:49:12 +000020from tempest import config
David Kranz33138312013-09-24 17:09:32 -040021from tempest import exceptions
Matthew Treinishf4a9b0f2013-07-26 16:58:26 -040022from tempest.openstack.common import log as logging
Attila Fazekasdc216422013-01-29 15:12:14 +010023import tempest.test
Jay Pipesf38eaac2012-06-21 13:37:35 -040024
Matthew Treinishb0a78fc2014-01-29 16:49:12 +000025CONF = config.CONF
Tiago Melloeda03b52012-08-22 23:47:29 -030026
Jay Pipesf38eaac2012-06-21 13:37:35 -040027LOG = logging.getLogger(__name__)
Daryl Walleckc7251962012-03-12 17:26:54 -050028
29
Attila Fazekasdc216422013-01-29 15:12:14 +010030class BaseComputeTest(tempest.test.BaseTestCase):
Sean Daguef237ccb2013-01-04 15:19:14 -050031 """Base test case class for all Compute API tests."""
Daryl Walleckc7251962012-03-12 17:26:54 -050032
Ken'ichi Ohmichi543a5d42014-05-02 08:44:15 +090033 _api_version = 3
Attila Fazekas430dae32013-10-17 15:19:32 +020034 force_tenant_isolation = False
Chris Yeoh8a79b9d2013-01-18 19:32:47 +103035
Jay Pipesf38eaac2012-06-21 13:37:35 -040036 @classmethod
37 def setUpClass(cls):
Ken'ichi Ohmichi5fd4ecf2014-04-25 13:38:15 +090038 cls.set_network_resources()
Attila Fazekasf86fa312013-07-30 19:56:39 +020039 super(BaseComputeTest, cls).setUpClass()
Jay Pipesf38eaac2012-06-21 13:37:35 -040040
Andrea Frittoli422fbdf2014-03-20 10:05:18 +000041 # TODO(andreaf) WE should care also for the alt_manager here
42 # but only once client lazy load in the manager is done
Ryan Hsu6c4bb3d2013-10-21 21:22:50 -070043 os = cls.get_client_manager()
Daryl Walleckc7251962012-03-12 17:26:54 -050044
Jay Pipesf38eaac2012-06-21 13:37:35 -040045 cls.os = os
Matthew Treinishb0a78fc2014-01-29 16:49:12 +000046 cls.build_interval = CONF.compute.build_interval
47 cls.build_timeout = CONF.compute.build_timeout
48 cls.ssh_user = CONF.compute.ssh_user
49 cls.image_ref = CONF.compute.image_ref
50 cls.image_ref_alt = CONF.compute.image_ref_alt
51 cls.flavor_ref = CONF.compute.flavor_ref
52 cls.flavor_ref_alt = CONF.compute.flavor_ref_alt
53 cls.image_ssh_user = CONF.compute.image_ssh_user
54 cls.image_ssh_password = CONF.compute.image_ssh_password
Jay Pipesf38eaac2012-06-21 13:37:35 -040055 cls.servers = []
Sean Dagued62bf1c2013-06-05 14:36:25 -040056 cls.images = []
Matthew Treinishf7fca6a2013-12-09 16:27:23 +000057 cls.multi_user = cls.get_multi_user()
Zhi Kun Liu02e7a7b2014-01-08 16:08:32 +080058 cls.security_groups = []
Abhijeet.Jain87dd4452014-04-23 15:51:23 +053059 cls.server_groups = []
Matthew Treinishf7fca6a2013-12-09 16:27:23 +000060
Ken'ichi Ohmichi543a5d42014-05-02 08:44:15 +090061 if cls._api_version == 2:
62 cls.servers_client = cls.os.servers_client
63 cls.flavors_client = cls.os.flavors_client
64 cls.images_client = cls.os.images_client
65 cls.extensions_client = cls.os.extensions_client
66 cls.floating_ips_client = cls.os.floating_ips_client
67 cls.keypairs_client = cls.os.keypairs_client
68 cls.security_groups_client = cls.os.security_groups_client
69 cls.quotas_client = cls.os.quotas_client
Matt Riedemann848805f2014-06-16 13:23:51 -070070 # NOTE(mriedem): os-quota-class-sets is v2 API only
71 cls.quota_classes_client = cls.os.quota_classes_client
Ken'ichi Ohmichi543a5d42014-05-02 08:44:15 +090072 cls.limits_client = cls.os.limits_client
73 cls.volumes_extensions_client = cls.os.volumes_extensions_client
74 cls.volumes_client = cls.os.volumes_client
75 cls.interfaces_client = cls.os.interfaces_client
76 cls.fixed_ips_client = cls.os.fixed_ips_client
77 cls.availability_zone_client = cls.os.availability_zone_client
78 cls.agents_client = cls.os.agents_client
79 cls.aggregates_client = cls.os.aggregates_client
80 cls.services_client = cls.os.services_client
81 cls.instance_usages_audit_log_client = \
82 cls.os.instance_usages_audit_log_client
83 cls.hypervisor_client = cls.os.hypervisor_client
84 cls.certificates_client = cls.os.certificates_client
85 cls.migrations_client = cls.os.migrations_client
Ghanshyam9d9201d2014-04-16 19:28:09 +090086 cls.security_group_default_rules_client = (
87 cls.os.security_group_default_rules_client)
Ken'ichi Ohmichi543a5d42014-05-02 08:44:15 +090088
89 elif cls._api_version == 3:
90 if not CONF.compute_feature_enabled.api_v3:
91 skip_msg = ("%s skipped as nova v3 api is not available" %
92 cls.__name__)
93 raise cls.skipException(skip_msg)
94 cls.servers_client = cls.os.servers_v3_client
95 cls.images_client = cls.os.image_client
96 cls.flavors_client = cls.os.flavors_v3_client
97 cls.services_client = cls.os.services_v3_client
98 cls.extensions_client = cls.os.extensions_v3_client
99 cls.availability_zone_client = cls.os.availability_zone_v3_client
100 cls.interfaces_client = cls.os.interfaces_v3_client
101 cls.hypervisor_client = cls.os.hypervisor_v3_client
102 cls.keypairs_client = cls.os.keypairs_v3_client
103 cls.volumes_client = cls.os.volumes_client
104 cls.certificates_client = cls.os.certificates_v3_client
105 cls.keypairs_client = cls.os.keypairs_v3_client
106 cls.aggregates_client = cls.os.aggregates_v3_client
107 cls.hosts_client = cls.os.hosts_v3_client
108 cls.quotas_client = cls.os.quotas_v3_client
109 cls.version_client = cls.os.version_v3_client
110 cls.migrations_client = cls.os.migrations_v3_client
111 else:
112 msg = ("Unexpected API version is specified (%s)" %
113 cls._api_version)
114 raise exceptions.InvalidConfiguration(message=msg)
115
Matthew Treinishf7fca6a2013-12-09 16:27:23 +0000116 @classmethod
117 def get_multi_user(cls):
118 multi_user = True
119 # Determine if there are two regular users that can be
120 # used in testing. If the test cases are allowed to create
121 # users (config.compute.allow_tenant_isolation is true,
122 # then we allow multi-user.
Matthew Treinishb0a78fc2014-01-29 16:49:12 +0000123 if not CONF.compute.allow_tenant_isolation:
124 user1 = CONF.identity.username
125 user2 = CONF.identity.alt_username
Matthew Treinishf7fca6a2013-12-09 16:27:23 +0000126 if not user2 or user1 == user2:
127 multi_user = False
128 else:
Matthew Treinishb0a78fc2014-01-29 16:49:12 +0000129 user2_password = CONF.identity.alt_password
130 user2_tenant_name = CONF.identity.alt_tenant_name
Matthew Treinishf7fca6a2013-12-09 16:27:23 +0000131 if not user2_password or not user2_tenant_name:
132 msg = ("Alternate user specified but not alternate "
133 "tenant or password: alt_tenant_name=%s "
134 "alt_password=%s"
135 % (user2_tenant_name, user2_password))
136 raise exceptions.InvalidConfiguration(msg)
137 return multi_user
Daryl Walleckc7251962012-03-12 17:26:54 -0500138
Jay Pipesf38eaac2012-06-21 13:37:35 -0400139 @classmethod
Jay Pipes444c3e62012-10-04 19:26:35 -0400140 def clear_servers(cls):
141 for server in cls.servers:
Dan Smith74e7bcb2012-08-21 09:18:26 -0700142 try:
143 cls.servers_client.delete_server(server['id'])
144 except Exception:
145 pass
146
Jay Pipes444c3e62012-10-04 19:26:35 -0400147 for server in cls.servers:
Dan Smith74e7bcb2012-08-21 09:18:26 -0700148 try:
149 cls.servers_client.wait_for_server_termination(server['id'])
150 except Exception:
151 pass
152
153 @classmethod
Attila Fazekas305e65b2013-10-29 13:23:07 +0100154 def server_check_teardown(cls):
155 """Checks is the shared server clean enough for subsequent test.
156 Method will delete the server when it's dirty.
157 The setUp method is responsible for creating a new server.
158 Exceptions raised in tearDown class are fails the test case,
159 This method supposed to use only by tierDown methods, when
160 the shared server_id is stored in the server_id of the class.
161 """
162 if getattr(cls, 'server_id', None) is not None:
163 try:
164 cls.servers_client.wait_for_server_status(cls.server_id,
165 'ACTIVE')
166 except Exception as exc:
167 LOG.exception(exc)
168 cls.servers_client.delete_server(cls.server_id)
169 cls.servers_client.wait_for_server_termination(cls.server_id)
170 cls.server_id = None
171 raise
172
173 @classmethod
Sean Dagued62bf1c2013-06-05 14:36:25 -0400174 def clear_images(cls):
175 for image_id in cls.images:
176 try:
177 cls.images_client.delete_image(image_id)
David Kranz33138312013-09-24 17:09:32 -0400178 except exceptions.NotFound:
179 # The image may have already been deleted which is OK.
180 pass
Yair Frieda039f872014-01-02 12:11:10 +0200181 except Exception:
182 LOG.exception('Exception raised deleting image %s' % image_id)
Sean Dagued62bf1c2013-06-05 14:36:25 -0400183
184 @classmethod
Zhi Kun Liu02e7a7b2014-01-08 16:08:32 +0800185 def clear_security_groups(cls):
186 for sg in cls.security_groups:
187 try:
188 resp, body =\
189 cls.security_groups_client.delete_security_group(sg['id'])
190 except exceptions.NotFound:
191 # The security group may have already been deleted which is OK.
192 pass
193 except Exception as exc:
194 LOG.info('Exception raised deleting security group %s',
195 sg['id'])
196 LOG.exception(exc)
Zhi Kun Liu02e7a7b2014-01-08 16:08:32 +0800197
198 @classmethod
Abhijeet.Jain87dd4452014-04-23 15:51:23 +0530199 def clear_server_groups(cls):
200 for server_group_id in cls.server_groups:
201 try:
202 cls.client.delete_server_group(server_group_id)
203 except exceptions.NotFound:
204 # The server-group may have already been deleted which is OK.
205 pass
206 except Exception:
207 LOG.exception('Exception raised deleting server-group %s',
208 server_group_id)
209
210 @classmethod
Jay Pipesf38eaac2012-06-21 13:37:35 -0400211 def tearDownClass(cls):
Sean Dagued62bf1c2013-06-05 14:36:25 -0400212 cls.clear_images()
Jay Pipes444c3e62012-10-04 19:26:35 -0400213 cls.clear_servers()
Zhi Kun Liu02e7a7b2014-01-08 16:08:32 +0800214 cls.clear_security_groups()
Ryan Hsu6c4bb3d2013-10-21 21:22:50 -0700215 cls.clear_isolated_creds()
Abhijeet.Jain87dd4452014-04-23 15:51:23 +0530216 cls.clear_server_groups()
Matthew Treinishb86cda92013-07-29 11:22:23 -0400217 super(BaseComputeTest, cls).tearDownClass()
Rohit Karajgidc300b22012-05-04 08:11:00 -0700218
Jay Pipes444c3e62012-10-04 19:26:35 -0400219 @classmethod
Ken'ichi Ohmichicfc052e2013-10-23 11:50:04 +0900220 def create_test_server(cls, **kwargs):
Sean Daguef237ccb2013-01-04 15:19:14 -0500221 """Wrapper utility that returns a test server."""
Masayuki Igawa259c1132013-10-31 17:48:44 +0900222 name = data_utils.rand_name(cls.__name__ + "-instance")
Sean Dague22897e12013-02-25 17:54:09 -0500223 if 'name' in kwargs:
224 name = kwargs.pop('name')
225 flavor = kwargs.get('flavor', cls.flavor_ref)
226 image_id = kwargs.get('image_id', cls.image_ref)
Rohit Karajgidc300b22012-05-04 08:11:00 -0700227
Andrea Frittoli938d1512013-05-16 15:42:27 +0100228 resp, body = cls.servers_client.create_server(
Sean Dague22897e12013-02-25 17:54:09 -0500229 name, image_id, flavor, **kwargs)
Andrea Frittoli938d1512013-05-16 15:42:27 +0100230
231 # handle the case of multiple servers
232 servers = [body]
233 if 'min_count' in kwargs or 'max_count' in kwargs:
234 # Get servers created which name match with name param.
235 r, b = cls.servers_client.list_servers()
236 servers = [s for s in b['servers'] if s['name'].startswith(name)]
237
Sean Dague22897e12013-02-25 17:54:09 -0500238 if 'wait_until' in kwargs:
Andrea Frittoli938d1512013-05-16 15:42:27 +0100239 for server in servers:
Ken'ichi Ohmichi51c8c262013-12-21 03:30:37 +0900240 try:
241 cls.servers_client.wait_for_server_status(
242 server['id'], kwargs['wait_until'])
243 except Exception as ex:
244 if ('preserve_server_on_error' not in kwargs
245 or kwargs['preserve_server_on_error'] is False):
246 for server in servers:
247 try:
248 cls.servers_client.delete_server(server['id'])
249 except Exception:
250 pass
251 raise ex
252
253 cls.servers.extend(servers)
Sean Dague9b669e32012-12-13 18:40:08 -0500254
Andrea Frittoli938d1512013-05-16 15:42:27 +0100255 return resp, body
Sean Dague9b669e32012-12-13 18:40:08 -0500256
Zhi Kun Liu02e7a7b2014-01-08 16:08:32 +0800257 @classmethod
258 def create_security_group(cls, name=None, description=None):
259 if name is None:
260 name = data_utils.rand_name(cls.__name__ + "-securitygroup")
261 if description is None:
262 description = data_utils.rand_name('description-')
263 resp, body = \
264 cls.security_groups_client.create_security_group(name,
265 description)
266 cls.security_groups.append(body)
267
268 return resp, body
269
Abhijeet.Jain87dd4452014-04-23 15:51:23 +0530270 @classmethod
271 def create_test_server_group(cls, name="", policy=[]):
272 if not name:
273 name = data_utils.rand_name(cls.__name__ + "-Server-Group")
274 if not policy:
275 policy = ['affinity']
276 resp, body = cls.servers_client.create_server_group(name, policy)
David Kranzda5d4ec2014-06-24 16:04:57 -0400277 cls.server_groups.append(body['id'])
Abhijeet.Jain87dd4452014-04-23 15:51:23 +0530278 return resp, body
279
David Kranzcf0040c2012-06-26 09:46:56 -0400280 def wait_for(self, condition):
Sean Daguef237ccb2013-01-04 15:19:14 -0500281 """Repeatedly calls condition() until a timeout."""
David Kranzcf0040c2012-06-26 09:46:56 -0400282 start_time = int(time.time())
283 while True:
284 try:
285 condition()
Matthew Treinish05d9fb92012-12-07 16:14:05 -0500286 except Exception:
David Kranzcf0040c2012-06-26 09:46:56 -0400287 pass
288 else:
289 return
290 if int(time.time()) - start_time >= self.build_timeout:
291 condition()
292 return
293 time.sleep(self.build_interval)
Jay Pipesf38eaac2012-06-21 13:37:35 -0400294
Matt Riedemann807d0562014-01-27 12:03:10 -0800295 @staticmethod
296 def _delete_volume(volumes_client, volume_id):
297 """Deletes the given volume and waits for it to be gone."""
298 try:
299 resp, _ = volumes_client.delete_volume(volume_id)
300 # TODO(mriedem): We should move the wait_for_resource_deletion
301 # into the delete_volume method as a convenience to the caller.
302 volumes_client.wait_for_resource_deletion(volume_id)
303 except exceptions.NotFound:
304 LOG.warn("Unable to delete volume '%s' since it was not found. "
305 "Maybe it was already deleted?" % volume_id)
306
Attila Fazekas423834d2014-03-14 17:33:13 +0100307 @classmethod
308 def prepare_instance_network(cls):
309 if (CONF.compute.ssh_auth_method != 'disabled' and
310 CONF.compute.ssh_connect_method == 'floating'):
311 cls.set_network_resources(network=True, subnet=True, router=True,
312 dhcp=True)
313
ivan-zhu8f992be2013-07-31 14:56:58 +0800314 @classmethod
315 def create_image_from_server(cls, server_id, **kwargs):
316 """Wrapper utility that returns an image created from the server."""
Masayuki Igawa259c1132013-10-31 17:48:44 +0900317 name = data_utils.rand_name(cls.__name__ + "-image")
ivan-zhu8f992be2013-07-31 14:56:58 +0800318 if 'name' in kwargs:
319 name = kwargs.pop('name')
320
Ken'ichi Ohmichi543a5d42014-05-02 08:44:15 +0900321 if cls._api_version == 2:
322 resp, image = cls.images_client.create_image(server_id, name)
323 elif cls._api_version == 3:
324 resp, image = cls.servers_client.create_image(server_id, name)
Masayuki Igawa259c1132013-10-31 17:48:44 +0900325 image_id = data_utils.parse_image_id(resp['location'])
ivan-zhu8f992be2013-07-31 14:56:58 +0800326 cls.images.append(image_id)
327
328 if 'wait_until' in kwargs:
329 cls.images_client.wait_for_image_status(image_id,
330 kwargs['wait_until'])
Ken'ichi Ohmichi543a5d42014-05-02 08:44:15 +0900331 if cls._api_version == 2:
332 resp, image = cls.images_client.get_image(image_id)
333 elif cls._api_version == 3:
334 resp, image = cls.images_client.get_image_meta(image_id)
ivan-zhu8f992be2013-07-31 14:56:58 +0800335
Bob Ball621e4602013-12-06 19:53:43 +0000336 if kwargs['wait_until'] == 'ACTIVE':
337 if kwargs.get('wait_for_server', True):
338 cls.servers_client.wait_for_server_status(server_id,
339 'ACTIVE')
ivan-zhu8f992be2013-07-31 14:56:58 +0800340 return resp, image
341
342 @classmethod
Matthew Treinish2cd19a42013-12-02 21:54:42 +0000343 def rebuild_server(cls, server_id, **kwargs):
ivan-zhu8f992be2013-07-31 14:56:58 +0800344 # Destroy an existing server and creates a new one
Matthew Treinish2cd19a42013-12-02 21:54:42 +0000345 if server_id:
346 try:
347 cls.servers_client.delete_server(server_id)
348 cls.servers_client.wait_for_server_termination(server_id)
Yair Frieda039f872014-01-02 12:11:10 +0200349 except Exception:
350 LOG.exception('Failed to delete server %s' % server_id)
Ken'ichi Ohmichicfc052e2013-10-23 11:50:04 +0900351 resp, server = cls.create_test_server(wait_until='ACTIVE', **kwargs)
Ken'ichi Ohmichi543a5d42014-05-02 08:44:15 +0900352 if cls._api_version == 2:
353 cls.password = server['adminPass']
354 elif cls._api_version == 3:
355 cls.password = server['admin_password']
Matthew Treinish2cd19a42013-12-02 21:54:42 +0000356 return server['id']
ivan-zhu8f992be2013-07-31 14:56:58 +0800357
Matt Riedemann5dc594c2014-01-27 11:40:28 -0800358 @classmethod
359 def delete_volume(cls, volume_id):
360 """Deletes the given volume and waits for it to be gone."""
Ken'ichi Ohmichi543a5d42014-05-02 08:44:15 +0900361 if cls._api_version == 2:
362 cls._delete_volume(cls.volumes_extensions_client, volume_id)
363 elif cls._api_version == 3:
364 cls._delete_volume(cls.volumes_client, volume_id)
365
366
367class BaseV2ComputeTest(BaseComputeTest):
368 _api_version = 2
369 _interface = "json"
Matt Riedemann5dc594c2014-01-27 11:40:28 -0800370
ivan-zhuf2b00502013-10-18 10:06:52 +0800371
Ken'ichi Ohmichibcefa3d2014-05-09 08:14:05 +0900372class BaseV3ComputeTest(BaseComputeTest):
373 _api_version = 3
374 _interface = "json"
375
376
377class BaseComputeAdminTest(BaseComputeTest):
378 """Base test case class for Compute Admin API tests."""
379 _interface = "json"
ivan-zhuf2b00502013-10-18 10:06:52 +0800380
381 @classmethod
382 def setUpClass(cls):
Ken'ichi Ohmichibcefa3d2014-05-09 08:14:05 +0900383 super(BaseComputeAdminTest, cls).setUpClass()
Matthew Treinishb0a78fc2014-01-29 16:49:12 +0000384 if (CONF.compute.allow_tenant_isolation or
Attila Fazekas430dae32013-10-17 15:19:32 +0200385 cls.force_tenant_isolation is True):
Matthew Treinishb86cda92013-07-29 11:22:23 -0400386 creds = cls.isolated_creds.get_admin_creds()
Andrea Frittoli422fbdf2014-03-20 10:05:18 +0000387 cls.os_adm = clients.Manager(credentials=creds,
Matthew Treinish47ff7912013-07-22 17:09:55 -0400388 interface=cls._interface)
389 else:
Andrea Frittoli422fbdf2014-03-20 10:05:18 +0000390 try:
391 cls.os_adm = clients.ComputeAdminManager(
392 interface=cls._interface)
393 except exceptions.InvalidCredentials:
394 msg = ("Missing Compute Admin API credentials "
395 "in configuration.")
396 raise cls.skipException(msg)
Ghanshyam31501112014-06-23 13:56:42 +0900397 if cls._api_version == 2:
398 cls.availability_zone_admin_client = (
399 cls.os_adm.availability_zone_client)
ivan-zhu8f992be2013-07-31 14:56:58 +0800400
Ghanshyam31501112014-06-23 13:56:42 +0900401 else:
Ken'ichi Ohmichibcefa3d2014-05-09 08:14:05 +0900402 cls.servers_admin_client = cls.os_adm.servers_v3_client
403 cls.services_admin_client = cls.os_adm.services_v3_client
404 cls.availability_zone_admin_client = \
405 cls.os_adm.availability_zone_v3_client
406 cls.hypervisor_admin_client = cls.os_adm.hypervisor_v3_client
407 cls.flavors_admin_client = cls.os_adm.flavors_v3_client
408 cls.aggregates_admin_client = cls.os_adm.aggregates_v3_client
409 cls.hosts_admin_client = cls.os_adm.hosts_v3_client
410 cls.quotas_admin_client = cls.os_adm.quotas_v3_client
411 cls.agents_admin_client = cls.os_adm.agents_v3_client
412 cls.migrations_admin_client = cls.os_adm.migrations_v3_client
ivan-zhu8f992be2013-07-31 14:56:58 +0800413
Ken'ichi Ohmichibcefa3d2014-05-09 08:14:05 +0900414
415class BaseV2ComputeAdminTest(BaseComputeAdminTest):
416 """Base test case class for Compute Admin V2 API tests."""
417 _api_version = 2
418
419
420class BaseV3ComputeAdminTest(BaseComputeAdminTest):
421 """Base test case class for Compute Admin V3 API tests."""
Ken'ichi Ohmichi543a5d42014-05-02 08:44:15 +0900422 _api_version = 3