From: Guillaume Abrioux Date: Tue, 7 Sep 2021 13:38:33 +0000 (+0200) Subject: ceph-volume: test the lsblk command in list.py X-Git-Tag: v16.2.6~14^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=04f5d3e0fccf3aaf4c4287db66cb7d08a5d7a8cc;p=ceph.git ceph-volume: test the lsblk command in list.py Let's test we use the expected args when we build the `lsblk` command to list the devices present on the node. Signed-off-by: Guillaume Abrioux (cherry picked from commit 959ea33c0ba118984d678403b234e7628ccac3dc) --- diff --git a/src/ceph-volume/ceph_volume/tests/devices/raw/test_list.py b/src/ceph-volume/ceph_volume/tests/devices/raw/test_list.py index 960e621fbc8c..d5ccee5c9649 100644 --- a/src/ceph-volume/ceph_volume/tests/devices/raw/test_list.py +++ b/src/ceph-volume/ceph_volume/tests/devices/raw/test_list.py @@ -199,6 +199,7 @@ class TestList(object): patched_get_devices.side_effect = _devices_side_effect result = raw.list.List([]).generate() + patched_call.assert_any_call(['lsblk', '--paths', '--output=NAME', '--noheadings', '--list']) assert len(result) == 2 sdb = result['sdb-uuid']