summaryrefslogtreecommitdiffstats
path: root/src/test/cli/rbd/too-many-args.t
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-21 11:54:28 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-21 11:54:28 +0000
commite6918187568dbd01842d8d1d2c808ce16a894239 (patch)
tree64f88b554b444a49f656b6c656111a145cbbaa28 /src/test/cli/rbd/too-many-args.t
parentInitial commit. (diff)
downloadceph-e6918187568dbd01842d8d1d2c808ce16a894239.tar.xz
ceph-e6918187568dbd01842d8d1d2c808ce16a894239.zip
Adding upstream version 18.2.2.upstream/18.2.2
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/test/cli/rbd/too-many-args.t')
-rw-r--r--src/test/cli/rbd/too-many-args.t33
1 files changed, 33 insertions, 0 deletions
diff --git a/src/test/cli/rbd/too-many-args.t b/src/test/cli/rbd/too-many-args.t
new file mode 100644
index 000000000..cf075fb30
--- /dev/null
+++ b/src/test/cli/rbd/too-many-args.t
@@ -0,0 +1,33 @@
+A command taking no args:
+
+ $ rbd device list junk
+ rbd: too many arguments
+ [1]
+
+A command taking one arg:
+
+ $ rbd info img1 junk
+ rbd: too many arguments
+ [1]
+
+A command taking two args:
+
+ $ rbd copy img1 img2 junk
+ rbd: too many arguments
+ [1]
+
+A command taking three args:
+
+ $ rbd lock remove img1 lock1 locker1 junk
+ rbd: too many arguments
+ [1]
+
+A command taking unlimited args:
+
+ $ rbd feature enable img1 layering striping exclusive-lock object-map fast-diff deep-flatten journaling junk
+ rbd: the argument for option is invalid
+ [1]
+
+ $ rbd feature disable img1 layering striping exclusive-lock object-map fast-diff deep-flatten journaling junk
+ rbd: the argument for option is invalid
+ [1]