]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/tasks/cephfs: Add test to check if export is available on restarting mgr
authorVarsha Rao <varao@redhat.com>
Tue, 9 Jun 2020 07:44:36 +0000 (07:44 +0000)
committerVarsha Rao <varao@redhat.com>
Tue, 30 Jun 2020 17:47:38 +0000 (23:17 +0530)
Signed-off-by: Varsha Rao <varao@redhat.com>
qa/tasks/cephfs/test_nfs.py

index fb4d70d8f55bdf7fc2a31f6721e408fc5fffe814..f80a6f0631b2f75e08b5a6f26fd3f765db668fb1 100644 (file)
@@ -140,3 +140,12 @@ class TestNFS(MgrTestCase):
         self._create_export(export_id='4', extra_cmd=[self.pseudo_path+'3', fs_path.strip()])
         self._test_delete_cluster()
         self._check_export_obj_deleted(conf_obj=True)
+
+    def test_exports_on_mgr_restart(self):
+        self._create_default_export()
+        # This will restart the mgr
+        self._unload_module("cephadm")
+        self._load_module("cephadm")
+        self._orch_cmd("set", "backend", "cephadm")
+        #Add list export command
+        self._delete_export()