]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
ceph-volume: add unit test test_safe_prepare_osd_already_created 33242/head
authorGuillaume Abrioux <gabrioux@redhat.com>
Fri, 7 Feb 2020 14:22:46 +0000 (15:22 +0100)
committerJan Fajerski <jfajerski@suse.com>
Wed, 12 Feb 2020 12:18:53 +0000 (13:18 +0100)
commit1d48c4df8b2dcad22135d68814201972338c0e1b
tree21379f914d7599f9e3aa1aa2998e87793e3ff1a9
parentdff4c69d52284b27ba37a584277357a8e298aa0b
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