]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commit
tests: group and parametrize tests
authorDimitri Savineau <dsavinea@redhat.com>
Thu, 18 Apr 2019 21:08:13 +0000 (17:08 -0400)
committermergify[bot] <mergify[bot]@users.noreply.github.com>
Mon, 29 Apr 2019 23:03:59 +0000 (23:03 +0000)
commit7c62aaa78ab00eea96d5add2283cf4182601624c
tree6d58e1d333e5271be855a9afc22903c59aeb6a4e
parentebd2ae520d7622237da2e39fe869066d20a395bb
tests: group and parametrize tests

Instead of creating a dedicated test and using the same testinfra
module we can group them into a single test to avoid multiple ansible
connections and testinfra module execution.
This patch also adds parametrize pytest decorator when possible.
Finally fixing some flake minor issue.

Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
(cherry picked from commit 564ec9c99242a99982f31ea724ddeb36a95bd168)
tests/functional/tests/iscsi/test_iscsi.py
tests/functional/tests/mds/test_mds.py
tests/functional/tests/mon/test_mons.py
tests/functional/tests/nfs/test_nfs_ganesha.py
tests/functional/tests/osd/test_osds.py
tests/functional/tests/rbd-mirror/test_rbd_mirror.py
tests/functional/tests/rgw/test_rgw.py
tests/functional/tests/test_install.py