]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/cephadm: Add cephfs-mirror test
authorSebastian Wagner <sebastian.wagner@suse.com>
Tue, 23 Feb 2021 15:05:47 +0000 (16:05 +0100)
committerSage Weil <sage@newdream.net>
Tue, 16 Mar 2021 12:56:18 +0000 (07:56 -0500)
Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
(cherry picked from commit d4bf7157a13970e417e79469e9db0559d612ebbb)

qa/tasks/cephadm_cases/test_cli.py

index 118cf0c387f2d76ecb65b4e4a5e703a98b573097..f96359374987dd98e81cfc5d77c0c1a1d7f72587 100644 (file)
@@ -54,3 +54,10 @@ class TestCephadmCLI(MgrTestCase):
 
     def test_device_ls_wide(self):
         self._orch_cmd('device', 'ls', '--wide')
+
+    def test_cephfs_mirror(self):
+        self._orch_cmd('apply', 'cephfs-mirror')
+        self.wait_until_true(lambda: 'cephfs-mirror' in self._orch_cmd('ps'), 30)
+        self.wait_for_health_clear(30)
+        self._orch_cmd('rm', 'cephfs-mirror')
+        self.wait_until_true(lambda: 'cephfs-mirror' not in self._orch_cmd('ps'), 30)