From e6918187568dbd01842d8d1d2c808ce16a894239 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 21 Apr 2024 13:54:28 +0200 Subject: Adding upstream version 18.2.2. Signed-off-by: Daniel Baumann --- src/test/cli/rbd/too-many-args.t | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 src/test/cli/rbd/too-many-args.t (limited to 'src/test/cli/rbd/too-many-args.t') 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] -- cgit v1.2.3