From 4ed1e74d83e8bf99b77d794d2d3bd0b22fe0997a Mon Sep 17 00:00:00 2001 From: Ilya Dryomov Date: Sat, 29 Jan 2022 15:01:27 +0100 Subject: [PATCH] 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 --- .../rbd/singleton/all/mon-command-help.yaml | 10 +++++ .../cli-integration/rbd/mon-command-help.t | 44 +++++++++++++++++++ 2 files changed, 54 insertions(+) create mode 100644 qa/suites/rbd/singleton/all/mon-command-help.yaml create mode 100644 src/test/cli-integration/rbd/mon-command-help.t 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 0000000000000..a7290aadb2f5b --- /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 0000000000000..ec7740cbed23c --- /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 + [] -- 2.39.5