Update parcer to do not miss tests with GET requests only
Related-prod: PRODX-19557
Change-Id: Ica70b414ee7c3cd2559f6969d3adb9b005765c80
diff --git a/tempest_tests_resources/report_parser.py b/tempest_tests_resources/report_parser.py
index 4c43301..d697d32 100644
--- a/tempest_tests_resources/report_parser.py
+++ b/tempest_tests_resources/report_parser.py
@@ -29,10 +29,14 @@
:param report_name: full tempest logs file
:param temporary_filename: simplified file
"""
- run_cmd = f"grep -vE '(auth/token|keystoneauth|connectionpool)' " \
- f"{report_name} | grep -A4 -E '( POST| DELETE| PUT)' " \
+ run_cmd = f"grep -vEa '(auth/token|keystoneauth|connectionpool)' " \
+ f"{report_name} | grep -a -A4 -E '( POST| DELETE| PUT)' " \
f"> {temporary_filename}"
subprocess.check_output(run_cmd, shell=True)
+ run_cmd = f"grep -vEa '(auth/token|keystoneauth|connectionpool)' " \
+ f"{report_name} | grep -a -A4 -E '(GET)' " \
+ f">> {temporary_filename}"
+ subprocess.check_output(run_cmd, shell=True)
def get_request_response(temporary_filename):