]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
ceph-volume/tests: migrate to pyfakefs
authorGuillaume Abrioux <gabrioux@redhat.com>
Wed, 27 Jul 2022 11:41:41 +0000 (13:41 +0200)
committerGuillaume Abrioux <gabrioux@redhat.com>
Fri, 5 Aug 2022 06:58:17 +0000 (08:58 +0200)
commit6ece433e10b5db629c997e7022bdf8543e8be7ba
treebce65dba24ba35ea27e49d9710811a27c2589e56
parentfb4bbb7d060da90b1e9704995644885e7e9452bf
ceph-volume/tests: migrate to pyfakefs

ceph-volume unit tests shouldn't actually create contents on the
filesystem from where it runs (even though they are written in a tmp
dir), let's use pyfakefs.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
(cherry picked from commit 1274ba34b4d21c5abf2cd2da035d6d25ae8d03da)
src/ceph-volume/ceph_volume/tests/conftest.py
src/ceph-volume/ceph_volume/tests/devices/simple/test_activate.py
src/ceph-volume/ceph_volume/tests/devices/simple/test_scan.py
src/ceph-volume/ceph_volume/tests/util/test_arg_validators.py
src/ceph-volume/ceph_volume/tests/util/test_disk.py
src/ceph-volume/ceph_volume/tests/util/test_encryption.py
src/ceph-volume/ceph_volume/tests/util/test_system.py
src/ceph-volume/tox.ini