]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
tests: followup on testing against ansible2.4
authorGuillaume Abrioux <gabrioux@redhat.com>
Mon, 30 Oct 2017 13:45:59 +0000 (14:45 +0100)
committerGuillaume Abrioux <gabrioux@redhat.com>
Fri, 3 Nov 2017 16:55:18 +0000 (17:55 +0100)
ceph-ansible is now being testing against ansible2.2 and ansible2.4. We
need to update tox.ini so we use the right version of testinfra
regarding which ansible version we are using.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
(cherry picked from commit 97b1cb02584e3947633aed91f3029fe8317792bc)

tests/requirements.txt [deleted file]
tests/requirements2.2.txt [new file with mode: 0644]
tests/requirements2.4.txt [new file with mode: 0644]
tox.ini

diff --git a/tests/requirements.txt b/tests/requirements.txt
deleted file mode 100644 (file)
index fb3c70b..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-# testinfra < 1.7.1 does not work Ansible 2.4, see https://github.com/philpep/testinfra/issues/249
-testinfra==1.7.1
-pytest-xdist
diff --git a/tests/requirements2.2.txt b/tests/requirements2.2.txt
new file mode 100644 (file)
index 0000000..3e7980a
--- /dev/null
@@ -0,0 +1,3 @@
+# These are Python requirements needed to run the functional tests
+testinfra==1.6.0
+pytest-xdist
diff --git a/tests/requirements2.4.txt b/tests/requirements2.4.txt
new file mode 100644 (file)
index 0000000..fb3c70b
--- /dev/null
@@ -0,0 +1,3 @@
+# testinfra < 1.7.1 does not work Ansible 2.4, see https://github.com/philpep/testinfra/issues/249
+testinfra==1.7.1
+pytest-xdist
diff --git a/tox.ini b/tox.ini
index 1fa1fac8c22c9fc71ae9d5f57dfd137483743e33..2e197fb9926b5f69163d497b3a43466ea50b90f0 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -1,5 +1,7 @@
 [tox]
-envlist = {jewel,kraken,rhcs}-{ansible2.2}-{xenial_cluster,journal_collocation,centos7_cluster,dmcrypt_journal,dmcrypt_journal_collocation,docker_cluster,purge_cluster,purge_dmcrypt,docker_dedicated_journal,docker_dmcrypt_journal_collocation,update_dmcrypt,update_cluster,cluster,purge_docker_cluster}
+envlist = {dev,jewel,luminous,rhcs}-{ansible2.2,ansible2.3,ansible2.4}-{xenial_cluster,centos7_cluster,docker_cluster,update_cluster,cluster,update_docker_cluster,switch_to_containers,purge_filestore_osds_container,purge_filestore_osds_non_container,purge_cluster_non_container,purge_cluster_container}
+  {dev,luminous}-{ansible2.2,ansible2.3,ansible2.4}-{filestore_osds_non_container,filestore_osds_container,bluestore_osds_container,bluestore_osds_non_container,bluestore_lvm_osds,lvm_osds,purge_lvm_osds,shrink_mon,shrink_osd,shrink_mon_container,shrink_osd_container,docker_cluster_collocation,purge_bluestore_osds_non_container,purge_bluestore_osds_container}
+
 skipsdist = True
 
 # extra commands for purging clusters
@@ -67,9 +69,11 @@ setenv=
   kraken: UPDATE_CEPH_STABLE_RELEASE = luminous
 deps=
   ansible2.2: ansible==2.2.3
+  ansible2.2: -r{toxinidir}/tests/requirements2.2.txt
   ansible2.3: ansible==2.3.1
+  ansible2.3: -r{toxinidir}/tests/requirements2.2.txt
   ansible2.4: ansible==2.4.1
-  -r{toxinidir}/tests/requirements.txt
+  ansible2.4: -r{toxinidir}/tests/requirements2.4.txt
 changedir=
   # tests a 1 mon, 1 osd, 1 mds and 1 rgw xenial cluster using raw_multi_journal OSD scenario
   xenial_cluster: {toxinidir}/tests/functional/ubuntu/16.04/cluster