]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph-volume: test the lsblk command in list.py 43050/head
authorGuillaume Abrioux <gabrioux@redhat.com>
Tue, 7 Sep 2021 13:38:33 +0000 (15:38 +0200)
committerGuillaume Abrioux <gabrioux@redhat.com>
Tue, 7 Sep 2021 13:38:33 +0000 (15:38 +0200)
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 <gabrioux@redhat.com>
src/ceph-volume/ceph_volume/tests/devices/raw/test_list.py

index 960e621fbc8c05ba7ee50e8bca2a32bc2fb3b574..d5ccee5c964956939de61832f53a6bb9cf45db70 100644 (file)
@@ -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']