]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/volumes: Fix json.loads for test on mon caps 65262/head
authorEnrico Bocchi <enrico.bocchi@cern.ch>
Tue, 5 Nov 2024 08:26:04 +0000 (09:26 +0100)
committerJos Collin <jcollin@redhat.com>
Wed, 27 Aug 2025 06:51:50 +0000 (12:21 +0530)
Signed-off-by: Enrico Bocchi <enrico.bocchi@cern.ch>
(cherry picked from commit b008ef9eb690618608f902c67f8df1fb8a587e33)

qa/tasks/cephfs/test_volumes.py

index 48fba5466357751bcf9a912243197c100df048c3..7e3faf1f4163940be500bf949785e7dd43ead895 100644 (file)
@@ -3172,7 +3172,7 @@ class TestSubvolumes(TestVolumesHelper):
 
         # check mon caps for authid
         expected_mon_caps = 'allow r'
-        full_caps = self._raw_cmd("auth", "get", "client.alice", "--format=json-pretty")
+        full_caps = json.loads(self._raw_cmd("auth", "get", "client.alice", "--format=json-pretty"))
         self.assertEqual(expected_mon_caps, full_caps[0]['caps']['mon'])
 
         # deauthorize guest1 authID
@@ -3188,7 +3188,7 @@ class TestSubvolumes(TestVolumesHelper):
 
         # check mon caps still hold for authid
         expected_mon_caps = 'allow r'
-        full_caps = self._raw_cmd("auth", "get", "client.alice", "--format=json-pretty")
+        full_caps = json.loads(self._raw_cmd("auth", "get", "client.alice", "--format=json-pretty"))
         self.assertEqual(expected_mon_caps, full_caps[0]['caps']['mon'])
 
         # cleanup