From 122388429d01ef2f294dc2846d16d88aa0bdba68 Mon Sep 17 00:00:00 2001 From: Joao Eduardo Luis Date: Tue, 13 Oct 2020 08:24:34 +0000 Subject: [PATCH] qa/cephtool: test 'mon stat' commands Signed-off-by: Joao Eduardo Luis --- qa/workunits/cephtool/test.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/qa/workunits/cephtool/test.sh b/qa/workunits/cephtool/test.sh index 7b18a5bd3fa76..90a28663d9fe1 100755 --- a/qa/workunits/cephtool/test.sh +++ b/qa/workunits/cephtool/test.sh @@ -1166,6 +1166,7 @@ function test_mon_mon() expect_false ceph mon feature set abcd expect_false ceph mon feature set abcd --yes-i-really-mean-it + # test elector expect_failure $TEMP_DIR ceph mon add disallowed_leader $first ceph mon set election_strategy disallow ceph mon add disallowed_leader $first @@ -1173,6 +1174,11 @@ function test_mon_mon() ceph mon rm disallowed_leader $first ceph mon set election_strategy classic expect_failure $TEMP_DIR ceph mon rm disallowed_leader $first + + # test mon stat + # don't check output, just ensure it does not fail. + ceph mon stat + ceph mon stat -f json | jq '.' } function test_mon_priority_and_weight() -- 2.39.5