-
Notifications
You must be signed in to change notification settings - Fork 5
/
tox.ini
57 lines (49 loc) · 1.49 KB
/
tox.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
[tox]
minversion = 2.0
envlist = py3,pep8
skipsdist = True
[testenv]
usedevelop = True
install_command = pip install -U {opts} {packages}
setenv = VIRTUAL_ENV={envdir}
PYTHONDONTWRITEBYTECODE = 1
LANGUAGE=en_US
LC_ALL=en_US.UTF-8
PYTHONWARNINGS=default::DeprecationWarning
TESTS_DIR=./esi/tests/
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands =
stestr run {posargs}
[testenv:venv]
commands = {posargs}
[testenv:pep8]
commands = flake8 esi {posargs}
[testenv:functional{,-py36,-py37,-py38,-py39}]
description =
Run functional tests.
# Some jobs (especially heat) takes longer, therefore increase default timeout
# This timeout should not be smaller, than the longest individual timeout
setenv =
{[testenv]setenv}
OS_TEST_TIMEOUT=600
OPENSTACKSDK_FUNC_TEST_TIMEOUT_LOAD_BALANCER=600
OPENSTACKSDK_EXAMPLE_CONFIG_KEY=functional
OPENSTACKSDK_FUNC_TEST_TIMEOUT_PROJECT_CLEANUP=120
# TODO: edit the values here
NODE_1_UUID=d62347eb-2f7a-4887-a13f-c4d4e87bdd06
NODE_1_TYPE=ironic_node
NODE_2_UUID=697f1cd0-60ec-426e-bdd8-e75e915b2de0
NODE_2_TYPE=ironic_node
LAST_EVENT_ID=3280
NODE_3_NAME=oct4-12
commands =
stestr --test-path ./esi/tests/functional/ run --serial {posargs}
stestr slowest
[flake8]
# E123, E125 skipped as they are invalid PEP-8.
show-source = True
ignore = E203, E501, H301, H238, H4, W503, E741
builtins = _
exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build