]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
test: add cli test for missing args to rbd
authorJosh Durgin <josh.durgin@inktank.com>
Fri, 9 Nov 2012 20:17:24 +0000 (12:17 -0800)
committerJosh Durgin <josh.durgin@inktank.com>
Fri, 9 Nov 2012 20:17:50 +0000 (12:17 -0800)
This includes 'rbd mv foo', which used to crash

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
src/test/cli/rbd/bad-map.t [deleted file]
src/test/cli/rbd/not-enough-args.t [new file with mode: 0644]

diff --git a/src/test/cli/rbd/bad-map.t b/src/test/cli/rbd/bad-map.t
deleted file mode 100644 (file)
index dcc9edc..0000000
+++ /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 (file)
index 0000000..40fe0d1
--- /dev/null
@@ -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]