qa/workunits/cephtool/test.sh: use "ceph compact" in test_mon_deprecated_commands()

both "compact" and "scrub" are now cli command, so we cannot issue them
using "tell" anymore.

Signed-off-by: Kefu Chai <kchai@redhat.com>
This commit is contained in:
Kefu Chai 2019-11-18 18:51:29 +08:00
parent e96df8c44b
commit 2977086d1d

View File

@ -2574,14 +2574,14 @@ function test_mon_deprecated_commands()
# 'mon_debug_deprecated_as_obsolete = true' and expecting ENOTSUP for
# each one of these commands.
ceph tell mon.a injectargs '--mon-debug-deprecated-as-obsolete'
expect_false ceph tell mon.a compact 2> $TMPFILE
ceph tell mon.* injectargs '--mon-debug-deprecated-as-obsolete'
expect_false ceph compact 2> $TMPFILE
check_response "\(EOPNOTSUPP\|ENOTSUP\): command is obsolete"
expect_false ceph tell mon.a scrub 2> $TMPFILE
expect_false ceph scrub 2> $TMPFILE
check_response "\(EOPNOTSUPP\|ENOTSUP\): command is obsolete"
ceph tell mon.a injectargs '--no-mon-debug-deprecated-as-obsolete'
ceph tell mon.* injectargs '--no-mon-debug-deprecated-as-obsolete'
}
function test_mon_cephdf_commands()