]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/tasks/cephfs/test_admin: run root_squash tests only for FUSE client 48027/head
authorRamana Raja <rraja@redhat.com>
Thu, 24 Nov 2022 20:48:27 +0000 (15:48 -0500)
committerXiubo Li <xiubli@redhat.com>
Mon, 11 Sep 2023 01:29:46 +0000 (09:29 +0800)
kclient doesn't have CEPHFS_FEATURE_MDS_AUTH_CAPS required to
enforce root_squash. Run root_squash tests only for FUSE client.

Signed-off-by: Ramana Raja <rraja@redhat.com>
qa/tasks/cephfs/test_admin.py

index 29ef778c69b77ab2b7a91c1e4051bf03fe395614..2f99e6443671f81e0e5c0e273ad69b50b90f734d 100644 (file)
@@ -1249,6 +1249,10 @@ class TestFsAuthorize(CephFSTestCase):
         self.captester.run_cap_tests(self.fs, self.client_id, PERM)
 
     def test_single_path_rootsquash(self):
+        if not isinstance(self.mount_a, FuseMount):
+            self.skipTest("only FUSE client has CEPHFS_FEATURE_MDS_AUTH_CAPS "
+                          "needed to enforce root_squash MDS caps")
+
         PERM = 'rw'
         FS_AUTH_CAPS = (('/', PERM, 'root_squash'),)
         self.captester = CapTester(self.mount_a, '/')
@@ -1270,6 +1274,10 @@ class TestFsAuthorize(CephFSTestCase):
         to a file. And after client remount, the non-root user can read the data that
         was previously written by it. https://tracker.ceph.com/issues/56067
         """
+        if not isinstance(self.mount_a, FuseMount):
+            self.skipTest("only FUSE client has CEPHFS_FEATURE_MDS_AUTH_CAPS "
+                          "needed to enforce root_squash MDS caps")
+
         keyring = self.fs.authorize(self.client_id, ('/', 'rw', 'root_squash'))
         keyring_path = self.mount_a.client_remote.mktemp(data=keyring)
         self.mount_a.remount(client_id=self.client_id,