Nayna Patel | 4a5024c | 2013-11-18 07:08:23 +0000 | [diff] [blame] | 1 | # Copyright 2013 OpenStack Foundation |
| 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 |
Masayuki Igawa | 1edf94f | 2014-03-04 18:34:16 +0900 | [diff] [blame] | 17 | from tempest import test |
Nayna Patel | 4a5024c | 2013-11-18 07:08:23 +0000 | [diff] [blame] | 18 | |
| 19 | |
Chandan Kumar | 65eb859 | 2014-11-12 18:32:32 +0530 | [diff] [blame] | 20 | class VolumeHostsAdminV2TestsJSON(base.BaseVolumeAdminTest): |
Nayna Patel | 4a5024c | 2013-11-18 07:08:23 +0000 | [diff] [blame] | 21 | |
Chris Hoge | 7579c1a | 2015-02-26 14:12:15 -0800 | [diff] [blame] | 22 | @test.idempotent_id('d5f3efa2-6684-4190-9ced-1c2f526352ad') |
Nayna Patel | 4a5024c | 2013-11-18 07:08:23 +0000 | [diff] [blame] | 23 | def test_list_hosts(self): |
bkopilov | 62d2175 | 2016-06-08 10:16:11 +0300 | [diff] [blame^] | 24 | hosts = self.admin_hosts_client.list_hosts()['hosts'] |
Nayna Patel | 4a5024c | 2013-11-18 07:08:23 +0000 | [diff] [blame] | 25 | self.assertTrue(len(hosts) >= 2, "No. of hosts are < 2," |
| 26 | "response of list hosts is: % s" % hosts) |
| 27 | |
| 28 | |
Chandan Kumar | 65eb859 | 2014-11-12 18:32:32 +0530 | [diff] [blame] | 29 | class VolumeHostsAdminV1TestsJSON(VolumeHostsAdminV2TestsJSON): |
| 30 | _api_version = 1 |