From: Joao Eduardo Luis Date: Tue, 13 Oct 2020 08:24:34 +0000 (+0000) Subject: qa/cephtool: test 'mon stat' commands X-Git-Tag: v17.0.0~857^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=122388429d01ef2f294dc2846d16d88aa0bdba68;p=ceph.git qa/cephtool: test 'mon stat' commands Signed-off-by: Joao Eduardo Luis --- 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()