From: Ilya Dryomov Date: Sat, 29 Jan 2022 14:01:27 +0000 (+0100) Subject: qa/suites/rbd: add cram-based mon command API test X-Git-Tag: v18.0.0~1464^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=4ed1e74d83e8bf99b77d794d2d3bd0b22fe0997a;p=ceph.git qa/suites/rbd: add cram-based mon command API test With mon (rbd_support mgr module in this case) command definitions generated automatically by @CLI{Read,Write}Command decorator, it's very easy to accidentally break the external facing API. Signed-off-by: Ilya Dryomov --- diff --git a/qa/suites/rbd/singleton/all/mon-command-help.yaml b/qa/suites/rbd/singleton/all/mon-command-help.yaml new file mode 100644 index 000000000000..a7290aadb2f5 --- /dev/null +++ b/qa/suites/rbd/singleton/all/mon-command-help.yaml @@ -0,0 +1,10 @@ +roles: +- [mon.a, mgr.x, osd.0, osd.1, client.0] +tasks: +- install: +- ceph: + fs: xfs +- cram: + clients: + client.0: + - src/test/cli-integration/rbd/mon-command-help.t diff --git a/src/test/cli-integration/rbd/mon-command-help.t b/src/test/cli-integration/rbd/mon-command-help.t new file mode 100644 index 000000000000..ec7740cbed23 --- /dev/null +++ b/src/test/cli-integration/rbd/mon-command-help.t @@ -0,0 +1,44 @@ + $ ceph rbd -h | sed -n '/^ Monitor commands: $/,$p' + Monitor commands: + ================= + rbd mirror snapshot schedule add Add rbd mirror snapshot schedule + [] + rbd mirror snapshot schedule list List rbd mirror snapshot schedule + [] + rbd mirror snapshot schedule remove Remove rbd mirror snapshot schedule + [] [] + rbd mirror snapshot schedule status Show rbd mirror snapshot schedule status + [] + rbd perf image counters [] Retrieve current RBD IO performance + [] + rbd perf image stats [] Retrieve current RBD IO performance + [] + rbd task add flatten Flatten a cloned image asynchronously + in the background + rbd task add migration abort asynchronously in the background + rbd task add migration commit asynchronously in the background + rbd task add migration execute asynchronously in the background + rbd task add remove Remove an image asynchronously in the + background + rbd task add trash remove asynchronously in the background + rbd task cancel Cancel a pending or running + asynchronous task + rbd task list [] List pending or running asynchronous + tasks + rbd trash purge schedule add [] + rbd trash purge schedule list [] + rbd trash purge schedule remove [] [] + rbd trash purge schedule status Show rbd trash purge schedule status + []