]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/tasks/cephfs: Enable multiple exports tests
authorVarsha Rao <varao@redhat.com>
Fri, 29 May 2020 18:06:34 +0000 (23:36 +0530)
committerVarsha Rao <varao@redhat.com>
Wed, 8 Jul 2020 05:36:35 +0000 (07:36 +0200)
Signed-off-by: Varsha Rao <varao@redhat.com>
(cherry picked from commit b2adff10b55ddf11088c4176a6e03ee150e55b8a)

qa/tasks/cephfs/test_nfs.py

index 32c33c3e220da371993228feee37865764ce55a1..850b0b736ef29044132d86710c928f2eb276a310 100644 (file)
@@ -105,14 +105,16 @@ class TestNFS(MgrTestCase):
         self._check_export_obj_deleted()
         self._test_delete_cluster()
 
-    def _test_create_multiple_exports(self):
+    def test_create_multiple_exports(self):
         #Export-1 with default values
         self._create_default_export()
         #Export-2 with r only
-        self._create_export(export_id='2', extra_cmd=[self.pseudo_path, '--readonly'])
+        self._create_export(export_id='2', extra_cmd=[self.pseudo_path+'1', '--readonly'])
         #Export-3 for subvolume with r only
         self._cmd('fs', 'subvolume', 'create', self.fs_name, 'sub_vol')
         fs_path = self._cmd('fs', 'subvolume', 'getpath', self.fs_name, 'sub_vol')
-        self._create_export(export_id='3', extra_cmd=[self.pseudo_path, '--readonly', fs_path.strip()])
+        self._create_export(export_id='3', extra_cmd=[self.pseudo_path+'2', '--readonly', fs_path.strip()])
+        #Export-4 for subvolume
+        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)