]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
tasks/cephfs: check status asok output while in reconnect
authorJohn Spray <john.spray@redhat.com>
Mon, 11 Jan 2016 23:15:37 +0000 (23:15 +0000)
committerJohn Spray <john.spray@redhat.com>
Mon, 11 Jan 2016 23:15:37 +0000 (23:15 +0000)
Mostly checking the output from the status asok is awkward
because you need to get the system stuck in a particular
state to do so.  However, we already have a test here
that sticks the system in reconnect, so here's some
very light test coverage for that asok.

Signed-off-by: John Spray <john.spray@redhat.com>
tasks/cephfs/test_client_recovery.py

index ef9a1e7e1c187f597020c5f5a86c9a4369e357ee..8839345e96075f0020cd16142394489c8bb9b288 100644 (file)
@@ -143,6 +143,9 @@ class TestClientRecovery(CephFSTestCase):
         self.fs.mds_restart()
 
         self.fs.wait_for_state('up:reconnect', reject='up:active', timeout=MDS_RESTART_GRACE)
+        # Check that the MDS locally reports its state correctly
+        status = self.fs.mds_asok(['status'])
+        self.assertIn("reconnect_status", status)
 
         ls_data = self._session_list()
         self.assert_session_count(2, ls_data)