]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
ceph-volume: fix test_reject_readonly_device unit test 67343/head
authorGuillaume Abrioux <gabrioux@ibm.com>
Wed, 18 Feb 2026 12:41:37 +0000 (13:41 +0100)
committerGuillaume Abrioux <gabrioux@ibm.com>
Wed, 18 Feb 2026 12:41:37 +0000 (13:41 +0100)
commit56f09057addb1f9457d2cf5bf50b5039394ea1b1
treeed6a201051c4ae10147707aa2d219b048a4ca4a5
parentfb95f60d2a0144ba7336cbcf9f6e92ec10ac1e5f
ceph-volume: fix test_reject_readonly_device unit test

this mocks "partitions" in device info so Device._parse() does not
raise KeyError and both /dev/cdrom and /dev/sr0 so the test passes
when cdrom is a symlink to sr0.

Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
src/ceph-volume/ceph_volume/tests/util/test_device.py