From: Varsha Rao Date: Fri, 29 May 2020 18:06:34 +0000 (+0530) Subject: qa/tasks/cephfs: Enable multiple exports tests X-Git-Tag: wip-pdonnell-testing-20200918.022351~1133^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=b2adff10b55ddf11088c4176a6e03ee150e55b8a;p=ceph-ci.git qa/tasks/cephfs: Enable multiple exports tests Signed-off-by: Varsha Rao --- diff --git a/qa/tasks/cephfs/test_nfs.py b/qa/tasks/cephfs/test_nfs.py index 32c33c3e220..850b0b736ef 100644 --- a/qa/tasks/cephfs/test_nfs.py +++ b/qa/tasks/cephfs/test_nfs.py @@ -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)