-
Notifications
You must be signed in to change notification settings - Fork 5
/
tox.ini.36
39 lines (34 loc) · 1.11 KB
/
tox.ini.36
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
; this tox file is used to run tests locally
[tox]
envlist = py36
setupdir = src/
[testenv]
passenv = *
setenv =
DOCKER_TESTS=YES
MONGODB_TESTS=YES
MYSQL_TESTS=NO
EPM_TESTS=YES
SENTINEL_TESTS=NO
HEARTBEAT_TESTS=YES
ET_EPM_API=http://localhost:8180/
ESM_DOCKER_DELETE_TIMEOUT=1
ESM_MONGO_HOST=localhost
ET_AAA_ESM_KEYSTONE_BASE_URL=http://localhost
ET_AAA_ESM_KEYSTONE_USERNAME=admin
ET_AAA_ESM_KEYSTONE_PASSWD=admin
ET_AAA_ESM_KEYSTONE_TENANT=admin
; ESM_TMP_DIR not required however docker on mac has issues with tempfile.gettempdir()
ESM_TMP_DIR=/tmp
deps =
--upgrade
-r{toxinidir}/src/requirements.txt
-r{toxinidir}/tests/requirements.txt
commands =
docker-compose -f tests/docker/docker-compose-local-deps.yml up -d
nosetests --with-xunit \
--with-coverage --cover-erase \
--cover-package=adapters --cover-package=esm \
--cover-min-percentage=70
docker-compose -f tests/docker/docker-compose-local-deps.yml down -v
;--nocapture