]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
ceph-volume: refactor ceph-disk_member unittests
authorJan Fajerski <jfajerski@suse.com>
Tue, 30 Jul 2019 11:29:22 +0000 (13:29 +0200)
committerJan Fajerski <jfajerski@suse.com>
Fri, 2 Aug 2019 09:30:18 +0000 (11:30 +0200)
commite5b52beeacf360bbed66efc4d4cdc649626d1571
treea19ede60219401049396d0a5d366fb2b5662d8a9
parent7cd3f28a4c689fd94e7f270aa6be6465eb44c637
ceph-volume: refactor ceph-disk_member unittests

This adds a parameterized fixture as input to the tests. Should make
writing new tests easier since only fixture parameters need to be added.
In the future we should be able to reuse the fixtures to build other
fixtures and reuse the parametrization.

Signed-off-by: Jan Fajerski <jfajerski@suse.com>
(cherry picked from commit f42287c3416ad09c112e64756f5051c5c13aa344)
src/ceph-volume/ceph_volume/tests/conftest.py
src/ceph-volume/ceph_volume/tests/util/test_device.py