mirror of https://github.com/ceph/ceph
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:
parent
288bde3f9e
commit
aa3255b844
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue