]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
units: fix cauthtool usage test
authorColin Patrick McCabe <cmccabe@alumni.cmu.edu>
Fri, 25 Mar 2011 17:37:33 +0000 (10:37 -0700)
committerColin Patrick McCabe <cmccabe@alumni.cmu.edu>
Fri, 25 Mar 2011 17:37:33 +0000 (10:37 -0700)
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
src/test/cli/cauthtool/manpage.t

index b5e79d8fe2da1d6b72a75afcd13486cb4c4694b2..81d3b4f2ae12d4019ead34810b3df8a756675ec5 100644 (file)
@@ -1,6 +1,21 @@
-# TODO conflict with -c, it's not --create-keyring; fix manpage
-  $ cauthtool -c foo
-  \d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}\.\d+ [0-9a-f]{8,} common_init: unable to open config file. (re)
+  $ cauthtool
+  cauthtool: must specify filename
+  usage: cauthtool keyringfile [OPTIONS]...
+  where the options are:
+    -l, --list                    will list all keys and capabilities present in
+                                  the keyring
+    -p, --print                   will print an encoded key for the specified
+                                  entityname. This is suitable for the
+                                  'mount -o secret=..' argument
+    -C, --create-keyring          will create a new keyring, overwriting any
+                                  existing keyringfile
+    --gen-key                     will generate a new secret key for the
+                                  specified entityname
+    --add-key                     will add an encoded key to the keyring
+    --cap subsystem capability    will set the capability for given subsystem
+    --caps capsfile               will set all of capabilities associated with a
+                                  given key, for all subsystems
+    -b, --bin                     will create a binary formatted keyring
   [1]
 
 # demonstrate that manpage examples fail without config