Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add unit test for provision volume workflow #28

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

joseph-v
Copy link
Contributor

What this PR does / why we need it:
This PR add unit tests for the opensds pack, provision volume actions

Commands to run this tests:
st2-run-pack-tests -p contrib/st2/opensds # To run all tests in opensds pack
st2-run-pack-tests -p contrib/st2/opensds -f test_action_list_volume -x -j # To run single test

Special notes for your reviewer:
Reference:
https://docs.stackstorm.com/development/pack_testing.html

@joseph-v joseph-v force-pushed the UnitTestVolumeProvision branch 2 times, most recently from 35e8618 to a320c9e Compare May 17, 2019 08:19
@joseph-v joseph-v force-pushed the UnitTestVolumeProvision branch from a320c9e to a6ba7dc Compare May 29, 2019 09:05
@joseph-v joseph-v force-pushed the UnitTestVolumeProvision branch from a6ba7dc to 56a23e6 Compare May 29, 2019 09:23
@codecov-io
Copy link

Codecov Report

Merging #28 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master      #28   +/-   ##
=======================================
  Coverage   39.53%   39.53%           
=======================================
  Files          13       13           
  Lines         683      683           
  Branches       71       71           
=======================================
  Hits          270      270           
  Misses        403      403           
  Partials       10       10

@joseph-v joseph-v force-pushed the UnitTestVolumeProvision branch 2 times, most recently from e7df879 to bbc5204 Compare May 29, 2019 11:22
@joseph-v joseph-v force-pushed the UnitTestVolumeProvision branch from bbc5204 to 7c57d84 Compare May 29, 2019 16:02

install:
- pip install tox codecov

script:
- tox
- $ST2_REPO_PATH/st2common/bin/st2-run-pack-tests -p contrib/st2/opensds

Copy link
Collaborator

@wisererik wisererik May 30, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please andd script into tox, otherwise the codecov will not caculate the coverage of unittest

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants