[pve-devel] [PATCH storage 3/3] Diskmanage: fix usage test for sdd
Dominik Csapak
d.csapak at proxmox.com
Thu Jul 11 12:49:18 CEST 2019
sdd1 and sdd2 were listed in the zfs output but were not included
in the partlist, so the zfs detection test was wrong
now it is correct and more in line with the real world
Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
test/disk_tests/usages/disklist_expected.json | 1 +
test/disk_tests/usages/partlist | 2 ++
2 files changed, 3 insertions(+)
diff --git a/test/disk_tests/usages/disklist_expected.json b/test/disk_tests/usages/disklist_expected.json
index 137385d..b179cd6 100644
--- a/test/disk_tests/usages/disklist_expected.json
+++ b/test/disk_tests/usages/disklist_expected.json
@@ -85,6 +85,7 @@
"type" : "hdd",
"osdid" : -1,
"serial" : "SERIAL1",
+ "used": "ZFS",
"vendor" : "ATA",
"wwn" : "0x0000000000000000",
"devpath" : "/dev/sdd"
diff --git a/test/disk_tests/usages/partlist b/test/disk_tests/usages/partlist
index 9fd750f..43c1f68 100644
--- a/test/disk_tests/usages/partlist
+++ b/test/disk_tests/usages/partlist
@@ -1,3 +1,5 @@
+sdd1
+sdd2
sde1
sdf1
sdm1
--
2.20.1
More information about the pve-devel
mailing list