X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fceph%2Fsrc%2Ftest%2Fcli%2Frbd%2Ftoo-many-args.t;fp=src%2Fceph%2Fsrc%2Ftest%2Fcli%2Frbd%2Ftoo-many-args.t;h=957845c277536ccf488f51290360162458ee0ca7;hb=812ff6ca9fcd3e629e49d4328905f33eee8ca3f5;hp=0000000000000000000000000000000000000000;hpb=15280273faafb77777eab341909a3f495cf248d9;p=stor4nfv.git diff --git a/src/ceph/src/test/cli/rbd/too-many-args.t b/src/ceph/src/test/cli/rbd/too-many-args.t new file mode 100644 index 0000000..957845c --- /dev/null +++ b/src/ceph/src/test/cli/rbd/too-many-args.t @@ -0,0 +1,33 @@ +A command taking no args: + + $ rbd showmapped 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]