]> git.apps.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>
Tue, 2 Aug 2022 09:18:24 +0000 (11:18 +0200)
commit2817f5df20b184621646fec4a2135f49a81e5741
tree61e7657c751a70531175db339b3d6acbc9af3229
parent77c4319de6646f9418fcb5bf4d4771d0e987d6ad
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