blob: 39369be69b29dcf6724c39dc717bca274078a438 [file] [log] [blame]
Abhijeet.Jain6109bb82014-05-01 10:29:15 +05301# Copyright 2014 NEC Corporation
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 tempest.api.volume import base
Ken'ichi Ohmichi6b279c72017-01-27 18:26:59 -080017from tempest.lib import decorators
Abhijeet.Jain6109bb82014-05-01 10:29:15 +053018
19
Ken'ichi Ohmichie8afb8c2017-03-27 11:25:37 -070020class AvailabilityZoneTestJSON(base.BaseVolumeTest):
21 """Tests Availability Zone API List"""
Abhijeet.Jain6109bb82014-05-01 10:29:15 +053022
Ken'ichi Ohmichi6b279c72017-01-27 18:26:59 -080023 @decorators.idempotent_id('01f1ae88-eba9-4c6b-a011-6f7ace06b725')
Abhijeet.Jain6109bb82014-05-01 10:29:15 +053024 def test_get_availability_zone_list(self):
zhufla5682372020-08-14 14:56:57 +080025 """Test listing volume available zones"""
jeremy.zhangbd7ef1b2017-09-27 00:04:39 +080026 availability_zone = (
27 self.availability_zone_client.list_availability_zones()
28 ['availabilityZoneInfo'])
Masayuki Igawaf9009b42017-04-10 14:49:29 +090029 self.assertNotEmpty(availability_zone)