]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
test: add test of ceph compact command
authorliuchang0812 <liuchang0812@gmail.com>
Mon, 3 Jul 2017 08:31:31 +0000 (16:31 +0800)
committerVikhyat Umrao <vumrao@redhat.com>
Mon, 9 Oct 2017 14:27:06 +0000 (10:27 -0400)
Signed-off-by: liuchang0812 <liuchang0812@gmail.com>
(cherry picked from commit d1f24d053f367511cf12a43350bad246c5f28c9f)

 Conflicts:
qa/workunits/cephtool/test.sh
         Removed all tests which are not part of this backport

qa/workunits/cephtool/test.sh

index 192f03841faf99dc303562608471abb202378244..ab952f6f69ca542504859f59dc951f883661a6c3 100755 (executable)
@@ -1852,6 +1852,12 @@ function test_mon_stdin_stdout()
   ceph config-key get test_key -o - | grep -c foo | grep -q 1
 }
 
+function test_osd_compact()
+{
+  ceph tell osd.1 compact
+  ceph daemon osd.1 compact
+}
+
 #
 # New tests should be added to the TESTS array below
 #
@@ -1895,6 +1901,7 @@ MON_TESTS+=" mon_stdin_stdout"
 OSD_TESTS+=" osd_bench"
 OSD_TESTS+=" osd_negative_filestore_merge_threshold"
 OSD_TESTS+=" tiering_agent"
+OSD_TESTS+=" osd_compact"
 
 MDS_TESTS+=" mds_tell"
 MDS_TESTS+=" mon_mds"