From 39180430b9be14a94502b7e5bef30dd582ce3ad8 Mon Sep 17 00:00:00 2001 From: Dan Mick Date: Thu, 15 Nov 2012 22:49:16 -0800 Subject: [PATCH] rbd: tests for copy with explicit/implicit pool names Validate change to not assume dest pool == src pool Signed-off-by: Dan Mick Reviewed-by: Josh Durgin --- qa/workunits/rbd/copy.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/qa/workunits/rbd/copy.sh b/qa/workunits/rbd/copy.sh index 7571f50471dfe..f38fe21a29375 100755 --- a/qa/workunits/rbd/copy.sh +++ b/qa/workunits/rbd/copy.sh @@ -254,8 +254,22 @@ test_pool_image_args() { rbd import --pool test /tmp/empty rbd ls test | grep -q empty + # copy with no explicit pool goes to pool rbd + rbd copy test/test9 test10 + rbd ls test | grep -qv test10 + rbd ls | grep -q test10 + rbd copy test/test9 test/test10 + rbd ls test | grep -q test10 + rbd copy --pool test test10 --dest-pool test test11 + rbd ls test | grep -q test11 + rbd copy --dest-pool rbd --pool test test11 test12 + rbd ls | grep test12 + rbd ls test | grep -qv test12 + rm -f /tmp/empty ceph osd pool delete test + ceph osd pool delete rbd + ceph osd pool create rbd 100 } test_pool_image_args -- 2.39.5