From fe1572795c55ae220ca1461a0113d9f37c1cd3c3 Mon Sep 17 00:00:00 2001 From: Tommi Virtanen Date: Thu, 7 Apr 2011 11:12:38 -0700 Subject: [PATCH] clitest: Add more simple basic functionality tests. Signed-off-by: Tommi Virtanen --- src/test/cli/ceph/help.t | 24 +++++++++++++++ src/test/cli/ceph/name.t | 3 ++ src/test/cli/rados/help.t | 49 +++++++++++++++++++++++++++++++ src/test/cli/radosgw_admin/help.t | 31 +++++++++++++++++++ 4 files changed, 107 insertions(+) create mode 100644 src/test/cli/ceph/help.t create mode 100644 src/test/cli/ceph/name.t create mode 100644 src/test/cli/rados/help.t create mode 100644 src/test/cli/radosgw_admin/help.t diff --git a/src/test/cli/ceph/help.t b/src/test/cli/ceph/help.t new file mode 100644 index 0000000000000..718a4b91dec18 --- /dev/null +++ b/src/test/cli/ceph/help.t @@ -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 index 0000000000000..756a6bb8a985f --- /dev/null +++ b/src/test/cli/ceph/name.t @@ -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 index 0000000000000..f17e0146199cd --- /dev/null +++ b/src/test/cli/rados/help.t @@ -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 [outfile] fetch object + put [infile] write object + create create object + rm remove object + listxattr + getxattr attr + setxattr attr val + rmxattr attr + stat objname stat the named object + ls list objects in pool + + chown 123 change the pool owner to auid 123 + mapext + mkpool [123[ 4]] create pool ' + [with auid 123[and using crush rule 4]] + rmpool remove pool ' + mkpool create the pool + lssnap list snaps + mksnap create snap + rmsnap remove snap + rollback roll back object to snap + + import import pool from a directory + export export pool into a directory + bench 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 index 0000000000000..4ebd2e40bd75a --- /dev/null +++ b/src/test/cli/radosgw_admin/help.t @@ -0,0 +1,31 @@ +# TODO handle --help properly, not as an error + $ radosgw_admin --help + unrecognized arg --help + usage: radosgw_admin [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= S3 uid + --os-user= OpenStack user + --email= + --auth_uid= librados uid + --secret= S3 key + --os-secret= OpenStack key + --display-name= + --bucket= + --object= + --date= + --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] -- 2.39.5