]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
mgr/volumes: Fix json.loads for test on mon caps
authorEnrico Bocchi <enrico.bocchi@cern.ch>
Tue, 5 Nov 2024 08:26:04 +0000 (09:26 +0100)
committerJos Collin <jcollin@redhat.com>
Mon, 8 Sep 2025 04:59:36 +0000 (10:29 +0530)
Signed-off-by: Enrico Bocchi <enrico.bocchi@cern.ch>
(cherry picked from commit b008ef9eb690618608f902c67f8df1fb8a587e33)

qa/tasks/cephfs/test_volumes.py

index deeb2c5953fee185a6eb90cbcda0b0bee00498a0..7d334d933d4632d134a767ee51f5485dcd1a14f3 100644 (file)
@@ -2705,7 +2705,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
@@ -2721,7 +2721,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