From ffa8b004a3b59fbee7a712eccc8a4afeb9f780c9 Mon Sep 17 00:00:00 2001 From: Patrick Donnelly Date: Tue, 16 Apr 2024 15:22:13 -0400 Subject: [PATCH] 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 --- qa/tasks/cephfs/cephfs_test_case.py | 7 +++++++ 1 file changed, 7 insertions(+) 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 -- 2.39.5