3 Commits

Author SHA1 Message Date
Eli Qiao
d802877e6e Improve tox.ini to easy developer's life
This patch is mainly porting from nova repository:

Adds:
1.tools/flake8wrap.sh
  Will let developer use 'tox -epep8 -- -HEAD' to testing changes files
2.tools/pretty_tox.sh
  Give pretty test trace when doing unit/functional testing.

Change-Id: Icedb4ed8b50532531e18784a1584fe63c5a9e017
2015-11-03 17:44:38 +08:00
Davanum Srinivas
e4512098e9 tools/colorizer.py is not used anywhere
colorizer.py was added in Change-Id
I88d45015338ef55713b32de196f9071c8fc2031b,
it was used in the post_test_hook.sh to colorize
output from subunit stream when running functional
tests. We don't need this anymore in our test harness.

Closes-Bug: #1490192
Change-Id: I7956bf12edad716366c62a04b388e8216d657b9a
2015-08-29 20:46:21 +00:00
Davanum Srinivas
4c2b973859 Convert to new DevStack plugin model for functional testing
Switch over to the new plugin style as documented here:
http://docs.openstack.org/developer/devstack/plugins.html

Makes it very easy to setup a CI job. Added a new
directory for functional job and the tests are run
from the post_test_hook.sh. There's even a "magnum bay-list"
in the shell script to show that we are actually making
calls to the magnum API endpoint and things are working
fine. Note that this is just the minimal plumbing needed
and there's a lot more effort needed to come up with
proper test cases for testing magnum functionality.

Closes-Bug: #1439621
Change-Id: I88d45015338ef55713b32de196f9071c8fc2031b
2015-04-02 21:14:20 -04:00