Goutham Pratapa b31dedd552 Implement Resource_sync commands for KB
"sync create" Sync Resources from One region to other.
"sync list"  List Sync Jobs.
"sync show"  List the details of a Sync Job.
"sync delete" Delete Sync Job(s) details from the database.
Add test-cases for the same.

Python-kingbirdclient is now a part of openstack/requirements.
https://review.openstack.org/#/c/428793/.
So updated tox.ini to pick requirements from openstack/requirements
directly rather than using install _ commands.
Also added tox_install.sh script

Closes-Bug: #1666453

Change-Id: I587070a7175ea0651def5630c2d9890a175feb0a
2017-03-06 16:22:34 +00:00

42 lines
1.1 KiB
INI

[tox]
minversion = 2.0
envlist = py34,py27,pypy,pep8
skipsdist = True
[testenv]
usedevelop = True
install_command = {toxinidir}/tools/tox_install.sh {env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} {opts} {packages}
setenv = VIRTUAL_ENV={envdir}
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands = python setup.py test --slowest --testr-args='{posargs}'
[testenv:pep8]
commands = flake8 {posargs}
[testenv:venv]
commands = {posargs}
[testenv:cover]
commands = python setup.py test --coverage --testr-args='{posargs}'
[testenv:docs]
commands = python setup.py build_sphinx
[testenv:releasenotes]
commands =
sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
[testenv:debug]
commands = oslo_debug_helper {posargs}
[flake8]
# E123, E125 skipped as they are invalid PEP-8.
show-source = True
ignore = E123,E125
builtins = _
exclude=.venv,.git,.tox,dist,doc,*lib/python*,*openstack/common*,*egg,build
[hacking]
import_exceptions = kingbirdclient.common.i18n