]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/nfs/tests: mock check_cephfs_path
authorDhairya Parmar <dparmar@redhat.com>
Wed, 29 Mar 2023 17:58:59 +0000 (23:28 +0530)
committerDhairya Parmar <dparmar@redhat.com>
Fri, 31 Mar 2023 08:18:24 +0000 (13:48 +0530)
Signed-off-by: Dhairya Parmar <dparmar@redhat.com>
(cherry picked from commit 6334e10fa5b99576ec4b307abdcaabc5a4eeb07b)

src/pybind/mgr/nfs/tests/test_nfs.py

index 6395835e4ddd98adf1530df8b9ba54a25cf9622a..4aa20db4b0c5e4a6a787a328c06a200e7a7f36b3 100644 (file)
@@ -251,7 +251,8 @@ EXPORT {
                 mock.patch('nfs.export.check_fs', return_value=True), \
                 mock.patch('nfs.export_utils.check_fs', return_value=True), \
                 mock.patch('nfs.export.ExportMgr._create_user_key',
-                           return_value='thekeyforclientabc'):
+                           return_value='thekeyforclientabc'), \
+                mock.patch('nfs.export.check_cephfs_path'):
 
             rados.open_ioctx.return_value.__enter__.return_value = self.io_mock
             rados.open_ioctx.return_value.__exit__ = mock.Mock(return_value=None)