]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa: Grant ALL caps fscrypt integration tests
authorChristopher Hoffman <choffman@redhat.com>
Wed, 1 Oct 2025 14:02:40 +0000 (14:02 +0000)
committerChristopher Hoffman <choffman@redhat.com>
Wed, 5 Nov 2025 13:59:36 +0000 (13:59 +0000)
ALL caps are now needed for when setting fscrypt policy

Signed-off-by: Christopher Hoffman <choffman@redhat.com>
qa/tasks/cephfs/test_fscrypt.py

index 8ca7eb28ff5d273620f375f27dcfc66f2d9bd221..6ca3d8a975bbc45668a3a5b9f52e63b3136cb6a3 100644 (file)
@@ -20,6 +20,14 @@ class FSCryptTestCase(CephFSTestCase):
     def setUp(self):
         super().setUp()
 
+        self.get_ceph_cmd_result(
+                'auth', 'caps', "client.0",
+                'mds', 'allow *',
+                'mon', 'allow *',
+                 'osd', 'allow *')
+        self.mount_a.umount_wait()
+        self.mount_a.mount_wait()
+
         self.protector = ''.join(random.choice(string.ascii_letters) for _ in range(8))
         self.key_file = "/tmp/key"
         self.path = "dir/"
@@ -368,6 +376,14 @@ class TestFSCryptVolumes(CephFSTestCase):
     def setUp(self):
         super().setUp()
 
+        self.get_ceph_cmd_result(
+                'auth', 'caps', "client.0",
+                'mds', 'allow *',
+                'mon', 'allow *',
+                 'osd', 'allow *')
+        self.mount_a.umount_wait()
+        self.mount_a.mount_wait()
+
         self.protector = ''.join(random.choice(string.ascii_letters) for _ in range(8))
         self.key_file = "/tmp/key_volume"
         self.path = "dir/"