Abhijeet.Jain | 6109bb8 | 2014-05-01 10:29:15 +0530 | [diff] [blame] | 1 | # 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 | |
| 16 | from tempest.api.volume import base |
Ken'ichi Ohmichi | 6b279c7 | 2017-01-27 18:26:59 -0800 | [diff] [blame] | 17 | from tempest.lib import decorators |
Abhijeet.Jain | 6109bb8 | 2014-05-01 10:29:15 +0530 | [diff] [blame] | 18 | |
| 19 | |
Ken'ichi Ohmichi | e8afb8c | 2017-03-27 11:25:37 -0700 | [diff] [blame] | 20 | class AvailabilityZoneTestJSON(base.BaseVolumeTest): |
| 21 | """Tests Availability Zone API List""" |
Abhijeet.Jain | 6109bb8 | 2014-05-01 10:29:15 +0530 | [diff] [blame] | 22 | |
Ken'ichi Ohmichi | 6b279c7 | 2017-01-27 18:26:59 -0800 | [diff] [blame] | 23 | @decorators.idempotent_id('01f1ae88-eba9-4c6b-a011-6f7ace06b725') |
Abhijeet.Jain | 6109bb8 | 2014-05-01 10:29:15 +0530 | [diff] [blame] | 24 | def test_get_availability_zone_list(self): |
zhufl | a568237 | 2020-08-14 14:56:57 +0800 | [diff] [blame] | 25 | """Test listing volume available zones""" |
jeremy.zhang | bd7ef1b | 2017-09-27 00:04:39 +0800 | [diff] [blame] | 26 | availability_zone = ( |
| 27 | self.availability_zone_client.list_availability_zones() |
| 28 | ['availabilityZoneInfo']) |
Masayuki Igawa | f9009b4 | 2017-04-10 14:49:29 +0900 | [diff] [blame] | 29 | self.assertNotEmpty(availability_zone) |