]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
qa: move reqid_tostr helper
authorPatrick Donnelly <pdonnell@redhat.com>
Tue, 16 Apr 2024 19:22:13 +0000 (15:22 -0400)
committerPatrick Donnelly <pdonnell@ibm.com>
Thu, 9 Jan 2025 19:50:56 +0000 (14:50 -0500)
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
(cherry picked from commit 0c8d601ef8b26e8e694a462f4e4c797cd771c1b9)

Conflicts:
qa/tasks/cephfs/test_quiesce.py: does not exist in reef

qa/tasks/cephfs/cephfs_test_case.py

index dea8a310e31b0f476db8147194fb3b0ce55d71e2..f4485e5ca49dc251af10ae6df5834e19bd5aaeb7 100644 (file)
@@ -81,6 +81,13 @@ class CephFSTestCase(CephTestCase):
 
     LOAD_SETTINGS = [] # type: ignore
 
+    def _reqid_tostr(self, reqid):
+        """
+        Change a json reqid to a string representation.
+        """
+
+        return f"{reqid['entity']['type']}.{reqid['entity']['num']}:{reqid['tid']}"
+
     def _save_mount_details(self):
         """
         XXX: Tests may change details of mount objects, so let's stash them so