qa: add tests for rbd ls with old and new formats

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
This commit is contained in:
Josh Durgin 2012-06-28 18:38:39 -07:00
parent 288bde3f9e
commit aa3255b844
1 changed files with 31 additions and 0 deletions

View File

@ -79,8 +79,39 @@ test_rename() {
remove_images
}
test_ls() {
echo "testing ls..."
remove_images
rbd create -s 1 test1
rbd create -s 1 test2
rbd ls | grep test1
rbd ls | grep test2
rbd ls | wc -l | grep 2
rbd rm test1
rbd rm test2
rbd create --new-format -s 1 test1
rbd create --new-format -s 1 test2
rbd ls | grep test1
rbd ls | grep test2
rbd ls | wc -l | grep 2
rbd rm test1
rbd rm test2
rbd create --new-format -s 1 test1
rbd create -s 1 test2
rbd ls | grep test1
rbd ls | grep test2
rbd ls | wc -l | grep 2
remove_images
}
test_rename
test_ls
test_others
echo OK