From d11c8045466a3c91fe15983d7814a68d97ec8b75 Mon Sep 17 00:00:00 2001 From: jitendra-kushavah Date: Thu, 20 Nov 2025 10:23:57 +0000 Subject: [PATCH] Added delete logs response in the allure report Signed-off-by: jitendra-kushavah --- lf_libs/lf_tests.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lf_libs/lf_tests.py b/lf_libs/lf_tests.py index 0a196179..61c1bca9 100644 --- a/lf_libs/lf_tests.py +++ b/lf_libs/lf_tests.py @@ -4310,6 +4310,8 @@ class lf_tests(lf_libs): del_resp = get_target_object.controller_library_object.delete_device_reboot_logs(device_name, query=delete_query) + allure.attach(body=json.dumps(del_resp.json(), indent=4), name="delete_logs_from_gw\n", + attachment_type=allure.attachment_type.JSON) if del_resp.status_code == 200: logging.info("Crash logs deleted successfully from GW") else: @@ -4328,6 +4330,8 @@ class lf_tests(lf_libs): time.sleep(3) del_resp = get_target_object.controller_library_object.delete_device_reboot_logs(device_name, query=delete_query) + allure.attach(body=json.dumps(del_resp.json(), indent=4), name="delete_logs_from_gw\n", + attachment_type=allure.attachment_type.JSON) if del_resp.status_code == 200: logging.info("Crash logs deleted successfully from GW") else: