From a408aaa36b18030cdbfd9fcef882cc0ef15f6f3d 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 48fba546635..7e3faf1f416 100644 --- a/qa/tasks/cephfs/test_volumes.py +++ b/qa/tasks/cephfs/test_volumes.py @@ -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 -- 2.39.5