From: Josh Durgin Date: Fri, 9 Nov 2012 20:17:24 +0000 (-0800) Subject: test: add cli test for missing args to rbd X-Git-Tag: v0.55~140 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=de2cd18c3d5c0e21df5734d36386b1d5287acd09;p=ceph.git test: add cli test for missing args to rbd This includes 'rbd mv foo', which used to crash Signed-off-by: Josh Durgin --- diff --git a/src/test/cli/rbd/bad-map.t b/src/test/cli/rbd/bad-map.t deleted file mode 100644 index dcc9edc645cd1..0000000000000 --- a/src/test/cli/rbd/bad-map.t +++ /dev/null @@ -1,6 +0,0 @@ - $ rbd map - rbd: image name was not specified - [1] - $ rbd unmap - rbd: device path was not specified - [1] diff --git a/src/test/cli/rbd/not-enough-args.t b/src/test/cli/rbd/not-enough-args.t new file mode 100644 index 0000000000000..40fe0d12468ac --- /dev/null +++ b/src/test/cli/rbd/not-enough-args.t @@ -0,0 +1,33 @@ + $ rbd map + rbd: image name was not specified + [1] + $ rbd unmap + rbd: device path was not specified + [1] + $ rbd clone foo@snap bar@snap + rbd: cannot clone to a snapshot + [1] + $ rbd cp foo + rbd: destination image name was not specified + [1] + $ rbd cp foo@bar + rbd: destination image name was not specified + [1] + $ rbd copy foo + rbd: destination image name was not specified + [1] + $ rbd copy foo@bar + rbd: destination image name was not specified + [1] + $ rbd mv foo + rbd: destination image name was not specified + [1] + $ rbd rename foo + rbd: destination image name was not specified + [1] + $ rbd clone foo@bar + rbd: destination image name was not specified + [1] + $ rbd clone foo + rbd: snap name was not specified + [1]