diff options
author | John Mulligan <jmulligan@redhat.com> | 2022-05-07 16:04:35 +0200 |
---|---|---|
committer | John Mulligan <jmulligan@redhat.com> | 2023-01-12 19:44:10 +0100 |
commit | 656376d90a347a4ed6f0890f248eaa568f83ddd6 (patch) | |
tree | e6a497ae63215c168d7a75fcaff44298a0afd21e /src/pybind/mgr/nfs/tests/test_nfs.py | |
parent | Merge pull request #49713 from rhcs-dashboard/fix-sse-daemon-name (diff) | |
download | ceph-656376d90a347a4ed6f0890f248eaa568f83ddd6.tar.xz ceph-656376d90a347a4ed6f0890f248eaa568f83ddd6.zip |
mgr/nfs: convert _cmd_nfs_export_ls to use Responder decorator
Signed-off-by: John Mulligan <jmulligan@redhat.com>
Diffstat (limited to 'src/pybind/mgr/nfs/tests/test_nfs.py')
-rw-r--r-- | src/pybind/mgr/nfs/tests/test_nfs.py | 24 |
1 files changed, 8 insertions, 16 deletions
diff --git a/src/pybind/mgr/nfs/tests/test_nfs.py b/src/pybind/mgr/nfs/tests/test_nfs.py index b984426b6d8..6fdf6d1583b 100644 --- a/src/pybind/mgr/nfs/tests/test_nfs.py +++ b/src/pybind/mgr/nfs/tests/test_nfs.py @@ -912,8 +912,7 @@ NFS_CORE_PARAM { nfs_mod = Module('nfs', '', '') conf = ExportMgr(nfs_mod) - exports = conf.list_exports(cluster_id=self.cluster_id) - ls = json.loads(exports[1]) + ls = conf.list_exports(cluster_id=self.cluster_id) assert len(ls) == 2 r = conf.create_export( @@ -927,8 +926,7 @@ NFS_CORE_PARAM { ) assert r[0] == 0 - exports = conf.list_exports(cluster_id=self.cluster_id) - ls = json.loads(exports[1]) + ls = conf.list_exports(cluster_id=self.cluster_id) assert len(ls) == 3 export = conf._fetch_export('foo', '/mybucket') @@ -956,8 +954,7 @@ NFS_CORE_PARAM { nfs_mod = Module('nfs', '', '') conf = ExportMgr(nfs_mod) - exports = conf.list_exports(cluster_id=self.cluster_id) - ls = json.loads(exports[1]) + ls = conf.list_exports(cluster_id=self.cluster_id) assert len(ls) == 2 r = conf.create_export( @@ -972,8 +969,7 @@ NFS_CORE_PARAM { ) assert r[0] == 0 - exports = conf.list_exports(cluster_id=self.cluster_id) - ls = json.loads(exports[1]) + ls = conf.list_exports(cluster_id=self.cluster_id) assert len(ls) == 3 export = conf._fetch_export('foo', '/mybucket') @@ -1001,8 +997,7 @@ NFS_CORE_PARAM { nfs_mod = Module('nfs', '', '') conf = ExportMgr(nfs_mod) - exports = conf.list_exports(cluster_id=self.cluster_id) - ls = json.loads(exports[1]) + ls = conf.list_exports(cluster_id=self.cluster_id) assert len(ls) == 2 r = conf.create_export( @@ -1016,8 +1011,7 @@ NFS_CORE_PARAM { ) assert r[0] == 0 - exports = conf.list_exports(cluster_id=self.cluster_id) - ls = json.loads(exports[1]) + ls = conf.list_exports(cluster_id=self.cluster_id) assert len(ls) == 3 export = conf._fetch_export('foo', '/mybucket') @@ -1045,8 +1039,7 @@ NFS_CORE_PARAM { nfs_mod = Module('nfs', '', '') conf = ExportMgr(nfs_mod) - exports = conf.list_exports(cluster_id=self.cluster_id) - ls = json.loads(exports[1]) + ls = conf.list_exports(cluster_id=self.cluster_id) assert len(ls) == 2 r = conf.create_export( @@ -1061,8 +1054,7 @@ NFS_CORE_PARAM { ) assert r[0] == 0 - exports = conf.list_exports(cluster_id=self.cluster_id) - ls = json.loads(exports[1]) + ls = conf.list_exports(cluster_id=self.cluster_id) assert len(ls) == 3 export = conf._fetch_export('foo', '/cephfs2') |