From e758adc54e1af33c770b18eaaa8db477e6a4c4cc Mon Sep 17 00:00:00 2001 From: Guillaume Abrioux Date: Tue, 7 Sep 2021 15:38:33 +0200 Subject: [PATCH] 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) --- src/ceph-volume/ceph_volume/tests/devices/raw/test_list.py | 1 + 1 file changed, 1 insertion(+) 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 960e621fbc8c0..d5ccee5c96495 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'] -- 2.39.5