Add test for DRBD 8.4 /proc/drbd parsing
The current parser already supports the output of DRBD 8.4 /proc/drbd, so add tests which actually verify this behaviour. Note that the empty lines in proc_drbd84.txt are actually present in the output of DRBD 8.4, they always appear when minors are not contiguous. Signed-off-by:Thomas Thrainer <thomasth@google.com> Signed-off-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Michele Tartara <mtartara@google.com>
Showing
- Makefile.am 2 additions, 0 deletionsMakefile.am
- test/data/proc_drbd84.txt 16 additions, 0 deletionstest/data/proc_drbd84.txt
- test/data/proc_drbd84_sync.txt 11 additions, 0 deletionstest/data/proc_drbd84_sync.txt
- test/hs/Test/Ganeti/Block/Drbd/Parser.hs 81 additions, 0 deletionstest/hs/Test/Ganeti/Block/Drbd/Parser.hs
- test/py/ganeti.block.bdev_unittest.py 17 additions, 6 deletionstest/py/ganeti.block.bdev_unittest.py
Loading
Please register or sign in to comment