]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
qa/workunits/cephtool/test.sh: use "ceph compact" in test_mon_deprecated_commands()
authorKefu Chai <kchai@redhat.com>
Mon, 18 Nov 2019 10:51:29 +0000 (18:51 +0800)
committerKefu Chai <kchai@redhat.com>
Mon, 18 Nov 2019 13:17:56 +0000 (21:17 +0800)
both "compact" and "scrub" are now cli command, so we cannot issue them
using "tell" anymore.

Signed-off-by: Kefu Chai <kchai@redhat.com>
qa/workunits/cephtool/test.sh

index 8a6d922b6f059b4d0494e1be250afc0e6675f41a..ca8d2390a4c3b81caf7a6be6816d0f8c16bc7fd4 100755 (executable)
@@ -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()