From 9c196147fce2826563212a938ebbf13f4a176d75 Mon Sep 17 00:00:00 2001 From: NikitaUnisikhin <92248695+NikitaUnisikhin@users.noreply.github.com> Date: Thu, 19 Dec 2024 14:44:50 +0300 Subject: [PATCH] Fix regular for orphaned objects error msg (#271) * Fix * Fix test --------- Co-authored-by: Nikita Unisikhin --- ch_tools/common/config.py | 4 ++-- tests/features/monrun.feature | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ch_tools/common/config.py b/ch_tools/common/config.py index 727ec55c..985308f3 100644 --- a/ch_tools/common/config.py +++ b/ch_tools/common/config.py @@ -85,8 +85,8 @@ "replacement": " ", }, { - "pattern": r"(Code:\s\d+\.\sDB::Exception:\s).*(\s\([A-Z_]*\)\s\(version\s.*\s\(official build\)\)\s).*", - "replacement": r"\1...\2...", + "pattern": r"(Code:\s\d+\.\sDB::Exception:\s).*(\s\([A-Z_]*\)\s\(version\s.*\s\(official build\)\)).*", + "replacement": r"\1...\2", }, ], }, diff --git a/tests/features/monrun.feature b/tests/features/monrun.feature index 2c357256..cff71b89 100644 --- a/tests/features/monrun.feature +++ b/tests/features/monrun.feature @@ -522,5 +522,5 @@ Feature: ch-monitoring tool """ Then we get response """ - 2;Code: 27. DB::Exception: ... (CANNOT_PARSE_INPUT_ASSERTION_FAILED) (version 24.8.5.115 (official build)) ... + 2;Code: 27. DB::Exception: ... (CANNOT_PARSE_INPUT_ASSERTION_FAILED) (version 24.8.5.115 (official build)) """