blob: 551dc6fb9bb641ab82f553b98f8d87b931c383ad [file] [log] [blame]
Nayna Patel4a5024c2013-11-18 07:08:23 +00001# 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
16from tempest.api.volume import base
Masayuki Igawa1edf94f2014-03-04 18:34:16 +090017from tempest import test
Nayna Patel4a5024c2013-11-18 07:08:23 +000018
19
Chandan Kumar65eb8592014-11-12 18:32:32 +053020class VolumeHostsAdminV2TestsJSON(base.BaseVolumeAdminTest):
Nayna Patel4a5024c2013-11-18 07:08:23 +000021
Masayuki Igawa1edf94f2014-03-04 18:34:16 +090022 @test.attr(type='gate')
Chris Hoge7579c1a2015-02-26 14:12:15 -080023 @test.idempotent_id('d5f3efa2-6684-4190-9ced-1c2f526352ad')
Nayna Patel4a5024c2013-11-18 07:08:23 +000024 def test_list_hosts(self):
Joseph Lanoux6809bab2014-12-18 14:57:18 +000025 hosts = self.hosts_client.list_hosts()
Nayna Patel4a5024c2013-11-18 07:08:23 +000026 self.assertTrue(len(hosts) >= 2, "No. of hosts are < 2,"
27 "response of list hosts is: % s" % hosts)
28
29
Chandan Kumar65eb8592014-11-12 18:32:32 +053030class VolumeHostsAdminV1TestsJSON(VolumeHostsAdminV2TestsJSON):
31 _api_version = 1