Remove "test" extra deps from setup.cfg
Utilizing the "test-requirements.txt" for the test requirements and building tox 'testenv' with pifpaf and gnocchi rather than assuming they are actual lib dependencies of Aodh tests. Change-Id: Ia8bb7c1f17a8090c4932541ac3eed3a8a73f3252
This commit is contained in:
parent
0782615601
commit
7ae3fd78c3
13
setup.cfg
13
setup.cfg
@ -42,19 +42,6 @@ postgresql =
|
|||||||
zaqar =
|
zaqar =
|
||||||
python-zaqarclient>=1.2.0
|
python-zaqarclient>=1.2.0
|
||||||
|
|
||||||
test =
|
|
||||||
pifpaf[gnocchi]>=1.0.1
|
|
||||||
stestr>=2.0.0 # Apache-2.0
|
|
||||||
oslotest>=2.15.0 # Apache-2.0
|
|
||||||
coverage>=3.6
|
|
||||||
fixtures>=1.3.1
|
|
||||||
sqlalchemy-utils
|
|
||||||
testresources>=0.2.4 # Apache-2.0/BSD
|
|
||||||
gabbi>=1.30.0 # Apache-2.0
|
|
||||||
# Provides subunit-trace
|
|
||||||
webtest
|
|
||||||
gnocchi[postgresql,file]
|
|
||||||
|
|
||||||
[entry_points]
|
[entry_points]
|
||||||
aodh.storage =
|
aodh.storage =
|
||||||
log = aodh.storage.impl_log:Connection
|
log = aodh.storage.impl_log:Connection
|
||||||
|
9
test-requirements.txt
Normal file
9
test-requirements.txt
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
stestr>=2.0.0 # Apache-2.0
|
||||||
|
oslotest>=2.15.0 # Apache-2.0
|
||||||
|
coverage>=3.6
|
||||||
|
fixtures>=1.3.1
|
||||||
|
sqlalchemy-utils
|
||||||
|
testresources>=0.2.4 # Apache-2.0/BSD
|
||||||
|
gabbi>=1.30.0 # Apache-2.0
|
||||||
|
# Provides subunit-trace
|
||||||
|
webtest
|
15
tox.ini
15
tox.ini
@ -19,8 +19,11 @@ setenv =
|
|||||||
mysql: AODH_TEST_DEPS=mysql
|
mysql: AODH_TEST_DEPS=mysql
|
||||||
postgresql: AODH_TEST_DEPS=postgresql
|
postgresql: AODH_TEST_DEPS=postgresql
|
||||||
deps =
|
deps =
|
||||||
|
gnocchi[postgresql, file]
|
||||||
|
pifpaf[gnocchi]>=1.0.1
|
||||||
-c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
|
-c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
|
||||||
.[test,{env:AODH_TEST_DEPS}]
|
.[{env:AODH_TEST_DEPS}]
|
||||||
|
-r{toxinidir}/test-requirements.txt
|
||||||
-r{toxinidir}/requirements.txt
|
-r{toxinidir}/requirements.txt
|
||||||
passenv =
|
passenv =
|
||||||
OS_TEST_TIMEOUT
|
OS_TEST_TIMEOUT
|
||||||
@ -93,15 +96,21 @@ commands = bash -x oslo_debug_helper {posargs}
|
|||||||
|
|
||||||
[testenv:debug-mysql]
|
[testenv:debug-mysql]
|
||||||
deps =
|
deps =
|
||||||
|
gnocchi[mysql, file]
|
||||||
|
pifpaf[gnocchi]>=1.0.1
|
||||||
-c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
|
-c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
|
||||||
.[mysql,test]
|
.[mysql]
|
||||||
|
-r{toxinidir}/test-requirements.txt
|
||||||
setenv = OS_TEST_PATH=aodh/tests/functional/
|
setenv = OS_TEST_PATH=aodh/tests/functional/
|
||||||
commands = pifpaf -g AODH_TEST_STORAGE_URL run mysql -- oslo_debug_helper {posargs}
|
commands = pifpaf -g AODH_TEST_STORAGE_URL run mysql -- oslo_debug_helper {posargs}
|
||||||
|
|
||||||
[testenv:debug-pgsql]
|
[testenv:debug-pgsql]
|
||||||
deps =
|
deps =
|
||||||
|
gnocchi[postgresql, file]
|
||||||
|
pifpaf[gnocchi]>=1.0.1
|
||||||
-c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
|
-c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
|
||||||
.[postgresql,test]
|
.[postgresql]
|
||||||
|
-r{toxinidir}/test-requirements.txt
|
||||||
setenv = OS_TEST_PATH=aodh/tests/functional/
|
setenv = OS_TEST_PATH=aodh/tests/functional/
|
||||||
commands = pifpaf -g AODH_TEST_STORAGE_URL run postgresql -- oslo_debug_helper {posargs}
|
commands = pifpaf -g AODH_TEST_STORAGE_URL run postgresql -- oslo_debug_helper {posargs}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user