From 2c5f4f79c63800bfa3046f89c0669b2579d3c935 Mon Sep 17 00:00:00 2001 From: Luka Peschke Date: Mon, 27 Aug 2018 17:40:08 +0200 Subject: [PATCH] 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 --- cloudkitty_tempest_plugin/tests/api/test_cloudkitty_api.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cloudkitty_tempest_plugin/tests/api/test_cloudkitty_api.py b/cloudkitty_tempest_plugin/tests/api/test_cloudkitty_api.py index a629127..31dd9ce 100644 --- a/cloudkitty_tempest_plugin/tests/api/test_cloudkitty_api.py +++ b/cloudkitty_tempest_plugin/tests/api/test_cloudkitty_api.py @@ -13,6 +13,8 @@ # License for the specific language governing permissions and limitations # under the License. # +import testtools + from tempest.lib.common.utils import data_utils from tempest.lib import decorators @@ -118,10 +120,9 @@ class CloudkittyAdminAPITest(base.BaseRatingTest): def test_reload_rating_modules(self): 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') def test_get_rated_tenants(self): + raise testtools.TestCase.skipException('No data pushed to backend.') rated_tenants = self.rating_client.get_rated_tenants()['body'] self.assertGreater(len(rated_tenants), 0)