]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
qa : add a test for the cmd, dump cache
authorSimon Gao <simon29rock@gmail.com>
Sat, 17 Apr 2021 01:47:39 +0000 (09:47 +0800)
committerSimon Gao <simon29rock@gmail.com>
Sun, 23 May 2021 06:43:02 +0000 (14:43 +0800)
Signed-off-by: Simon Gao <simon29rock@gmail.com>
qa/tasks/cephfs/test_admin.py

index 6a2d63b9a88ad3a901d3127cfdf08131b264a353..7f41efdf53c4c779e4c305d22292fb59c7818294 100644 (file)
@@ -310,6 +310,11 @@ class TestConfigCommands(CephFSTestCase):
         out = self.fs.mds_asok(['config', 'get', test_key])
         self.assertEqual(out[test_key], test_val)
 
+    def test_mds_dump_cache_asok(self):
+        cache_file = "cache_file"
+        timeout = "1"
+        self.fs.rank_asok(['dump', 'cache', cache_file, timeout])
+
     def test_mds_config_tell(self):
         test_key = "mds_max_purge_ops"
         test_val = "123"