Skip to content

Commit

Permalink
qa/workunit: add test case for --with-snaps in import_export.sh
Browse files Browse the repository at this point in the history
Signed-off-by: Dongsheng Yang <dongsheng.yang@easystack.cn>
  • Loading branch information
yangdongsheng committed Jul 29, 2016
1 parent fe815d4 commit 967dfa5
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion qa/workunits/rbd/import_export.sh
Expand Up @@ -57,12 +57,21 @@ rm ${TMPDIR}/img2 ${TMPDIR}/img3
rbd import $RBD_CREATE_ARGS - testimg < ${TMPDIR}/img
rbd export testimg ${TMPDIR}/img2
rbd export testimg - > ${TMPDIR}/img3
rbd rm testimg
cmp ${TMPDIR}/img ${TMPDIR}/img2
cmp ${TMPDIR}/img ${TMPDIR}/img3

rm ${TMPDIR}/img ${TMPDIR}/img2 ${TMPDIR}/img3

# try with --with-snaps
rbd snap create testimg@snap
rbd export --with-snaps testimg ${TMPDIR}/img
rbd import --with-snaps $RBD_CREATE_ARGS ${TMPDIR}/img testimg_import
rbd info testimg_import
rbd info testimg_import@snap
rm ${TMPDIR}/img
rbd snap rm testimg_import@snap
rbd remove testimg_import
rbd rm testimg

tiered=0
if ceph osd dump | grep ^pool | grep "'rbd'" | grep tier; then
Expand Down

0 comments on commit 967dfa5

Please sign in to comment.