]> git.apps.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)
committermergify[bot] <mergify[bot]@users.noreply.github.com>
Wed, 27 Jun 2018 07:00:14 +0000 (07:00 +0000)
commitf2e57a56db2801818135ba85479fedfc00eae30c
tree7da876d32d4213709013a1cd27b462157541e1ab
parentfe79a5d24086fc61ae84a59bd61a053cddb62941
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>
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