From a7e687f7405c8c7fb36762c7725fffa7b19895f7 Mon Sep 17 00:00:00 2001 From: Luka Peschke Date: Thu, 28 Mar 2019 09:47:44 +0100 Subject: [PATCH] Asserting 'summary get' returns nothing in functional tests Since no data is available in devstack in our functional test environment, we make the assertion that 'summary get' returns nothing. This is prone to update if more complete test scenarios are implemented. Change-Id: Ic80e39f0d2a75882762ebd6a0dba46033c9fd7f4 --- .zuul.yaml | 2 ++ cloudkittyclient/tests/functional/v1/test_report.py | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.zuul.yaml b/.zuul.yaml index 72c517d..d1e710d 100644 --- a/.zuul.yaml +++ b/.zuul.yaml @@ -19,6 +19,8 @@ vars: devstack_plugins: cloudkitty: https://git.openstack.org/openstack/cloudkitty + devstack_localrc: + CLOUDKITTY_FETCHER: keystone devstack_services: ck-api: true horizon: false diff --git a/cloudkittyclient/tests/functional/v1/test_report.py b/cloudkittyclient/tests/functional/v1/test_report.py index 7ca8498..cde71d7 100644 --- a/cloudkittyclient/tests/functional/v1/test_report.py +++ b/cloudkittyclient/tests/functional/v1/test_report.py @@ -22,8 +22,8 @@ class CkReportTest(base.BaseFunctionalTest): self.runner = self.cloudkitty def test_get_summary(self): - resp = self.runner('summary get')[0] - self.assertEqual(resp['Resource Type'], 'ALL') + resp = self.runner('summary get') + self.assertEqual(len(resp), 0) def test_get_summary_with_groupby(self): resp = self.runner('summary get', params='-g res_type tenant_id')