From 3b554f2310878cd0d38db8acef982a4707111b04 Mon Sep 17 00:00:00 2001 From: Varsha Rao Date: Tue, 9 Jun 2020 07:44:36 +0000 Subject: [PATCH] qa/tasks/cephfs: Add test to check if export is available on restarting mgr Signed-off-by: Varsha Rao --- qa/tasks/cephfs/test_nfs.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/qa/tasks/cephfs/test_nfs.py b/qa/tasks/cephfs/test_nfs.py index fb4d70d8f55..f80a6f0631b 100644 --- a/qa/tasks/cephfs/test_nfs.py +++ b/qa/tasks/cephfs/test_nfs.py @@ -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() -- 2.47.3