diff options
author | Ana Krivokapic <akrivoka@redhat.com> | 2015-06-26 17:15:43 +0200 |
---|---|---|
committer | Ana Krivokapic <akrivoka@redhat.com> | 2015-06-26 17:15:43 +0200 |
commit | a57fa800542ed2ee61b931bc6d2991eca0d946e6 (patch) | |
tree | 0d2783dffffa486a5cb3293500a0e59510e43158 /tuskar_ui/utils/tests.py | |
parent | 513f0da17bc4714d8c93209dd71c1f52c2713a8b (diff) | |
download | tuskar-ui-a57fa800542ed2ee61b931bc6d2991eca0d946e6.tar.gz |
Properly filter Ceilometer statistics for charts
We used to filter by image_id for roles, back when we had different
images for different roles. As we are now using the same image for
all the roles, that way of filtering does not work any longer. We
need to filter by instance UUIDs instead.
Change-Id: Ie4f26a29beaaf67aa3b36bb82961b491d31c95a0
Diffstat (limited to 'tuskar_ui/utils/tests.py')
-rw-r--r-- | tuskar_ui/utils/tests.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tuskar_ui/utils/tests.py b/tuskar_ui/utils/tests.py index 2bba88f2..71a59e30 100644 --- a/tuskar_ui/utils/tests.py +++ b/tuskar_ui/utils/tests.py @@ -288,7 +288,9 @@ class MeteringTests(helpers.TestCase): return_value=('from date', 'to date'), ): ret = metering.get_nodes_stats( - request, node_uuid='abc', instance_uuid='def', image_uuid=None, + request=request, + node_uuid='abc', + instance_uuids=['def'], meter='foo.bar') self.assertEqual(ret, '') self.assertEqual(create_json_output.call_args_list, [ |