From 726cd8c250dfc081e43e273ab59444d5904139bc Mon Sep 17 00:00:00 2001 From: Enrico Bocchi Date: Tue, 5 Nov 2024 09:26:04 +0100 Subject: [PATCH] mgr/volumes: Fix json.loads for test on mon caps Signed-off-by: Enrico Bocchi (cherry picked from commit b008ef9eb690618608f902c67f8df1fb8a587e33) --- qa/tasks/cephfs/test_volumes.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qa/tasks/cephfs/test_volumes.py b/qa/tasks/cephfs/test_volumes.py index d55f60dd12e..3d699e9b00e 100644 --- a/qa/tasks/cephfs/test_volumes.py +++ b/qa/tasks/cephfs/test_volumes.py @@ -2879,7 +2879,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 @@ -2895,7 +2895,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 -- 2.39.5