]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
ceph-volume: add unit test test_safe_prepare_osd_already_created 33607/head
authorGuillaume Abrioux <gabrioux@redhat.com>
Fri, 7 Feb 2020 14:22:46 +0000 (15:22 +0100)
committerJan Fajerski <jfajerski@suse.com>
Fri, 28 Feb 2020 12:53:07 +0000 (13:53 +0100)
commitd705482f0975ed64e9b36f785209b0e13f6b4a65
treed6104d3f15de3217d3d6b352443d3f844145f7eb
parentf742f02a8fbbc0b463d334eb950c4399f25dd1c3
ceph-volume: add unit test test_safe_prepare_osd_already_created

This commit adds a new unit test
`test_safe_prepare_osd_already_created()` in order to test when
`is_ceph_device()` returns `True` `RuntimeError` is well raised.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
(cherry picked from commit ccf92d718d6f363f6ca3b7e8499b68beb8b30c06)
src/ceph-volume/ceph_volume/tests/devices/lvm/test_prepare.py