run all testcase while testlist file is empty

Bug #1677153 reported by MatthewLi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
refstack
Fix Released
Medium
Catherine Diep

Bug Description

when I run refstack-client follow by https://github.com/openstack/refstack-client
if run "./refstack-client test -c <Path of the tempest configuration file to use> -v --test-list <Path or URL of test list>"
if the file in <test-list path> is empty, it will run all testcase? or run 0 testcase?
I mean when the there's no content of the file, it should run nothing, however, it seems to run all testcases

Tags: refstack
tags: added: refstack
Revision history for this message
Catherine Diep (cdiep) wrote :

@MatthewLi,

Thanks for submitting the bug. Do you mind create a story for this on https://storyboard.openstack.org/#!/project/878.

The RefStack project has been migrated to use StoryBoard for bug tracking.

You are correct. When the test list is empty, no test should be run. This is a bug.

Changed in refstack:
status: New → Confirmed
importance: Undecided → Medium
assignee: nobody → Catherine Diep (cdiep)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to refstack-client (master)

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

Changed in refstack:
status: Confirmed → In Progress
Revision history for this message
MatthewLi (matthew-lijun) wrote :

@Catherine Diep yep, created one https://storyboard.openstack.org/#!/story/2000957

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to refstack-client (master)

Reviewed: https://review.openstack.org/451599
Committed: https://git.openstack.org/cgit/openstack/refstack-client/commit/?id=f7a922689993b55a469d141e380d4c7c3d7ff5d8
Submitter: Jenkins
Branch: master

commit f7a922689993b55a469d141e380d4c7c3d7ff5d8
Author: Catherine Diep <email address hidden>
Date: Thu Apr 6 16:51:30 2017 -0700

    Fix to not run any test when the input test list is empty

    When running refstack-client with the "--test-list" option, the
    entire API tests were run when the input test list file has no
    content. The correct behavior should be that no test would be
    run if the test-list is empty.

    Closes-Bug: #1677153

    Change-Id: I0049f185e8c771419c0464a81d4f631ee5946ef2

Changed in refstack:
status: In Progress → Fix Released
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.