From eb2cd16fbe3d6cb5aa9102c09baac500b617f178 Mon Sep 17 00:00:00 2001 From: Varsha Rao Date: Thu, 11 Jun 2020 10:57:50 +0530 Subject: [PATCH] qa/tasks/cephfs: Add test for nfs cluster ls command Signed-off-by: Varsha Rao --- qa/tasks/cephfs/test_nfs.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/qa/tasks/cephfs/test_nfs.py b/qa/tasks/cephfs/test_nfs.py index f80a6f0631b..c15df156b5e 100644 --- a/qa/tasks/cephfs/test_nfs.py +++ b/qa/tasks/cephfs/test_nfs.py @@ -78,6 +78,10 @@ class TestNFS(MgrTestCase): wait_time += 10 self.fail("NFS Ganesha cluster could not be deleted") + def _test_list_cluster(self): + nfs_output = self._nfs_cmd('cluster', 'ls') + self.assertEqual(self.cluster_id, nfs_output) + def _create_export(self, export_id, create_fs=False, extra_cmd=None): if create_fs: self._cmd('fs', 'volume', 'create', self.fs_name) @@ -107,6 +111,7 @@ class TestNFS(MgrTestCase): def test_create_and_delete_cluster(self): self._test_create_cluster() + self._test_list_cluster() self._test_delete_cluster() def test_create_delete_cluster_idempotency(self): -- 2.39.5