]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/cephtool: test 'mon stat' commands
authorJoao Eduardo Luis <joao@suse.com>
Tue, 13 Oct 2020 08:24:34 +0000 (08:24 +0000)
committerNathan Cutler <ncutler@suse.com>
Sat, 21 Nov 2020 15:41:28 +0000 (16:41 +0100)
Signed-off-by: Joao Eduardo Luis <joao@suse.com>
(cherry picked from commit 122388429d01ef2f294dc2846d16d88aa0bdba68)

Conflicts:
qa/workunits/cephtool/test.sh
- drop unrelated "# test elector" comment (elector test not backported)
- no "test_mon_priority_and_weight" function in nautilus

qa/workunits/cephtool/test.sh

index a4bd3d415a6fc3ec57091bbdaf4fa20b04126b78..1929d296efd28d31361a4463cc32ea9f39adbfc1 100755 (executable)
@@ -1180,6 +1180,11 @@ function test_mon_mon()
   ceph mon feature set kraken --yes-i-really-mean-it
   expect_false ceph mon feature set abcd
   expect_false ceph mon feature set abcd --yes-i-really-mean-it
+
+  # test mon stat
+  # don't check output, just ensure it does not fail.
+  ceph mon stat
+  ceph mon stat -f json | jq '.'
 }
 
 function gen_secrets_file()