
A bug has been introduced on the code along with ClientV2. `get_server_profile_template` was calling the manager of server_profile instead of server_profile_template. This wasn't seen because functional tests for Client(v1) were wrong and useless. Tests fixed for the case above and I changed .testr.conf to run funcional tests on py34 and py27 gates since they're mocked at the limits of the system anyway. Change-Id: Iea97095dbf34267a053dafbee0ebcd56ec55db13
34 lines
701 B
INI
34 lines
701 B
INI
[tox]
|
|
minversion = 1.6
|
|
envlist = py34,py27,pep8
|
|
skipsdist = True
|
|
|
|
[testenv]
|
|
usedevelop = True
|
|
install_command = pip install -U {opts} {packages}
|
|
setenv =
|
|
VIRTUAL_ENV={envdir}
|
|
deps = -r{toxinidir}/test-requirements.txt
|
|
commands = python setup.py test --slowest --testr-args='{posargs}'
|
|
|
|
[testenv:pep8]
|
|
commands = flake8
|
|
|
|
[testenv:venv]
|
|
commands = {posargs}
|
|
|
|
[testenv:cover]
|
|
commands = python setup.py test --coverage --testr-args='{posargs}'
|
|
|
|
[testenv:docs]
|
|
commands = python setup.py build_sphinx
|
|
|
|
[testenv:debug]
|
|
commands = oslo_debug_helper {posargs}
|
|
|
|
[flake8]
|
|
exclude = .venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build,tools
|
|
show-source = True
|
|
ignore = E123,E125
|
|
builtins = _
|