]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commit
tests: factorize docker tests using docker_exec_cmd logic
authorGuillaume Abrioux <gabrioux@redhat.com>
Mon, 25 Jun 2018 15:10:37 +0000 (17:10 +0200)
committerGuillaume Abrioux <gabrioux@redhat.com>
Wed, 11 Jul 2018 12:41:38 +0000 (14:41 +0200)
commit4494c9c29e310c5220c79c2fd52c093211c7641a
tree80c4ed224ae394c25bce4e1918c1bb04576f2b89
parent33b511568f3f44f2431be3be348a70334a528ca6
tests: factorize docker tests using docker_exec_cmd logic

avoid duplicating test unnecessarily just because of docker exec syntax.
Using the same logic than in the playbook with `docker_exec_cmd` allow us
to execute the same test on both containerized and non containerized environment.

The idea is to set a variable `docker_exec_cmd` with the
'docker exec <container-name>' string when containerized and
set it to '' when non containerized.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
(cherry picked from commit f2e57a56db2801818135ba85479fedfc00eae30c)
tests/functional/tests/mds/test_mds.py
tests/functional/tests/mgr/test_mgr.py
tests/functional/tests/nfs/test_nfs_ganesha.py
tests/functional/tests/rbd-mirror/test_rbd_mirror.py
tests/functional/tests/rgw/test_rgw.py