]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
clitest: Add more simple basic functionality tests.
authorTommi Virtanen <tommi.virtanen@dreamhost.com>
Thu, 7 Apr 2011 18:12:38 +0000 (11:12 -0700)
committerTommi Virtanen <tommi.virtanen@dreamhost.com>
Thu, 7 Apr 2011 18:12:38 +0000 (11:12 -0700)
Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
src/test/cli/ceph/help.t [new file with mode: 0644]
src/test/cli/ceph/name.t [new file with mode: 0644]
src/test/cli/rados/help.t [new file with mode: 0644]
src/test/cli/radosgw_admin/help.t [new file with mode: 0644]

diff --git a/src/test/cli/ceph/help.t b/src/test/cli/ceph/help.t
new file mode 100644 (file)
index 0000000..718a4b9
--- /dev/null
@@ -0,0 +1,24 @@
+# TODO help should not fail
+  $ ceph --help
+  usage: ceph [options] [commands]
+  If no commands are specified, enter interactive mode.
+  Commands:
+     stop              -- cleanly shut down file system
+     (osd|pg|mds) stat -- get monitor subsystem status
+     ...
+  Options:
+     -i infile
+     -o outfile
+          specify input or output file (for certain commands)
+     -s or --status
+          print current system status
+     -w or --watch
+          watch system status changes in real time (push)
+  --conf/-c        Read configuration from the given configuration file
+  -D               Run in the foreground.
+  -f               Run in foreground. Show all log messages on stderr.
+  --id             set ID
+  --name           set ID.TYPE
+  --version        show version and quit
+  
+  [1]
diff --git a/src/test/cli/ceph/name.t b/src/test/cli/ceph/name.t
new file mode 100644 (file)
index 0000000..756a6bb
--- /dev/null
@@ -0,0 +1,3 @@
+  $ ceph --name=foo
+  You must pass a string of the form TYPE.ID to the --name option. Valid types are: auth, mon, osd, mds, client
+  [1]
diff --git a/src/test/cli/rados/help.t b/src/test/cli/rados/help.t
new file mode 100644 (file)
index 0000000..f17e014
--- /dev/null
@@ -0,0 +1,49 @@
+# TODO help should not fail
+  $ rados --help
+  usage: rados [options] [commands]
+  Commands:
+     lspools                         list pools
+     df                              show per-pool and total usage
+  
+  Pool commands:
+     get <obj-name> [outfile]         fetch object
+     put <obj-name> [infile]          write object
+     create <obj-name>                create object
+     rm <obj-name>                    remove object
+     listxattr <obj-name>
+     getxattr <obj-name> attr
+     setxattr <obj-name> attr val
+     rmxattr <obj-name> attr
+     stat objname                     stat the named object
+     ls                               list objects in pool
+  
+     chown 123                        change the pool owner to auid 123
+     mapext <obj-name>
+     mkpool <pool-name> [123[ 4]]     create pool <pool-name>'
+                                      [with auid 123[and using crush rule 4]]
+     rmpool <pool-name>               remove pool <pool-name>'
+     mkpool <pool-name>               create the pool <pool-name>
+     lssnap                           list snaps
+     mksnap <snap-name>               create snap <snap-name>
+     rmsnap <snap-name>               remove snap <snap-name>
+     rollback <obj-name> <snap-name>  roll back object to snap <snap-name>
+  
+     import <dir>                     import pool from a directory
+     export <dir>                     export pool into a directory
+     bench <seconds> write|seq|rand [-t concurrent_operations]
+                                      default is 16 concurrent IOs and 4 MB op size
+  
+  Options:
+     -p pool
+     --pool=pool
+          select given pool by name
+     -b op_size
+          set the size of write ops for put or benchmarking   -s name
+     --snap name
+          select given snap name for (read) IO
+     -i infile
+     -o outfile
+          specify input or output file (for certain commands)
+     --create-pool
+          create the pool that was specified
+  [1]
diff --git a/src/test/cli/radosgw_admin/help.t b/src/test/cli/radosgw_admin/help.t
new file mode 100644 (file)
index 0000000..4ebd2e4
--- /dev/null
@@ -0,0 +1,31 @@
+# TODO handle --help properly, not as an error
+  $ radosgw_admin --help
+  unrecognized arg --help
+  usage: radosgw_admin <cmd> [options...]
+  commands:
+    user create                create a new user
+    user modify                modify user
+    user info                  get user info
+    user rm                    remove user
+    buckets list               list buckets
+    policy                     read bucket/object policy
+    log show                   dump a log from specific bucket, date
+  options:
+     --uid=<id>                S3 uid
+     --os-user=<group:name>    OpenStack user
+     --email=<email>
+     --auth_uid=<auid>         librados uid
+     --secret=<key>            S3 key
+     --os-secret=<key>         OpenStack key
+     --display-name=<name>
+     --bucket=<bucket>
+     --object=<object>
+     --date=<yyyy-mm-dd>
+  --conf/-c        Read configuration from the given configuration file
+  -D               Run in the foreground.
+  -f               Run in foreground. Show all log messages on stderr.
+  --id             set ID
+  --name           set ID.TYPE
+  --version        show version and quit
+  
+  [1]