Systematically skip test_get_rated_tenants test
With the current tempest plugin, no data is pushed to cloudkitty's storage backend, so the API returns no rated tenants. Change-Id: Id434bc72d9625d557833838025549dc672856334
This commit is contained in:
parent
e14309c3b8
commit
2c5f4f79c6
|
@ -13,6 +13,8 @@
|
||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
#
|
#
|
||||||
|
import testtools
|
||||||
|
|
||||||
from tempest.lib.common.utils import data_utils
|
from tempest.lib.common.utils import data_utils
|
||||||
from tempest.lib import decorators
|
from tempest.lib import decorators
|
||||||
|
|
||||||
|
@ -118,10 +120,9 @@ class CloudkittyAdminAPITest(base.BaseRatingTest):
|
||||||
def test_reload_rating_modules(self):
|
def test_reload_rating_modules(self):
|
||||||
self.rating_client.reload_rating_modules()
|
self.rating_client.reload_rating_modules()
|
||||||
|
|
||||||
@base.skipIf('skip_rating_tests',
|
|
||||||
'Rating role was not given to CloudKitty')
|
|
||||||
@decorators.idempotent_id('e439019e-9e8a-4bcd-aa83-95bdba6e6115')
|
@decorators.idempotent_id('e439019e-9e8a-4bcd-aa83-95bdba6e6115')
|
||||||
def test_get_rated_tenants(self):
|
def test_get_rated_tenants(self):
|
||||||
|
raise testtools.TestCase.skipException('No data pushed to backend.')
|
||||||
rated_tenants = self.rating_client.get_rated_tenants()['body']
|
rated_tenants = self.rating_client.get_rated_tenants()['body']
|
||||||
self.assertGreater(len(rated_tenants), 0)
|
self.assertGreater(len(rated_tenants), 0)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue