From: Patrick Donnelly Date: Tue, 16 Apr 2024 19:22:13 +0000 (-0400) Subject: qa: move reqid_tostr helper X-Git-Tag: testing/wip-vshankar-testing-20250110.122509-reef-debug^2~3 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=ffa8b004a3b59fbee7a712eccc8a4afeb9f780c9;p=ceph-ci.git qa: move reqid_tostr helper Signed-off-by: Patrick Donnelly (cherry picked from commit 0c8d601ef8b26e8e694a462f4e4c797cd771c1b9) Conflicts: qa/tasks/cephfs/test_quiesce.py: does not exist in reef --- diff --git a/qa/tasks/cephfs/cephfs_test_case.py b/qa/tasks/cephfs/cephfs_test_case.py index dea8a310e31..f4485e5ca49 100644 --- a/qa/tasks/cephfs/cephfs_test_case.py +++ b/qa/tasks/cephfs/cephfs_test_case.py @@ -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