Fixing test cases

Bug #1536470 reported by sanjana
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Fix Released
Medium
sanjana

Bug Description

The tests in ceilometer_tests.py file for fetching the meter list, sample list, statistic list and the resource list are incomplete. It verifies the API call, but the API could fail completely and an empty list would pass the assertion.

sanjana (sanjana)
description: updated
Changed in horizon:
assignee: nobody → sanjana (sanjana)
sanjana (sanjana)
description: updated
Revision history for this message
Pranay (pranayverma0485) wrote :

Need to ensure that the return list is not empty for such calls

Changed in horizon:
status: New → Confirmed
Changed in horizon:
importance: Undecided → Medium
milestone: none → mitaka-3
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to horizon (master)

Fix proposed to branch: master
Review: https://review.openstack.org/271129

Changed in horizon:
status: Confirmed → In Progress
Changed in horizon:
milestone: mitaka-3 → newton-1
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to horizon (master)

Reviewed: https://review.openstack.org/271129
Committed: https://git.openstack.org/cgit/openstack/horizon/commit/?id=b6b685ab9855951cbc123cd44110244ca2ff7d20
Submitter: Jenkins
Branch: master

commit b6b685ab9855951cbc123cd44110244ca2ff7d20
Author: sanjana <email address hidden>
Date: Thu Jan 21 15:45:57 2016 +0530

    Fixing test cases

    The tests in ceilometer_tests.py for fetching the meter list,
    alarm list, sample list, statistic list and the resource list
    are incomplete.It verifies the API call, but the API could fail
    completely and an empty list would still pass the assertion.
    This patch fixes it.

    Change-Id: I532992a9a7ad150c83e7f18721d885721070b029
    Closes-bug:#1536470

Changed in horizon:
status: In Progress → Fix Released
Revision history for this message
Davanum Srinivas (DIMS) (dims-v) wrote : Fix included in openstack/horizon 10.0.0.0b1

This issue was fixed in the openstack/horizon 10.0.0.0b1 development milestone.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.