Add unit tests for RADOSBLockDevice
Add unit tests for the RADOSBlockDevice JSON output parsing function, and modify the unit tests for the plain output parsing function to work with the new code. Signed-off-by:Stratos Psomadakis <psomas@grnet.gr> Reviewed-by:
Guido Trotter <ultrotter@google.com>
Showing
- Makefile.am 13 additions, 0 deletionsMakefile.am
- test/data/bdev-rbd/json_output_empty.txt 1 addition, 0 deletionstest/data/bdev-rbd/json_output_empty.txt
- test/data/bdev-rbd/json_output_extra_matches.txt 1 addition, 0 deletionstest/data/bdev-rbd/json_output_extra_matches.txt
- test/data/bdev-rbd/json_output_no_matches.txt 1 addition, 0 deletionstest/data/bdev-rbd/json_output_no_matches.txt
- test/data/bdev-rbd/json_output_ok.txt 1 addition, 0 deletionstest/data/bdev-rbd/json_output_ok.txt
- test/data/bdev-rbd/output_invalid.txt 1 addition, 0 deletionstest/data/bdev-rbd/output_invalid.txt
- test/data/bdev-rbd/plain_output_new_empty.txt 0 additions, 0 deletionstest/data/bdev-rbd/plain_output_new_empty.txt
- test/data/bdev-rbd/plain_output_new_extra_matches.txt 5 additions, 0 deletionstest/data/bdev-rbd/plain_output_new_extra_matches.txt
- test/data/bdev-rbd/plain_output_new_no_matches.txt 3 additions, 0 deletionstest/data/bdev-rbd/plain_output_new_no_matches.txt
- test/data/bdev-rbd/plain_output_new_ok.txt 3 additions, 0 deletionstest/data/bdev-rbd/plain_output_new_ok.txt
- test/data/bdev-rbd/plain_output_old_empty.txt 1 addition, 0 deletionstest/data/bdev-rbd/plain_output_old_empty.txt
- test/data/bdev-rbd/plain_output_old_extra_matches.txt 5 additions, 0 deletionstest/data/bdev-rbd/plain_output_old_extra_matches.txt
- test/data/bdev-rbd/plain_output_old_no_matches.txt 3 additions, 0 deletionstest/data/bdev-rbd/plain_output_old_no_matches.txt
- test/data/bdev-rbd/plain_output_old_ok.txt 4 additions, 0 deletionstest/data/bdev-rbd/plain_output_old_ok.txt
- test/py/ganeti.bdev_unittest.py 64 additions, 27 deletionstest/py/ganeti.bdev_unittest.py
Loading
Please register or sign in to comment