From 8451522151505db703500e90258e2c0621f4b2ef Mon Sep 17 00:00:00 2001 From: Jason Dillaman Date: Thu, 5 Nov 2015 16:54:10 -0500 Subject: [PATCH] tests: additional updates to cli/rbd cram test for updated CLI help Signed-off-by: Jason Dillaman --- src/test/cli/rbd/help.t | 26 ++++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/src/test/cli/rbd/help.t b/src/test/cli/rbd/help.t index 9bc818b622942..4f746b4d54fa1 100644 --- a/src/test/cli/rbd/help.t +++ b/src/test/cli/rbd/help.t @@ -41,6 +41,7 @@ snap protect Prevent a snapshot from being deleted. snap purge Deletes all snapshots. snap remove (snap rm) Deletes a snapshot. + snap rename Rename a snapshot. snap rollback Rollback image to snapshot. snap unprotect Allow a snapshot to be deleted. status Show the status of this image. @@ -52,9 +53,10 @@ --cluster arg cluster name -i [ --id ] arg client id (without 'client.' prefix) -n [ --name ] arg client name + -m [ --mon_host ] arg monitor host --secret arg path to secret key (deprecated) - --keyfile arg path to secret key - --keyring arg path to keyring + -K [ --keyfile ] arg path to secret key + -k [ --keyring ] arg path to keyring See 'rbd help ' for help on a specific command. $ while read -r line; do echo rbd help $line ; rbd help $line; done <<< "$(rbd help | grep '^ [a-z]' | sed 's/^ \([a-z -]*[a-z]\).*/\1/g')" @@ -704,6 +706,26 @@ --image arg image name --snap arg snapshot name + rbd help snap rename + usage: rbd snap rename [--pool ] [--image ] [--snap ] + [--dest-pool ] [--dest ] + + + Rename a snapshot. + + Positional arguments + source snapshot specification + (example: [/]@) + destination snapshot specification + (example: [/]@) + + Optional arguments + -p [ --pool ] arg source pool name + --image arg source image name + --snap arg source snapshot name + --dest-pool arg destination pool name + --dest arg destination image name + rbd help snap rollback usage: rbd snap rollback [--pool ] [--image ] [--snap ] [--no-progress] -- 2.39.5