]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa: test mgr cephfs mount blacklist
authorPatrick Donnelly <pdonnell@redhat.com>
Tue, 3 Dec 2019 23:02:19 +0000 (15:02 -0800)
committerPatrick Donnelly <pdonnell@redhat.com>
Thu, 6 Feb 2020 22:42:44 +0000 (14:42 -0800)
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
(cherry picked from commit 98e3b7efe8bc92d88f161c892ce91a7fff67052c)
Note: removed mgr blacklist test which applies to Octopus.

qa/tasks/cephfs/cephfs_test_case.py

index 53713a3896c7ba1de653cd58b34b3d348f3f8115..89259342b0de71164ec1c36d727f3b4c47670f6a 100644 (file)
@@ -229,6 +229,15 @@ class CephFSTestCase(CephTestCase):
     def _session_by_id(self, session_ls):
         return dict([(s['id'], s) for s in session_ls])
 
+    def wait_until_evicted(self, client_id, timeout=30):
+        def helper():
+            ls = self._session_list()
+            for s in ls:
+                if s['id'] == client_id:
+                    return False
+            return True
+        self.wait_until_true(lambda: helper(), timeout)
+
     def wait_for_daemon_start(self, daemon_ids=None):
         """
         Wait until all the daemons appear in the FSMap, either assigned