mirror of https://github.com/ceph/ceph-ansible.git
tests: use testinfra in tox.ini instead of pytest directly
Signed-off-by: Andrew Schoen <aschoen@redhat.com>pull/1150/head
parent
a23007e7db
commit
870a4358f0
|
@ -1,3 +1,3 @@
|
||||||
# These are Python requirements needed to run the functional tests
|
# These are Python requirements needed to run the functional tests
|
||||||
pytest
|
testinfra
|
||||||
pytest-xdist
|
pytest-xdist
|
||||||
|
|
2
tox.ini
2
tox.ini
|
@ -35,5 +35,5 @@ commands=
|
||||||
|
|
||||||
ansible-playbook -vv -i {changedir}/hosts {toxinidir}/{env:PLAYBOOK:site.yml.sample} --extra-vars="fetch_directory={changedir}/fetch"
|
ansible-playbook -vv -i {changedir}/hosts {toxinidir}/{env:PLAYBOOK:site.yml.sample} --extra-vars="fetch_directory={changedir}/fetch"
|
||||||
|
|
||||||
py.test -v
|
testinfra -n 4 -v --connection=ansible --ansible-inventory={changedir}/hosts {toxinidir}/tests/functional/tests
|
||||||
vagrant destroy --force
|
vagrant destroy --force
|
||||||
|
|
Loading…
Reference in New Issue