]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
tests: use testinfra in tox.ini instead of pytest directly
authorAndrew Schoen <aschoen@redhat.com>
Sat, 3 Dec 2016 14:06:20 +0000 (08:06 -0600)
committerAndrew Schoen <aschoen@redhat.com>
Tue, 6 Dec 2016 20:56:18 +0000 (14:56 -0600)
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
tests/requirements.txt
tox.ini

index 8bcfc2b5a3c348e4df577e2a2500cc4e85a34780..64f2f828538ffc5d00d81884bf5acf2149617d1f 100644 (file)
@@ -1,3 +1,3 @@
 # These are Python requirements needed to run the functional tests
-pytest
+testinfra
 pytest-xdist
diff --git a/tox.ini b/tox.ini
index 5ee3d12bd09fbe901e30798c6154eac4c71f576c..b02a59919a9a9d7d941e8b74548e1251bf8d7bfb 100644 (file)
--- a/tox.ini
+++ b/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"
 
-  py.test -v
+  testinfra -n 4 -v --connection=ansible --ansible-inventory={changedir}/hosts {toxinidir}/tests/functional/tests
   vagrant destroy --force