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
This commit is contained in:
parent
89475e2aac
commit
a7e687f740
|
@ -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
|
||||
|
|
|
@ -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')
|
||||
|
|
Loading…
Reference in New Issue