]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
ceph-volume: adjust tests for empty PARTLABEL fields
authorJan Fajerski <jfajerski@suse.com>
Tue, 30 Jul 2019 15:29:09 +0000 (17:29 +0200)
committerJan Fajerski <jfajerski@suse.com>
Fri, 2 Aug 2019 09:43:42 +0000 (11:43 +0200)
commit833ca7c60aebea64d7d535c18d2ebc44a9499afd
tree52851d8b87f193ee3874f28125b2e8122f4391a0
parenteac6767e907adf44edbff26b33108f679b585687
ceph-volume: adjust tests for empty PARTLABEL fields

It seems like ceph-disk sometimes creates OSDs where the wal and db
partitions have no PARTLABEL set. This commit alters tests so that the
empty string is considered a valid label.

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